CN106484562B - Data transmission processing method and terminal equipment - Google Patents
Data transmission processing method and terminal equipment Download PDFInfo
- Publication number
- CN106484562B CN106484562B CN201610825484.2A CN201610825484A CN106484562B CN 106484562 B CN106484562 B CN 106484562B CN 201610825484 A CN201610825484 A CN 201610825484A CN 106484562 B CN106484562 B CN 106484562B
- Authority
- CN
- China
- Prior art keywords
- data
- backup
- target
- terminal device
- backup data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 43
- 238000003672 processing method Methods 0.000 title claims abstract description 12
- 238000013508 migration Methods 0.000 claims abstract description 56
- 230000005012 migration Effects 0.000 claims abstract description 56
- 238000000034 method Methods 0.000 claims abstract description 32
- 238000012545 processing Methods 0.000 claims description 21
- 238000012544 monitoring process Methods 0.000 claims description 7
- 238000001514 detection method Methods 0.000 claims description 6
- 230000006399 behavior Effects 0.000 claims 1
- 230000006870 function Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 9
- 230000003139 buffering effect Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 4
- 238000012546 transfer Methods 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1466—Management of the backup or restore process to make the backup process non-disruptive
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
- G06F11/1451—Management of the data involved in backup or backup restore by selection of backup contents
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本发明涉及数据传输技术领域,尤其涉及一种数据传输处理方法及终端设备。The present invention relates to the technical field of data transmission, and in particular, to a data transmission processing method and terminal device.
背景技术Background technique
随着智能手机等终端设备的普及,人们更换手机等终端设备的频率越来越高,因此出现了将旧手机中的资料导入到新手机中的需求,从而可以避免在换机过程中需要重新安装应用程序等的繁琐操作。目前,可以通过“手机搬家”应用程序将一台手机中的数据迁移到另一台手机上。具体实现过程为:旧手机先将数据备份到本地,然后再将备份好的数据传输到新手机,新手机接收到数据后进行恢复。With the popularization of terminal devices such as smart phones, the frequency of replacing terminal devices such as mobile phones is getting higher and higher, so there is a need to import data from old mobile phones into new mobile phones, so as to avoid the need to renew the phone during the replacement process. The tedious operation of installing applications, etc. Currently, it is possible to migrate data from one phone to another via the "Phone Move" app. The specific implementation process is as follows: the old mobile phone first backs up the data locally, and then transfers the backed up data to the new mobile phone, and the new mobile phone restores the data after receiving the data.
但是,在使用过程中发现,如果旧手机的存储空间不足,将会导致备份失败,进而导致手机搬家失败,降低了数据传输的效率。However, during use, it is found that if the storage space of the old mobile phone is insufficient, the backup will fail, which will lead to the failure of the mobile phone to move and reduce the efficiency of data transmission.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种数据传输处理方法及终端设备,在终端设备的空闲存储空间不足时,不断的选取部分数据进行备份传输,直到所有目标数据均备份传输完成,提高了数据传输的效率。Embodiments of the present invention provide a data transmission processing method and a terminal device. When the free storage space of the terminal device is insufficient, part of the data is continuously selected for backup transmission until all target data are backed up and transmitted, thereby improving the efficiency of data transmission. .
一方面本发明实施例提供了一种数据传输处理方法,包括:On the one hand, an embodiment of the present invention provides a data transmission processing method, including:
终端设备接收用户输入的迁移操作指令;The terminal device receives the migration operation instruction input by the user;
在接收到所述用户输入的迁移操作指令后,将所述迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存所述备份数据包;After receiving the migration operation instruction input by the user, generate a backup data package for part of the data in the target data specified by the migration operation instruction, and cache the backup data package;
将所述备份数据包发往目标终端设备,并删除已发送的所述备份数据包,直到所述目标数据的所有备份数据包均发往所述目标终端设备。The backup data packets are sent to the target terminal device, and the sent backup data packets are deleted until all the backup data packets of the target data are sent to the target terminal device.
作为一种可选的实施方式,所述在接收到所述用户输入的迁移操作指令后,所述方法还包括:As an optional implementation manner, after receiving the migration operation instruction input by the user, the method further includes:
获取所述终端设备的空闲存储空间大小;obtaining the size of the free storage space of the terminal device;
若所述目标数据的大小大于所述空闲存储空间大小,则根据所述空闲存储空间大小确定用于备份所述目标数据的参考空间阈值,所述参考空间阈值小于或等于所述空闲存储空间大小。If the size of the target data is greater than the size of the free storage space, a 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 .
作为一种可选的实施方式,所述将所述迁移操作指令指定的目标数据中的部分数据生成备份数据包,包括:As an optional implementation manner, generating a backup data package for part of the data in the target data specified by the migration operation instruction includes:
按照所述迁移操作指令指定的目标数据中的各个文件的优先级等级从高到低的顺序对所述目标数据进行数据备份。Data backup is performed on the target data according to the priority level of each file in the target data specified by the migration operation instruction in descending order.
作为一种可选的实施方式,在所述根据所述空闲存储空间大小确定用于备份所述目标数据的参考空间阈值之后,以及在所述将所述备份数据包发往目标终端设备之前,所述方法还包括:As an optional implementation manner, after the reference space threshold for backing up the target data is determined according to the size of the free storage space, and before the backup data packet is sent to the target terminal device, The method also includes:
监测缓存的所述备份数据包的大小;monitoring the size of the cached backup data packets;
若所述备份数据包的大小等于所述参考空间阈值,则停止缓存所述备份数据包的操作,并执行所述将所述备份数据包发往目标终端设备。If the size of the backup data packet is equal to the reference space threshold, the operation of buffering the backup data packet is stopped, and the sending of the backup data packet to the target terminal device is performed.
作为一种可选的实施方式,在所述停止缓存所述备份数据包的操作之后,所述方法还包括:As an optional implementation manner, after the operation of stopping the buffering of the backup data packet, the method further includes:
为所述目标数据中已经备份的数据添加标识信息,所述标识信息用于区分所述目标数据中的已备份数据和未备份数据。Identification information is added to the data that has been backed up in the target data, where the identification information is used to distinguish between the backed up data and the non-backed up data in the target data.
作为一种可选的实施方式,所述方法还包括:As an optional embodiment, the method further includes:
若检测到当前传输的所述备份数据包发生损坏,则删除当前传输的所述备份数据包,并标记当前传输的所述备份数据包对应的数据为未备份数据。If 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.
本发明实施例二方面提供了一种终端设备,包括:A second aspect of the embodiment of the present invention provides a terminal device, including:
接收单元,用于接收用户输入的迁移操作指令;a receiving unit, configured to receive a migration operation instruction input by a user;
备份缓存单元,用于在接收到所述用户输入的迁移操作指令后,将所述迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存所述备份数据包;a backup cache unit, configured to generate a backup data packet from part of the data in the target data specified by the migration operation instruction after receiving the migration operation instruction input by the user, and cache the backup data packet;
发送处理单元,用于将所述备份数据包发往目标终端设备,并删除已发送的所述备份数据包,直到所述目标数据的所有备份数据包均发往所述目标终端设备。A sending processing unit, configured to send the backup data packets to the target terminal device, and delete the sent backup data packets until all the backup data packets of the target data are sent to the target terminal device.
作为一种可选的实施方式,所述终端设备还包括:As an optional implementation manner, the terminal device further includes:
获取单元,用于获取所述终端设备的空闲存储空间大小;an obtaining unit, configured to obtain the size of the free storage space of the terminal device;
确定单元,用于在所述目标数据的大小大于所述空闲存储空间大小时,根据所述空闲存储空间大小确定用于备份所述目标数据的参考空间阈值,所述参考空间阈值小于或等于所述空闲存储空间大小。A determination unit, configured to determine a reference space threshold for backing up the target data according to the size of the free 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 Describe the size of free storage space.
作为一种可选的实施方式,所述备份缓存单元,具体用于按照所述迁移操作指令指定的目标数据中的各个文件的优先级等级从高到低的顺序对所述目标数据进行数据备份。As an optional implementation manner, the backup cache unit is specifically configured to perform data backup on the target data in descending order of priority levels of each file in the target data specified by the migration operation instruction .
作为一种可选的实施方式,所述终端设备还包括:As an optional implementation manner, the terminal device further includes:
监测单元,用于监测缓存的所述备份数据包的大小;a monitoring unit for monitoring the size of the cached backup data packets;
备份停止单元,用于在所述备份数据包的大小等于所述参考空间阈值时,停止缓存所述备份数据包的操作,并驱动所述发送处理单元执行所述将所述备份数据包发往目标终端设备。A backup stopping unit, 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 sending processing unit to execute the sending of the backup data packet to target terminal device.
作为一种可选的实施方式,所述终端设备还包括:As an optional implementation manner, the terminal device further includes:
标识添加单元,用于为所述目标数据中已经备份的数据添加标识信息,所述标识信息用于区分所述目标数据中的已备份数据和未备份数据。An identification adding unit, configured to add identification information to data that has been backed up in the target data, where the identification information is used to distinguish backed up data and unbacked up data in the target data.
作为一种可选的实施方式,所述终端设备还包括:As an optional implementation manner, the terminal device further includes:
检测处理单元,用于在检测到当前传输的所述备份数据包发生损坏时,删除当前传输的所述备份数据包,并标记当前传输的所述备份数据包对应的数据为未备份数据。The detection processing unit is configured to delete the currently transmitted backup data packet when it is detected that the currently transmitted backup data packet is damaged, and mark the data corresponding to the currently transmitted backup data packet as unbacked data.
三方面本发明实施例还提供了一种终端设备,包括:处理器和存储器:Three aspects The embodiment of the present invention further provides a terminal device, including: a processor and a memory:
所述存储器存储有可执行程序代码;The memory stores executable program codes;
所述处理器用于调用所述存储器中存储的所述可执行程序代码,执行本发明实施例提供的任意一项所述的方法。The processor is configured to call the executable program code stored in the memory to execute any one of the methods provided in the embodiments of the present invention.
从以上技术方案可以看出,本发明实施例具有以下优点:在接收到用户输入的迁移操作指令后,将该迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存上述备份数据包,然后将缓存的上述备份数据包发往目标终端设备,并删除已发送的上述备份数据包,直到目标数据的所有备份数据包均发往目标终端设备。在终端设备的空闲存储空间不足时,不断的选取部分数据进行备份传输,直到所有目标数据均备份传输完成,提高了数据传输的效率。It can be seen from the above technical solutions that the embodiment of the present invention has the following advantages: after receiving the migration operation instruction input by the user, a backup data package is generated for part of the data in the target data specified by the migration operation instruction, and the backup data package is cached , and then send the cached backup data packets to the target terminal device, and delete the sent backup data packets until all the backup data packets of the target data are sent to the target terminal device. When the free storage space of the terminal device is insufficient, some data are continuously selected for backup transmission until all target data are backed up and transmitted, which improves the efficiency of data transmission.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为本发明实施例公开的一种数据传输处理方法的流程示意图;FIG. 1 is a schematic flowchart of a data transmission processing method disclosed in an embodiment of the present invention;
图2为本发明实施例公开的另一种数据传输处理方法的流程示意图;2 is a schematic flowchart of another data transmission processing method disclosed in an embodiment of the present invention;
图3为本发明实施例公开的一种数据传输的终端设备的结构示意图;3 is a schematic structural diagram of a terminal device for data transmission disclosed in an embodiment of the present invention;
图4为本发明实施例公开的另一种数据传输的终端设备的结构示意图;4 is a schematic structural diagram of another terminal device for data transmission disclosed in an embodiment of the present invention;
图5为本发明实施例公开的一种终端设备的结构示意图;FIG. 5 is a schematic structural diagram of a terminal device disclosed in an embodiment of the present invention;
图6为本发明实施例公开的另一种终端设备的结构示意图。FIG. 6 is a schematic structural diagram of another terminal device disclosed in an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. . Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明的说明书和权利要求书及附图中的术语“第一”和“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first" and "second" in the description and claims of the present invention and the drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
在现有技术中,以手机搬家功能为例,具体的,用户使用手机搬家功能时,需要打开对应功能的应用程序(Application Programe,APP),具体是在两台手机上打开工具-备份与恢复,点击“手机搬家”虚拟功能按钮,分别在旧手机(如R7PLUS)上选择“我是旧手机”,在新手机(如R9PLUS)上选择“我是新手机”,旧手机自动调取相机功能并进入扫描二维码界面,新手机自动显示二维码,扫描成功之后,新手机上提示连接成功。旧手机则进入“选择传输的数据”界面(要迁移至新手机的数据),默认自动勾选系统数据、应用程序与存储数据(存储数据是部分默认选择,可手动选择添加)。点击按键“开始搬家”,开始数据搬家。In the prior art, taking the mobile phone moving function as an example, specifically, when a user uses the mobile phone moving function, he needs to open an application program (Application Programe, APP) corresponding to the function, specifically, open the tool-backup and restore on two mobile phones , click the virtual function button of "Mobile phone move", select "I am an old mobile phone" on the old mobile phone (such as R7PLUS), and select "I am a new mobile phone" on the new mobile phone (such as R9PLUS), the old mobile phone will automatically call the camera function And enter the scanning QR code interface, the new phone will automatically display the QR code, after the scanning is successful, the new phone will prompt that the connection is successful. The old mobile phone enters the "Select data to transfer" interface (the data to be migrated to the new mobile phone), and the system data, applications and storage data are automatically checked by default (the storage data is part of the default selection, and can be manually selected and added). Click the button "Start moving" to start data moving.
此外,本发明实施例所涉及到的终端设备可以包括运行Android操作系统、iOS操作系统、Windows操作系统或其他操作系统的终端设备,例如移动电话、移动电脑、平板电脑、台式电脑、个人数字助理(Personal Digital Assistant,PDA)、智能手表、智能手环等终端设备,本发明实施例后续不作复述。In addition, the terminal devices involved in the embodiments of the present invention may include terminal devices 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. Terminal devices such as (Personal Digital Assistant, PDA), smart watches, smart bracelets, etc., will not be repeated in the following embodiments of the present invention.
本发明实施例提供了一种数据传输处理方法及终端设备,在终端设备的空闲存储空间不足时,不断的选取部分数据进行备份传输,直到所有目标数据均备份传输完成,提高了数据传输的效率。以下分别进行详细说明。Embodiments of the present invention provide a data transmission processing method and a terminal device. When the free storage space of the terminal device is insufficient, part of the data is continuously selected for backup transmission until all target data are backed up and transmitted, thereby improving the efficiency of data transmission. . Each of them will be described in detail below.
请参阅图1,图1为本发明实施例公开的一种数据传输处理方法的流程示意图。其中,图1所示的数据传输处理方法可以包括以下步骤:Please refer to FIG. 1 , which is a schematic flowchart of a data transmission processing method disclosed in an embodiment of the present invention. Wherein, the data transmission processing method shown in FIG. 1 may include the following steps:
101:终端设备接收用户输入的迁移操作指令;101: The terminal device receives the migration operation instruction input by the user;
其中,上述迁移操作指令例如可以是由针对终端设备显示的数据迁移功能按钮的选取操作触发的,该选取操作具体可以是触控操作、声控操作等。The above-mentioned migration operation instruction may be triggered by, for example, a selection operation of a data migration function button displayed on the terminal device, and the selection operation may specifically be a touch operation, a voice control operation, or the like.
102:在接收到用户输入的迁移操作指令后,将上述迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存上述备份数据包;102: After receiving the migration operation instruction input by the user, generate a backup data package for part of the data in the target data specified by the migration operation instruction, and cache the backup data package;
其中,迁移操作指令指定的目标数据由用户根据终端设备中显示的待传输文件列表进行选取。The target data specified by the migration operation instruction is selected by the user according to the list of files to be transferred displayed in the terminal device.
其中,在接收到用户输入的迁移操作指令后,将迁移操作指令指定的目标数据中的部分数据生成备份数据包,并缓存该备份数据包,可以避免终端设备中空闲存储空间不足从而导致备份失败的现象。Among them, after receiving the migration operation instruction input by the user, a backup data packet is generated for part of the data in the target data specified by the migration operation instruction, and the backup data packet is cached, which can avoid backup failure due to insufficient free storage space in the terminal device The phenomenon.
作为一种可选的实施方式,在接收到用户输入的迁移操作指令后,还包括:As an optional implementation manner, after receiving the migration operation instruction input by the user, the method further includes:
获取终端设备的空闲存储空间大小;Get the size of the free storage space of the terminal device;
若上述目标数据的大小大于空闲存储空间大小,则根据上述空闲存储空间大小确定用于备份上述目标数据的参考空间阈值,该参考空间阈值小于或等于上述空闲存储空间大小。If the size of the target data is greater than the size of the free storage space, a 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.
需要说明的是,上述将迁移操作指令指定的目标数据中的部分数据生成备份数据包的操作与获取终端设备的空闲存储空间大小的操作同时执行,对数据包进行缓存的操作会花费一定的时间,因此,备份操作与获取空闲存储空间大小的操作同时执行可以减少数据传输的时间。在需要传输的目标数据的大小大于空闲存储空间大小时,根据空闲存储空间大小确定用于备份上述目标数据的参考空间阈值,该参考空间阈值小于或等于上述空闲存储空间大小,在对目标数据中的部分数据进行备份的过程中,实时监测备份数据包的大小,直到备份数据包的大小等于参考空间阈值时,则停止备份。It should be noted that the above-mentioned operation of generating a backup data packet from part of the target data specified by the migration operation instruction and the operation of obtaining the free storage space of the terminal device are performed at the same time, and the operation of buffering the data packet will take a certain amount of time. , therefore, performing the backup operation at the same time as the operation to obtain the size of the free storage space can reduce the data transfer time. When the size of the target data to be transmitted is greater than the size of the free storage space, a 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. During the process of backing up part of the data, the size of the backup data package is monitored in real time, and the backup is stopped until the size of the backup data package is equal to the reference space threshold.
举例来说,假设空闲存储空间的大小为1GB,则用于备份上述目标数据的参考空间阈值例如可以是500MB,600MB等等。在备份数据包的大小达到参考空间阈值时,则停止备份。可以采用如下方式实现:For example, assuming that the size of the free storage space is 1GB, the reference space threshold for backing up the above target data may be, for example, 500MB, 600MB, and so on. When the size of the backup data package reaches the reference space threshold, the backup is stopped. This can be achieved in the following ways:
监测缓存的备份数据包的大小;Monitor the size of cached backup packets;
若上述备份数据包的大小等于上述参考空间阈值,则停止缓存备份数据包的操作,并执行将备份数据包发往目标终端设备的操作。If the size of the backup data packet is equal to the reference space threshold, 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.
作为一种可选的实施方式,在停止缓存上述备份数据包的操作之后,还包括以下操作:As an optional implementation manner, after stopping the operation of caching the above-mentioned backup data packets, the following operations are further included:
为上述目标数据中已经备份的数据添加标识信息,该标识信息用于区分目标数据中的已备份数据和未备份数据。Identification information is added to the data that has been backed up in the above target data, where the identification information is used to distinguish the backed up data and the unbacked up data in the target data.
其中,可以为已经备份的数据添加标识信息,便于区分已备份数据和未备份数据,避免重复备份。Among them, identification information can be added to the data that has been backed up, so as to facilitate the distinction between the data that has been backed up and the data that have not been backed up, and avoid repeated backups.
103:将上述备份数据包发往目标终端设备,并删除已发送的上述备份数据包,直到上述目标数据的所有备份数据包均发往目标终端设备。103: Send the above-mentioned backup data packets to the target terminal device, and delete the above-mentioned backup data packets that have been sent, until all the above-mentioned backup data packets of the target data are sent to the target terminal device.
其中,将备份数据包发往目标终端设备后,将终端设备中缓存的备份数据包删除,从而腾出终端设备中的空闲存储空间,进而根据目标数据中的标识信息对未备份数据进行备份传输的操作,直到目标数据中的所有备份数据包均发往目标终端设备。Among them, after the backup data packet is sent to the target terminal device, the backup data packet cached in the terminal device is deleted, so as to free up the free storage space in the terminal device, and then the unbacked data is backed up and transmitted according to the identification information in the target data. operation until all backup packets in the target data are sent to the target terminal device.
作为一种可选的实施方式,在对备份数据包进行传输的过程中,还可以执行以下操作:As an optional implementation manner, in the process of transmitting the backup data package, the following operations may also be performed:
检测备份数据包是否发生损坏;Detect whether the backup data package is damaged;
若检测到当前传输的备份数据包发生损坏,则删除当前传输的备份数据包,并标记当前传输的备份数据包对应的数据为未备份数据。If 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.
可见,在本实施例中,终端设备在检测到当前传输的备份数据包发生损坏时,可以及时删除当前传输的备份数据包,并标记当前传输的备份数据包对应的数据为未备份数据,避免已备份数据包损坏而造成已备份数据未传输成功的情况发生,有利于提高数据传输的稳定性。It can be seen that in this embodiment, when the terminal device detects that the currently transmitted backup data packet is damaged, it 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 to avoid The situation in which the backed up data package is damaged and the backed up data is not successfully transmitted occurs, which is beneficial to improve the stability of data transmission.
在图1所描述的方法中,在接收到用户输入的迁移操作指令后,将该迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存上述备份数据包,然后将缓存的上述备份数据包发往目标终端设备,并删除已发送的上述备份数据包,直到目标数据的所有备份数据包均发往目标终端设备。在终端设备的空闲存储空间不足时,不断的选取部分数据进行备份传输,直到所有目标数据均备份传输完成,提高了数据传输的效率。In the method described in FIG. 1 , after receiving the migration operation instruction input by the user, a backup data package is generated for part of the data in the target data specified by the migration operation instruction, the backup data package is cached, and then the cached backup data package is cached. The data packets are sent to the target terminal device, and the above-mentioned backup data packets that have been sent are deleted until all the backup data packets of the target data are sent to the target terminal device. When the free storage space of the terminal device is insufficient, some data are continuously selected for backup transmission until all target data are backed up and transmitted, which improves the efficiency of data transmission.
请参阅图2,图2为本发明实施例公开的另一种数据传输处理方法的流程示意图。如图2所示,该方法可以包括以下步骤:Please refer to FIG. 2 , which is a schematic flowchart of another data transmission processing method disclosed in an embodiment of the present invention. As shown in Figure 2, the method may include the following steps:
201:终端设备接收用户输入的迁移操作指令;201: The terminal device receives the migration operation instruction input by the user;
202:在接收到用户输入的迁移操作指令后,将迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存备份数据包,同时获取终端设备的空闲存储空间大小;202: After receiving the migration operation instruction input by the user, generate a backup data packet for part of the data in the target data specified by the migration operation instruction, cache the backup data packet, and simultaneously obtain the size of the free storage space of the terminal device;
其中,将迁移操作指令指定的目标数据中的部分数据生成备份数据包,具体包括:The backup data package is generated from part of the data in the target data specified by the migration operation instruction, which specifically includes:
按照迁移操作指令指定的目标数据中的各个文件的优先级等级从高到低的顺序对目标数据进行数据备份。The target data is backed up according to the priority levels of each file in the target data specified by the migration operation instruction in descending order.
例如,可以优先备份通讯录,系统应用程序,短信消息等。For example, contacts, system applications, SMS messages, etc. can be backed up in priority.
203:若目标数据的大小大于空闲存储空间大小,则根据空闲存储空间大小确定用于备份目标数据的参考空间阈值,该参考空间阈值小于或等于空闲存储空间大小;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;
204:监测缓存的备份数据包的大小;204: Monitor the size of the cached backup data packet;
205:若备份数据包的大小等于参考空间阈值,则停止缓存备份数据包的操作;205: If the size of the backup data package is equal to the reference space threshold, stop the operation of caching the backup data package;
206:将备份数据包发往目标终端设备,并删除已发送的备份数据包;206: Send the backup data package to the target terminal device, and delete the sent backup data package;
207:为目标数据中已经备份的数据添加标识信息,该标识信息用于区分目标数据中的已备份数据和未备份数据;207: Add identification information to the backed up data in the target data, where the identification information is used to distinguish the backed up data and the unbacked up data in the target data;
208:若检测到当前传输的备份数据包发生损坏,则删除当前传输的备份数据包,并标记当前传输的备份数据包对应的数据为未备份数据;208: If it is detected that the currently transmitted backup data packet is damaged, delete the currently transmitted backup data packet, and mark the data corresponding to the currently transmitted backup data packet as unbacked data;
209:若目标数据中的未备份数据的大小大于空闲存储空间大小,则执行步骤204~步骤208,直到目标数据中的未备份数据的大小小于或等于空闲存储空间大小;209: If the size of the unbacked data in the target data is greater than the size of the free storage space, perform steps 204 to 208 until the size of the unbacked data in the target data is less than or equal to the size of the free storage space;
其中,在对备份数据包进行传输完成之后,检测为备份数据的大小,若未备份数据的大小大于空闲存储空间大小,则重复执行步骤204~步骤208,直到目标数据中的未备份数据的大小小于或等于空闲存储空间大小。Wherein, after the transmission of the backup data packet is completed, the size of the backup data is detected. If the size of the unbacked data is greater than the size of the free storage space, steps 204 to 208 are repeated until the size of the unbacked data in the target data is reached. Less than or equal to the size of free storage space.
210:若目标数据中的未备份数据的大小小于或等于空闲存储空间大小,则对目标数据中的未备份数据进行备份,并将备份完成的数据包发往目标终端设备,并删除已发送的备份数据包。210: If the size of the unbacked data in the target data is less than or equal to the size of the free storage space, back up the unbacked data in the target data, send the backed up data packets to the target terminal device, and delete the sent data packets. Backup packages.
其中,若目标数据中的未备份数据的大小小于或等于空闲存储空间大小,则对目标数据中的未备份数据进行备份,并将备份完成的数据包发往目标终端设备,并删除已发送的备份数据包。Among them, if the size of the unbacked data in the target data is less than or equal to the size of the free storage space, the unbacked data in the target data will be backed up, the backed up data packets will be sent to the target terminal device, and the sent data will be deleted. Backup packages.
请参阅图3,图3是本发明的一个实施例提供的一种数据传输处理的终端设备的结构示意图。其中,该终端设备可以是智能手机、平板电脑、智能穿戴设备等终端设备。该终端设备包括:Please refer to FIG. 3 , which is a schematic structural diagram of a terminal device for data transmission processing provided by an embodiment of the present invention. The terminal device may be a terminal device such as a smart phone, a tablet computer, and a smart wearable device. The terminal equipment includes:
接收单元301,用于接收用户输入的迁移操作指令;A receiving unit 301, configured to receive a migration operation instruction input by a user;
备份缓存单元302,用于在接收到用户输入的迁移操作指令后,将上述迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存上述备份数据包;The backup cache unit 302 is configured to, after receiving the migration operation instruction input by the user, generate a backup data packet from part of the data in the target data specified by the migration operation instruction, and cache the backup data packet;
发送处理单元303,用于将备份数据包发往目标终端设备,并删除已发送的备份数据包,直到目标数据的所有备份数据包均发往目标终端设备。The sending processing unit 303 is configured to send the backup data packets to the target terminal device, and delete the sent backup data packets until all the backup data packets of the target data are sent to the target terminal device.
本发明实施例中,各功能单元的具体实施方式可以参照方法实施例1中的描述,本发明实施例将不作复述。In this embodiment of the present invention, for the specific implementation of each functional unit, reference may be made to the description in Method Embodiment 1, which will not be repeated in this embodiment of the present invention.
本发明实施例中,通过备份缓存单元302在接收单元301接收到用户输入的迁移操作指令后,将迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存上述备份数据包,并由发送处理单元303,将备份数据包发送目标终端设备,同时删除已发送的备份数据包,直到目标数据的所有备份数据包均发送目标终端设备。从而可以在终端设备的空闲存储空间不足时,不断的选取部分数据进行备份传输,直到所有目标数据均备份传输完成,提高了数据传输的效率。In this embodiment of the present invention, after the receiving unit 301 receives the migration operation instruction input by the user through the backup cache unit 302, a backup data package is generated for part of the data in the target data specified by the migration operation instruction, the backup data package is cached, and stored by The sending processing unit 303 sends the backup data packets to the target terminal device, and simultaneously deletes the sent backup data packets until all the backup data packets of the target data are sent to the target terminal device. Therefore, when the free storage space of the terminal device is insufficient, part of the data can be continuously selected for backup transmission until all target data are backed up and transmitted, thereby improving the efficiency of data transmission.
请一并参阅图4,图4为本发明实施例公开的另一种数据传输处理的终端设备的结构示意图。其中,图4所示的终端设备是由图3所示的终端设备进行优化得到的,与图3所示的终端设备相比,图4所示的终端设备还包括:Please refer to FIG. 4 together. FIG. 4 is a schematic structural diagram of another terminal device for data transmission processing disclosed in an embodiment of the present invention. The terminal equipment shown in FIG. 4 is obtained by optimizing the terminal equipment shown in FIG. 3 . Compared with the terminal equipment shown in FIG. 3 , the terminal equipment shown in FIG. 4 further includes:
获取单元304,用于获取终端设备的空闲存储空间大小;an obtaining unit 304, configured to obtain the size of the free storage space of the terminal device;
确定单元305,用于在目标数据的大小大于空闲存储空间大小时,根据上述空闲存储空间大小确定用于备份目标数据的参考空间阈值,该参考空间阈值小于或等于空闲存储空间大小。The determining unit 305 is configured to determine a reference space threshold for backing up the target data according to the size of the free 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.
可选地,在图4所示的终端设备中的备份缓存单元302,具体用于按照上述迁移操作指令指定的目标数据中的各个文件的优先级等级从高到低的顺序对目标数据进行数据备份。Optionally, the backup cache unit 302 in the terminal device shown in FIG. 4 is specifically configured to perform data processing on the target data according to the priority level of each file in the target data specified by the above-mentioned migration operation instruction from high to low. backup.
可选地,在图4所示的终端设备中,该终端设备还包括:Optionally, in the terminal device shown in FIG. 4 , the terminal device further includes:
监测单元306,用于监测缓存的备份数据包的大小;a monitoring unit 306, configured to monitor the size of the cached backup data packet;
备份停止单元307,用于在备份数据包的大小等于参考空间阈值时,停止缓存备份数据包的操作,并驱动上述发送处理单元303执行将备份数据包发往目标终端设备的操作。The backup stopping 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 above-mentioned sending processing unit 303 to execute the operation of sending the backup data packet to the target terminal device.
可选地,在图4所示的终端设备中,该终端设备还包括:Optionally, in the terminal device shown in FIG. 4 , the terminal device further includes:
标识添加单元308,用于为目标数据中已经备份的数据添加标识信息,该标识信息用于区分目标数据中的已备份数据和未备份数据。The identification adding unit 308 is configured to add identification information to the data that has been backed up in the target data, where the identification information is used to distinguish the backed up data and the unbacked up data in the target data.
可选地,在图4所示的终端设备中,该终端设备还包括:Optionally, in the terminal device shown in FIG. 4 , the terminal device further includes:
检测处理单元309,用于在检测到当前传输的备份数据包发生损坏时,删除当前传输的备份数据包,并标记当前传输的备份数据包对应的数据为未备份数据。The detection processing unit 309 is configured to delete the currently transmitted backup data packet when it is detected that the currently transmitted backup data packet is damaged, and mark the data corresponding to the currently transmitted backup data packet as unbacked data.
请参阅图5,图5为本发明实施例公开的一种终端设备的结构示意图。如图5所示,该终端设备包括:处理器501以及存储器502;其中存储器502可以用于处理器501执行数据处理所需要的缓存,还可以用于提供处理器501执行数据处理调用的数据以及获得的结果数据的存储空间。Please refer to FIG. 5 , which is a schematic structural diagram of a terminal device disclosed in an embodiment of the present invention. As shown in FIG. 5, the terminal device includes: a processor 501 and a memory 502; wherein the memory 502 can be used for the cache required by the processor 501 to perform data processing, and can also be used to provide data for the processor 501 to perform data processing calls and Storage space for the obtained result data.
在本发明实施例中,处理器501通过调用存储于存储器502中的程序代码,用于执行以下操作:In this embodiment of the present invention, the processor 501 is configured to perform the following operations by calling program codes stored in the memory 502:
终端设备接收用户输入的迁移操作指令;The terminal device receives the migration operation instruction input by the user;
在接收到所述用户输入的迁移操作指令后,将所述迁移操作指令指定的目标数据中的部分数据生成备份数据包,缓存所述备份数据包;After receiving the migration operation instruction input by the user, generate a backup data package for part of the data in the target data specified by the migration operation instruction, and cache the backup data package;
将所述备份数据包发往目标终端设备,并删除已发送的所述备份数据包,直到所述目标数据的所有备份数据包均发往所述目标终端设备。The backup data packets are sent to the target terminal device, and the sent backup data packets are deleted until all the backup data packets of the target data are sent to the target terminal device.
作为一种可选的实施方式,处理器501通过调用存储于存储器502中的程序代码,所述在接收到所述用户输入的迁移操作指令后,还用于执行以下操作:As an optional implementation manner, the processor 501 is further 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:
获取所述终端设备的空闲存储空间大小;obtaining the size of the free storage space of the terminal device;
若所述目标数据的大小大于所述空闲存储空间大小,则根据所述空闲存储空间大小确定用于备份所述目标数据的参考空间阈值,所述参考空间阈值小于或等于所述空闲存储空间大小。If the size of the target data is greater than the size of the free storage space, a 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 .
作为一种可选的实施方式,处理器501通过调用存储于存储器502中的程序代码,所述将所述迁移操作指令指定的目标数据中的部分数据生成备份数据包,具体用于执行以下操作:As an optional implementation manner, the processor 501 generates a backup data package by calling the program code stored in the memory 502, and the part of the data in the target data specified by the migration operation instruction is specifically used to perform the following operations :
按照所述迁移操作指令指定的目标数据中的各个文件的优先级等级从高到低的顺序对所述目标数据进行数据备份。Data backup is performed on the target data according to the priority level of each file in the target data specified by the migration operation instruction in descending order.
作为一种可选的实施方式,处理器501通过调用存储于存储器502中的程序代码,在所述根据所述空闲存储空间大小确定用于备份所述目标数据的参考空间阈值之后,以及在所述将所述备份数据包发往目标终端设备之前,还用于执行以下操作:As an optional implementation manner, the processor 501 calls the program code stored in the memory 502, after the reference space threshold for backing up the target data is determined according to the size of the free storage space, and in all Before sending the backup data packet to the target terminal device as described above, it is also used to perform the following operations:
监测缓存的所述备份数据包的大小;monitoring the size of the cached backup data packets;
若所述备份数据包的大小等于所述参考空间阈值,则停止缓存所述备份数据包的操作,并执行所述将所述备份数据包发往目标终端设备。If the size of the backup data packet is equal to the reference space threshold, the operation of buffering the backup data packet is stopped, and the sending of the backup data packet to the target terminal device is performed.
作为一种可选的实施方式,处理器501通过调用存储于存储器502中的程序代码,在所述停止缓存所述备份数据包的操作之后,还用于执行以下操作:As an optional implementation manner, 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:
为所述目标数据中已经备份的数据添加标识信息,所述标识信息用于区分所述目标数据中的已备份数据和未备份数据。Identification information is added to the data that has been backed up in the target data, where the identification information is used to distinguish between the backed up data and the non-backed up data in the target data.
作为一种可选的实施方式,处理器501通过调用存储于存储器502中的程序代码,还用于执行以下操作:As an optional implementation manner, the processor 501 is further configured to perform the following operations by calling the program code stored in the memory 502:
若检测到当前传输的所述备份数据包发生损坏,则删除当前传输的所述备份数据包,并标记当前传输的所述备份数据包对应的数据为未备份数据。If 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.
请参阅图6,图6为本发明实施例公开的另一种终端设备的结构示意图。如图6所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该终端设备可以为包括手机、平板电脑、PDA(Personal DigitalAssistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以终端设备为手机为例:Please refer to FIG. 6, which is a schematic structural diagram of another terminal device disclosed in an embodiment of the present invention. As shown in FIG. 6 , for the convenience of description, only the part related to the embodiment of the present invention is shown, and the specific technical details are not disclosed, please refer to the method part of the embodiment of the present invention. The terminal device can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales, a sales terminal), a vehicle-mounted computer, etc. The terminal device is a mobile phone as an example:
图6示出的是与本发明实施例提供的终端设备相关的手机的部分结构的框图。参考图6,手机包括:射频(Radio Frequency,RF)电路601、存储器602、输入单元603、显示单元604、传感器605、音频电路606、无线保真(wireless fidelity,WiFi)模块607、处理器608、以及电源609等部件。本领域技术人员可以理解,图6中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。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. Referring to FIG. 6 , 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 the power supply 609 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 6 does not constitute a limitation on the mobile phone, and may include more or less components than the one shown, or combine some components, or arrange different components.
下面结合图6对手机的各个构成部件进行具体的介绍:Below in conjunction with Figure 6, the various components of the mobile phone are introduced in detail:
RF电路601可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器608处理;另外,将设计上行的数据发送给基站。通常,RF电路601包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier,LNA)、双工器等。此外,RF电路601还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GlobalSystem of Mobile communication,GSM)、通用分组无线服务(General Packet RadioService,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 601 can be used for receiving and sending signals during transmission and reception of information or during a call. In particular, after receiving the downlink information of the base station, it is processed by the processor 608; in addition, the designed uplink data is sent to the base station. Generally, the 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-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) , CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (Short Messaging Service, SMS) and the like.
存储器602可用于存储软件程序以及模块,处理器608通过运行存储在存储器602的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器602可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器602可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。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 the software programs and modules stored in the memory 602 . The memory 602 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元603可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元603可包括触控面板6031以及其他输入设备6032。触控面板6031,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板6031上或在触控面板6031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板6031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器608,并能接收处理器608发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板6031。除了触控面板6031,输入单元603还可以包括其他输入设备6032。具体地,其他输入设备6032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 603 can be used for receiving inputted numerical or character information, and generating key signal input related to user setting and function control of the mobile phone. Specifically, the input unit 603 may include a touch panel 6031 and other input devices 6032 . The touch panel 6031, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 6031). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 6031 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the 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 it into contact coordinates, and then sends it to the touch controller. To the processor 608, and can receive the command sent by the processor 608 and execute it. In addition, the touch panel 6031 can be realized by various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 6031 , the input unit 603 may also include other input devices 6032 . Specifically, other input devices 6032 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
显示单元604可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元604可包括显示面板6041,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板6041。进一步的,触控面板6031可覆盖显示面板6041,当触控面板6031检测到在其上或附近的触摸操作后,传送给处理器608以确定触摸事件的类型,随后处理器608根据触摸事件的类型在显示面板6041上提供相应的视觉输出。虽然在图6中,触控面板6031与显示面板6041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板6031与显示面板6041集成而实现手机的输入和输出功能。The display unit 604 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 604 may include a display panel 6041. Optionally, the display panel 6041 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED) or the like. Further, the touch panel 6031 may cover the display panel 6041. When the touch panel 6031 detects a touch operation on or near it, it transmits it to the processor 608 to determine the type of the touch event, and then the processor 608 determines the type of the touch event according to the touch event. Type provides corresponding visual output on display panel 6041. Although in FIG. 6, the touch panel 6031 and the display panel 6041 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 6031 and the display panel 6041 can be integrated to form Realize the input and output functions of the mobile phone.
手机还可包括至少一种传感器605,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板6041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板6041和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The cell phone may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, 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 turn off the display panel 6041 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. Repeat.
音频电路606、扬声器6061,传声器6062可提供用户与手机之间的音频接口。音频电路606可将接收到的音频数据转换后的电信号,传输到扬声器6061,由扬声器6061转换为声音信号输出;另一方面,传声器6062将收集的声音信号转换为电信号,由音频电路606接收后转换为音频数据,再将音频数据输出处理器608处理后,经RF电路601以发送给比如另一手机,或者将音频数据输出至存储器602以便进一步处理。The audio circuit 606, the speaker 6061, and the microphone 6062 can provide the audio interface between the user and the mobile phone. The audio circuit 606 can transmit the received audio data converted electrical signal to the speaker 6061, and the speaker 6061 converts it into a sound signal for output; on the other hand, the microphone 6062 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 606 After receiving, it is converted into audio data, and then the audio data is output to the processor 608 for processing, and then sent to, for example, another mobile phone through the RF circuit 601, or the audio data is output to the memory 602 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块607可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块607,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance 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. It provides users with wireless broadband Internet access. Although FIG. 6 shows the WiFi module 607, it can be understood that it does not belong to the essential structure of the mobile phone, and can be completely omitted as required within the scope of not changing the essence of the invention.
处理器608是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器602内的软件程序和/或模块,以及调用存储在存储器602内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器608可包括一个或多个处理单元;优选的,处理器608可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器608中。The processor 608 is the control center of the mobile phone, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 602, and calling the data stored in the memory 602. Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole. Optionally, the processor 608 may include one or more processing units; preferably, the processor 608 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 608 .
手机还包括给各个部件供电的电源609(比如电池),优选的,电源可以通过电源管理系统与处理器608逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power source 609 (such as a battery) for supplying power to various components. Preferably, the power source can be logically connected to the processor 608 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, and the like, which will not be repeated here.
前述实施例中,各步骤方法流程可以基于该终端设备的结构实现。In the foregoing embodiments, the method flow of each step can be implemented based on the structure of the terminal device.
前述图1、图2所示的实施例中,各步骤方法流程可以基于该手机的结构实现。前述图3、图4、图5所示的实施例中,各单元功能可以基于该手机的结构实现。In the foregoing embodiments shown in FIG. 1 and FIG. 2 , the method flow of each step can be implemented based on the structure of the mobile phone. In the aforementioned embodiments shown in FIG. 3 , FIG. 4 , and FIG. 5 , the functions of each unit can be implemented based on the structure of the mobile phone.
值得注意的是,上述数据传输处理的终端设备的实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that, in the above-mentioned embodiment of the terminal device for data transmission processing, each unit included is only divided according to functional logic, but is not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, The specific names of the functional units are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present invention.
另外,本领域普通技术人员可以理解实现上述各方法实施例中的全部或部分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。In addition, those of ordinary skill in the art can understand that all or part of the steps in the above method embodiments can be implemented by instructing relevant hardware through a program, and the corresponding program can be stored in a computer-readable storage medium. The storage medium can be read-only memory, magnetic disk or optical disk, etc.
以上仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above are only preferred specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the embodiments of the present invention. , all should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (11)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610825484.2A CN106484562B (en) | 2016-09-14 | 2016-09-14 | Data transmission processing method and terminal equipment |
PCT/CN2017/092279 WO2018049887A1 (en) | 2016-09-14 | 2017-07-07 | Data transmission processing method and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610825484.2A CN106484562B (en) | 2016-09-14 | 2016-09-14 | Data transmission processing method and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106484562A CN106484562A (en) | 2017-03-08 |
CN106484562B true CN106484562B (en) | 2019-08-23 |
Family
ID=58273839
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610825484.2A Active CN106484562B (en) | 2016-09-14 | 2016-09-14 | Data transmission processing method and terminal equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106484562B (en) |
WO (1) | WO2018049887A1 (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106484562B (en) * | 2016-09-14 | 2019-08-23 | Oppo广东移动通信有限公司 | Data transmission processing method and terminal equipment |
CN106970859B (en) * | 2017-03-31 | 2020-03-03 | 青岛海信移动通信技术股份有限公司 | Method and device for backing up and recovering offline mail |
CN108874615A (en) * | 2017-05-16 | 2018-11-23 | 惠州市德赛西威汽车电子股份有限公司 | A kind of in-vehicle multi-media system device for detecting performance and detection method |
CN107329857A (en) * | 2017-06-30 | 2017-11-07 | 联想(北京)有限公司 | A kind of data back up method and electronic equipment |
US10341927B2 (en) * | 2017-07-20 | 2019-07-02 | GM Global Technology Operations LLC | Vehicle wireless unit and method of operating the same |
CN110139053A (en) * | 2018-02-08 | 2019-08-16 | 云丁网络技术(北京)有限公司 | A kind of data processing method and device |
CN108874584B (en) * | 2018-05-04 | 2021-06-01 | 上海达梦数据库有限公司 | Data backup method, data recovery method, device, equipment and storage medium |
CN112181938B (en) * | 2019-07-05 | 2024-06-14 | 杭州海康威视数字技术股份有限公司 | Database cleaning method, device and computer readable storage medium |
CN111258821B (en) * | 2020-03-23 | 2023-08-18 | 重庆忽米网络科技有限公司 | Cloud computing-based backup data rapid extraction method |
CN111459753B (en) * | 2020-03-26 | 2022-09-30 | 平安科技(深圳)有限公司 | Point-of-sale terminal data processing method, device, computer equipment and storage medium |
CN111510300B (en) * | 2020-04-10 | 2023-04-18 | 中国联合网络通信集团有限公司 | Data processing method, device, equipment and computer readable storage medium |
CN113840269B (en) * | 2021-08-06 | 2023-11-14 | 深圳Tcl新技术有限公司 | Multimedia data transmission method and device, electronic equipment and storage medium |
CN117544588B (en) * | 2024-01-10 | 2024-04-23 | 腾讯科技(深圳)有限公司 | Information transmission method, system and related device |
CN119850885A (en) * | 2025-03-18 | 2025-04-18 | 重庆诺源工业软件科技有限公司 | CAD three-dimensional model modeling design method, device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070011276A1 (en) * | 2005-07-08 | 2007-01-11 | Cisco Technology, Inc. | Apparatus and methods for data tapping in a storage area network |
CN104063250A (en) * | 2014-07-02 | 2014-09-24 | 深圳市中兴移动通信有限公司 | Method and system for transferring terminal application and terminal equipment |
CN105245701A (en) * | 2015-09-25 | 2016-01-13 | 上海斐讯数据通信技术有限公司 | Data protection system and data protection method for mobile terminal |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102394930B (en) * | 2011-11-02 | 2014-11-19 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal, cloud server and data processing method |
CN102693145B (en) * | 2012-05-31 | 2015-02-25 | 红石阳光(北京)科技有限公司 | Differential upgrading method for embedded system |
CN103383698B (en) * | 2013-06-27 | 2016-09-21 | 宇龙计算机通信科技(深圳)有限公司 | The method of data deletion and mobile terminal thereof |
US20160139996A1 (en) * | 2014-11-13 | 2016-05-19 | Netapp, Inc. | Methods for providing unified storage for backup and disaster recovery and devices thereof |
CN105183379B (en) * | 2015-09-01 | 2018-10-23 | 上海新储集成电路有限公司 | A kind of data backup system and method for mixing memory |
CN105893173A (en) * | 2015-12-10 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Caching data processing method and device |
CN105808376B (en) * | 2016-02-24 | 2019-06-14 | 北京金山安全软件有限公司 | Data backup method and device and electronic equipment |
CN106484562B (en) * | 2016-09-14 | 2019-08-23 | Oppo广东移动通信有限公司 | Data transmission processing method and terminal equipment |
CN106484326B (en) * | 2016-09-14 | 2019-08-27 | Oppo广东移动通信有限公司 | Data transmission processing method and mobile terminal |
CN106502826B (en) * | 2016-10-19 | 2019-06-18 | Oppo广东移动通信有限公司 | Data backup and transmission method and mobile terminal |
-
2016
- 2016-09-14 CN CN201610825484.2A patent/CN106484562B/en active Active
-
2017
- 2017-07-07 WO PCT/CN2017/092279 patent/WO2018049887A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070011276A1 (en) * | 2005-07-08 | 2007-01-11 | Cisco Technology, Inc. | Apparatus and methods for data tapping in a storage area network |
CN104063250A (en) * | 2014-07-02 | 2014-09-24 | 深圳市中兴移动通信有限公司 | Method and system for transferring terminal application and terminal equipment |
CN105245701A (en) * | 2015-09-25 | 2016-01-13 | 上海斐讯数据通信技术有限公司 | Data protection system and data protection method for mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
WO2018049887A1 (en) | 2018-03-22 |
CN106484562A (en) | 2017-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106484562B (en) | Data transmission processing method and terminal equipment | |
US10635449B2 (en) | Method and apparatus for running game client | |
CN106502834B (en) | Backup method, the apparatus and system of data | |
CN106331370B (en) | A data transmission method and terminal device | |
WO2015154670A1 (en) | Method and apparatus for invoking application programming interface | |
CN106714103B (en) | A kind of network positioning method and terminal device | |
CN106412311B (en) | Data transmission method and terminal equipment | |
CN106658354B (en) | Data transmission method and equipment | |
CN106453511A (en) | A data backup method and device | |
CN106507269B (en) | Data migration method and terminal equipment | |
WO2018049921A1 (en) | Data transmission processing method and related device | |
CN106488391B (en) | A data migration method and terminal device | |
WO2018049904A1 (en) | Data migration method and related devices | |
CN107066090A (en) | The method and mobile terminal of a kind of control fingerprint recognition module | |
CN106484563B (en) | Data migration method and terminal equipment | |
CN106502827A (en) | A data backup method and device | |
CN106332058A (en) | A data transmission method and terminal equipment | |
CN106658705B (en) | Network positioning method and terminal equipment | |
CN106506623B (en) | Data transmission method and equipment | |
CN106648976A (en) | A data backup method and device | |
CN106371948A (en) | Data backup method and terminal equipment | |
CN106453845B (en) | Data transmission method and equipment | |
CN106484455A (en) | A kind of methods, devices and systems of the installation data of more new application | |
CN106487649A (en) | Group message prompt control method and terminal device | |
CN111881098A (en) | Application program processing method, terminal device and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |