WO2018049887A1 - 数据传输处理方法及终端设备 - Google Patents

数据传输处理方法及终端设备 Download PDF

Info

Publication number
WO2018049887A1
WO2018049887A1 PCT/CN2017/092279 CN2017092279W WO2018049887A1 WO 2018049887 A1 WO2018049887 A1 WO 2018049887A1 CN 2017092279 W CN2017092279 W CN 2017092279W WO 2018049887 A1 WO2018049887 A1 WO 2018049887A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
target
backup
terminal device
size
Prior art date
Application number
PCT/CN2017/092279
Other languages
English (en)
French (fr)
Inventor
马志峰
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018049887A1 publication Critical patent/WO2018049887A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1466Management of the backup or restore process to make the backup process non-disruptive
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • G06F11/1451Management of the data involved in backup or backup restore by selection of backup contents

Definitions

  • the present invention relates to the field of data transmission technologies, and in particular, to a data transmission processing method and a terminal device.
  • the embodiment of the invention provides a data transmission processing method and a terminal device, which can improve the efficiency of data transmission.
  • An embodiment of the present invention provides a data transmission processing method, including:
  • the terminal device receives a migration operation instruction input by the user
  • a second aspect of the present invention provides a data transmission processing apparatus, including:
  • a receiving unit configured to receive a migration operation instruction input by the user
  • a backup buffer unit configured to: after receiving the migration operation instruction input by the user, generate partial data in the target data specified by the migration operation instruction, and cache the backup data package;
  • a sending processing unit configured to send the backup data packet to the target terminal device, and delete the sent backup data packet until all backup data packets of the target data are sent to the target terminal device.
  • the third embodiment of the present invention further provides a terminal device, including: a processor and a memory:
  • the memory stores executable program code
  • the processor is configured to invoke the executable program code stored in the memory, and execute the method according to any one of the embodiments of the present invention.
  • 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 present invention after receiving the migration operation instruction input by the user, generating part of the data in the target data specified by the migration operation instruction, generating a backup data packet, buffering the backup data packet, and then transmitting the cached backup data packet Go to the target terminal device and delete the above-mentioned backup data packet that has been sent until all backup data packets of the target data are sent to the target terminal device.
  • the idle storage space of the terminal device is insufficient, part of the data is continuously selected for backup transmission until all target data is backed up and transmitted, which improves the efficiency of data transmission.
  • FIG. 1 is a schematic flowchart of a data transmission processing method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart diagram of another data transmission processing method according to an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of a data transmission processing apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of another data transmission processing apparatus 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.
  • first and “second” and the like in the specification and claims of the present invention are used to distinguish different objects, and are not intended to describe a particular order.
  • the terms “comprises” and “comprising” and “comprising” are intended to cover a non-exclusive inclusion.
  • a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products or equipment.
  • the application program (Application Programe, APP) needs to be opened, specifically, the tool is opened on two mobile phones - backup and recovery, and the "mobile phone moving" virtual function button is clicked, respectively.
  • the mobile phone such as R7PLUS
  • select "I am the old phone” select "I am a new phone” on the new phone (such as R9PLUS)
  • the old phone automatically retrieves the camera function and enters the scanning QR code interface
  • the new phone automatically displays two Dimension code
  • the new mobile phone prompts the connection to succeed.
  • the old mobile phone enters the “Select Data Transfer” interface (data to be migrated to the new mobile phone).
  • the system data, application and storage data are automatically checked (the storage data is partially selected by default, and can be manually selected for addition). Click the button "Start moving" to start data moving.
  • the terminal device involved in the embodiment of the present invention may include a terminal device running an Android operating system, an iOS operating system, a Windows operating system, or other operating systems, such as a mobile phone, a mobile computer, a tablet computer, a desktop computer, and a personal digital assistant.
  • an Android operating system an iOS operating system
  • a Windows operating system or other operating systems, such as a mobile phone, a mobile computer, a tablet computer, a desktop computer, and a personal digital assistant.
  • PDA Personal Digital Assistant
  • smart watch smart wristband and other terminal devices, which will not be repeated in the embodiments of the present invention.
  • the embodiment of the invention provides a data transmission processing method and a terminal device.
  • a part of the data is continuously selected for backup transmission until all target data is backed up and transmitted, thereby improving the efficiency of data transmission. .
  • the details are described below separately.
  • FIG. 1 is a schematic flowchart diagram of a data transmission processing method according to an embodiment of the present invention.
  • the data transmission processing method shown in FIG. 1 may include the following steps:
  • the terminal device receives a migration operation instruction input by the user;
  • the migrating operation command may be triggered by a selection operation of a data migration function button displayed for the terminal device, and the selection operation may be a touch operation, a voice control operation, or the like.
  • the target data specified by the migration operation instruction is selected by the user according to the list of files to be transmitted displayed in the terminal device.
  • the method further includes:
  • the reference space threshold for backing up the target data is determined according to the size of the free storage space, and the reference space threshold is less than or equal to the size of the free storage space.
  • the operation of generating the backup data packet by the partial data in the target data specified by the migration operation instruction is performed simultaneously with the operation of acquiring the free storage space size of the terminal device, and the operation of buffering the data packet takes a certain time. Therefore, the backup operation can be performed simultaneously with the operation of obtaining the size of the free storage space, which can reduce the time of data transmission.
  • the size of the target data to be transmitted is larger than the size of the free storage space, determining the target data for backing up according to the size of the free storage space
  • the reference space threshold is less than or equal to the size of the free storage space. In the process of backing up part of the data in the target data, the size of the backup data packet is monitored in real time until the size of the backup data packet is equal to the reference space threshold. , then stop the backup.
  • the reference space threshold for backing up the above target data may be, for example, 500 MB, 600 MB, or the like.
  • the backup is stopped. It can be implemented as follows:
  • the operation of buffering the backup data packet is stopped, and the operation of sending the backup data packet to the target terminal device is performed.
  • the identification information is added to the data that has been backed up in the target data, and the identification information is used to distinguish the backed up data and the unbacked data in the target data.
  • the identifier information can be added to the data that has been backed up, so that it is easy to distinguish between the backed up data and the unbacked data, and avoid duplicate backup.
  • the backup data packet buffered in the terminal device is deleted, thereby freeing the free storage space in the terminal device, and then performing backup transmission on the unbacked data according to the identification information in the target data. The operation until all backup packets in the target data are sent to the target terminal device.
  • the currently transmitted backup data packet is deleted, and the data corresponding to the currently transmitted backup data packet is marked as unbacked data.
  • the terminal device when detecting that the currently transmitted backup data packet is damaged, the terminal device can delete the currently transmitted backup data packet in time, and mark the data corresponding to the currently transmitted backup data packet as unbacked data, thereby avoiding The backed up data packet is corrupted and the backed up data is not successfully transmitted. The situation occurs, which is conducive to improving the stability of data transmission.
  • the terminal device may send a prompt message to the target terminal device to prompt the target terminal device to delete part or all of the received data packet. And wait for the terminal device to resend the packet.
  • the partial data in the target data specified by the migration operation instruction after receiving the migration operation instruction input by the user, the partial data in the target data specified by the migration operation instruction generates a backup data packet, buffers the backup data packet, and then caches the backup.
  • the data packet is sent to the target terminal device, and the above backup data packet that has been sent is deleted until all backup data packets of the target data are sent to the target terminal device.
  • the idle storage space of the terminal device is insufficient, part of the data is continuously selected for backup transmission until all target data is backed up and transmitted, which improves the efficiency of data transmission.
  • FIG. 2 is a schematic flowchart diagram of another data transmission processing method according to an embodiment of the present invention. As shown in FIG. 2, the method may include the following steps:
  • the terminal device receives a migration operation instruction input by the user
  • the partial data in the target data specified by the migration operation instruction generates a backup data package, which specifically includes:
  • Data backup of the target data is performed in descending order of priority of each file in the target data specified by the migration operation instruction.
  • 203 If the size of the target data is greater than the size of the free storage space, determine a reference space threshold for backing up the target data according to the size of the free storage space, where the reference space threshold is less than or equal to the size of the free storage space;
  • the size of the backup data is detected. If the size of the unbacked data is larger than the size of the free storage space, the steps 204 to 208 are repeatedly performed until the size of the unbacked data in the target data. Less than or equal to the size of the free storage space.
  • the unbacked data in the target data is backed up, and the data packet that is backed up is sent to the target terminal device, and the sent data is deleted. Back up the data packet.
  • the terminal device can use various measures to free up more storage space for data backup. For example, the terminal device can filter out data that is cached for too long from the cached data (for example, the cache time is more than 24 hours), and delete the data that has been cached for too long to obtain more storage space for data. Backup; in addition, the terminal device can also calculate the storage space size required for the backup target data (that is, the size of the target data minus the difference of the size of the free storage space), and dynamically delete the cache time according to the required storage space size. Cache data.
  • FIG. 3 is a schematic structural diagram of a data transmission processing apparatus according to an embodiment of the present invention.
  • the device may be a terminal device such as a smart phone, a tablet computer, or a smart wearable device.
  • the device includes:
  • the receiving unit 301 is configured to receive a migration operation instruction input by the user;
  • the backup buffer unit 302 is configured to: after receiving the migration operation instruction input by the user, generate a backup data packet by storing part of the data in the target data specified by the migration operation instruction, and buffer the backup data package;
  • the sending processing unit 303 is configured to send the backup data packet to the target terminal device, and delete the sent backup data packet until all the backup data packets of the target data are sent to the target terminal device.
  • the backup buffer unit 302 After the receiving unit 301 receives the migration operation instruction input by the user, the backup buffer unit 302 generates a backup data packet for part of the data in the target data specified by the migration operation instruction, and caches the backup data packet.
  • the sending processing unit 303 sends the backup data packet to the target terminal device, and deletes the sent backup data packet until all the backup data packets of the target data are transmitted to the target terminal device. Therefore, when the idle storage space of the terminal device is insufficient, part of the data is continuously selected for backup transmission until all target data is backed up and transmitted, thereby improving the efficiency of data transmission.
  • 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 and the backup buffer unit 302 can be integrated into a central processing unit (CPU); and the sending processing unit 303 can be a radio frequency chip or a WiFi module.
  • CPU central processing unit
  • the division of the unit in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 4 is a schematic structural diagram of another data transmission processing apparatus according to an embodiment of the present invention.
  • the device shown in FIG. 4 is optimized by the device shown in FIG. 3.
  • the device shown in FIG. 4 further includes:
  • the obtaining unit 304 is configured to acquire a free storage space size of the terminal device.
  • the determining unit 305 is configured to determine a reference space threshold for backing up the target data according to the size of the idle storage space when the size of the target data is greater than the size of the free storage space, where the reference space threshold is less than or equal to the size of the free storage space.
  • the backup cache unit 302 in the apparatus shown in FIG. 4 is specifically configured to perform data backup on the target data in descending order of priority of each file in the target data specified by the migration operation instruction. .
  • the device further includes:
  • the monitoring unit 306 is configured to monitor a size of the cached backup data packet.
  • the backup stop unit 307 is configured to stop the operation of buffering the backup data packet when the size of the backup data packet is equal to the reference space threshold, and drive the foregoing sending processing unit 303 to perform an operation of sending the backup data packet to the target terminal device.
  • the device further includes:
  • the identifier adding unit 308 is configured to add identification information for the data that has been backed up in the target data, and the identifier information is used to distinguish the backed up data and the unbacked data in the target data.
  • the device further includes:
  • the detecting processing unit 309 is configured to delete the currently transmitted backup data packet when detecting that the currently transmitted backup data packet is damaged, and mark the data corresponding to the currently transmitted backup data packet as the unbacked data.
  • the device further includes:
  • the cache obtaining unit 310 is configured to acquire cache data of an application of the terminal device, if the size of the target data is greater than the size of the free storage space;
  • the cache clearing unit 311 is configured to select target cache data from the cache data and delete the target cache data.
  • the cache clearing unit 311 is specifically configured to use, as the target cache data, data whose cache time exceeds a preset time threshold in the cache data.
  • the obtaining unit 304, the determining unit 305, the monitoring unit 306, the backup stopping unit 307, the identifier adding unit 308, the detecting processing unit 309, the cache obtaining unit 310, and the cache clearing unit 311 are all integrated into the processor. Implemented in .
  • 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 terminal device receives a migration operation instruction input by the user
  • the processor 501 is configured to perform the following operations after receiving the migration operation instruction input by the user by calling the program code stored in the memory 502:
  • a reference space threshold for backing up the target data Determining, according to the size of the free storage space, a reference space threshold for backing up the target data, where the reference space threshold is less than or equal to the size of the free storage space, if the size of the target data is greater than the size of the free storage space.
  • the processor 501 generates, by using a program code stored in the memory 502, the partial data in the target data specified by the migration operation instruction to generate a backup data packet, specifically for performing the following operations. :
  • Data backup of the target data is performed in descending order of priority levels of respective files in the target data specified by the migration operation instruction.
  • the processor 501 after calling the program code stored in the memory 502, after determining the reference space threshold for backing up the target data according to the size of the free storage space, and Before sending the backup data packet to the target terminal device, it is also used to perform the following operations:
  • the processor 501 is further configured to perform the following operations after the operation of stopping the buffering of the backup data packet by calling the program code stored in the memory 502:
  • processor 501 is further configured to perform the following operations by calling program code stored in the memory 502:
  • the backup data packet that is currently transmitted is damaged, the backup data packet that is currently transmitted is deleted, and the data corresponding to the currently transmitted backup data packet is marked as unbacked data.
  • 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 device 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 device is used as a mobile phone as an example:
  • FIG. 6 is a block diagram showing a partial structure of a mobile phone related to a terminal device 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 RF circuit 601 can be used for receiving and transmitting signals during the transmission or reception of information or during a call. Specifically, 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.).
  • the memory 602 may include a high speed random access memory, and may also include a nonvolatile A memory such as at least one 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.
  • other input devices 6032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • 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) and can detect when stationary. The size and direction of gravity can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.
  • the gyro that can be configured on the mobile phone
  • Other sensors such as instruments, barometers, hygrometers, thermometers, infrared sensors, etc., will not be described here.
  • 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.
  • each step method flow can be implemented based on the structure of the mobile phone.
  • each unit function can be implemented based on the structure of the mobile phone.
  • 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.
  • the computer program product can be a software installation package, the computer including a terminal device.
  • each unit included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be implemented;
  • the specific names of the respective functional units are also for convenience of distinguishing from each other and are not intended to limit the scope of protection of the present invention.
  • the storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

一种数据传输处理方法及终端设备,应用于数据传输技术领域,其中方法的实现包括:终端设备接收用户输入的迁移操作指令(101);在接收到所述用户输入的迁移操作指令后,将所述迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存所述备份数据包(102);将所述备份数据包发往目标终端设备,并删除已发送的所述备份数据包,直到所述目标数据的所有备份数据包均发往所述目标终端设备(103)。在终端设备的空闲存储空间不足时,不断的选取部分数据进行备份传输,直到所有目标数据均备份传输完成,提高了数据传输的效率。

Description

数据传输处理方法及终端设备
本发明要求2016年9月14日递交的发明名称为“一种数据传输处理方法及终端设备”的申请号201610825484.2的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
技术领域
本发明涉及数据传输技术领域,尤其涉及一种数据传输处理方法及终端设备。
背景技术
随着智能手机等终端设备的普及,人们更换手机等终端设备的频率越来越高,因此出现了将旧手机中的资料导入到新手机中的需求,从而可以避免在换机过程中需要重新安装应用程序等的繁琐操作。目前,可以通过“手机搬家”应用程序将一台手机中的数据迁移到另一台手机上。具体实现过程为:旧手机先将数据备份到本地,然后再将备份好的数据传输到新手机,新手机接收到数据后进行恢复。
发明内容
本发明实施例提供了一种数据传输处理方法及终端设备,可以提高了数据传输的效率。
一方面本发明实施例提供了一种数据传输处理方法,包括:
终端设备接收用户输入的迁移操作指令;
在接收到所述用户输入的迁移操作指令后,将所述迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存所述备份数据包;
将所述备份数据包发往目标终端设备,并删除已发送的所述备份数据包,直到所述目标数据的所有备份数据包均发往所述目标终端设备。
本发明实施例二方面提供了一种数据传输处理装置,包括:
接收单元,用于接收用户输入的迁移操作指令;
备份缓存单元,用于在接收到所述用户输入的迁移操作指令后,将所述迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存所述备份数据包;
发送处理单元,用于将所述备份数据包发往目标终端设备,并删除已发送的所述备份数据包,直到所述目标数据的所有备份数据包均发往所述目标终端设备。
三方面本发明实施例还提供了一种终端设备,包括:处理器和存储器:
所述存储器存储有可执行程序代码;
所述处理器用于调用所述存储器中存储的所述可执行程序代码,执行本发明实施例提供的任意一项所述的方法。
本发明实施例四方面还提供了一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行本发明实施例提供的任意一项所述的方法。
本发明实施例五方面还提供了一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行本发明实施例提供的任意一项所述的方法。
本发明实施例中,在接收到用户输入的迁移操作指令后,将该迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存上述备份数据包,然后将缓存的上述备份数据包发往目标终端设备,并删除已发送的上述备份数据包,直到目标数据的所有备份数据包均发往目标终端设备。在终端设备的空闲存储空间不足时,不断的选取部分数据进行备份传输,直到所有目标数据均备份传输完成,提高了数据传输的效率。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所 需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例公开的一种数据传输处理方法的流程示意图;
图2为本发明实施例公开的另一种数据传输处理方法的流程示意图;
图3为本发明实施例公开的一种数据传输处理装置的结构示意图;
图4为本发明实施例公开的另一种数据传输处理装置的结构示意图;
图5为本发明实施例公开的一种终端设备的结构示意图;
图6为本发明实施例公开的另一种终端设备的结构示意图。
具体实施方式
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及附图中的术语“第一”和“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
一般地,用户使用手机搬家功能时,需要打开对应功能的应用程序(Application Programe,APP),具体是在两台手机上打开工具-备份与恢复,点击“手机搬家”虚拟功能按钮,分别在旧手机(如R7PLUS)上选择“我是旧手机”,在新手机(如R9PLUS)上选择“我是新手机”,旧手机自动调取相机功能并进入扫描二维码界面,新手机自动显示二维码,扫描成功之后,新手机上提示连接成功。旧手机则进入“选择传输的数据”界面(要迁移至新手机的数据),默认自动勾选系统数据、应用程序与存储数据(存储数据是部分默认选择,可手动选择添加)。点击按键“开始搬家”,开始数据搬家。
此外,本发明实施例所涉及到的终端设备可以包括运行Android操作系统、iOS操作系统、Windows操作系统或其他操作系统的终端设备,例如移动电话、移动电脑、平板电脑、台式电脑、个人数字助理(Personal Digital Assistant,PDA)、智能手表、智能手环等终端设备,本发明实施例后续不作复述。
本发明实施例提供了一种数据传输处理方法及终端设备,在终端设备的空闲存储空间不足时,不断的选取部分数据进行备份传输,直到所有目标数据均备份传输完成,提高了数据传输的效率。以下分别进行详细说明。
请参阅图1,图1为本发明实施例公开的一种数据传输处理方法的流程示意图。其中,图1所示的数据传输处理方法可以包括以下步骤:
101:终端设备接收用户输入的迁移操作指令;
其中,上述迁移操作指令例如可以是由针对终端设备显示的数据迁移功能按钮的选取操作触发的,该选取操作具体可以是触控操作、声控操作等。
102:在接收到用户输入的迁移操作指令后,将上述迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存上述备份数据包;
其中,迁移操作指令指定的目标数据由用户根据终端设备中显示的待传输文件列表进行选取。
其中,在接收到用户输入的迁移操作指令后,将迁移操作指令指定的目标数据中的部分数据生成备份数据包,并缓存该备份数据包,可以避免终端设备中空闲存储空间不足从而导致备份失败的现象。
作为一种可选的实施方式,在接收到用户输入的迁移操作指令后,还包括:
获取终端设备的空闲存储空间大小;
若上述目标数据的大小大于空闲存储空间大小,则根据上述空闲存储空间大小确定用于备份上述目标数据的参考空间阈值,该参考空间阈值小于或等于上述空闲存储空间大小。
需要说明的是,上述将迁移操作指令指定的目标数据中的部分数据生成备份数据包的操作与获取终端设备的空闲存储空间大小的操作同时执行,对数据包进行缓存的操作会花费一定的时间,因此,备份操作与获取空闲存储空间大小的操作同时执行可以减少数据传输的时间。在需要传输的目标数据的大小大于空闲存储空间大小时,根据空闲存储空间大小确定用于备份上述目标数据的 参考空间阈值,该参考空间阈值小于或等于上述空闲存储空间大小,在对目标数据中的部分数据进行备份的过程中,实时监测备份数据包的大小,直到备份数据包的大小等于参考空间阈值时,则停止备份。
举例来说,假设空闲存储空间的大小为1GB,则用于备份上述目标数据的参考空间阈值例如可以是500MB,600MB等等。在备份数据包的大小达到参考空间阈值时,则停止备份。可以采用如下方式实现:
监测缓存的备份数据包的大小;
若上述备份数据包的大小等于上述参考空间阈值,则停止缓存备份数据包的操作,并执行将备份数据包发往目标终端设备的操作。
作为一种可选的实施方式,在停止缓存上述备份数据包的操作之后,还包括以下操作:
为上述目标数据中已经备份的数据添加标识信息,该标识信息用于区分目标数据中的已备份数据和未备份数据。
其中,可以为已经备份的数据添加标识信息,便于区分已备份数据和未备份数据,避免重复备份。
103:将上述备份数据包发往目标终端设备,并删除已发送的上述备份数据包,直到上述目标数据的所有备份数据包均发往目标终端设备。
其中,将备份数据包发往目标终端设备后,将终端设备中缓存的备份数据包删除,从而腾出终端设备中的空闲存储空间,进而根据目标数据中的标识信息对未备份数据进行备份传输的操作,直到目标数据中的所有备份数据包均发往目标终端设备。
作为一种可选的实施方式,在对备份数据包进行传输的过程中,还可以执行以下操作:
检测备份数据包是否发生损坏;
若检测到当前传输的备份数据包发生损坏,则删除当前传输的备份数据包,并标记当前传输的备份数据包对应的数据为未备份数据。
可见,在本实施例中,终端设备在检测到当前传输的备份数据包发生损坏时,可以及时删除当前传输的备份数据包,并标记当前传输的备份数据包对应的数据为未备份数据,避免已备份数据包损坏而造成已备份数据未传输成功的 情况发生,有利于提高数据传输的稳定性。
而另一方面,若已损坏的数据包已经部分或全部传输至目标终端设备,则终端设备可以向目标终端设备发送提示信息,以提示目标终端设备删除接收到的该数据包的部分或全部数据,并等待终端设备重发该数据包。
在图1所描述的方法中,在接收到用户输入的迁移操作指令后,将该迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存上述备份数据包,然后将缓存的上述备份数据包发往目标终端设备,并删除已发送的上述备份数据包,直到目标数据的所有备份数据包均发往目标终端设备。在终端设备的空闲存储空间不足时,不断的选取部分数据进行备份传输,直到所有目标数据均备份传输完成,提高了数据传输的效率。
请参阅图2,图2为本发明实施例公开的另一种数据传输处理方法的流程示意图。如图2所示,该方法可以包括以下步骤:
201:终端设备接收用户输入的迁移操作指令;
202:在接收到用户输入的迁移操作指令后,将迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存备份数据包,同时获取终端设备的空闲存储空间大小;
其中,将迁移操作指令指定的目标数据中的部分数据生成备份数据包,具体包括:
按照迁移操作指令指定的目标数据中的各个文件的优先级等级从高到低的顺序对目标数据进行数据备份。
例如,可以优先备份通讯录,系统应用程序,短信消息等。
203:若目标数据的大小大于空闲存储空间大小,则根据空闲存储空间大小确定用于备份目标数据的参考空间阈值,该参考空间阈值小于或等于空闲存储空间大小;
204:监测缓存的备份数据包的大小;
205:若备份数据包的大小等于参考空间阈值,则停止缓存备份数据包的操作;
206:将备份数据包发往目标终端设备,并删除已发送的备份数据包;
207:为目标数据中已经备份的数据添加标识信息,该标识信息用于区分 目标数据中的已备份数据和未备份数据;
208:若检测到当前传输的备份数据包发生损坏,则删除当前传输的备份数据包,并标记当前传输的备份数据包对应的数据为未备份数据;
209:若目标数据中的未备份数据的大小大于空闲存储空间大小,则执行步骤204~步骤208,直到目标数据中的未备份数据的大小小于或等于空闲存储空间大小;
其中,在对备份数据包进行传输完成之后,检测为备份数据的大小,若未备份数据的大小大于空闲存储空间大小,则重复执行步骤204~步骤208,直到目标数据中的未备份数据的大小小于或等于空闲存储空间大小。
210:若目标数据中的未备份数据的大小小于或等于空闲存储空间大小,则对目标数据中的未备份数据进行备份,并将备份完成的数据包发往目标终端设备,并删除已发送的备份数据包。
其中,若目标数据中的未备份数据的大小小于或等于空闲存储空间大小,则对目标数据中的未备份数据进行备份,并将备份完成的数据包发往目标终端设备,并删除已发送的备份数据包。
而另一方面,若目标数据的大小大于终端设备中空闲存储空间大小,则终端设备可以采用多种措施来腾出更多的存储空间以用于进行数据备份。举例来说,终端设备可以从缓存数据中筛选出缓存时间过长的数据(举例来说,缓存时间超过24小时),将缓存时间过长的数据删除以获取更多的存储空间用于进行数据备份;除此之外,终端设备还可以计算备份目标数据还需要的存储空间大小(即目标数据的大小减去空闲存储空间大小的差值),根据还需要的存储空间大小动态删除缓存时间长的缓存数据。
请参阅图3,图3是本发明的一个实施例提供的一种数据传输处理装置的结构示意图。其中,该装置可以是智能手机、平板电脑、智能穿戴设备等终端设备。该装置包括:
接收单元301,用于接收用户输入的迁移操作指令;
备份缓存单元302,用于在接收到用户输入的迁移操作指令后,将上述迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存上述备份数据包;
发送处理单元303,用于将备份数据包发往目标终端设备,并删除已发送的备份数据包,直到目标数据的所有备份数据包均发往目标终端设备。
本发明实施例中,各功能单元的具体实施方式可以参照方法实施例1中的描述,本发明实施例将不作复述。
本发明实施例中,通过备份缓存单元302在接收单元301接收到用户输入的迁移操作指令后,将迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存上述备份数据包,并由发送处理单元303,将备份数据包发送目标终端设备,同时删除已发送的备份数据包,直到目标数据的所有备份数据包均发送目标终端设备。从而可以在终端设备的空闲存储空间不足时,不断的选取部分数据进行备份传输,直到所有目标数据均备份传输完成,提高了数据传输的效率。
本发明实施例可以根据上述方法示例对用户终端进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。举例来说,上述接收单元301、备份缓存单元302、可以集成到中央处理器(Central Processing Unit,CPU)之中;而发送处理单元303可为射频芯片或WiFi模组。需要说明的是,本发明实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
请一并参阅图4,图4为本发明实施例公开的另一种数据传输处理装置的结构示意图。其中,图4所示的装置是由图3所示的装置进行优化得到的,与图3所示的装置相比,图4所示的装置还包括:
获取单元304,用于获取终端设备的空闲存储空间大小;
确定单元305,用于在目标数据的大小大于空闲存储空间大小时,根据上述空闲存储空间大小确定用于备份目标数据的参考空间阈值,该参考空间阈值小于或等于空闲存储空间大小。
可选地,在图4所示的装置中的备份缓存单元302,具体用于按照上述迁移操作指令指定的目标数据中的各个文件的优先级等级从高到低的顺序对目标数据进行数据备份。
可选地,在图4所示的数据传输处理装置中,该装置还包括:
监测单元306,用于监测缓存的备份数据包的大小;
备份停止单元307,用于在备份数据包的大小等于参考空间阈值时,停止缓存备份数据包的操作,并驱动上述发送处理单元303执行将备份数据包发往目标终端设备的操作。
可选地,在图4所示的数据传输处理装置中,该装置还包括:
标识添加单元308,用于为目标数据中已经备份的数据添加标识信息,该标识信息用于区分目标数据中的已备份数据和未备份数据。
可选地,在图4所示的数据传输处理装置中,该装置还包括:
检测处理单元309,用于在检测到当前传输的备份数据包发生损坏时,删除当前传输的备份数据包,并标记当前传输的备份数据包对应的数据为未备份数据。
可选地,在图4所示的数据传输处理装置中,该装置还包括:
缓存获取单元310,用于若所述目标数据的大小大于所述空闲存储空间大小,则获取所述终端设备的应用程序的缓存数据;
缓存清除单元311,用于从所述缓存数据中选择出目标缓存数据并删除所述目标缓存数据。
作为一种可选的实施方式,缓存清除单元311,具体用于将所述缓存数据中缓存时间超过预设时间阈值的数据作为所述目标缓存数据。
本发明实施例中,上述获取单元304、确定单元305、监测单元306、备份停止单元307、标识添加单元308、检测处理单元309、缓存获取单元310以及缓存清除单元311,均可集成于处理器中实现。
请参阅图5,图5为本发明实施例公开的一种终端设备的结构示意图。如图5所示,该终端设备包括:处理器501以及存储器502;其中存储器502可以用于处理器501执行数据处理所需要的缓存,还可以用于提供处理器501执行数据处理调用的数据以及获得的结果数据的存储空间。
在本发明实施例中,处理器501通过调用存储于存储器502中的程序代码,用于执行以下操作:
终端设备接收用户输入的迁移操作指令;
在接收到所述用户输入的迁移操作指令后,将所述迁移操作指令指定的目 标数据中的部分数据生成备份数据包,缓存所述备份数据包;
将所述备份数据包发往目标终端设备,并删除已发送的所述备份数据包,直到所述目标数据的所有备份数据包均发往所述目标终端设备。
作为一种可选的实施方式,处理器501通过调用存储于存储器502中的程序代码,所述在接收到所述用户输入的迁移操作指令后,还用于执行以下操作:
获取所述终端设备的空闲存储空间大小;
若所述目标数据的大小大于所述空闲存储空间大小,则根据所述空闲存储空间大小确定用于备份所述目标数据的参考空间阈值,所述参考空间阈值小于或等于所述空闲存储空间大小。
作为一种可选的实施方式,处理器501通过调用存储于存储器502中的程序代码,所述将所述迁移操作指令指定的目标数据中的部分数据生成备份数据包,具体用于执行以下操作:
按照所述迁移操作指令指定的目标数据中的各个文件的优先级等级从高到低的顺序对所述目标数据进行数据备份。
作为一种可选的实施方式,处理器501通过调用存储于存储器502中的程序代码,在所述根据所述空闲存储空间大小确定用于备份所述目标数据的参考空间阈值之后,以及在所述将所述备份数据包发往目标终端设备之前,还用于执行以下操作:
监测缓存的所述备份数据包的大小;
若所述备份数据包的大小等于所述参考空间阈值,则停止缓存所述备份数据包的操作,并执行所述将所述备份数据包发往目标终端设备。
作为一种可选的实施方式,处理器501通过调用存储于存储器502中的程序代码,在所述停止缓存所述备份数据包的操作之后,还用于执行以下操作:
为所述目标数据中已经备份的数据添加标识信息,所述标识信息用于区分所述目标数据中的已备份数据和未备份数据。
作为一种可选的实施方式,处理器501通过调用存储于存储器502中的程序代码,还用于执行以下操作:
若检测到当前传输的所述备份数据包发生损坏,则删除当前传输的所述备份数据包,并标记当前传输的所述备份数据包对应的数据为未备份数据。
请参阅图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逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。
前述实施例中,各步骤方法流程可以基于该终端设备的结构实现。
前述图1、图2所示的实施例中,各步骤方法流程可以基于该手机的结构实现。前述图3、图4、图5所示的实施例中,各单元功能可以基于该手机的结构实现。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,所述计算机包括终端设备。
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,所述计算机包括终端设备。
值得注意的是,上述数据传输处理的终端设备的实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。
另外,本领域普通技术人员可以理解实现上述各方法实施例中的全部或部分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。

Claims (20)

  1. 一种数据传输处理方法,其特征在于,包括:
    终端设备接收用户输入的迁移操作指令;
    在接收到所述用户输入的迁移操作指令后,将所述迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存所述备份数据包;
    将所述备份数据包发往目标终端设备,并删除已发送的所述备份数据包,直到所述目标数据的所有备份数据包均发往所述目标终端设备。
  2. 根据权利要求1所述方法,其特征在于,所述在接收到所述用户输入的迁移操作指令后,所述方法还包括:
    获取所述终端设备的空闲存储空间大小;
    若所述目标数据的大小大于所述空闲存储空间大小,则根据所述空闲存储空间大小确定用于备份所述目标数据的参考空间阈值,所述参考空间阈值小于或等于所述空闲存储空间大小。
  3. 根据权利要求2所述方法,其特征在于,所述将所述迁移操作指令指定的目标数据中的部分数据生成备份数据包,包括:
    按照所述迁移操作指令指定的目标数据中的各个文件的优先级等级从高到低的顺序对所述目标数据进行数据备份。
  4. 根据权利要求3所述方法,其特征在于,在所述根据所述空闲存储空间大小确定用于备份所述目标数据的参考空间阈值之后,以及在所述将所述备份数据包发往目标终端设备之前,所述方法还包括:
    监测缓存的所述备份数据包的大小;
    若所述备份数据包的大小等于所述参考空间阈值,则停止缓存所述备份数据包的操作,并执行所述将所述备份数据包发往目标终端设备。
  5. 根据权利要求4所述方法,其特征在于,在所述停止缓存所述备份数据包的操作之后,所述方法还包括:
    为所述目标数据中已经备份的数据添加标识信息,所述标识信息用于区分所述目标数据中的已备份数据和未备份数据。
  6. 根据权利要求1至5任意一项所述方法,其特征在于,所述方法还包 括:
    若检测到当前传输的所述备份数据包发生损坏,则删除当前传输的所述备份数据包,并标记当前传输的所述备份数据包对应的数据为未备份数据。
  7. 根据权利要求6所述方法,其特征在于,所述方法还包括:
    向所述目标终端设备发送指示信息以指示所述目标终端设备删除接收到的所述当前传输的所述备份数据包。
  8. 根据权利要求2所述方法,其特征在于,所述方法还包括:
    若所述目标数据的大小大于所述空闲存储空间大小,则获取所述终端设备的应用程序的缓存数据;
    从所述缓存数据中选择出目标缓存数据并删除所述目标缓存数据。
  9. 根据权利要求8所述方法,其特征在于,所述从所述缓存数据中选择出目标缓存数据,包括:
    将所述缓存数据中缓存时间超过预设时间阈值的数据作为所述目标缓存数据。
  10. 一种数据传输处理装置,其特征在于,包括:
    接收单元,用于接收用户输入的迁移操作指令;
    备份缓存单元,用于在接收到所述用户输入的迁移操作指令后,将所述迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存所述备份数据包;
    发送处理单元,用于将所述备份数据包发往目标终端设备,并删除已发送的所述备份数据包,直到所述目标数据的所有备份数据包均发往所述目标终端设备。
  11. 根据权利要求10所述装置,其特征在于,所述终端设备还包括:
    获取单元,用于获取所述终端设备的空闲存储空间大小;
    确定单元,用于在所述目标数据的大小大于所述空闲存储空间大小时,根据所述空闲存储空间大小确定用于备份所述目标数据的参考空间阈值,所述参考空间阈值小于或等于所述空闲存储空间大小。
  12. 根据权利要求11所述装置,其特征在于,
    所述备份缓存单元,具体用于按照所述迁移操作指令指定的目标数据中的 各个文件的优先级等级从高到低的顺序对所述目标数据进行数据备份。
  13. 根据权利要求12所述装置,其特征在于,所述终端设备还包括:
    监测单元,用于监测缓存的所述备份数据包的大小;
    备份停止单元,用于在所述备份数据包的大小等于所述参考空间阈值时,停止缓存所述备份数据包的操作,并驱动所述发送处理单元执行所述将所述备份数据包发往目标终端设备。
  14. 根据权利要求13所述装置,其特征在于,所述终端设备还包括:
    标识添加单元,用于为所述目标数据中已经备份的数据添加标识信息,所述标识信息用于区分所述目标数据中的已备份数据和未备份数据。
  15. 根据权利要求10至14任意一项所述装置,其特征在于,所述终端设备还包括:
    检测处理单元,用于在检测到当前传输的所述备份数据包发生损坏时,删除当前传输的所述备份数据包,并标记当前传输的所述备份数据包对应的数据为未备份数据。
  16. 根据权利要求11所述装置,其特征在于,所述终端设备还包括:
    缓存获取单元,用于若所述目标数据的大小大于所述空闲存储空间大小,则获取所述终端设备的应用程序的缓存数据;
    缓存清除单元,用于从所述缓存数据中选择出目标缓存数据并删除所述目标缓存数据。
  17. 根据权利要求16所述装置,其特征在于,所述缓存清除单元,具体用于将所述缓存数据中缓存时间超过预设时间阈值的数据作为所述目标缓存数据。
  18. 一种终端设备,包括:处理器和存储器,其特征在于,
    所述存储器存储有可执行程序代码;
    所述处理器用于调用所述存储器中存储的所述可执行程序代码,执行权利要求1至9任意一项所述的方法。
  19. 一种计算机可读存储介质,其特征在于,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1~9任一项所述的方法。
  20. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1~9任一项所述的方法。
PCT/CN2017/092279 2016-09-14 2017-07-07 数据传输处理方法及终端设备 WO2018049887A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610825484.2 2016-09-14
CN201610825484.2A CN106484562B (zh) 2016-09-14 2016-09-14 一种数据传输处理方法及终端设备

Publications (1)

Publication Number Publication Date
WO2018049887A1 true WO2018049887A1 (zh) 2018-03-22

Family

ID=58273839

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/092279 WO2018049887A1 (zh) 2016-09-14 2017-07-07 数据传输处理方法及终端设备

Country Status (2)

Country Link
CN (1) CN106484562B (zh)
WO (1) WO2018049887A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874584A (zh) * 2018-05-04 2018-11-23 上海达梦数据库有限公司 数据备份方法、数据还原方法、装置、设备及存储介质
CN111510300A (zh) * 2020-04-10 2020-08-07 中国联合网络通信集团有限公司 数据处理方法、装置、设备及计算机可读存储介质
CN113840269A (zh) * 2021-08-06 2021-12-24 深圳Tcl新技术有限公司 一种多媒体数据传输方法、装置、电子设备和存储介质
CN117544588A (zh) * 2024-01-10 2024-02-09 腾讯科技(深圳)有限公司 信息传输方法、系统和相关装置

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484562B (zh) * 2016-09-14 2019-08-23 Oppo广东移动通信有限公司 一种数据传输处理方法及终端设备
CN106970859B (zh) * 2017-03-31 2020-03-03 青岛海信移动通信技术股份有限公司 离线邮件的备份与恢复的方法和装置
CN108874615A (zh) * 2017-05-16 2018-11-23 惠州市德赛西威汽车电子股份有限公司 一种车载多媒体系统性能检测装置及检测方法
CN107329857A (zh) * 2017-06-30 2017-11-07 联想(北京)有限公司 一种数据备份方法及电子设备
US10341927B2 (en) * 2017-07-20 2019-07-02 GM Global Technology Operations LLC Vehicle wireless unit and method of operating the same
CN110139053A (zh) * 2018-02-08 2019-08-16 云丁网络技术(北京)有限公司 一种数据处理方法及装置
CN111258821B (zh) * 2020-03-23 2023-08-18 重庆忽米网络科技有限公司 一种基于云计算的备份数据快速提取方法
CN111459753B (zh) * 2020-03-26 2022-09-30 平安科技(深圳)有限公司 销售点终端数据处理方法、装置、计算机设备和存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383698A (zh) * 2013-06-27 2013-11-06 宇龙计算机通信科技(深圳)有限公司 数据删除的方法及其移动终端
CN105183379A (zh) * 2015-09-01 2015-12-23 上海新储集成电路有限公司 一种混合内存的数据备份系统及方法
US20160139996A1 (en) * 2014-11-13 2016-05-19 Netapp, Inc. Methods for providing unified storage for backup and disaster recovery and devices thereof
CN105808376A (zh) * 2016-02-24 2016-07-27 北京金山安全软件有限公司 一种数据备份方法、装置及电子设备
CN106484326A (zh) * 2016-09-14 2017-03-08 广东欧珀移动通信有限公司 一种数据传输处理方法及移动终端
CN106484562A (zh) * 2016-09-14 2017-03-08 广东欧珀移动通信有限公司 一种数据传输处理方法及终端设备
CN106502826A (zh) * 2016-10-19 2017-03-15 广东欧珀移动通信有限公司 数据备份及传输方法及移动终端

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7356573B2 (en) * 2005-07-08 2008-04-08 Cisco Technology, Inc. Apparatus and methods for data tapping in a storage area network
CN102394930B (zh) * 2011-11-02 2014-11-19 宇龙计算机通信科技(深圳)有限公司 移动终端、云服务器和数据处理方法
CN102693145B (zh) * 2012-05-31 2015-02-25 红石阳光(北京)科技有限公司 用于嵌入式系统的差分升级方法
CN104063250B (zh) * 2014-07-02 2016-08-24 努比亚技术有限公司 迁移终端应用的方法和系统及终端设备
CN105245701A (zh) * 2015-09-25 2016-01-13 上海斐讯数据通信技术有限公司 移动终端的数据保护系统和数据保护方法
CN105893173A (zh) * 2015-12-10 2016-08-24 乐视网信息技术(北京)股份有限公司 缓存数据处理方法及装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383698A (zh) * 2013-06-27 2013-11-06 宇龙计算机通信科技(深圳)有限公司 数据删除的方法及其移动终端
US20160139996A1 (en) * 2014-11-13 2016-05-19 Netapp, Inc. Methods for providing unified storage for backup and disaster recovery and devices thereof
CN105183379A (zh) * 2015-09-01 2015-12-23 上海新储集成电路有限公司 一种混合内存的数据备份系统及方法
CN105808376A (zh) * 2016-02-24 2016-07-27 北京金山安全软件有限公司 一种数据备份方法、装置及电子设备
CN106484326A (zh) * 2016-09-14 2017-03-08 广东欧珀移动通信有限公司 一种数据传输处理方法及移动终端
CN106484562A (zh) * 2016-09-14 2017-03-08 广东欧珀移动通信有限公司 一种数据传输处理方法及终端设备
CN106502826A (zh) * 2016-10-19 2017-03-15 广东欧珀移动通信有限公司 数据备份及传输方法及移动终端

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874584A (zh) * 2018-05-04 2018-11-23 上海达梦数据库有限公司 数据备份方法、数据还原方法、装置、设备及存储介质
CN108874584B (zh) * 2018-05-04 2021-06-01 上海达梦数据库有限公司 数据备份方法、数据还原方法、装置、设备及存储介质
CN111510300A (zh) * 2020-04-10 2020-08-07 中国联合网络通信集团有限公司 数据处理方法、装置、设备及计算机可读存储介质
CN111510300B (zh) * 2020-04-10 2023-04-18 中国联合网络通信集团有限公司 数据处理方法、装置、设备及计算机可读存储介质
CN113840269A (zh) * 2021-08-06 2021-12-24 深圳Tcl新技术有限公司 一种多媒体数据传输方法、装置、电子设备和存储介质
CN113840269B (zh) * 2021-08-06 2023-11-14 深圳Tcl新技术有限公司 一种多媒体数据传输方法、装置、电子设备和存储介质
CN117544588A (zh) * 2024-01-10 2024-02-09 腾讯科技(深圳)有限公司 信息传输方法、系统和相关装置
CN117544588B (zh) * 2024-01-10 2024-04-23 腾讯科技(深圳)有限公司 信息传输方法、系统和相关装置

Also Published As

Publication number Publication date
CN106484562B (zh) 2019-08-23
CN106484562A (zh) 2017-03-08

Similar Documents

Publication Publication Date Title
WO2018049887A1 (zh) 数据传输处理方法及终端设备
US10831161B2 (en) Method and device for sending communication message
CN110752980B (zh) 一种消息发送方法及电子设备
WO2018049893A1 (zh) 数据传输方法及终端设备
WO2018049897A1 (zh) 数据备份方法及设备
CN107368518B (zh) 一种通知消息的管理方法及终端、计算机可读存储介质
WO2014206101A1 (zh) 一种基于手势的会话处理方法、装置及终端设备
WO2018049886A1 (zh) 建立热点的方法及终端设备
TW201519073A (zh) 一種終端裝置快捷回覆操作方法和終端裝置
WO2015058613A1 (zh) 一种检测数据包的方法、装置及存储介质
JP6492184B2 (ja) 情報の推薦を管理するための方法、デバイス、およびシステム
WO2014206143A1 (zh) 未读消息数目显示方法、装置和设备
WO2018049894A1 (zh) 数据传输方法及设备
WO2018049912A1 (zh) 数据传输方法及相关设备
CN108834132B (zh) 一种数据传输方法及设备和相关介质产品
US10956653B2 (en) Method and apparatus for displaying page and a computer storage medium
WO2018049971A1 (zh) 热点网络切换方法及终端
WO2018006841A1 (zh) 二维码信息传输方法、装置以及设备
WO2018049921A1 (zh) 数据传输处理方法及相关设备
WO2018049900A1 (zh) 数据迁移方法及相关设备
WO2018049904A1 (zh) 数据迁移方法及相关设备
CN111078523B (zh) 日志获取方法、装置、存储介质及电子设备
CN104298666A (zh) 网页分享方法和装置
WO2018049905A1 (zh) 数据迁移方法及相关设备
WO2019076250A1 (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: 17850090

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: 17850090

Country of ref document: EP

Kind code of ref document: A1