WO2018049896A1 - 数据传输方法及设备 - Google Patents
数据传输方法及设备 Download PDFInfo
- Publication number
- WO2018049896A1 WO2018049896A1 PCT/CN2017/092656 CN2017092656W WO2018049896A1 WO 2018049896 A1 WO2018049896 A1 WO 2018049896A1 CN 2017092656 W CN2017092656 W CN 2017092656W WO 2018049896 A1 WO2018049896 A1 WO 2018049896A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- data transmission
- transmitted
- terminal
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
Definitions
- the present invention relates to the field of terminal technologies, and in particular, to a data transmission method and device.
- terminal devices With the development of terminal technologies, the types of terminal devices are frequently changed. In order to obtain a better user experience, people often change to terminal devices of newer models after one, two, or even shorter usage hours.
- the embodiment of the invention provides a data transmission method and device, which can enable the terminal device to continue the previously uncompleted data transmission without retransmitting all the data to be transmitted, saving time and improving data transmission efficiency.
- a first aspect of the embodiments of the present invention discloses a data transmission method, including:
- the first terminal receives an operation instruction for starting a data transmission
- a second aspect of the embodiments of the present invention discloses a data transmission device, including:
- a receiving unit configured to receive an operation instruction for starting a data transmission
- a determining unit configured to determine whether the first data transmission performed by the first terminal is completed; wherein the first data transmission is to send the preset data to the second terminal to the second terminal;
- an acquiring unit configured to acquire, when the first data transmission is not completed, data that is not transmitted in the preset data
- a sending unit configured to send data that is not transmitted in the preset data to the second terminal.
- a third aspect of the embodiments of the present invention discloses a terminal device, including: a processor and a memory, where the processor is configured to perform the method disclosed in the above first aspect.
- a fourth aspect of the present invention provides a computer readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes the computer to execute the method of any one of the embodiments of the present invention. .
- a fifth aspect of the present invention provides a computer program product, comprising: a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the embodiments of the present invention Any of the methods described.
- the first terminal receives an operation instruction for starting data transmission, and determines whether the first data transmission performed by the first terminal is completed; wherein the first data transmission is a preset for the first terminal. Data is sent to the second terminal; if the first data transmission is not completed, data that is not transmitted in the preset data is acquired; and data that is not transmitted in the preset data is sent to the second terminal. It can be seen that, in the embodiment of the present invention, the terminal device can continue the previously uncompleted data transmission without retransmitting all the data to be transmitted, saving time and improving data transmission efficiency.
- FIG. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present invention.
- FIG. 2 is a schematic flowchart of another data transmission method according to an embodiment of the present invention.
- FIG. 3 is a schematic structural diagram of a data transmission device according to an embodiment of the present disclosure.
- FIG. 4 is a schematic structural diagram of another data transmission device according to an embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
- FIG. 6 is a schematic structural diagram of another terminal device according to an embodiment of the present invention.
- the embodiment of the invention provides a data transmission method and device, which can enable the terminal device to continue the previously uncompleted data transmission without retransmitting all the data to be transmitted, saving time and increasing the number. According to transmission efficiency. The details are described below separately.
- FIG. 1 is a schematic flowchart diagram of a data transmission method according to an embodiment of the present invention.
- the method shown in FIG. 1 may include the following steps:
- the first terminal receives an operation instruction for starting a data transmission.
- the terminal device may be a smart phone, a smart watch, a palmtop computer, a tablet computer, a personal digital assistant (PDA), a point of sales (POS), etc. repeat.
- PDA personal digital assistant
- POS point of sales
- the first terminal monitors the sliding track of the input of the user's finger on the touch screen, and verifies whether the sliding track is a sliding track corresponding to the start data transmission, and if so, starts the data transmission function.
- Step 102 Determine whether the first data transmission performed before the first terminal is completed.
- the first data transmission is to send the preset data to the second terminal by the first terminal.
- the first terminal allocates a first serial number for the first data transmission; if the first data transmission is not completed, records the first serial number to an incomplete Data transfer list.
- the first terminal may determine whether the foregoing first data transmission is completed by:
- the first serial number is queried in the uncompleted data transmission list, and if the first serial number is queried, it is determined that the first data transmission is not completed.
- the transmitted tag in the process of the first data transmission, is added to the data that has been transmitted in the preset data; wherein the transmitted tag is generated according to the first sequence number; therefore, By acquiring the data of the above-mentioned preset data that has no transmitted mark as the above-mentioned data that is not transmitted.
- the data may be transmitted by acquiring data that is not transmitted during the first data transmission process, thereby avoiding the entire first data transmission process, saving time and improving data transmission. effectiveness.
- the first terminal may send a request message to the second terminal to request the receiving condition of the second terminal to feed back the data; If the second terminal returns some or all of the above data is not successfully received, the first terminal may resend the data that is not successfully received to ensure that all preset data is successfully migrated to the second terminal.
- the first terminal may be the user's old mobile phone
- the second terminal is the user's new mobile phone. Therefore, when all the preset data in the old mobile phone is successfully migrated to the new mobile phone, the user may resell or discard the old mobile phone. Therefore, in order to prevent user data leakage, the preset data may be successfully received on the new mobile phone. After the data is not transmitted, the preset data stored in the old mobile phone is deleted to ensure the user's data security.
- the terminal device can continue the previously uncompleted data transmission without retransmitting all the data to be transmitted, saving time and improving data transmission efficiency.
- FIG. 2 is a schematic flowchart diagram of another data transmission method according to an embodiment of the present invention. As shown in FIG. 2, the method may include the following steps:
- the first terminal receives an operation instruction for starting a data transmission.
- the first terminal monitors the sliding track of the input of the user's finger on the touch screen, and verifies whether the sliding track is a sliding track corresponding to the start data transmission, and if so, starts the data transmission function.
- the first data transmission is to send the preset data to the second terminal by the first terminal.
- the first terminal allocates a first serial number for the first data transmission; if the first data transmission is not completed, records the first serial number to an incomplete Data transfer list.
- the first terminal may determine whether the foregoing first data transmission is completed by:
- the first serial number is queried in the uncompleted data transmission list, and if the first serial number is queried, it is determined that the first data transmission is not completed.
- the prompt message may include a proportion of data that has been transmitted by the first data transmission and a time that the first data transmission has taken.
- the user can know the completion of the first data transmission according to the information. If the completion amount of the first data transmission is small, the data transmission may be re-selected; if the completion amount of the first data transmission is large, it takes a lot of time. Then, the data that is not transmitted in the first data transmission can be continuously transmitted to save the total data transmission time.
- the transmitted tag in the process of the first data transmission, is added to the data that has been transmitted in the preset data; wherein the transmitted tag is generated according to the first sequence number; therefore, By acquiring the data of the above-mentioned preset data that has no transmitted mark as the above-mentioned data that is not transmitted.
- the data may be transmitted by acquiring data that is not transmitted during the first data transmission process, thereby avoiding the entire first data transmission process, saving time and improving data transmission. effectiveness.
- the first terminal receives an instruction not to continue the first data transmission, canceling the transmitted flag of the transmitted data in the preset data, and starting the second data transmission, as the second data
- the transmission assigns a second serial number, and the first serial number is different from the second serial number. In this way, a record of the first data transmission is discarded and a new data transmission process is established.
- the terminal device can continue the previously uncompleted data transmission without retransmitting all the data to be transmitted, saving time and improving data transmission efficiency.
- the terminal device can inform the user of the proportion of data that has been transmitted by the first data transmission and the time that the first data transmission has taken by the notification message, so that the user can select whether to continue the first data transmission.
- FIG. 3 is a schematic structural diagram of a data transmission device according to an embodiment of the present invention. As shown in FIG. 3, the device may include:
- the receiving unit 301 is configured to receive an operation instruction for starting data transmission.
- the receiving unit 301 monitors the sliding track of the input of the user's finger on the touch screen, and verifies whether the sliding track is a sliding track corresponding to the start data transmission, and if so, starts the data transmission function.
- the determining unit 302 is configured to determine whether the first data transmission performed by the first terminal is completed.
- the first data transmission is to send the preset data to the second terminal by the first terminal.
- the first terminal allocates a first serial number for the first data transmission; if the first data transmission is not completed, records the first serial number to an incomplete Data transfer list.
- the determining unit 302 can determine whether the first data transmission is completed by:
- the first serial number is queried in the uncompleted data transmission list, and if the first serial number is queried, it is determined that the first data transmission is not completed.
- the obtaining unit 303 is configured to acquire data that is not transmitted in the preset data when the first data transmission is not completed.
- the transmitted tag in the process of the first data transmission, is added to the data that has been transmitted in the preset data; wherein the transmitted tag is generated according to the first sequence number; therefore, the acquiring The unit 303 can obtain the data without the transmitted flag among the preset data as the above-mentioned data that is not transmitted.
- the sending unit 304 is configured to send data that is not transmitted in the preset data to the second terminal.
- the data may be transmitted by acquiring data that is not transmitted during the first data transmission process, thereby avoiding the entire first data transmission process, saving time and improving data transmission. effectiveness.
- the embodiment of the present invention may divide the functional unit into the user terminal according to the foregoing method example.
- each functional unit may be divided according to each function, or two or more functions may be integrated into one processing unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the receiving unit 301, the determining unit 302, and the obtaining unit 303 may be integrated into a central processing unit (CPU); and the sending unit 304 may be a radio frequency chip or a WiFi module.
- CPU central processing unit
- the sending unit 304 may be a radio frequency chip or a WiFi module.
- the terminal device can continue the previously uncompleted data transmission without retransmitting all the data to be transmitted, saving time and improving data transmission efficiency.
- FIG. 4 is a schematic structural diagram of another data transmission device according to an embodiment of the present invention.
- the data transmission device shown in FIG. 4 is optimized by the device shown in FIG. 3. Compared with the device shown in FIG. 3, the device shown in FIG.
- the output unit 305 is configured to output a prompt message to prompt the user whether to send data that is not transmitted in the preset data.
- the prompt message may include a proportion of data that has been transmitted by the first data transmission and a time that the first data transmission has taken.
- the user can know the completion of the first data transmission according to the information. If the completion amount of the first data transmission is small, the data transmission may be re-selected; if the completion amount of the first data transmission is large, it takes a lot of time. Then, the data that is not transmitted in the first data transmission can be continuously transmitted to save the total data transmission time.
- the executing unit 306 is configured to, after receiving the instruction for continuing to transmit, send the data that is not transmitted in the foregoing preset data to the second terminal.
- the restarting unit 307 is configured to: after receiving the instruction that the first data transmission is not continued, cancel the transmitted flag of the data that has been transmitted in the preset data, and start the second data transmission, where the second data is The transmission assigns a second serial number, and the first serial number is different from the second serial number.
- the data transmission device further includes a feedback receiving unit 308, a parsing unit 309, and a deleting unit 310, where
- the feedback receiving unit 308 is configured to receive feedback information sent by the second terminal.
- the parsing unit 309 is configured to parse the feedback information to determine whether the second terminal successfully receives data that is not transmitted in the preset data.
- the deleting unit 310 is configured to: if the second terminal successfully receives data that is not transmitted in the preset data, the first terminal deletes the preset data stored locally.
- the output unit 305 can be a display screen
- the execution unit 306 and the feedback receiving unit can be a radio frequency chip or a WiFi module.
- the restart unit 307, the parsing unit 309, and the deleting unit 310 can be implemented in the processor.
- the terminal device can continue the previously uncompleted data transmission without retransmitting all the data to be transmitted, saving time and improving data transmission efficiency.
- the terminal device can inform the user of the proportion of data transmitted by the first data transmission and the time taken by the first data transmission by using the notification message, so that the user can continue to complete the first data transmission. Lose to make a choice.
- FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
- the terminal device includes: a processor 501 and a memory 502; wherein the memory 502 can be used by the processor 501 to perform a buffer required for data processing, and can also be used to provide data for the processor 501 to perform data processing calls and The storage space for the resulting data.
- the processor 501 is configured to perform the following operations by calling program code stored in the memory 502:
- the first terminal receives an operation instruction for starting a data transmission
- the data that is not transmitted in the preset data is sent to the second terminal.
- the terminal device can continue the previously uncompleted data transmission without retransmitting all the data to be transmitted, saving time and improving data transmission efficiency.
- FIG. 6 is a schematic structural diagram of another terminal device according to an embodiment of the present invention. As shown in FIG. 6, for the convenience of description, only the parts related to the embodiment of the present invention are shown. For the specific technical details not disclosed, please refer to the method part of the embodiment of the present invention.
- the terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and the terminal is a mobile phone as an example:
- FIG. 6 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention.
- the mobile phone includes: a radio frequency (RF) circuit 601, a memory 602, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a wireless fidelity (WiFi) module 607, and a processor 608. And power supply 609 and other components.
- RF radio frequency
- the structure of the handset shown in FIG. 6 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
- the RF circuit 601 can be used for receiving and transmitting signals during the transmission or reception of information or during a call. In particular, after receiving the downlink information of the base station, it is processed by the processor 608. In addition, the uplink data is designed to be sent. To the base station. Generally, RF circuit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 can also communicate with the network and other devices through wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.
- GSM Global System of Mobile communication
- GPRS General Packet Radio Service
- the memory 602 can be used to store software programs and modules, and the processor 608 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 602.
- the memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.).
- memory 602 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
- the input unit 603 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
- the input unit 603 can include a touch panel 6031 and other input devices 6032.
- the touch panel 6031 also referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 6031 or near the touch panel 6031. Operation), and drive the corresponding connecting device according to a preset program.
- the touch panel 6031 can include two parts: a touch detection device and a touch controller.
- the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
- the processor 608 is provided and can receive commands from the processor 608 and execute them.
- the touch panel 6031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
- the input unit 603 may further include other input devices 6032.
- the other input device 6032 may include, but is not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, and the like. kind or more.
- the display unit 604 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
- the display unit 604 can include a display panel 6041.
- the display panel 6041 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
- the touch panel 6031 can cover the display panel 6041. After the touch panel 6031 detects a touch operation thereon or nearby, the touch panel 6031 transmits to the processor 608 to determine the type of the touch event, and then the processor 608 according to the touch event. The type provides a corresponding visual output on display panel 6041.
- touch panel 6031 and the display panel 6041 are used as two independent components to implement the input and input functions of the mobile phone in FIG. 6, in some embodiments, the touch panel 6031 can be integrated with the display panel 6041. Realize the input and output functions of the phone.
- the handset may also include at least one type of sensor 605, such as a light sensor, motion sensor, and other sensors.
- the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 6041 according to the brightness of the ambient light, and the proximity sensor may close the display panel 6041 and/or when the mobile phone moves to the ear. Or backlight.
- the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
- the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
- the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
- vibration recognition related functions such as pedometer, tapping
- the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
- An audio circuit 606, a speaker 6061, and a microphone 6062 can provide an audio interface between the user and the handset.
- the audio circuit 606 can transmit the converted audio data of the received audio data to the speaker 6061, and convert it into a sound signal output by the speaker 6061.
- the microphone 6062 converts the collected sound signal into an electrical signal, and the audio circuit 606. After receiving, it is converted into audio data, and then processed by the audio data output processor 608, sent to, for example, another mobile phone via the RF circuit 601, or outputted to the memory 602 for further processing.
- WiFi is a short-range wireless transmission technology.
- the mobile phone can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 607, which provides users with wireless broadband Internet access.
- FIG. 6 shows the WiFi module 607, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
- the processor 608 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 602, and invoking data stored in the memory 602, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
- the processor 608 may include one or more processing units; preferably, the processor 608 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
- the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 608.
- the handset also includes a power source 609 (such as a battery) that supplies power to the various components.
- a power source 609 such as a battery
- the power source can be logically coupled to the processor 608 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
- the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
- each step method flow may be implemented based on the structure of the terminal device.
- Both the application layer and the operating system kernel can be considered as part of the abstraction structure of the processor 608.
- the processor 608 is configured to perform the following operations by calling program code stored in the memory 602:
- the first terminal receives an operation instruction for starting a data transmission
- the data that is not transmitted in the preset data is sent to the second terminal.
- the terminal device can continue the previously uncompleted data transmission without retransmitting all the data to be transmitted, saving time and improving data transmission efficiency.
- the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program causing the computer to perform some or all of the steps of any of the methods described in the foregoing method embodiments.
- the computer includes a terminal device.
- Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the operations as recited in the above method embodiments Part or all of the steps of either method.
- Computer program The serial product can be a software installation package, and the computer includes a terminal device.
- each unit included is only divided according to functional logic, but is not limited to the foregoing division, as long as the corresponding function can be implemented;
- the specific names of the functional units are also for convenience of distinguishing from each other and are not intended to limit the scope of the present invention.
- the storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Environmental & Geological Engineering (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
- Communication Control (AREA)
Abstract
本发明实施例涉及终端技术领域,公开了一种数据传输方法及设备。其中,该方法包括:第一终端接收启动数据传输的操作指令;判断所述第一终端之前进行的第一数据传输是否完成;其中,所述第一数据传输为所述第一终端发送预设的数据至第二终端;若所述第一数据传输没有完成,则获取所述预设的数据中没有传输的数据;发送所述预设的数据中没有传输的数据至所述第二终端。由此可见,实施本发明实施例,终端设备可以继续之前未完成的数据传输而不需要将所有需传输的数据进行重传,节省时间,提高数据传输效率。
Description
本发明要求2016年9月14日递交的发明名称为“一种数据传输方法及设备”的申请号201610826000.6的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
本发明涉及终端技术领域,尤其涉及一种数据传输方法及设备。
随着终端技术的发展,终端设备的型号更迭频繁,为了获得更好的使用体验,人们往往会在一年、两年甚至更短的使用时间后,更换为更新型号的终端设备。
然而,终端设备中往往存储有大量用户数据,为了在使用新终端设备时用户可以直接应用旧终端设备中的数据,需要把这些数据通过一定的方式迁移到新终端设备中。基于这一需求,诞生了一键换机的功能,通过一键换机的操作,可以在只进行一次操作的情况下便将旧终端设备中选定的数据全迁移到新设备中。
发明内容
本发明实施例提供了一种数据传输方法及设备,可以使终端设备继续之前未完成的数据传输而不需要将所有需传输的数据进行重传,节省时间,提高数据传输效率。
本发明实施例第一方面公开了一种数据传输方法,包括:
第一终端接收启动数据传输的操作指令;
判断所述第一终端之前进行的第一数据传输是否完成;其中,所述第一数据传输为所述第一终端发送预设的数据至第二终端;
若所述第一数据传输没有完成,则获取所述预设的数据中没有传输的数据;
发送所述预设的数据中没有传输的数据至所述第二终端。
本发明实施例第二方面公开了一种数据传输设备,包括:
接收单元,用于接收启动数据传输的操作指令;
判断单元,用于判断所述第一终端之前进行的第一数据传输是否完成;其中,所述第一数据传输为所述第一终端发送预设的数据至第二终端;
获取单元,用于当所述第一数据传输没有完成时,获取所述预设的数据中没有传输的数据;
发送单元,用于发送所述预设的数据中没有传输的数据至所述第二终端。
本发明实施例第三方面公开了一种终端设备,包括:处理器和存储器,所述处理器用于执行上述第一方面所公开的方法。
本发明实施例四方面还提供了一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行本发明实施例提供的任意一项所述的方法。
本发明实施例五方面还提供了一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行本发明实施例提供的任意一项所述的方法。
本发明实施例中,第一终端接收启动数据传输的操作指令;判断所述第一终端之前进行的第一数据传输是否完成;其中,所述第一数据传输为所述第一终端发送预设的数据至第二终端;若所述第一数据传输没有完成,则获取所述预设的数据中没有传输的数据;发送所述预设的数据中没有传输的数据至所述第二终端。由此可见,实施本发明实施例,终端设备可以继续之前未完成的数据传输而不需要将所有需传输的数据进行重传,节省时间,提高数据传输效率。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例公开的一种数据传输方法的流程示意图;
图2为本发明实施例公开的另一种数据传输方法的流程示意图;
图3为本发明实施例公开的一种数据传输设备的结构示意图;
图4为本发明实施例公开的另一种数据传输设备的结构示意图;
图5为本发明实施例公开的一种终端设备的结构示意图;
图6为本发明实施例公开的另一种终端设备的结构示意图。
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同的对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法或设备固有的其他步骤或单元。
将旧手机中的数据迁移到新手机中时,可以通过“一键换机”的操作,通过这种操作,可以在只进行一次操作的情况下便将旧终端设备中选定的数据全迁移到新设备中。然而,这种数据迁移方法存在的问题是,若在传输过程中遇到网络中断、程序错误、存储空间不足等原因而无法完成传输时,需要重新启动一次传输,数据传输效率低,耗费时间长。
本发明实施例提供了一种数据传输方法及设备,可以使终端设备继续之前未完成的数据传输而不需要将所有需传输的数据进行重传,节省时间,提高数
据传输效率。以下分别进行详细说明。
请参阅图1,图1是本发明实施例公开的一种数据传输方法的流程示意图。其中,图1所示的方法可以包括以下步骤:
101、第一终端接收启动数据传输的操作指令。
本发明实施例中,终端设备可为智能手机、智能手表、掌上电脑、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、销售终端(Point of Sales,POS)等,本发明实施例后续不作复述。
作为一种可选的实施方式,第一终端监测用户手指在触摸屏上的输入的滑动轨迹,验证上述滑动轨迹是否为启动数据传输所对应的滑动轨迹,若是,则启动数据传输功能。
102、判断第一终端之前进行的第一数据传输是否完成;其中,上述第一数据传输为第一终端发送预设的数据至第二终端。
本发明实施例中,在上述第一数据传输进行之前,第一终端为上述第一数据传输分配第一序列号;若上述第一数据传输没有完成,则将上述第一序列号记录至未完成数据传输列表。
因此,作为一种可选的实施方式,第一终端可通过如下方式判断上述第一数据传输是否完成:
获取上述第一数据传输的上述第一序列号;
在上述未完成数据传输列表中查询上述第一序列号,若查询到上述第一序列号则确定上述第一数据传输未完成。
103、若上述第一数据传输没有完成,则获取上述预设的数据中没有传输的数据。
本发明实施例中,在上述第一数据传输的过程中,在上述预设的数据中已传输的数据中添加已传输标记;其中,上述已传输标记根据上述第一序列号生成;因此,可以通过获取上述预设的数据中没有已传输标记的数据作为上述没有传输的数据。
104、发送上述预设的数据中没有传输的数据至第二终端。
本发明实施例中,若上述第一数据传输没有完成,可以通过获取第一数据传输过程中未传输的数据来进行传输,从而避免将第一数据传输过程整个重新进行,节省时间,提高数据传输效率。
作为一种可选的实施方式,第一终端在向第二终端发送了预设的数据中没有传输的数据之后,可以向第二终端发送请求消息,以请求第二终端反馈数据的接收情况;若第二终端反馈上述数据中有部分或全部没有成功接收,则第一终端可以重发这部分没有成功接收的数据,以保证全部预设的数据成功迁移至第二终端。
举例来说,第一终端可以为用户的旧手机,第二终端为用户的新手机。因此,当旧手机中全部预设的数据成功迁移至新手机以后,用户可能会将旧手机转卖掉或者废弃掉,因此,为了防止用户数据泄露,可以在新手机成功接收了预设的数据中没有传输的数据之后,将旧手机中存储的预设的数据删除,以保证用户的数据安全。
由此可见,利用图1所描述的方法,可以使终端设备继续之前未完成的数据传输而不需要将所有需传输的数据进行重传,节省时间,提高数据传输效率。
请参阅图2,图2是本发明实施例公开的另一种数据传输方法的流程示意图。如图2所示,该方法可以包括以下步骤:
201、第一终端接收启动数据传输的操作指令。
作为一种可选的实施方式,第一终端监测用户手指在触摸屏上的输入的滑动轨迹,验证上述滑动轨迹是否为启动数据传输所对应的滑动轨迹,若是,则启动数据传输功能。
202、判断第一终端之前进行的第一数据传输是否完成;其中,上述第一数据传输为第一终端发送预设的数据至第二终端。
本发明实施例中,在上述第一数据传输进行之前,第一终端为上述第一数据传输分配第一序列号;若上述第一数据传输没有完成,则将上述第一序列号记录至未完成数据传输列表。
因此,作为一种可选的实施方式,第一终端可通过如下方式判断上述第一数据传输是否完成:
获取上述第一数据传输的上述第一序列号;
在上述未完成数据传输列表中查询上述第一序列号,若查询到上述第一序列号则确定上述第一数据传输未完成。
203、若上述第一数据传输没有完成,则输出提示消息提示用户是否发送上述预设的数据中没有传输的数据。
作为一种可选的实施方式,上述提示消息可以包含上述第一数据传输已传输的数据比例和上述第一数据传输已花费的时间。用户可以根据这些信息了解第一数据传输的完成情况,若第一数据传输的完成量较少,则可以选择重新进行数据传输;若第一数据传输的完成量较大、已耗费较多时间,则可以选择继续传输第一数据传输中未传输的数据,用以节省总的数据传输时间。
204、在接收到继续传输的指令后,获取上述预设的数据中没有传输的数据。
本发明实施例中,在上述第一数据传输的过程中,在上述预设的数据中已传输的数据中添加已传输标记;其中,上述已传输标记根据上述第一序列号生成;因此,可以通过获取上述预设的数据中没有已传输标记的数据作为上述没有传输的数据。
205、发送上述预设的数据中没有传输的数据至第二终端。
本发明实施例中,若上述第一数据传输没有完成,可以通过获取第一数据传输过程中未传输的数据来进行传输,从而避免将第一数据传输过程整个重新进行,节省时间,提高数据传输效率。
除此以外,若第一终端接收到不继续进行上述第一数据传输的指令,则取消上述预设的数据中已传输的数据的已传输标记,并启动第二数据传输,为上述第二数据传输分配第二序列号,且上述第一序列号与上述第二序列号不同。通过这种方式,放弃第一数据传输的记录而建立新的数据传输过程。
由此可见,利用图2所描述的方法,可以使终端设备继续之前未完成的数据传输而不需要将所有需传输的数据进行重传,节省时间,提高数据传输效率。除此以外,终端设备可以通过通知消息使用户了解第一数据传输已传输的数据比例和上述第一数据传输已花费的时间,方便用户对是否继续完成第一数据传输进行选择。
请参阅图3,图3是本发明实施例公开的一种数据传输设备的结构示意图。如图3所示,该设备可以包括:
接收单元301,用于接收启动数据传输的操作指令。
作为一种可选的实施方式,接收单元301监测用户手指在触摸屏上的输入的滑动轨迹,验证上述滑动轨迹是否为启动数据传输所对应的滑动轨迹,若是,则启动数据传输功能。
判断单元302,用于判断第一终端之前进行的第一数据传输是否完成;其中,上述第一数据传输为第一终端发送预设的数据至第二终端。
本发明实施例中,在上述第一数据传输进行之前,第一终端为上述第一数据传输分配第一序列号;若上述第一数据传输没有完成,则将上述第一序列号记录至未完成数据传输列表。
因此,作为一种可选的实施方式,判断单元302可通过如下方式判断上述第一数据传输是否完成:
获取上述第一数据传输的上述第一序列号;
在上述未完成数据传输列表中查询上述第一序列号,若查询到上述第一序列号则确定上述第一数据传输未完成。
获取单元303,用于当上述第一数据传输没有完成时,获取上述预设的数据中没有传输的数据。
本发明实施例中,在上述第一数据传输的过程中,在上述预设的数据中已传输的数据中添加已传输标记;其中,上述已传输标记根据上述第一序列号生成;因此,获取单元303可以通过获取上述预设的数据中没有已传输标记的数据作为上述没有传输的数据。
发送单元304,用于发送上述预设的数据中没有传输的数据至第二终端。
本发明实施例中,若上述第一数据传输没有完成,可以通过获取第一数据传输过程中未传输的数据来进行传输,从而避免将第一数据传输过程整个重新进行,节省时间,提高数据传输效率。
本发明实施例可以根据上述方法示例对用户终端进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。举例来说,上述接收单元301、判断单元302、获取单元303可以集成到中央处理器(Central Processing Unit,CPU)之中;而发送单元304可为射频芯片或WiFi模组。需要说明的是,本发明实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
由此可见,利用图3所描述的设备,可以使终端设备继续之前未完成的数据传输而不需要将所有需传输的数据进行重传,节省时间,提高数据传输效率。
请一并参阅图4,图4是本发明实施例公开的另一种数据传输设备的结构示意图。其中,图4所示的数据传输设备是由图3所示的设备进行优化得到的,与图3所示的设备相比,图4所示的设备还包括:
输出单元305,用于输出提示消息提示用户是否发送上述预设的数据中没有传输的数据。
作为一种可选的实施方式,上述提示消息可以包含上述第一数据传输已传输的数据比例和上述第一数据传输已花费的时间。用户可以根据这些信息了解第一数据传输的完成情况,若第一数据传输的完成量较少,则可以选择重新进行数据传输;若第一数据传输的完成量较大、已耗费较多时间,则可以选择继续传输第一数据传输中未传输的数据,用以节省总的数据传输时间。
执行单元306,用于在接收到继续传输的指令后,执行上述发送上述预设的数据中没有传输的数据至第二终端。
重启单元307,用于当接收到不继续进行上述第一数据传输的指令后,则取消上述预设的数据中已传输的数据的已传输标记,并启动第二数据传输,为上述第二数据传输分配第二序列号,且上述第一序列号与上述第二序列号不同。
作为一种可选的实施方式,该数据传输设备还包括反馈接收单元308、解析单元309和删除单元310,其中,
反馈接收单元308,用于接收所述第二终端发送的反馈信息。
解析单元309,用于解析所述反馈信息以确定所述第二终端是否成功接收所述预设的数据中没有传输的数据。
删除单元310,用于若所述第二终端成功接收所述预设的数据中没有传输的数据,则所述第一终端删除本地存储的所述预设的数据。
本发明实施例中,输出单元305可以为显示屏,执行单元306、反馈接收单元可以为射频芯片或WiFi模组,重启单元307、解析单元309以及删除单元310可以集成在处理器中实现。
由此可见,利用图4所描述的设备,可以使终端设备继续之前未完成的数据传输而不需要将所有需传输的数据进行重传,节省时间,提高数据传输效率。除此以外,终端设备可以通过通知消息使用户了解第一数据传输已传输的数据比例和上述第一数据传输已花费的时间,方便用户对是否继续完成第一数据传
输进行选择。
请参阅图5,图5为本发明实施例公开的一种终端设备的结构示意图。如图5所示,该终端设备包括:处理器501以及存储器502;其中存储器502可以用于处理器501执行数据处理所需要的缓存,还可以用于提供处理器501执行数据处理调用的数据以及获得的结果数据的存储空间。
在本发明实施例中,处理器501通过调用存储于存储器502中的程序代码,用于执行以下操作:
第一终端接收启动数据传输的操作指令;
判断第一终端之前进行的第一数据传输是否完成;其中,上述第一数据传输为第一终端发送预设的数据至第二终端;
若上述第一数据传输没有完成,则获取上述预设的数据中没有传输的数据;
发送上述预设的数据中没有传输的数据至第二终端。
由此可见,利用图5所描述的终端设备,可以使终端设备继续之前未完成的数据传输而不需要将所有需传输的数据进行重传,节省时间,提高数据传输效率。
请参阅图6,图6为本发明实施例公开的另一种终端设备的结构示意图。如图6所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以终端为手机为例:
图6示出的是与本发明实施例提供的终端相关的手机的部分结构的框图。参考图6,手机包括:射频(Radio Frequency,RF)电路601、存储器602、输入单元603、显示单元604、传感器605、音频电路606、无线保真(wireless fidelity,WiFi)模块607、处理器608、以及电源609等部件。本领域技术人员可以理解,图6中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图6对手机的各个构成部件进行具体的介绍:
RF电路601可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器608处理;另外,将设计上行的数据发送
给基站。通常,RF电路601包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路601还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。
存储器602可用于存储软件程序以及模块,处理器608通过运行存储在存储器602的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器602可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器602可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元603可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元603可包括触控面板6031以及其他输入设备6032。触控面板6031,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板6031上或在触控面板6031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板6031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器608,并能接收处理器608发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板6031。除了触控面板6031,输入单元603还可以包括其他输入设备6032。具体地,其他输入设备6032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一
种或多种。
显示单元604可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元604可包括显示面板6041,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板6041。进一步的,触控面板6031可覆盖显示面板6041,当触控面板6031检测到在其上或附近的触摸操作后,传送给处理器608以确定触摸事件的类型,随后处理器608根据触摸事件的类型在显示面板6041上提供相应的视觉输出。虽然在图6中,触控面板6031与显示面板6041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板6031与显示面板6041集成而实现手机的输入和输出功能。
手机还可包括至少一种传感器605,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板6041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板6041和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路606、扬声器6061,传声器6062可提供用户与手机之间的音频接口。音频电路606可将接收到的音频数据转换后的电信号,传输到扬声器6061,由扬声器6061转换为声音信号输出;另一方面,传声器6062将收集的声音信号转换为电信号,由音频电路606接收后转换为音频数据,再将音频数据输出处理器608处理后,经RF电路601以发送给比如另一手机,或者将音频数据输出至存储器602以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块607可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块607,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器608是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器602内的软件程序和/或模块,以及调用存储在存储器602内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器608可包括一个或多个处理单元;优选的,处理器608可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器608中。
手机还包括给各个部件供电的电源609(比如电池),优选的,电源可以通过电源管理系统与处理器608逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。
前述实施例中,各步骤方法流程可以基于该终端设备的结构实现。其中应用层和操作系统内核均可视为处理器608的抽象化结构的组成部分。
在本发明实施例中,处理器608通过调用存储于存储器602中的程序代码,用于执行以下操作:
第一终端接收启动数据传输的操作指令;
判断第一终端之前进行的第一数据传输是否完成;其中,上述第一数据传输为第一终端发送预设的数据至第二终端;
若上述第一数据传输没有完成,则获取上述预设的数据中没有传输的数据;
发送上述预设的数据中没有传输的数据至第二终端。
由此可见,利用图6所描述的终端设备,可以使终端设备继续之前未完成的数据传输而不需要将所有需传输的数据进行重传,节省时间,提高数据传输效率。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,所述计算机包括终端设备。
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程
序产品可以为一个软件安装包,所述计算机包括终端设备。
值得注意的是,上述数据传输设备和终端设备实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。
另外,本领域普通技术人员可以理解实现上述各方法实施例中的全部或部分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。
Claims (20)
- 一种数据传输方法,其特征在于,包括:第一终端接收启动数据传输的操作指令;判断所述第一终端之前进行的第一数据传输是否完成;其中,所述第一数据传输为所述第一终端发送预设的数据至第二终端;若所述第一数据传输没有完成,则获取所述预设的数据中没有传输的数据;发送所述预设的数据中没有传输的数据至所述第二终端。
- 根据权利要求1所述方法,其特征在于,所述方法还包括:在所述第一数据传输进行之前,所述第一终端为所述第一数据传输分配第一序列号;若所述第一数据传输没有完成,则将所述第一序列号记录至未完成数据传输列表;所述判断所述第一终端之前进行的第一数据传输是否完成,包括:获取所述第一数据传输的所述第一序列号;在所述未完成数据传输列表中查询所述第一序列号,若查询到所述第一序列号则确定所述第一数据传输未完成。
- 根据权利要求2所述方法,其特征在于,所述方法还包括:在所述第一数据传输的过程中,在所述预设的数据中已传输的数据中添加已传输标记;其中,所述已传输标记根据所述第一序列号生成;所述获取所述预设的数据中没有传输的数据,包括:获取所述预设的数据中没有已传输标记的数据作为所述没有传输的数据。
- 根据权利要求1~3中任意一项所述方法,其特征在于,确定所述第一数据传输没有完成之后,所述方法还包括:输出提示消息提示用户是否发送所述预设的数据中没有传输的数据;在接收到继续传输的指令后,执行所述发送所述预设的数据中没有传输的数据至所述第二终端。
- 根据权利要求4所述方法,其特征在于,所述提示消息包括:所述第一数据传输已传输的数据比例和所述第一数据传输已花费的时间。
- 根据权利要求5所述方法,其特征在于,所述输出提示消息提示用户 是否发送所述预设的数据中没有传输的数据之后,所述方法还包括:若接收到不继续进行所述第一数据传输的指令,则取消所述预设的数据中已传输的数据的已传输标记,并启动第二数据传输,为所述第二数据传输分配第二序列号,且所述第一序列号与所述第二序列号不同。
- 根据权利要求1所述的方法,其特征在于,所述第一终端接收启动数据传输的操作指令,包括:所述第一终端检测用户手指在触摸屏上输入的滑动轨迹,若所述滑动轨迹为启动数据传输所对应的滑动轨迹,则确定接收到了所述数据传输的操作指令。
- 根据权利要求1所述的方法,其特征在于,所述发送所述预设的数据中没有传输的数据至所述第二终端之后,所述方法还包括:接收所述第二终端发送的反馈信息;解析所述反馈信息以确定所述第二终端是否成功接收所述预设的数据中没有传输的数据。
- 根据权利要求8所述的方法,其特征在于,所述方法还包括:若所述第二终端成功接收所述预设的数据中没有传输的数据,则所述第一终端删除本地存储的所述预设的数据。
- 一种数据传输设备,其特征在于,包括:接收单元,用于接收启动数据传输的操作指令;判断单元,用于判断所述第一终端之前进行的第一数据传输是否完成;其中,所述第一数据传输为所述第一终端发送预设的数据至第二终端;获取单元,用于当所述第一数据传输没有完成时,获取所述预设的数据中没有传输的数据;发送单元,用于发送所述预设的数据中没有传输的数据至所述第二终端。
- 根据权利要求10所述的设备,其特征在于,所述设备还包括:分配单元,用于在所述第一数据传输进行之前,为所述第一数据传输分配第一序列号;记录单元,用于当所述第一数据传输没有完成时,将所述第一序列号记录至未完成数据传输列表;所述判断单元,包括:获取子单元,用于获取所述第一数据传输的所述第一序列号;查询子单元,用于在所述未完成数据传输列表中查询所述第一序列号,若查询到所述第一序列号则确定所述第一数据传输未完成。
- 根据权利要求11所述的设备,其特征在于,所述设备还包括:标记单元,用于在所述第一数据传输的过程中,在所述预设的数据中已传输的数据中添加已传输标记;其中,所述已传输标记根据所述第一序列号生成;所述获取单元,具体用于获取所述预设的数据中没有已传输标记的数据作为所述没有传输的数据。
- 根据权利要求10~12中任意一项所述的设备,其特征在于,所述设备还包括:输出单元,用于输出提示消息提示用户是否发送所述预设的数据中没有传输的数据;执行单元,用于在接收到继续传输的指令后,执行所述发送所述预设的数据中没有传输的数据至所述第二终端。
- 根据权利要求13所述的设备,其特征在于,所述提示消息包括:所述第一数据传输已传输的数据比例和所述第一数据传输已花费的时间。
- 根据权利要求14所述的设备,其特征在于,所述设备还包括:重启单元,用于当接收到不继续进行所述第一数据传输的指令后,则取消所述预设的数据中已传输的数据的已传输标记,并启动第二数据传输,为所述第二数据传输分配第二序列号,且所述第一序列号与所述第二序列号不同。
- 根据权利要求10所述的设备,其特征在于,所述设备还包括:反馈接收单元,用于接收所述第二终端发送的反馈信息;解析单元,用于解析所述反馈信息以确定所述第二终端是否成功接收所述预设的数据中没有传输的数据。
- 根据权利要求16所述的设备,其特征在于,所述设备还包括:删除单元,用于若所述第二终端成功接收所述数据传输发送的数据,则所述第一终端删除本地存储的所述数据传输发送的数据。
- 一种终端设备,包括:处理器和存储器,其特征在于,所述处理器用于执行权利要求1~9中任意一项所述的方法。
- 一种计算机可读存储介质,其特征在于,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1~9任一项所述的方法。
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1~9任一项所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610826000.6A CN106453845B (zh) | 2016-09-14 | 2016-09-14 | 一种数据传输方法及设备 |
| CN201610826000.6 | 2016-09-14 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018049896A1 true WO2018049896A1 (zh) | 2018-03-22 |
Family
ID=58169114
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/092656 Ceased WO2018049896A1 (zh) | 2016-09-14 | 2017-07-12 | 数据传输方法及设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106453845B (zh) |
| WO (1) | WO2018049896A1 (zh) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106453845B (zh) * | 2016-09-14 | 2019-08-20 | 广东欧珀移动通信有限公司 | 一种数据传输方法及设备 |
| CN109634509B (zh) * | 2018-12-13 | 2022-04-22 | 联想(北京)有限公司 | 处理方法、插件以及第一电子设备 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2006137189A1 (ja) * | 2005-06-24 | 2006-12-28 | Matsushita Electric Industrial Co., Ltd. | クライアントサーバシステム及び同システムを利用したサービス方法 |
| CN104202185A (zh) * | 2014-08-25 | 2014-12-10 | 腾讯科技(深圳)有限公司 | 一种通信数据备份方法及装置 |
| CN105430600A (zh) * | 2015-11-05 | 2016-03-23 | 魅族科技(中国)有限公司 | 一种数据传输方法及数据传输的终端 |
| CN105871423A (zh) * | 2016-03-28 | 2016-08-17 | 乐视控股(北京)有限公司 | 数据处理方法及装置 |
| CN106453845A (zh) * | 2016-09-14 | 2017-02-22 | 广东欧珀移动通信有限公司 | 一种数据传输方法及设备 |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101267454A (zh) * | 2008-04-30 | 2008-09-17 | 中兴通讯股份有限公司 | 一种文件传输信息的提示方法及系统 |
| CN102063399B (zh) * | 2011-01-10 | 2014-02-19 | 深圳市润天智数字设备股份有限公司 | 多通道数据传输方法和设备及系统 |
| CN103176715A (zh) * | 2011-12-26 | 2013-06-26 | 北京华旗随身数码股份有限公司 | 一种电子设备传输文件的方法 |
| CN102790771B (zh) * | 2012-07-25 | 2016-12-21 | 山东中创软件商用中间件股份有限公司 | 一种文件传输方法及系统 |
| CN103856990A (zh) * | 2012-11-28 | 2014-06-11 | 中国电信股份有限公司 | 数据传输的方法、系统和服务器 |
| CN103973421A (zh) * | 2013-02-06 | 2014-08-06 | 腾讯科技(深圳)有限公司 | 文件传送方法及装置 |
| CN105094650B (zh) * | 2014-04-25 | 2019-07-26 | 联想(北京)有限公司 | 一种数据传输方法、装置及电子设备 |
-
2016
- 2016-09-14 CN CN201610826000.6A patent/CN106453845B/zh not_active Expired - Fee Related
-
2017
- 2017-07-12 WO PCT/CN2017/092656 patent/WO2018049896A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2006137189A1 (ja) * | 2005-06-24 | 2006-12-28 | Matsushita Electric Industrial Co., Ltd. | クライアントサーバシステム及び同システムを利用したサービス方法 |
| CN104202185A (zh) * | 2014-08-25 | 2014-12-10 | 腾讯科技(深圳)有限公司 | 一种通信数据备份方法及装置 |
| CN105430600A (zh) * | 2015-11-05 | 2016-03-23 | 魅族科技(中国)有限公司 | 一种数据传输方法及数据传输的终端 |
| CN105871423A (zh) * | 2016-03-28 | 2016-08-17 | 乐视控股(北京)有限公司 | 数据处理方法及装置 |
| CN106453845A (zh) * | 2016-09-14 | 2017-02-22 | 广东欧珀移动通信有限公司 | 一种数据传输方法及设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106453845A (zh) | 2017-02-22 |
| CN106453845B (zh) | 2019-08-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10831161B2 (en) | Method and device for sending communication message | |
| CN106484562B (zh) | 一种数据传输处理方法及终端设备 | |
| CN106502834B (zh) | 数据的备份方法、装置及系统 | |
| CN106658354B (zh) | 一种数据传输方法及设备 | |
| WO2018049897A1 (zh) | 数据备份方法及设备 | |
| WO2015058613A1 (zh) | 一种检测数据包的方法、装置及存储介质 | |
| WO2018049886A1 (zh) | 建立热点的方法及终端设备 | |
| WO2015027856A1 (zh) | 信息反馈方法、装置及终端 | |
| WO2018049893A1 (zh) | 数据传输方法及终端设备 | |
| WO2018103443A1 (zh) | 一种网络定位方法及终端设备 | |
| WO2018049921A1 (zh) | 数据传输处理方法及相关设备 | |
| CN106201547A (zh) | 一种基于移动终端的消息显示的方法、装置及移动终端 | |
| CN107145572B (zh) | 数据处理方法、装置、计算机设备及存储介质 | |
| CN106341315A (zh) | 短信清理方法、装置和移动终端 | |
| WO2019034054A1 (zh) | 基于移动终端的nfc压力测试方法、系统及存储装置 | |
| WO2015062234A1 (zh) | 移动终端资源处理方法、装置和设备 | |
| WO2015024393A1 (zh) | 发送短信的方法、装置及终端 | |
| CN106484615A (zh) | 记录日志的方法和装置 | |
| KR101876394B1 (ko) | 단말기에 미디어 데이터를 재생하는 방법 및 장치 | |
| CN106484563A (zh) | 一种数据迁移方法及终端设备 | |
| CN106502827A (zh) | 一种数据备份方法及设备 | |
| WO2018049896A1 (zh) | 数据传输方法及设备 | |
| WO2020107177A1 (zh) | 一种音频资源调用的方法、装置及电子设备 | |
| WO2018049968A1 (zh) | 热点建立方法及终端 | |
| CN106506623B (zh) | 一种数据传输方法及设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17850099 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17850099 Country of ref document: EP Kind code of ref document: A1 |