WO2018049921A1 - 数据传输处理方法及相关设备 - Google Patents

数据传输处理方法及相关设备 Download PDF

Info

Publication number
WO2018049921A1
WO2018049921A1 PCT/CN2017/094239 CN2017094239W WO2018049921A1 WO 2018049921 A1 WO2018049921 A1 WO 2018049921A1 CN 2017094239 W CN2017094239 W CN 2017094239W WO 2018049921 A1 WO2018049921 A1 WO 2018049921A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
backup
data packet
mobile terminal
target data
Prior art date
Application number
PCT/CN2017/094239
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 WO2018049921A1 publication Critical patent/WO2018049921A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0647Migration mechanisms

Definitions

  • the present application relates to the field of data transmission technologies, and in particular, to a data transmission processing method and related devices.
  • the embodiment of the present application provides a data transmission processing method and related equipment, which can improve the transmission efficiency and success rate of data migration.
  • an embodiment of the present application provides a data transmission processing method, including:
  • an embodiment of the present application provides a data transmission processing apparatus, including a processing unit and a communication unit.
  • the processing unit is configured to acquire a free storage space size of the mobile terminal when detecting a migration operation instruction for the target data; and to detect that the size of the target data is greater than the size of the free storage space Determining, according to the size of the free storage space, the number of the target for backup a reference byte of the data; and for performing data backup on the unbacked data in the target data when detecting that the target data has not completed all backups, to generate a backup data packet whose byte is less than or equal to the reference byte Transmitting, by the communication unit, the backup data packet, and deleting the backup data packet stored by the mobile terminal when the backup data packet transmission is completed.
  • an embodiment of the present application provides a mobile terminal, including: a processor and a memory;
  • the memory stores executable program code
  • the processor is configured to invoke the executable program code in the memory to perform a method as described in any one of the first aspects of the embodiments of the present application.
  • the embodiment of the present application provides a computer storage medium, where the computer storage medium stores a program, and the program includes the method provided by the first aspect of the embodiment of the present application.
  • FIG. 1.1 is a schematic diagram of a setting process interface of a “mobile phone moving function” in the related art
  • FIG. 1.2 is a schematic diagram of a setting process interface of a “mobile phone moving function” in the related art
  • FIG. 1.3 is a schematic diagram of a setting process interface of a “mobile phone moving function” in the related art
  • FIG. 2 is a schematic flowchart of a data transmission processing method disclosed in an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another data transmission processing method disclosed in an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of another data transmission processing method disclosed in an embodiment of the present application.
  • FIG. 5A is a structural block diagram of a functional unit of a mobile terminal according to an embodiment of the present application.
  • FIG. 5B is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present application.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the data migration scheme is as shown in Figure 1.1 to Figure 1.3.
  • the application program Application Programe, APP
  • the application program opens the tool on both phones - backup and recovery.
  • click the "mobile phone move" virtual function button as shown in Figure 1.1, select "I am the old phone” on the old phone (such as R7 PLUS), in the new phone ( For example, on R9 PLUS, select “I am a new mobile phone”.
  • the old mobile phone automatically retrieves the camera function and enters the scanning QR code interface.
  • the new mobile phone automatically displays the QR code. After the scanning is successful, as shown in the figure.
  • the mobile terminal involved in the embodiments of the present application may include various handheld devices, wireless devices, wearable devices, computing devices, or other processing devices connected to the wireless modem, and various forms of user devices.
  • UE User Equipment
  • MS mobile station
  • terminal device terminal device, and the like.
  • the devices mentioned above are collectively referred to as mobile terminals.
  • FIG. 2 is a schematic flowchart of a data transmission processing method according to an embodiment of the present application. As shown in the figure, the data transmission processing method includes:
  • the mobile terminal acquires a free storage space size of the mobile terminal when detecting a migration operation instruction for the target data.
  • the migrating operation command may be triggered by a selection operation of a data migration function button displayed for the mobile terminal, and the selection operation may be a touch operation, a voice control operation, or the like.
  • the reference byte for backing up the target data may be, for example, 500 MB, 600 MB, or the like.
  • the mobile terminal when detecting that the target data does not complete all backups, performs data backup on the unbacked data in the target data to generate a backup data packet whose byte is less than or equal to the reference byte, and the transmission station Deleting the data packet and deleting the backup data packet stored by the mobile terminal when the backup data packet transmission is completed.
  • the mobile terminal performs data backup on the unbacked data in the target data to generate a backup data packet whose byte is less than or equal to the reference byte.
  • the mobile terminal can dynamically adjust the size of the backup data packet according to the bytes of the unbacked data in the target data.
  • the byte of the unbacked data is greater than or equal to the reference byte, adjust the backup data packet size to the reference byte.
  • the bytes of the unbacked data are smaller than the reference bytes, all the unbacked data is directly backed up. If the free storage space is not exceeded, ensure that as much data as possible is backed up each time, which is beneficial to shortening the total transmission duration of the target data. Data transmission efficiency.
  • the transmitting the backup data packet includes:
  • the backup data packet is transmitted to a data forwarding server communicatively coupled to the mobile terminal.
  • the mobile terminal when detecting the migration operation instruction for the target data, the mobile terminal provided by the embodiment of the present application first acquires the free storage space size of the mobile terminal, and when detecting that the size of the target data is greater than the size of the free storage space, according to The size of the free storage space determines the reference byte used for backing up the target data, and when it detects that the target data has not completed all the backups, performs data backup on the unbacked data in the target data to generate a byte less than or equal to the reference byte. Back up the data packet, transfer the backup data packet, and delete the backup data packet stored by the mobile terminal when the backup data packet transmission is completed.
  • the mobile terminal dynamically adjusts the remaining storage space of the mobile terminal, dynamically adjusts the reference byte used for backing up the target data, and deletes the backup data packet stored on the mobile terminal side in time after each transmission of the backup data packet to ensure that the backup data packet is stored in the mobile terminal side.
  • a large data transmission scheme with sufficient remaining storage space for storing the next backup data packet, thereby realizing insufficient storage space, is advantageous for improving the transmission efficiency and success rate of data migration.
  • the mobile terminal performs the following operations before detecting that the target data has not completed all backups:
  • the currently transmitted backup data packet When it is detected that the currently transmitted backup data packet is damaged, 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 mobile terminal when detecting that the currently transmitted backup data packet is damaged, the mobile terminal 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 backup data is corrupted and the backup data is not successfully transmitted, which is beneficial to improve the stability of data transmission.
  • the mobile terminal also performs the following operations:
  • the output data completes the notification message of the transmission, and deletes the target data stored by the mobile terminal.
  • FIG. 3 A schematic diagram of a flow of a data transmission processing method. As shown in the figure, the data transmission processing method includes:
  • the mobile terminal acquires a free storage space size of the mobile terminal when detecting a migration operation instruction for the target data.
  • the mobile terminal deletes the currently transmitted backup data packet when detecting that the currently transmitted backup data packet is damaged, and marks that the data corresponding to the currently transmitted backup data packet is unbacked data.
  • the mobile terminal transmits the backup data packet to a destination terminal that is in communication connection with the mobile terminal.
  • the mobile terminal deletes the backup data packet stored by the mobile terminal when the backup data packet transmission is completed.
  • the mobile terminal when detecting the migration operation instruction for the target data, the mobile terminal provided by the embodiment of the present application first acquires the free storage space size of the mobile terminal, and when detecting that the size of the target data is greater than the size of the free storage space, according to The size of the free storage space determines the reference byte used for backing up the target data, and when it detects that the target data has not completed all the backups, performs data backup on the unbacked data in the target data to generate a byte less than or equal to the reference byte. Back up the data packet, transfer the backup data packet, and delete the backup data packet stored by the mobile terminal when the backup data packet transmission is completed.
  • the mobile terminal dynamically adjusts the remaining storage space of the mobile terminal, dynamically adjusts the reference byte used for backing up the target data, and deletes the backup data packet stored on the mobile terminal side in time after each transmission of the backup data packet to ensure that the backup data packet is stored in the mobile terminal side.
  • a large data transmission scheme with sufficient remaining storage space for storing the next backup data packet, thereby realizing insufficient storage space, is advantageous for improving the transmission efficiency and success rate of data migration.
  • the mobile terminal may 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 backing up the data packet.
  • the damage caused by the backup data is not successfully transmitted, which is beneficial to improve the stability of data transmission.
  • FIG. 4 is a schematic flowchart of another data transmission processing method provided by an embodiment of the present application. As shown in the figure, the data transmission processing method includes:
  • the mobile terminal acquires a free storage space size of the mobile terminal when detecting a migration operation instruction for the target data.
  • the mobile terminal deletes the currently transmitted backup data packet when detecting that the currently transmitted backup data packet is damaged, and marks that the data corresponding to the currently transmitted backup data packet is unbacked data.
  • the mobile terminal detects that the target data does not complete all backups, and if it detects that the bytes of the unbacked data in the target data are smaller than the reference byte, all the target data are not backed up.
  • the data is backed up to generate a backup packet having a byte smaller than the reference byte.
  • the mobile terminal transmits the backup data packet to a destination terminal that is in communication connection with the mobile terminal.
  • the mobile terminal deletes the backup data packet stored by the mobile terminal when the backup data packet transmission is completed.
  • the mobile terminal when detecting the migration operation instruction for the target data, the mobile terminal provided by the embodiment of the present application first acquires the free storage space size of the mobile terminal, and when detecting that the size of the target data is greater than the size of the free storage space, according to The size of the free storage space determines the reference byte used for backing up the target data, and when it detects that the target data has not completed all the backups, performs data backup on the unbacked data in the target data to generate a byte less than or equal to the reference byte. Back up data packets, transfer backups According to the package, and delete the backup packet stored by the mobile terminal when the backup packet transmission is completed.
  • the mobile terminal dynamically adjusts the remaining storage space of the mobile terminal, dynamically adjusts the reference byte used for backing up the target data, and deletes the backup data packet stored on the mobile terminal side in time after each transmission of the backup data packet to ensure that the backup data packet is stored in the mobile terminal side.
  • a large data transmission scheme with sufficient remaining storage space for storing the next backup data packet, thereby realizing insufficient storage space, is advantageous for improving the transmission efficiency and success rate of data migration.
  • the mobile terminal may 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 backing up the data packet.
  • the damage caused by the backup data is not successfully transmitted, which is beneficial to improve the stability of data transmission.
  • the mobile terminal includes corresponding hardware structures and/or software modules for performing various functions.
  • the present application can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for each particular application to implement the described functionality, but such implementation should not be considered to be beyond the scope of the application.
  • the embodiment of the present application may divide the functional unit into the mobile 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. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logical function division. In actual implementation, there may be another division manner.
  • FIG. 5A shows a possible structural diagram of the data transmission processing apparatus involved in the above embodiment.
  • the data transmission processing device 500 includes a processing unit 502 and a communication unit 503.
  • the processing unit 502 is configured to control the action of the data transmission processing device Management, for example, processing unit 502 for supporting data transfer processing device to perform steps S201 through S203 in FIG. 2, steps S301 through 306 in FIG. 3, and steps S401 through S406 in FIG. 4 and/or for use in the description herein Other processes of technology.
  • the communication unit 503 is for supporting communication between the data transmission processing device and other devices, such as communication with a base station in the mobile communication network.
  • the data transfer processing device may further include a storage unit 501 for storing program codes and data of the data transfer processing device.
  • the processing unit 502 can be a processor or a controller, and can be, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application-specific integrated circuit (Application-Specific). Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the communication unit 503 can be a communication interface, a transceiver, a transceiver circuit, etc., wherein the communication interface is a collective name and can include one or more interfaces.
  • the storage unit 501 can be a memory.
  • the data transmission processing apparatus may be the data transmission processing apparatus shown in FIG. 5B.
  • the data transmission processing device 510 includes a processor 512, a communication interface 513, and a memory 511.
  • the data transmission processing device 510 may further include a bus 515.
  • the communication interface 513, the processor 512, and the memory 511 may be connected to each other through a bus 515.
  • the bus 515 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (abbreviated). EISA) bus and so on.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the bus 515 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 5B, but it does not mean that there is only one bus or one type of bus.
  • the data transmission processing device shown in FIG. 5A or FIG. 5B can also be understood as a device for the data transmission processing device.
  • the embodiment of the present application is not limited.
  • the embodiment of the present application further provides another mobile terminal, as shown in FIG. 6, for convenience of explanation, only The parts related to the embodiments of the present application are shown. The specific technical details are not disclosed. Please refer to the method part of the embodiment of the present application.
  • the mobile terminal can 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 mobile terminal 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 mobile terminal provided by an embodiment of the present application.
  • the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, and a processor 980. And power supply 990 and other components.
  • RF radio frequency
  • the RF circuit 910 can be used for receiving and transmitting information.
  • RF circuit 910 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.
  • LNA Low Noise Amplifier
  • RF circuitry 910 can also communicate with the network and other devices via 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
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • E-mail Short Messaging Service
  • the memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 920.
  • the memory 920 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 (determination of a reference byte, etc.), and the like; the storage data area may be stored according to the use of the mobile phone.
  • the data created (such as backup data packets, etc.).
  • memory 920 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 930 can be configured to receive input numeric or character information, and generate a user with the mobile phone Set and key signal input related to function control.
  • the input unit 930 can include a fingerprint identification module 931 and other input devices 932.
  • the fingerprint identification module 931 can collect fingerprint data of the user.
  • the input unit 930 may also include other input devices 932.
  • other input devices 932 may include, but are not limited to, one or more of a touch screen, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 940 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 940 can include a display screen 941.
  • the display screen 941 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the fingerprint recognition module 931 and the display screen 941 function as two separate components to implement the input and input functions of the mobile phone, in some embodiments, the fingerprint recognition module 931 and the display screen 941 can be Integrated to achieve the input and playback functions of the phone.
  • the handset may also include at least one type of sensor 950, 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 screen 941 according to the brightness of the ambient light, and the proximity sensor may turn off the display screen 941 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 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the handset.
  • the audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961 for conversion to the sound signal by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal by the audio circuit 960. After receiving, it is converted into audio data, and then processed by the audio data playback processor 980, sent to the other mobile phone via the RF circuit 910, or played back to the memory 920 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help the user to receive the WiFi module 970.
  • FIG. 6 shows the WiFi module 970, 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 980 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 920, and invoking data stored in the memory 920, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 980 may include one or more processing units; preferably, the processor 980 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 980.
  • the handset also includes a power source 990 (such as a battery) that supplies power to the various components.
  • a power source 990 such as a battery
  • the power source can be logically coupled to the processor 980 through 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 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 application further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of any one of the data transmission processing methods described in the foregoing method embodiments.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory.
  • a computer readable memory A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.

Abstract

本申请实施例公开了一种数据传输处理方法及相关设备,包括:在检测到针对目标数据的迁移操作指令时,获取移动终端的空闲存储空间大小;在检测到目标数据的大小大于空闲存储空间的大小时,根据空闲存储空间大小确定用于备份目标数据的参考字节;在检测到目标数据未完成全部备份时,对目标数据中的未备份数据进行数据备份,以生成字节小于或等于参考字节的备份数据包,传输备份数据包,并在备份数据包传输完成时删除移动终端存储的备份数据包。本申请实施例有利于提升数据迁移的传输效率和成功率。

Description

数据传输处理方法及相关设备 技术领域
本申请涉及数据传输技术领域,具体涉及一种数据传输处理方法及相关设备。
背景技术
智能手机等移动终端的应用越来越广泛,现代生活人们基本上已是人手一台手机,随着手机更新换代的周期越来越短,将旧手机中的用户数据及应用转移到新手机中已成为用户使用越来越多的功能。
发明内容
本申请实施例提供了一种数据传输处理方法及相关设备,可以提升数据迁移的传输效率和成功率。
第一方面,本申请实施例提供一种数据传输处理方法,包括:
在检测到针对目标数据的迁移操作指令时,获取所述移动终端的空闲存储空间大小;
在检测到所述目标数据的大小大于所述空闲存储空间的大小时,根据所述空闲存储空间大小确定用于备份所述目标数据的参考字节;
在检测到所述目标数据未完成全部备份时,对目标数据中的未备份数据进行数据备份,以生成字节小于或等于所述参考字节的备份数据包,传输所述备份数据包,并在所述备份数据包传输完成时删除所述移动终端存储的所述备份数据包。
第二方面,本申请实施例提供一种数据传输处理装置,包括处理单元和通信单元,
所述处理单元用于在检测到针对目标数据的迁移操作指令时,获取所述移动终端的空闲存储空间大小;以及用于在检测到所述目标数据的大小大于所述空闲存储空间的大小时,根据所述空闲存储空间大小确定用于备份所述目标数 据的参考字节;以及用于在检测到所述目标数据未完成全部备份时,对目标数据中的未备份数据进行数据备份,以生成字节小于或等于所述参考字节的备份数据包,通过所述通信单元传输所述备份数据包,并在所述备份数据包传输完成时删除所述移动终端存储的所述备份数据包。
第三方面,本申请实施例提供一种移动终端,包括:处理器、存储器;
所述存储器存储有可执行程序代码;
所述处理器用于调用所述存储器中的所述可执行程序代码,执行如本申请实施例第一方面任一项所描述的方法。
第四方面,本申请实施例提供一种计算机存储介质,所述计算机存储介质存储有程序,所述程序执行时包括如本申请实施例第一方面提供的方法。
附图说明
下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍;
图1.1是相关技术中一种“手机搬家功能”的设置过程界面示意图;
图1.2是相关技术中一种“手机搬家功能”的设置过程界面示意图;
图1.3是相关技术中一种“手机搬家功能”的设置过程界面示意图;
图2是本申请实施例公开的一种数据传输处理方法的流程示意图;
图3是本申请实施例公开的另一种数据传输处理方法的流程示意图;
图4是本申请实施例公开的另一种数据传输处理方法的流程示意图;
图5A是本申请实施例公开的一种移动终端的功能单元组成框图;
图5B是本申请实施例公开的一种移动终端的结构示意图;
图6是本申请实施例公开的另一种移动终端的结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有 其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
整体而言,数据迁移方案如图1.1至图1.3所示的方案,以手机搬家功能为例,具体的,用户使用手机搬家功能时,需要打开对应功能的应用程序(Application Programe,APP),具体是在两台手机上打开工具-备份与恢复,点击“手机搬家”虚拟功能按钮,如图1.1所示,分别在旧手机(如R7 PLUS)上选择“我是旧手机”,在新手机(如R9 PLUS)上选择“我是新手机”,如图1.2左图所示,旧手机自动调取相机功能并进入扫描二维码界面,新手机自动显示二维码,扫描成功之后,如图1.2右图所示,新手机上提示连接成功。如图1.3左图所示,旧手机则进入“选择传输的数据”界面(要迁移至新手机的数据),默认自动勾选系统数据、应用程度与存储数据(存储数据是部分默认选择,可手动选择添加)。点击按键“开始搬家”,开始数据搬家。
此外,本申请实施例所涉及到的移动终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为移动终端。
下面对本申请实施例进行详细介绍。
请参阅图2,图2是本申请实施例提供了一种数据传输处理方法的流程示意图,如图所示,本数据传输处理方法包括:
S201,移动终端在检测到针对目标数据的迁移操作指令时,获取所述移动终端的空闲存储空间大小;
其中,所述迁移操作指令例如可以是由针对移动终端显示的数据迁移功能按钮的选取操作触发的,该选取操作具体可以是触控操作、声控操作等。
S202,所述移动终端在检测到所述目标数据的大小大于所述空闲存储空间的大小时,根据所述空闲存储空间大小确定用于备份所述目标数据的参考字节;
举例来说,假设空闲存储空间的大小为1GB,则用于备份所述目标数据的参考字节例如可以是500MB,600MB等等。
S203,所述移动终端在检测到所述目标数据未完成全部备份时,对目标数据中的未备份数据进行数据备份,以生成字节小于或等于所述参考字节的备份数据包,传输所述备份数据包,并在所述备份数据包传输完成时删除所述移动终端存储的所述备份数据包。
在一个示例中,所述移动终端对目标数据中的未备份数据进行数据备份,以生成字节小于或等于所述参考字节的备份数据包的具体实现方式可以是:
若检测到所述目标数据中的未备份数据的字节大于或等于所述参考字节,则对目标数据中的部分未备份数据进行数据备份,以生成字节为所述参考字节的备份数据包;
若检测到所述目标数据中的未备份数据的字节小于所述参考字节,则对目标数据中的全部未备份数据进行数据备份,以生成字节小于所述参考字节的备份数据包。
可见,移动终端能够根据目标数据中的未备份数据的字节动态调整备份数据包的大小,在未备份数据的字节大于或等于参考字节时,调整备份数据包大小为参考字节,在未备份数据的字节小于参考字节时,直接备份全部未备份数据,在不超出空闲存储空间的前提下,确保每次备份尽可能多的数据,有利于缩短目标数据的总传输时长,提升数据传输效率。
在一个示例中,所述传输所述备份数据包,包括:
向与所述移动终端有线连接的目的终端传输所述备份数据包;或者,
向与所述移动终端无线连接的目的终端传输所述备份数据包;或者,
向与所述移动终端通信连接的数据转发服务器传输所述备份数据包。
可以看出,本申请实施例提供的移动终端在检测到针对目标数据的迁移操作指令时,首先获取移动终端的空闲存储空间大小,在检测到目标数据的大小大于空闲存储空间的大小时,根据空闲存储空间大小确定用于备份目标数据的参考字节,并在检测到目标数据未完成全部备份时,对目标数据中的未备份数据进行数据备份,以生成字节小于或等于参考字节的备份数据包,传输备份数据包,并在备份数据包传输完成时删除移动终端存储的备份数据包。可见,移动终端通过智能检测移动终端剩余存储空间大小,动态调整用于备份目标数据的参考字节,并在每次传输完一个备份数据包后及时删除移动终端侧存储的该备份数据包,确保有足够的剩余存储空间用于存储下一个备份数据包,从而实现存储空间不足的情况的大数据传输方案,有利于提升数据迁移的传输效率和成功率。
在一个示例中,所述移动终端在检测到所述目标数据未完成全部备份之前,还执行以下操作:
当检测到当前传输的备份数据包发生损坏时,删除所述当前传输的备份数据包,并标记所述当前传输的备份数据包对应的数据为未备份数据。
可见,本示例中,移动终端在检测到当前传输的备份数据包发生损坏时,可以及时删除当前传输的备份数据包,并标记所述当前传输的备份数据包对应的数据为未备份数据,避免以备份数据包损坏而造成已备份数据未传输成功的情况发生,有利于提高数据传输的稳定性。
在一个示例中,所述移动终端还执行以下操作:
在检测到所述目标数据完成全部备份时,输出数据完成传输的通知消息,并删除所述移动终端存储的所述目标数据。
与上述图2所示的实施例一致的,请参阅图3,图3是本申请实施例提供 的一种数据传输处理方法的流程示意图。如图所示,本数据传输处理方法包括:
S301,移动终端在检测到针对目标数据的迁移操作指令时,获取所述移动终端的空闲存储空间大小;
S302,所述移动终端在检测到所述目标数据的大小大于所述空闲存储空间的大小时,根据所述空闲存储空间大小确定用于备份所述目标数据的参考字节;
S303,所述移动终端当检测到当前传输的备份数据包发生损坏时,删除所述当前传输的备份数据包,并标记所述当前传输的备份数据包对应的数据为未备份数据。
S304,所述移动终端在检测到所述目标数据未完成全部备份时,若检测到所述目标数据中的未备份数据的字节大于或等于所述参考字节,则对目标数据中的部分未备份数据进行数据备份,以生成字节为所述参考字节的备份数据包;
S305,所述移动终端向与所述移动终端通信连接的目的终端传输所述备份数据包;
S306,所述移动终端在所述备份数据包传输完成时删除所述移动终端存储的所述备份数据包。
可以看出,本申请实施例提供的移动终端在检测到针对目标数据的迁移操作指令时,首先获取移动终端的空闲存储空间大小,在检测到目标数据的大小大于空闲存储空间的大小时,根据空闲存储空间大小确定用于备份目标数据的参考字节,并在检测到目标数据未完成全部备份时,对目标数据中的未备份数据进行数据备份,以生成字节小于或等于参考字节的备份数据包,传输备份数据包,并在备份数据包传输完成时删除移动终端存储的备份数据包。可见,移动终端通过智能检测移动终端剩余存储空间大小,动态调整用于备份目标数据的参考字节,并在每次传输完一个备份数据包后及时删除移动终端侧存储的该备份数据包,确保有足够的剩余存储空间用于存储下一个备份数据包,从而实现存储空间不足的情况的大数据传输方案,有利于提升数据迁移的传输效率和成功率。
此外,移动终端在检测到当前传输的备份数据包发生损坏时,可以及时删除当前传输的备份数据包,并标记所述当前传输的备份数据包对应的数据为未备份数据,避免以备份数据包损坏而造成已备份数据未传输成功的情况发生,有利于提高数据传输的稳定性。
与上述图3所示的实施例一致的,请参阅图4,图4是本申请实施例提供的另一种数据传输处理方法的流程示意图。如图所示,本数据传输处理方法包括:
S401,移动终端在检测到针对目标数据的迁移操作指令时,获取所述移动终端的空闲存储空间大小;
S402,所述移动终端在检测到所述目标数据的大小大于所述空闲存储空间的大小时,根据所述空闲存储空间大小确定用于备份所述目标数据的参考字节;
S403,所述移动终端当检测到当前传输的备份数据包发生损坏时,删除所述当前传输的备份数据包,并标记所述当前传输的备份数据包对应的数据为未备份数据。
S404,所述移动终端在检测到所述目标数据未完成全部备份时,若检测到所述目标数据中的未备份数据的字节小于所述参考字节,则对目标数据中的全部未备份数据进行数据备份,以生成字节小于所述参考字节的备份数据包。
S405,所述移动终端向与所述移动终端通信连接的目的终端传输所述备份数据包;
S406,所述移动终端在所述备份数据包传输完成时删除所述移动终端存储的所述备份数据包。
可以看出,本申请实施例提供的移动终端在检测到针对目标数据的迁移操作指令时,首先获取移动终端的空闲存储空间大小,在检测到目标数据的大小大于空闲存储空间的大小时,根据空闲存储空间大小确定用于备份目标数据的参考字节,并在检测到目标数据未完成全部备份时,对目标数据中的未备份数据进行数据备份,以生成字节小于或等于参考字节的备份数据包,传输备份数 据包,并在备份数据包传输完成时删除移动终端存储的备份数据包。可见,移动终端通过智能检测移动终端剩余存储空间大小,动态调整用于备份目标数据的参考字节,并在每次传输完一个备份数据包后及时删除移动终端侧存储的该备份数据包,确保有足够的剩余存储空间用于存储下一个备份数据包,从而实现存储空间不足的情况的大数据传输方案,有利于提升数据迁移的传输效率和成功率。
此外,移动终端在检测到当前传输的备份数据包发生损坏时,可以及时删除当前传输的备份数据包,并标记所述当前传输的备份数据包对应的数据为未备份数据,避免以备份数据包损坏而造成已备份数据未传输成功的情况发生,有利于提高数据传输的稳定性。
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,移动终端为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对移动终端进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用集成的单元的情况下,图5A示出了上述实施例中所涉及的数据传输处理装置的一种可能的结构示意图。数据传输处理装置500包括:处理单元502和通信单元503。处理单元502用于对数据传输处理装置的动作进行控制 管理,例如,处理单元502用于支持数据传输处理装置执行图2中的步骤S201至S203、图3中的步骤S301至306以及图4中的步骤S401至S406和/或用于本文所描述的技术的其它过程。通信单元503用于支持数据传输处理装置与其他设备的通信,例如与移动通信网络中的基站之间的通信。数据传输处理装置还可以包括存储单元501,用于存储数据传输处理装置的程序代码和数据。
其中,处理单元502可以是处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信单元503可以是通信接口、收发器、收发电路等,其中,通信接口是统称,可以包括一个或多个接口。存储单元501可以是存储器。
当处理单元502为处理器,通信单元503为通信接口,存储单元501为存储器时,本申请实施例所涉及的数据传输处理装置可以为图5B所示的数据传输处理装置。
参阅图5B所示,该数据传输处理装置510包括:处理器512、通信接口513、存储器511。可选的,数据传输处理装置510还可以包括总线515。其中,通信接口513、处理器512以及存储器511可以通过总线515相互连接;总线515可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。所述总线515可以分为地址总线、数据总线、控制总线等。为便于表示,图5B中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
上述图5A或图5B所示的数据传输处理装置也可以理解为一种用于数据传输处理装置的装置,本申请实施例不限定。
本申请实施例还提供了另一种移动终端,如图6所示,为了便于说明,仅 示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以移动终端为手机为例:
图6示出的是与本申请实施例提供的移动终端相关的手机的部分结构的框图。参考图6,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(Wireless Fidelity,WiFi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图6中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图6对手机的各个构成部件进行具体的介绍:
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(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)等。
存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(参考字节的确定等)等;存储数据区可存储根据手机的使用所创建的数据(比如备份数据包等)等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户 设置以及功能控制有关的键信号输入。具体地,输入单元930可包括指纹识别模组931以及其他输入设备932。指纹识别模组931,可采集用户在其上的指纹数据。除了指纹识别模组931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于触控屏、物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示屏941,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏941。虽然在图6中,指纹识别模组931与显示屏941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将指纹识别模组931与显示屏941集成而实现手机的输入和播放功能。
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏941的亮度,接近传感器可在手机移动到耳边时,关闭显示屏941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收 发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个处理单元;优选的,处理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。
手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。
前述图2~图3所示的实施例中,各步骤方法流程可以基于该手机的结构实现。
前述图5A所示的实施例中,各单元功能可以基于该手机的结构实现。
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种数据传输处理方法的部分或全部步骤。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、 磁盘或光盘等。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种数据传输处理方法,其特征在于,包括:
    在检测到针对目标数据的迁移操作指令时,获取所述移动终端的空闲存储空间大小;
    在检测到所述目标数据的大小大于所述空闲存储空间的大小时,根据所述空闲存储空间大小确定用于备份所述目标数据的参考字节;
    在检测到所述目标数据未完成全部备份时,对目标数据中的未备份数据进行数据备份,以生成字节小于或等于所述参考字节的备份数据包,传输所述备份数据包,并在所述备份数据包传输完成时删除所述移动终端存储的所述备份数据包。
  2. 根据权利要求1所述的方法,其特征在于,所述对目标数据中的未备份数据进行数据备份,以生成字节小于或等于所述参考字节的备份数据包,包括:
    若检测到所述目标数据中的未备份数据的字节大于或等于所述参考字节,则对目标数据中的部分未备份数据进行数据备份,以生成字节为所述参考字节的备份数据包;
    若检测到所述目标数据中的未备份数据的字节小于所述参考字节,则对目标数据中的全部未备份数据进行数据备份,以生成字节小于所述参考字节的备份数据包。
  3. 根据权利要求1或2任一项所述的方法,其特征在于,所述传输所述备份数据包,包括:
    向与所述移动终端有线连接的目的终端传输所述备份数据包;或者,
    向与所述移动终端无线连接的目的终端传输所述备份数据包。
  4. 根据权利要求1或2任一项所述的方法,其特征在于,所述传输所述备份数据包,包括:
    向与所述移动终端通信连接的数据转发服务器传输所述备份数据包。
  5. 根据权利要求3或4所述的方法,其特征在于,所述在检测到所述目标数据未完成全部备份之前,所述方法还包括:
    当检测到当前传输的备份数据包发生损坏时,删除所述当前传输的备份数据包,并标记所述当前传输的备份数据包对应的数据为未备份数据。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:
    在检测到所述目标数据完成全部备份时,输出数据完成传输的通知消息,并删除所述移动终端存储的所述目标数据。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述迁移操作指令由针对所述移动终端显示的数据迁移功能按钮的选取操作触发。
  8. 根据权利要求7所述的方法,其特征在于,所述选取操作包括触控操作、声控操作。
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述空闲存储空间的大小为1GB,所述备份所述目标数据的参考字节包括500MB或者600MB。
  10. 一种数据传输处理装置,其特征在于,包括:处理单元和通信单元,
    所述处理单元用于在检测到针对目标数据的迁移操作指令时,获取所述移动终端的空闲存储空间大小;以及用于在检测到所述目标数据的大小大于所述空闲存储空间的大小时,根据所述空闲存储空间大小确定用于备份所述目标数据的参考字节;以及用于在检测到所述目标数据未完成全部备份时,对目标数据中的未备份数据进行数据备份,以生成字节小于或等于所述参考字节的备份数据包,通过所述通信单元传输所述备份数据包,并在所述备份数据包传输完成时删除所述移动终端存储的所述备份数据包。
  11. 根据权利要求10所述的数据传输处理装置,其特征在于,在所述对目标数据中的未备份数据进行数据备份,以生成字节小于或等于所述参考字节的备份数据包方面,所述处理单元具体用于:若检测到所述目标数据中的未备份数据的字节大于或等于所述参考字节,则对目标数据中的部分未备份数据进行数据备份,以生成字节为所述参考字节的备份数据包;以及若检测到所述目标数据中的未备份数据的字节小于所述参考字节,则对目标数据中的全部未备份数据进行数据备份,以生成字节小于所述参考字节的备份数据包。
  12. 根据权利要求10或11任一项所述的数据传输处理装置,其特征在于, 在所述传输所述备份数据包方面,所述处理单元具体用于:
    通过所述通信单元向与所述移动终端有线连接的目的终端传输所述备份数据包;或者,
    通过所述通信单元向与所述移动终端无线连接的目的终端传输所述备份数据包。
  13. 根据权利要求10或11任一项所述的数据传输处理装置,其特征在于,在所述传输所述备份数据包方面,所述处理单元具体用于:
    通过所述通信单元向与所述移动终端通信连接的数据转发服务器传输所述备份数据包。
  14. 根据权利要求12或13所述的数据传输处理装置,其特征在于,所述处理单元还用于在检测到所述目标数据未完成全部备份之前,当检测到当前传输的备份数据包发生损坏时,删除所述当前传输的备份数据包,并标记所述当前传输的备份数据包对应的数据为未备份数据。
  15. 根据权利要求10-14任一项所述的数据传输处理装置,其特征在于,所述处理单元还用于:在检测到所述目标数据完成全部备份时,输出数据完成传输的通知消息,并删除所述移动终端存储的所述目标数据。
  16. 根据权利要求10-15任一项所述的数据传输处理装置,其特征在于,所述迁移操作指令由针对所述移动终端显示的数据迁移功能按钮的选取操作触发。
  17. 根据权利要求16所述的数据传输处理装置,其特征在于,所述选取操作包括触控操作、声控操作。
  18. 根据权利要求10-17任一项所述的数据传输处理装置,其特征在于,所述空闲存储空间的大小为1GB,所述备份所述目标数据的参考字节包括500MB或者600MB。
  19. 一种移动终端,其特征在于,包括:
    处理器、存储器;
    所述存储器存储有可执行程序代码;
    所述处理器用于调用所述存储器中的所述可执行程序代码,执行如权利要求1-9任一项所描述的方法。
  20. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有程序,所述程序执行时包括如权利要求1-9任一项所述的方法。
PCT/CN2017/094239 2016-09-14 2017-07-25 数据传输处理方法及相关设备 WO2018049921A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610826084.3 2016-09-14
CN201610826084.3A CN106484326B (zh) 2016-09-14 2016-09-14 一种数据传输处理方法及移动终端

Publications (1)

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

Family

ID=58267244

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/094239 WO2018049921A1 (zh) 2016-09-14 2017-07-25 数据传输处理方法及相关设备

Country Status (2)

Country Link
CN (1) CN106484326B (zh)
WO (1) WO2018049921A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484562B (zh) * 2016-09-14 2019-08-23 Oppo广东移动通信有限公司 一种数据传输处理方法及终端设备
CN106484326B (zh) * 2016-09-14 2019-08-27 Oppo广东移动通信有限公司 一种数据传输处理方法及移动终端
CN107688513A (zh) * 2017-09-02 2018-02-13 长沙曙通信息科技有限公司 一种容灾备份系统数据恢复预判实现方法
CN108875421A (zh) * 2018-04-28 2018-11-23 置富科技(深圳)股份有限公司 拷贝机、数据管理方法、存储介质及数据销毁、备份设备
CN109388629B (zh) * 2018-09-29 2021-04-27 武汉斗鱼网络科技有限公司 一种数组规整方法、装置、终端及可读介质
CN111258821B (zh) * 2020-03-23 2023-08-18 重庆忽米网络科技有限公司 一种基于云计算的备份数据快速提取方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577280A (zh) * 2012-07-30 2014-02-12 北京网秦天下科技有限公司 一种数据备份的方法和系统
US20140274207A1 (en) * 2013-03-14 2014-09-18 Sheng-Yuan SHIH Data transfer device for mobile terminal
CN104166621A (zh) * 2014-08-12 2014-11-26 联想(北京)有限公司 一种数据处理方法及装置
CN104657043A (zh) * 2013-11-19 2015-05-27 中兴通讯股份有限公司 一种多媒体数据备份方法、用户终端及同步装置
CN105786399A (zh) * 2014-12-24 2016-07-20 阿里巴巴集团控股有限公司 一种数据转存方法、装置及系统
CN106484326A (zh) * 2016-09-14 2017-03-08 广东欧珀移动通信有限公司 一种数据传输处理方法及移动终端

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014103235A1 (ja) * 2012-12-25 2014-07-03 日本電気株式会社 演算装置及び演算方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577280A (zh) * 2012-07-30 2014-02-12 北京网秦天下科技有限公司 一种数据备份的方法和系统
US20140274207A1 (en) * 2013-03-14 2014-09-18 Sheng-Yuan SHIH Data transfer device for mobile terminal
CN104657043A (zh) * 2013-11-19 2015-05-27 中兴通讯股份有限公司 一种多媒体数据备份方法、用户终端及同步装置
CN104166621A (zh) * 2014-08-12 2014-11-26 联想(北京)有限公司 一种数据处理方法及装置
CN105786399A (zh) * 2014-12-24 2016-07-20 阿里巴巴集团控股有限公司 一种数据转存方法、装置及系统
CN106484326A (zh) * 2016-09-14 2017-03-08 广东欧珀移动通信有限公司 一种数据传输处理方法及移动终端

Also Published As

Publication number Publication date
CN106484326A (zh) 2017-03-08
CN106484326B (zh) 2019-08-27

Similar Documents

Publication Publication Date Title
WO2018049921A1 (zh) 数据传输处理方法及相关设备
US10649720B2 (en) Sound effect configuration method and system and related device
WO2018049913A1 (zh) 数据传输方法及相关设备
WO2018049887A1 (zh) 数据传输处理方法及终端设备
WO2018049912A1 (zh) 数据传输方法及相关设备
WO2018049897A1 (zh) 数据备份方法及设备
TW201519073A (zh) 一種終端裝置快捷回覆操作方法和終端裝置
WO2018049881A1 (zh) 一种数据迁移方法及装置
CN106649010B (zh) 一种终端设备测试方法及终端设备
WO2015062235A1 (zh) 电子设备、电池保护方法和装置
WO2015058617A1 (zh) 视频帧存储管理方法、视频服务器及通信系统
WO2018049934A1 (zh) 一种数据迁移的方法及终端
WO2018166168A1 (zh) 屏幕背光控制方法及移动终端
WO2018103443A1 (zh) 一种网络定位方法及终端设备
WO2018049903A1 (zh) 数据迁移方法及相关设备
WO2018049935A1 (zh) 一种数据迁移的方法及终端
WO2018219119A1 (zh) 应用功能的控制方法及相关产品
WO2018049885A1 (zh) 一种数据迁移方法及装置
WO2018049904A1 (zh) 数据迁移方法及相关设备
WO2018049900A1 (zh) 数据迁移方法及相关设备
WO2018049894A1 (zh) 数据传输方法及设备
US10687207B2 (en) Method for data migration and terminal
WO2018049884A1 (zh) 一种数据迁移方法及装置
WO2018049905A1 (zh) 数据迁移方法及相关设备
TW201525698A (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: 17850123

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

Country of ref document: EP

Kind code of ref document: A1