WO2017166773A1 - Terminal information synchronization method and apparatus, information synchronization system, and electronic device - Google Patents

Terminal information synchronization method and apparatus, information synchronization system, and electronic device Download PDF

Info

Publication number
WO2017166773A1
WO2017166773A1 PCT/CN2016/101860 CN2016101860W WO2017166773A1 WO 2017166773 A1 WO2017166773 A1 WO 2017166773A1 CN 2016101860 W CN2016101860 W CN 2016101860W WO 2017166773 A1 WO2017166773 A1 WO 2017166773A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
parsed
model information
synchronization
file
Prior art date
Application number
PCT/CN2016/101860
Other languages
French (fr)
Chinese (zh)
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 WO2017166773A1 publication Critical patent/WO2017166773A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams

Definitions

  • FIG. 3 is a schematic structural diagram of a terminal information synchronization apparatus according to Embodiment 3 of the present application.
  • FIG. 4 is a schematic structural diagram of a terminal information synchronization apparatus according to Embodiment 4 of the present application.
  • the embodiment of the present application provides a terminal information synchronization method, which is performed by a synchronization information sending end. As shown in FIG. 1 , the method includes:
  • step S'3 it is determined whether the parsed model information is the same as the model information of the local terminal. This step is to determine whether the terminal transmitting the synchronization data and the terminal are of the same model. As is known, for different types of terminals, the format of the file can be general, but the setting information is usually not universal, so it is necessary to follow the judgment result. Specifically, when the parsed model information is the same as the model information of the local terminal, step S'4 is performed, otherwise step S'5 is performed;
  • the first search unit 31 includes:
  • the determining unit 43 is configured to determine whether the parsed model information is the same as the model information of the local terminal;
  • These computer program instructions can also be loaded into a computer or other programmable data processing device Having a series of operational steps performed on a computer or other programmable device to produce computer-implemented processing such that instructions executed on a computer or other programmable device are provided for implementing one or more processes in a flowchart and/or Or block diagram the steps of a function specified in a box or multiple boxes.

Abstract

The present application relates to the field of data communications, and provides a terminal information synchronization method and apparatus, an information synchronization system, and an electronic device. The terminal information synchronization method comprises: searching for locally stored files and setting information; copying the found files and setting information, and generating a synchronization data packet; searching for model information of a local terminal; and sending the found model information and the synchronization data packet. The present solution implements information synchronization between terminals without manual copy, has great convenience and richness, and can meet data synchronization requirements during replacement of a terminal by a user.

Description

终端信息同步方法、装置、信息同步系统及电子设备Terminal information synchronization method, device, information synchronization system and electronic device
交叉引用cross reference
本申请要求在2016年04月01日提交中国专利局、申请号为201610204646.0、发明名称为“终端信息同步方法、装置及信息同步系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201610204646.0, entitled "Terminal Information Synchronization Method, Apparatus and Information Synchronization System", filed on April 1, 2016, the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本申请涉及数据通信领域,具体涉及一种终端信息同步方法、装置、信息同步系统及电子设备。The present application relates to the field of data communications, and in particular, to a terminal information synchronization method, device, information synchronization system, and electronic device.
背景技术Background technique
智能终端是指像个人电脑一样,具有独立的操作系统,独立的运行空间,可以由用户自行安装软件、游戏、导航等第三方服务商提供的程序,并可以通过无线网络来实现无线网络接入的终端的总称。智能终端的使用范围已经布满全世界,智能终端具有优秀的操作系统、可自由安装各类软件等特性,用户可以在终端中保存各种数据,并且可以根据自身需求对终端进行设置。Intelligent terminal refers to a stand-alone operating system and independent running space like a personal computer. Users can install software, games, navigation and other third-party service providers to provide wireless network access through wireless networks. The general term for the terminal. The range of use of intelligent terminals has been spread all over the world. Intelligent terminals have excellent operating systems and are free to install various software. Users can save various data in the terminal and set the terminal according to their own needs.
智能终端的更新换代很快,当用户决定更换新的终端时,对原终端的数据转移操作是非常必要的操作,即将原终端中的数据同步到新的终端中。现有的终端数据同步方案只针对终端中的通讯录,具体地,是借助远程服务器保存原终端中的通讯录数据,然后根据用户的需求,用户可以使用另 一终端从服务器中下载通讯录数据,现有方案只能实现对通信录的同步操作,对于其他数据或信息,只能通过人工拷贝进行同步,由此可见现有的同步方案便利性和丰富性较差,不能满足用户需求。The update of the intelligent terminal is very fast. When the user decides to replace the new terminal, the data transfer operation of the original terminal is a very necessary operation, that is, the data in the original terminal is synchronized to the new terminal. The existing terminal data synchronization scheme is only for the address book in the terminal, specifically, the address book data in the original terminal is saved by using the remote server, and then the user can use another according to the user's needs. A terminal downloads the address book data from the server, and the existing solution can only realize the synchronization operation of the address book. For other data or information, only the manual copy can be synchronized, thereby showing the convenience and richness of the existing synchronization scheme. Poor, can not meet user needs.
发明内容Summary of the invention
因此,本申请要解决的现有的同步方案便利性和丰富性较差的缺陷。Therefore, the existing synchronization scheme to be solved by the present application has the disadvantages of poor convenience and richness.
有鉴于此,本申请实施例提供了一种终端信息同步方法,包括:搜索本地存储的文件和设置信息;复制搜索到的文件和设置信息并生成同步数据包;搜索本地终端的型号信息;发送搜索到的型号信息和所述同步数据包。In view of this, the embodiment of the present application provides a terminal information synchronization method, including: searching locally stored files and setting information; copying the searched files and setting information and generating synchronization data packets; searching for model information of the local terminal; The model information found and the synchronization packet.
优选地,所述搜索本地存储的文件和设置信息,包括:访问预设存储目录;在所述预设存储目录中搜索具有预定后缀的文件。Preferably, the searching for locally stored files and setting information comprises: accessing a preset storage directory; and searching for a file having a predetermined suffix in the preset storage directory.
本申请实施例还提供了另一种终端信息同步方法,包括:接收同步数据包和型号信息;从所述同步数据包中解析出文件和设置信息;判断解析出的型号信息与本地终端的型号信息是否相同;当解析出的型号信息与本地终端的型号信息相同时,利用解析出的设置信息覆盖本地终端的设置信息,将解析出的文件拷贝到预定存储目录中。The embodiment of the present application further provides another terminal information synchronization method, including: receiving an synchronization data packet and model information; parsing the file and setting information from the synchronization data packet; and determining the parsed model information and the model of the local terminal. If the parsed model information is the same as the model information of the local terminal, the parsed setting information is used to overwrite the setting information of the local terminal, and the parsed file is copied to the predetermined storage directory.
优选地,还包括:Preferably, the method further comprises:
当解析出的型号信息与本地终端的型号信息不相同时,将解析出的文件拷贝到预定存储目录中,删除解析出的设置信息。When the parsed model information is different from the model information of the local terminal, the parsed file is copied to the predetermined storage directory, and the parsed setting information is deleted.
相应地,本申请实施例还提供了一种终端信息同步装置,包括:第一搜索单元,用于搜索本地存储的文件和设置信息;复制单元,用于复制搜索到的文件和设置信息并生成同步数据包;第二搜索单元,用于搜索本地 终端的型号信息;发送单元,用于发送搜索到的型号信息和所述同步数据包。Correspondingly, the embodiment of the present application further provides a terminal information synchronization apparatus, including: a first search unit, configured to search locally stored files and setting information; and a copy unit configured to copy the searched files and setting information and generate Synchronous data packet; second search unit for searching local Model information of the terminal; a sending unit, configured to send the searched model information and the synchronization data packet.
优选地,所述第一搜索单元包括:访问单元,用于访问预设存储目录;文件搜索单元,用于在所述预设存储目录中搜索具有预定后缀的文件。Preferably, the first search unit includes: an access unit, configured to access a preset storage directory; and a file search unit, configured to search, in the preset storage directory, a file having a predetermined suffix.
本申请实施例还提供了另一种终端信息同步装置,包括:接收单元,用于接收同步数据包和型号信息;解析单元,用于从所述同步数据包中解析出文件和设置信息;判定单元,用于判断解析出的型号信息与本地终端的型号信息是否相同;第一同步单元,用于当解析出的型号信息与本地终端的型号信息相同时,利用解析出的设置信息覆盖本地终端的设置信息,将解析出的文件拷贝到预定存储目录中。The embodiment of the present application further provides another terminal information synchronization apparatus, including: a receiving unit, configured to receive an synchronization data packet and model information; and a parsing unit, configured to parse the file and the setting information from the synchronization data packet; The unit is configured to determine whether the parsed model information is the same as the model information of the local terminal, and the first synchronization unit is configured to overwrite the local terminal by using the parsed setup information when the parsed model information is the same as the model information of the local terminal. The setting information copies the parsed file to a predetermined storage directory.
优选地,还包括:第二同步单元,用于当解析出的型号信息与本地终端的型号信息不相同时,将解析出的文件拷贝到预定存储目录中,删除解析出的设置信息。Preferably, the method further includes: a second synchronization unit, configured to: when the parsed model information is different from the model information of the local terminal, copy the parsed file into a predetermined storage directory, and delete the parsed setting information.
本申请实施例还提供了一种信息同步系统,包括:第一终端,用于搜索本地存储的文件和设置信息,复制搜索到的文件和设置信息并生成同步数据包,搜索本地终端的型号信息,发送搜索到的型号信息和所述同步数据包;第二终端,用于接收所述同步数据包和所述型号信息,从所述同步数据包中解析出文件和设置信息,判断解析出的型号信息与本地终端的型号信息是否相同,当解析出的型号信息与本地终端的型号信息相同时,利用解析出的设置信息覆盖本地终端的设置信息,将解析出的文件拷贝到预定存储目录中。The embodiment of the present application further provides an information synchronization system, including: a first terminal, configured to search a locally stored file and setting information, copy the searched file and setting information, generate a synchronization data packet, and search for a model information of the local terminal. Transmitting the searched model information and the synchronization data packet; the second terminal is configured to receive the synchronization data packet and the model information, parse the file and the setting information from the synchronization data packet, and determine the parsed The model information is the same as the model information of the local terminal. When the parsed model information is the same as the model information of the local terminal, the set information of the local terminal is overwritten by the parsed setting information, and the parsed file is copied to the predetermined storage directory. .
优选地,所述第二终端还用于当解析出的型号信息与本地终端的型号 信息不相同时,将解析出的文件拷贝到预定存储目录中,删除解析出的设置信息。Preferably, the second terminal is further configured to: when parsing the model information and the model of the local terminal When the information is different, the parsed file is copied to the predetermined storage directory, and the parsed setting information is deleted.
根据本申请实施例提供的第一种终端信息同步方法及装置,通过搜索找到本地存储的文件和设置信息,并对其进行复制和打包,同时确定本地终端的型号信息,然后向外部目标发送型号信息和打包的文件和设置信息,由此可以实现将本地存储的文件和设置信息同步到另一目标中,本方案不需要人工拷贝进行同步,便利性和丰富性较强,可以满足用户更换终端时的数据同步需求。According to the first method and device for synchronizing terminal information provided by the embodiment of the present application, a locally stored file and setting information are found by searching, and are copied and packaged, and the model information of the local terminal is determined, and then the model is sent to an external target. The information and the packaged file and setting information can be used to synchronize the locally stored file and setting information to another target. This solution does not require manual copying for synchronization, and has convenient convenience and richness, and can satisfy the user to replace the terminal. Time synchronization requirements.
根据本申请实施例提供的第二种终端信息同步方法及装置,通过对接收的同步数据包进行解析可得到文件和设置信息,然后通过此型号信息来确定发送同步数据包的终端与本终端的型号是否相同,对于型号相同的终端发来的同步数据包,利用其中的设置信息覆盖本地的设置信息,同时拷贝其中的文件,本方案不需要人工拷贝进行同步,便利性和丰富性较强,可以满足用户更换终端时的数据同步需求。According to the second terminal information synchronization method and apparatus provided by the embodiment of the present application, the file and the setting information can be obtained by parsing the received synchronization data packet, and then the model information for transmitting the synchronization data packet and the terminal are determined by the model information. Whether the models are the same, for the synchronous data packets sent by the terminal with the same model, the local setting information is overwritten by the setting information, and the files are copied at the same time. The scheme does not need manual copying for synchronization, and the convenience and richness are strong. It can meet the data synchronization requirements when the user replaces the terminal.
根据本申请实施例提供的信息同步系统,由第一终端作为发送端,搜索本地存储的文件、设置信息和型号信息,最终发送搜索到的型号信息和同步数据包;并由第二终端作为接收端,接收所述同步数据包和所述型号信息,并判断解析出的型号信息与本地终端的型号信息是否相同,当解析出的型号信息与本地终端的型号信息相同时,利用解析出的设置信息覆盖本地终端的设置信息,同时将解析出的文件拷贝到预定存储目录中。According to the information synchronization system provided by the embodiment of the present application, the first terminal is used as the transmitting end to search for locally stored files, setting information, and model information, and finally sends the searched model information and synchronization data packets; and is received by the second terminal. End, receiving the synchronization data packet and the model information, and determining whether the parsed model information is the same as the model information of the local terminal, and using the parsed setting when the parsed model information is the same as the model information of the local terminal. The information covers the setting information of the local terminal, and the parsed file is copied to the predetermined storage directory.
本申请实施例还提供了一种电子设备,包括至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被 所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:搜索本地存储的文件和设置信息;复制搜索到的文件和设置信息并生成同步数据包;搜索本地终端的型号信息;发送搜索到的型号信息和所述同步数据包。An embodiment of the present application further provides an electronic device including at least one processor; and a memory communicably connected to the at least one processor; wherein the memory is stored An instruction executed by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: search for locally stored files and settings information; copy the searched files and settings information and Generating a synchronization data packet; searching for model information of the local terminal; transmitting the searched model information and the synchronization data packet.
本申请实施例所述的电子设备,优选地,所述搜索本地存储的文件和设置信息,包括:访问预设存储目录;在所述预设存储目录中搜索具有预定后缀的文件。In the electronic device of the embodiment of the present application, preferably, the searching for locally stored files and setting information includes: accessing a preset storage directory; and searching for a file having a predetermined suffix in the preset storage directory.
本申请实施例还提供了一种电子设备,包括至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够接收同步数据包和型号信息;从所述同步数据包中解析出文件和设置信息;判断解析出的型号信息与本地终端的型号信息是否相同;当解析出的型号信息与本地终端的型号信息相同时,利用解析出的设置信息覆盖本地终端的设置信息,将解析出的文件拷贝到预定存储目录中。An embodiment of the present application further provides an electronic device including at least one processor; and a memory communicably coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor Executing, by the at least one processor, the at least one processor to receive the synchronization data packet and the model information; parsing the file and the setting information from the synchronization data packet; and determining the parsed model information If the model information of the local terminal is the same as the model information of the local terminal, the configuration information of the local terminal is overwritten by the parsed setting information, and the parsed file is copied to the predetermined storage directory.
本申请实施例所述的电子设备,优选地,使所述至少一个处理器还能够:当解析出的型号信息与本地终端的型号信息不相同时,将解析出的文件拷贝到预定存储目录中,删除解析出的设置信息。In the electronic device of the embodiment of the present application, preferably, the at least one processor is further configured to: when the parsed model information is different from the model information of the local terminal, copy the parsed file into a predetermined storage directory. , delete the parsed setup information.
本申请实施例还提供了一种非易失性计算机存储介质,所述存储介质存储有计算机可执行指令的所述计算机可执行指令,当由电子设备执行时使得电子设备能够:搜索本地存储的文件和设置信息;复制搜索到的文件 和设置信息并生成同步数据包;搜索本地终端的型号信息;发送搜索到的型号信息和所述同步数据包。Embodiments of the present application also provide a non-volatile computer storage medium storing the computer-executable instructions of computer-executable instructions that, when executed by an electronic device, enable an electronic device to: search for locally stored File and setup information; copy the searched files And setting information and generating a synchronization data packet; searching for model information of the local terminal; transmitting the searched model information and the synchronization data packet.
本申请实施例所述的存储介质,优选地,所述搜索本地存储的文件和设置信息,包括:访问预设存储目录;在所述预设存储目录中搜索具有预定后缀的文件。In the storage medium of the embodiment of the present application, preferably, the searching for locally stored files and setting information includes: accessing a preset storage directory; and searching for a file having a predetermined suffix in the preset storage directory.
本申请实施例还提供了一种非易失性计算机存储介质,所述存储介质存储有计算机可执行指令的所述计算机可执行指令,当由电子设备执行时使得电子设备能够:接收同步数据包和型号信息;从所述同步数据包中解析出文件和设置信息;判断解析出的型号信息与本地终端的型号信息是否相同;当解析出的型号信息与本地终端的型号信息相同时,利用解析出的设置信息覆盖本地终端的设置信息,将解析出的文件拷贝到预定存储目录中。Embodiments of the present application also provide a non-volatile computer storage medium storing the computer-executable instructions of computer-executable instructions that, when executed by an electronic device, enable an electronic device to: receive an isochronous data packet And model information; parsing the file and setting information from the synchronization packet; determining whether the parsed model information is the same as the model information of the local terminal; and when the parsed model information is the same as the model information of the local terminal, The setting information is overwritten by the setting information of the local terminal, and the parsed file is copied to the predetermined storage directory.
本申请实施例所述的存储介质,优选地,使所述电子设备还能够:当解析出的型号信息与本地终端的型号信息不相同时,将解析出的文件拷贝到预定存储目录中,删除解析出的设置信息。In the storage medium of the embodiment of the present application, the electronic device is further configured to: when the parsed model information is different from the model information of the local terminal, copy the parsed file to a predetermined storage directory, and delete the storage device. Parsed setup information.
本申请实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一所述的方法。The embodiment of the present application further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer The computer is caused to perform the method of any of the above.
本申请不需要人工拷贝进行同步,便利性和丰富性较强,可以满足用户更换终端时的数据同步需求。 This application does not require manual copying for synchronization, and has high convenience and richness, which can meet the data synchronization requirements when the user replaces the terminal.
附图说明DRAWINGS
为了更清楚地说明本申请具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the specific embodiments or the description of the prior art will be briefly described below, and obviously, the attached in the following description The drawings are some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without any creative work.
图1为本申请实施例1提供的终端信息同步方法的流程图;1 is a flowchart of a terminal information synchronization method according to Embodiment 1 of the present application;
图2为本申请实施例2提供的终端信息同步方法的流程图;2 is a flowchart of a terminal information synchronization method according to Embodiment 2 of the present application;
图3为本申请实施例3提供的终端信息同步装置的结构示意图;3 is a schematic structural diagram of a terminal information synchronization apparatus according to Embodiment 3 of the present application;
图4为本申请实施例4提供的终端信息同步装置的结构示意图;4 is a schematic structural diagram of a terminal information synchronization apparatus according to Embodiment 4 of the present application;
图5为本申请实施例5提供的信息同步系统的结构示意图。FIG. 5 is a schematic structural diagram of an information synchronization system according to Embodiment 5 of the present application.
图6为本申请实施例6中电子设备的硬件结构示意图。FIG. 6 is a schematic structural diagram of hardware of an electronic device according to Embodiment 6 of the present application.
图7为本申请实施例7中电子设备的硬件结构示意图。FIG. 7 is a schematic structural diagram of hardware of an electronic device according to Embodiment 7 of the present application.
具体实施方式detailed description
下面将结合附图对本申请的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions of the present application are clearly and completely described in the following with reference to the accompanying drawings. It is obvious that the described embodiments are a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
在本申请的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附 图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. The indicated orientation or positional relationship is based on The orientation or positional relationship shown in the figures is only for the convenience of the description of the present application and the simplified description, and is not intended to indicate or imply that the device or component referred to has a specific orientation, is constructed and operated in a specific orientation, and therefore cannot be construed as a Application restrictions. Moreover, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
在本申请的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,还可以是两个元件内部的连通,可以是无线连接,也可以是有线连接。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。In the description of the present application, it should be noted that the terms "installation", "connected", and "connected" are to be understood broadly, and may be fixed or detachable, for example, unless otherwise specifically defined and defined. Connection, or integral connection; may be mechanical connection or electrical connection; may be directly connected, may also be indirectly connected through an intermediate medium, or may be internal communication of two components, may be wireless connection, or may be wired connection. The specific meanings of the above terms in the present application can be understood in the specific circumstances for those skilled in the art.
此外,下面所描述的本申请不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。Further, the technical features involved in the different embodiments of the present application described below may be combined with each other as long as they do not constitute a conflict with each other.
实施例1Example 1
本申请实施例提供了一种终端信息同步方法,该方法由同步信息发送端执行,如图1所示,该方法包括:The embodiment of the present application provides a terminal information synchronization method, which is performed by a synchronization information sending end. As shown in FIG. 1 , the method includes:
S1,搜索本地存储的文件和设置信息。其中文件例如可以是音频文件、图像文件等媒体文件,也可以是文本文件等其他已知类型的文件。设置信息即本终端的设置信息,例如屏幕显示设置、声音设置等;S1, searching for locally stored files and setting information. The file may be, for example, a media file such as an audio file or an image file, or may be another file of a known type such as a text file. The setting information is setting information of the terminal, such as screen display setting, sound setting, and the like;
S2,复制搜索到的文件和设置信息并生成同步数据包,即对文件和设置信息打包形成一个完整的数据包,同时也可以带有数据压缩操作;S2, copying the searched file and setting information and generating a synchronization data packet, that is, packaging the file and setting information to form a complete data packet, and also having a data compression operation;
S3,搜索本地终端的型号信息,即终端的设置菜单中的用于描述本机型号的信息。 S3. Search for the model information of the local terminal, that is, the information for describing the model of the local machine in the setting menu of the terminal.
S4,发送搜索到的型号信息和所述同步数据包,可以使用型号信息为同步数据包命名,也可以分开发送。发送方式有多种,本实施例优选使用蓝牙模块进行发送,实际使用时可以先通过蓝牙模块进行设备配对,由此可以明确发送目标,发送目标可以是另一个终端。当接收端接收到上述数据后,可以向本终端进行反馈,本终端接到反馈后,可以提示用户是否清除本终端中的文件和设置信息,然后根据用户的选择进行清除操作,由此可以起到保护用户隐私的作用。S4: Send the searched model information and the synchronous data packet, and use the model information to name the synchronous data packet, or send the data separately. There are a plurality of transmission methods. In this embodiment, the Bluetooth module is preferably used for transmission. In actual use, the device can be paired through the Bluetooth module, so that the transmission destination can be clarified, and the transmission destination can be another terminal. After receiving the above data, the receiving end may send feedback to the terminal. After receiving the feedback, the terminal may prompt the user whether to clear the file and setting information in the terminal, and then perform a clearing operation according to the user's selection, thereby To protect the privacy of users.
根据本申请实施例提供的终端信息同步方法,通过搜索找到本地存储的文件和设置信息,并对其进行复制和打包,同时确定本地终端的型号信息,然后向外部目标发送型号信息和打包的文件和设置信息,由此可以实现将本地存储的文件和设置信息同步到另一目标中,本方案不需要人工拷贝进行同步,便利性和丰富性较强,可以满足用户更换终端时的数据同步需求。According to the terminal information synchronization method provided by the embodiment of the present application, the locally stored file and the setting information are found by searching, and copied and packaged, and the model information of the local terminal is determined, and then the model information and the packaged file are sent to the external target. And the setting information, thereby realizing the synchronization of the locally stored file and the setting information to another target, the solution does not need manual copying for synchronization, and the convenience and richness are strong, and the data synchronization requirement when the user replaces the terminal can be satisfied. .
作为一个优选的实施方式,上述步骤S3可以包括:As a preferred implementation manner, the foregoing step S3 may include:
S31,访问预设存储目录,由于现有终端会根据数据的类型将文件数据存储到固定的目录下,因此本方案可以预设访问目录,搜索文件和设置信息时直接在预设目录中进行搜索即可;S31, accessing the preset storage directory, because the existing terminal stores the file data in a fixed directory according to the type of the data, the solution can preset to access the directory, and search for the file and the setting information directly in the preset directory. Yes;
S32,在所述预设存储目录中搜索具有预定后缀的文件,例如在存储音频文件的预设存储目录中,搜索后缀为.mp3的文件、存储图像文件的预设存储目录中,搜索后缀为.jpg格式的文件。S32. Search for a file with a predetermined suffix in the preset storage directory, for example, in a preset storage directory where the audio file is stored, search for a file with a suffix of .mp3, and a preset storage directory for storing the image file, and the search suffix is .jpg format file.
实施例2 Example 2
本实施例提供一种终端信息同步方法,该方法由同步信息接收端执行,如图2所示该方法包括:This embodiment provides a terminal information synchronization method, which is performed by a synchronization information receiving end. As shown in FIG. 2, the method includes:
S’1,接收同步数据包和型号信息,例如同步数据包的名称即为型号信息;S'1, receiving the synchronization data packet and the model information, for example, the name of the synchronization data packet is the model information;
S’2,从所述同步数据包中解析出文件和设置信息,同步数据包如果经过了数据压缩处理,此处需要对其进行解压处理,获取到各个文件和设置信息;S'2, parsing the file and setting information from the synchronous data packet, and if the synchronous data packet has undergone data compression processing, it needs to be decompressed and processed to obtain each file and setting information;
S’3,判断解析出的型号信息与本地终端的型号信息是否相同,此步骤是为了确定发送同步数据的终端与本终端是否为同一型号。众所周知,对于不同型号的终端,文件的格式可以通用,但设置信息通常是不通用的,因此需要根据判断结果做出后续操作。具体地,当解析出的型号信息与本地终端的型号信息相同时执行步骤S’4,否则执行步骤S’5;S'3, it is determined whether the parsed model information is the same as the model information of the local terminal. This step is to determine whether the terminal transmitting the synchronization data and the terminal are of the same model. As is known, for different types of terminals, the format of the file can be general, but the setting information is usually not universal, so it is necessary to follow the judgment result. Specifically, when the parsed model information is the same as the model information of the local terminal, step S'4 is performed, otherwise step S'5 is performed;
S’4,利用解析出的设置信息覆盖本地终端的设置信息,将解析出的文件拷贝到预定存储目录中,例如将音频文件存在本终端的音频文件目录中、将图像文件存储在本终端的音频文件目录中。此步骤是对设置信息和文件进行同步。S'4, using the parsed setting information to overwrite the setting information of the local terminal, and copying the parsed file into a predetermined storage directory, for example, storing the audio file in the audio file directory of the terminal, and storing the image file in the terminal. In the audio file directory. This step is to synchronize the setup information and files.
S’5,将解析出的文件拷贝到预定存储目录中,删除解析出的设置信息,即此步骤仅对文件进行同步。S'5, copying the parsed file into a predetermined storage directory, and deleting the parsed setting information, that is, this step only synchronizes the file.
当接收到上述数据后,可以向发送端进行反馈,使发送端确定同步信息已被接收或采纳。After receiving the above data, feedback may be sent to the transmitting end, so that the transmitting end determines that the synchronization information has been received or adopted.
根据本申请提供的终端信息同步方法,通过对接收的同步数据包进行解析可得到文件和设置信息,然后通过此型号信息来确定发送同步数据包 的终端与本终端的型号是否相同,对于型号相同的终端发来的同步数据包,利用其中的设置信息覆盖本地的设置信息,同时拷贝其中的文件,本方案不需要人工拷贝进行同步,便利性和丰富性较强,可以满足用户更换终端时的数据同步需求。According to the terminal information synchronization method provided by the present application, the file and the setting information can be obtained by parsing the received synchronization data packet, and then the model synchronization information is determined by using the model information. The terminal is the same as the model of the terminal. For the synchronous data packet sent by the terminal of the same model, the local setting information is overwritten by the setting information, and the file is copied at the same time. This scheme does not require manual copying for synchronization, and the convenience is convenient. It is more abundant and can meet the data synchronization requirements when users change terminals.
实施例3Example 3
本实施例提供一种终端信息同步装置,如图3所示该装置包括:The embodiment provides a terminal information synchronization device. As shown in FIG. 3, the device includes:
第一搜索单元31,用于搜索本地存储的文件和设置信息;a first searching unit 31, configured to search for locally stored files and setting information;
复制单元32,用于复制搜索到的文件和设置信息并生成同步数据包;a copying unit 32, configured to copy the searched file and setting information and generate an isochronous data packet;
第二搜索单元33,用于搜索本地终端的型号信息;a second search unit 33, configured to search for model information of the local terminal;
发送单元34,用于发送搜索到的型号信息和所述同步数据包。The sending unit 34 is configured to send the searched model information and the synchronization data packet.
根据本申请实施例提供的终端信息同步装置,通过搜索找到本地存储的文件和设置信息,并对其进行复制和打包,同时确定本地终端的型号信息,然后向外部目标发送型号信息和打包的文件和设置信息,由此可以实现将本地存储的文件和设置信息同步到另一目标中,本方案不需要人工拷贝进行同步,便利性和丰富性较强,可以满足用户更换终端时的数据同步需求。According to the terminal information synchronization apparatus provided by the embodiment of the present application, the locally stored file and the setting information are found by searching, and copied and packaged, and the model information of the local terminal is determined, and then the model information and the packaged file are sent to the external target. And the setting information, thereby realizing the synchronization of the locally stored file and the setting information to another target, the solution does not need manual copying for synchronization, and the convenience and richness are strong, and the data synchronization requirement when the user replaces the terminal can be satisfied. .
优选地,所述第一搜索单元31包括:Preferably, the first search unit 31 includes:
访问单元,用于访问预设存储目录;An access unit for accessing a preset storage directory;
文件搜索单元,用于在所述预设存储目录中搜索具有预定后缀的文件。a file search unit, configured to search for a file having a predetermined suffix in the preset storage directory.
实施例4Example 4
本实施例提供一种终端信息同步装置,如图4所示该装置包括: The embodiment provides a terminal information synchronization device. As shown in FIG. 4, the device includes:
接收单元41,用于接收同步数据包和型号信息;The receiving unit 41 is configured to receive the synchronization data packet and the model information.
解析单元42,用于从所述同步数据包中解析出文件和设置信息;The parsing unit 42 is configured to parse the file and the setting information from the synchronization data packet;
判定单元43,用于判断解析出的型号信息与本地终端的型号信息是否相同;The determining unit 43 is configured to determine whether the parsed model information is the same as the model information of the local terminal;
第一同步单元44,用于当解析出的型号信息与本地终端的型号信息相同时,利用解析出的设置信息覆盖本地终端的设置信息,将解析出的文件拷贝到预定存储目录中。The first synchronization unit 44 is configured to overwrite the setting information of the local terminal with the parsed setting information, and copy the parsed file into the predetermined storage directory when the parsed model information is the same as the model information of the local terminal.
根据本申请提供的终端信息同步装置,通过对接收的同步数据包进行解析可得到文件和设置信息,然后通过此型号信息来确定发送同步数据包的终端与本终端的型号是否相同,对于型号相同的终端发来的同步数据包,利用其中的设置信息覆盖本地的设置信息,同时拷贝其中的文件,本方案不需要人工拷贝进行同步,便利性和丰富性较强,可以满足用户更换终端时的数据同步需求。According to the terminal information synchronization device provided by the present application, the file and the setting information can be obtained by parsing the received synchronization data packet, and then the model information is used to determine whether the terminal transmitting the synchronization data packet is the same as the model of the terminal, and the model is the same. The synchronization data packet sent by the terminal uses the setting information to overwrite the local setting information and simultaneously copy the files therein. The solution does not need manual copying for synchronization, and the convenience and richness are strong, and can satisfy the user when the terminal is replaced. Data synchronization requirements.
优选地,还包括:Preferably, the method further comprises:
第二同步单元45,用于当解析出的型号信息与本地终端的型号信息不相同时,将解析出的文件拷贝到预定存储目录中,删除解析出的设置信息。The second synchronization unit 45 is configured to: when the parsed model information is different from the model information of the local terminal, copy the parsed file into a predetermined storage directory, and delete the parsed setting information.
实施例5Example 5
本实施例提供一种信息同步系统,如图5所示包括:This embodiment provides an information synchronization system, as shown in FIG. 5, including:
第一终端51,用于搜索本地存储的文件和设置信息,复制搜索到的文件和设置信息并生成同步数据包,搜索本地终端的型号信息,发送搜索到的型号信息和所述同步数据包;The first terminal 51 is configured to search for locally stored files and setting information, copy the searched file and setting information, generate a synchronization data packet, search for model information of the local terminal, and send the searched model information and the synchronization data packet;
第二终端52,用于接收所述同步数据包和所述型号信息,从所述同步 数据包中解析出文件和设置信息,判断解析出的型号信息与本地终端的型号信息是否相同,当解析出的型号信息与本地终端的型号信息相同时,利用解析出的设置信息覆盖本地终端的设置信息,将解析出的文件拷贝到预定存储目录中。a second terminal 52, configured to receive the synchronization data packet and the model information, from the synchronization The file and the setting information are parsed in the data packet, and it is determined whether the parsed model information is the same as the model information of the local terminal. When the parsed model information is the same as the model information of the local terminal, the parsed setting information is used to overwrite the local terminal. Set the information and copy the parsed file to the predetermined storage directory.
优选地,所述第二终端52还用于当解析出的型号信息与本地终端的型号信息不相同时,将解析出的文件拷贝到预定存储目录中,删除解析出的设置信息。Preferably, the second terminal 52 is further configured to: when the parsed model information is different from the model information of the local terminal, copy the parsed file into a predetermined storage directory, and delete the parsed setting information.
根据本申请提供的信息同步系统,由第一终端作为发送端,搜索本地存储的文件、设置信息和型号信息,最终发送搜索到的型号信息和同步数据包;并由第二终端作为接收端,接收所述同步数据包和所述型号信息,并判断解析出的型号信息与本地终端的型号信息是否相同,当解析出的型号信息与本地终端的型号信息相同时,利用解析出的设置信息覆盖本地终端的设置信息,同时将解析出的文件拷贝到预定存储目录中,本方案不需要人工拷贝进行同步,便利性和丰富性较强,可以满足用户更换终端时的数据同步需求。According to the information synchronization system provided by the present application, the first terminal acts as a transmitting end, searches for locally stored files, setting information, and model information, and finally transmits the searched model information and synchronization data packets; and the second terminal serves as a receiving end. Receiving the synchronization data packet and the model information, and determining whether the parsed model information is the same as the model information of the local terminal, and when the parsed model information is the same as the model information of the local terminal, using the parsed setup information to cover The setting information of the local terminal is copied to the predetermined storage directory at the same time. This solution does not require manual copying for synchronization, and has high convenience and richness, and can meet the data synchronization requirement when the user replaces the terminal.
实施例6Example 6
如图6所示,本申请还提供了一种电子设备,包括至少一个处理器810;以及,与所述至少一个处理器810通信连接的存储器800;其中,所述存储器800存储有可被所述至少一个处理器810执行的指令,所述指令被所述至少一个处理器810执行,以使所述至少一个处理器810能够搜索本地存储的文件和设置信息;复制搜索到的文件和设置信息并生成同步数据包;搜索本地终端的型号信息;发送搜索到的型号信息和所述同步数据包。所 述电子设备还包括与所述存储器800和所述处理器电连接的输入装置830和输出装置840,所述电连接优选为通过总线连接。As shown in FIG. 6, the present application further provides an electronic device including at least one processor 810; and a memory 800 communicably coupled to the at least one processor 810; wherein the memory 800 stores Executing instructions executed by at least one processor 810, the instructions being executed by the at least one processor 810 to enable the at least one processor 810 to search locally stored files and settings information; copy the searched files and settings information And generating a synchronization data packet; searching for model information of the local terminal; transmitting the searched model information and the synchronization data packet. Place The electronic device also includes an input device 830 and an output device 840 that are electrically coupled to the memory 800 and the processor, the electrical connections preferably being connected by a bus.
本实施例所述的电子设备,优选地,所述搜索本地存储的文件和设置信息,包括:访问预设存储目录;在所述预设存储目录中搜索具有预定后缀的文件。In the electronic device of the embodiment, the searching for locally stored files and setting information includes: accessing a preset storage directory; and searching for a file having a predetermined suffix in the preset storage directory.
实施例7Example 7
如图7所示,本申请还提供了一种电子设备,包括至少一个处理器910;以及,与所述至少一个处理器910通信连接的存储器900;其中,所述存储器900存储有可被所述至少一个处理器910执行的指令,所述指令被所述至少一个处理器910执行,以使所述至少一个处理器910能够接收同步数据包和型号信息;从所述同步数据包中解析出文件和设置信息;判断解析出的型号信息与本地终端的型号信息是否相同;当解析出的型号信息与本地终端的型号信息相同时,利用解析出的设置信息覆盖本地终端的设置信息,将解析出的文件拷贝到预定存储目录中。所述电子设备还包括与所述存储器900和所述处理器电连接的输入装置930和输出装置940,所述电连接优选为通过总线连接。As shown in FIG. 7, the present application further provides an electronic device including at least one processor 910; and a memory 900 communicably coupled to the at least one processor 910; wherein the memory 900 stores Executing instructions executed by at least one processor 910, the instructions being executed by the at least one processor 910 to enable the at least one processor 910 to receive synchronization data packets and model information; parsing out from the synchronization data packets File and setting information; determining whether the parsed model information is the same as the model information of the local terminal; when the parsed model information is the same as the model information of the local terminal, overwriting the setting information of the local terminal with the parsed setting information, and parsing The copied file is copied to the predetermined storage directory. The electronic device also includes an input device 930 and an output device 940 that are electrically coupled to the memory 900 and the processor, the electrical connections preferably being connected by a bus.
本实施例所述的电子设备,优选地,使所述至少一个处理器还能够:当解析出的型号信息与本地终端的型号信息不相同时,将解析出的文件拷贝到预定存储目录中,删除解析出的设置信息。In the electronic device of the embodiment, the at least one processor is further configured to: when the parsed model information is different from the model information of the local terminal, copy the parsed file into a predetermined storage directory, Delete the parsed setup information.
实施例8Example 8
本实施例提供了一种非易失性计算机存储介质,所述存储介质存储有 计算机可执行指令的所述计算机可执行指令,当由电子设备执行时使得电子设备能够:搜索本地存储的文件和设置信息;复制搜索到的文件和设置信息并生成同步数据包;搜索本地终端的型号信息;发送搜索到的型号信息和所述同步数据包。This embodiment provides a non-volatile computer storage medium, where the storage medium is stored The computer executable instructions of the computer executable instructions, when executed by the electronic device, enable the electronic device to: search for locally stored files and settings information; copy the searched files and settings information and generate synchronization data packets; search for local terminals Model information; sends the searched model information and the synchronization packet.
本实施例所述的存储介质,优选地,所述搜索本地存储的文件和设置信息,包括:访问预设存储目录;在所述预设存储目录中搜索具有预定后缀的文件。In the storage medium of the embodiment, the searching for locally stored files and setting information includes: accessing a preset storage directory; and searching for a file having a predetermined suffix in the preset storage directory.
实施例9Example 9
本实施例提供了一种非易失性计算机存储介质,所述存储介质存储有计算机可执行指令的所述计算机可执行指令,当由电子设备执行时使得电子设备能够:接收同步数据包和型号信息;从所述同步数据包中解析出文件和设置信息;判断解析出的型号信息与本地终端的型号信息是否相同;当解析出的型号信息与本地终端的型号信息相同时,利用解析出的设置信息覆盖本地终端的设置信息,将解析出的文件拷贝到预定存储目录中。The present embodiment provides a non-volatile computer storage medium storing the computer-executable instructions of computer-executable instructions that, when executed by an electronic device, enable an electronic device to: receive an isochronous data packet and model number Information; parsing the file and setting information from the synchronization packet; determining whether the parsed model information is the same as the model information of the local terminal; and when the parsed model information is the same as the model information of the local terminal, using the parsed The setting information covers the setting information of the local terminal, and the parsed file is copied to the predetermined storage directory.
本实施例所述的存储介质,优选地,使所述电子设备还能够:当解析出的型号信息与本地终端的型号信息不相同时,将解析出的文件拷贝到预定存储目录中,删除解析出的设置信息。In the storage medium of the embodiment, the electronic device is further configured to: when the parsed model information is different from the model information of the local terminal, copy the parsed file to a predetermined storage directory, and delete the parsing Out of the setup information.
实施例10Example 10
本实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程 序指令,当所述程序指令被计算机执行时,使所述计算机执行上述实施例所述的方法。The embodiment further provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising A sequence instruction that, when executed by a computer, causes the computer to perform the method described in the above embodiments.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware. Moreover, the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded into a computer or other programmable data processing device Having a series of operational steps performed on a computer or other programmable device to produce computer-implemented processing such that instructions executed on a computer or other programmable device are provided for implementing one or more processes in a flowchart and/or Or block diagram the steps of a function specified in a box or multiple boxes.
显然,上述实施例仅仅是为清楚地说明所作的举例,而并非对实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。而由此所引伸出的显而易见的变化或变动仍处于本申请创造的保护范围之中。 It is apparent that the above-described embodiments are merely illustrative of the examples, and are not intended to limit the embodiments. Other variations or modifications of the various forms may be made by those skilled in the art in light of the above description. There is no need and no way to exhaust all of the implementations. Obvious changes or variations resulting therefrom are still within the scope of protection created by this application.

Claims (19)

  1. 一种终端信息同步方法,其特征在于,包括:A method for synchronizing terminal information, comprising:
    搜索本地存储的文件和设置信息;Search for locally stored files and settings information;
    复制搜索到的文件和设置信息并生成同步数据包;Copy the searched files and settings information and generate synchronization packets;
    搜索本地终端的型号信息;Search for model information of the local terminal;
    发送搜索到的型号信息和所述同步数据包。Send the searched model information and the synchronization packet.
  2. 根据权利要求1所述的方法,其特征在于,所述搜索本地存储的文件和设置信息,包括:The method according to claim 1, wherein said searching for locally stored files and setting information comprises:
    访问预设存储目录;Access the default storage directory;
    在所述预设存储目录中搜索具有预定后缀的文件。Searching for a file with a predetermined suffix in the preset storage directory.
  3. 一种终端信息同步方法,其特征在于,包括:A method for synchronizing terminal information, comprising:
    接收同步数据包和型号信息;Receiving isochronous data packets and model information;
    从所述同步数据包中解析出文件和设置信息;Parsing the file and setting information from the synchronization packet;
    判断解析出的型号信息与本地终端的型号信息是否相同;Determining whether the parsed model information is the same as the model information of the local terminal;
    当解析出的型号信息与本地终端的型号信息相同时,利用解析出的设置信息覆盖本地终端的设置信息,将解析出的文件拷贝到预定存储目录中。When the parsed model information is the same as the model information of the local terminal, the parsed setting information is used to overwrite the setting information of the local terminal, and the parsed file is copied to the predetermined storage directory.
  4. 根据权利要求3所述的方法,其特征在于,还包括:The method of claim 3, further comprising:
    当解析出的型号信息与本地终端的型号信息不相同时,将解析出的文 件拷贝到预定存储目录中,删除解析出的设置信息。When the parsed model information is different from the model information of the local terminal, the parsed text will be parsed. The copy is copied to the predetermined storage directory, and the parsed setup information is deleted.
  5. 一种终端信息同步装置,其特征在于,包括:A terminal information synchronization device, comprising:
    第一搜索单元,用于搜索本地存储的文件和设置信息;a first search unit for searching locally stored files and setting information;
    复制单元,用于复制搜索到的文件和设置信息并生成同步数据包;a copy unit for copying the searched file and setting information and generating an isochronous data packet;
    第二搜索单元,用于搜索本地终端的型号信息;a second search unit, configured to search for model information of the local terminal;
    发送单元,用于发送搜索到的型号信息和所述同步数据包。And a sending unit, configured to send the searched model information and the synchronization data packet.
  6. 根据权利要求5所述的装置,其特征在于,所述第一搜索单元包括:The apparatus according to claim 5, wherein said first search unit comprises:
    访问单元,用于访问预设存储目录;An access unit for accessing a preset storage directory;
    文件搜索单元,用于在所述预设存储目录中搜索具有预定后缀的文件。a file search unit, configured to search for a file having a predetermined suffix in the preset storage directory.
  7. 一种终端信息同步装置,其特征在于,包括:A terminal information synchronization device, comprising:
    接收单元,用于接收同步数据包和型号信息;a receiving unit, configured to receive the synchronization data packet and the model information;
    解析单元,用于从所述同步数据包中解析出文件和设置信息;a parsing unit, configured to parse the file and the setting information from the synchronous data packet;
    判定单元,用于判断解析出的型号信息与本地终端的型号信息是否相同;a determining unit, configured to determine whether the parsed model information is the same as the model information of the local terminal;
    第一同步单元,用于当解析出的型号信息与本地终端的型号信息相同时,利用解析出的设置信息覆盖本地终端的设置信息,将解析出的文件拷贝到预定存储目录中。 The first synchronization unit is configured to overwrite the setting information of the local terminal with the parsed setting information, and copy the parsed file into a predetermined storage directory when the parsed model information is the same as the model information of the local terminal.
  8. 根据权利要求7所述的装置,其特征在于,还包括:The device according to claim 7, further comprising:
    第二同步单元,用于当解析出的型号信息与本地终端的型号信息不相同时,将解析出的文件拷贝到预定存储目录中,删除解析出的设置信息。The second synchronization unit is configured to: when the parsed model information is different from the model information of the local terminal, copy the parsed file into a predetermined storage directory, and delete the parsed setting information.
  9. 一种信息同步系统,其特征在于,包括:An information synchronization system, comprising:
    第一终端,用于搜索本地存储的文件和设置信息,复制搜索到的文件和设置信息并生成同步数据包,搜索本地终端的型号信息,发送搜索到的型号信息和所述同步数据包;a first terminal, configured to search locally stored files and setting information, copy the searched file and setting information, generate a synchronization data packet, search for model information of the local terminal, and send the searched model information and the synchronization data packet;
    第二终端,用于接收所述同步数据包和所述型号信息,从所述同步数据包中解析出文件和设置信息,判断解析出的型号信息与本地终端的型号信息是否相同,当解析出的型号信息与本地终端的型号信息相同时,利用解析出的设置信息覆盖本地终端的设置信息,将解析出的文件拷贝到预定存储目录中。The second terminal is configured to receive the synchronization data packet and the model information, parse the file and the setting information from the synchronization data packet, and determine whether the parsed model information is the same as the model information of the local terminal, and parse out When the model information is the same as the model information of the local terminal, the setting information of the local terminal is overwritten by the parsed setting information, and the parsed file is copied to the predetermined storage directory.
  10. 根据权利要求9所述的系统,其特征在于,所述第二终端还用于当解析出的型号信息与本地终端的型号信息不相同时,将解析出的文件拷贝到预定存储目录中,删除解析出的设置信息。The system according to claim 9, wherein the second terminal is further configured to: when the parsed model information is different from the model information of the local terminal, copy the parsed file to a predetermined storage directory, and delete Parsed setup information.
  11. 一种电子设备,其特征在于包括至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions Executed by the at least one processor to enable the at least one processor to:
    搜索本地存储的文件和设置信息; Search for locally stored files and settings information;
    复制搜索到的文件和设置信息并生成同步数据包;Copy the searched files and settings information and generate synchronization packets;
    搜索本地终端的型号信息;Search for model information of the local terminal;
    发送搜索到的型号信息和所述同步数据包。Send the searched model information and the synchronization packet.
  12. 根据权利要求11所述的电子设备,其特征在于,所述搜索本地存储的文件和设置信息,包括:The electronic device according to claim 11, wherein the searching for locally stored files and setting information comprises:
    访问预设存储目录;Access the default storage directory;
    在所述预设存储目录中搜索具有预定后缀的文件。Searching for a file with a predetermined suffix in the preset storage directory.
  13. 一种电子设备,其特征在于包括至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions Executed by the at least one processor to enable the at least one processor to
    接收同步数据包和型号信息;Receiving isochronous data packets and model information;
    从所述同步数据包中解析出文件和设置信息;Parsing the file and setting information from the synchronization packet;
    判断解析出的型号信息与本地终端的型号信息是否相同;Determining whether the parsed model information is the same as the model information of the local terminal;
    当解析出的型号信息与本地终端的型号信息相同时,利用解析出的设置信息覆盖本地终端的设置信息,将解析出的文件拷贝到预定存储目录中。When the parsed model information is the same as the model information of the local terminal, the parsed setting information is used to overwrite the setting information of the local terminal, and the parsed file is copied to the predetermined storage directory.
  14. 根据权利要求13所述的电子设备,其特征在于,使所述至少一个处理器还能够:The electronic device of claim 13 wherein said at least one processor is further capable of:
    当解析出的型号信息与本地终端的型号信息不相同时,将解析出的文 件拷贝到预定存储目录中,删除解析出的设置信息。When the parsed model information is different from the model information of the local terminal, the parsed text will be parsed. The copy is copied to the predetermined storage directory, and the parsed setup information is deleted.
  15. 一种非易失性计算机存储介质,其特征在于:所述存储介质存储有计算机可执行指令的所述计算机可执行指令,当由电子设备执行时使得电子设备能够:A non-volatile computer storage medium characterized by: said storage medium storing said computer executable instructions of computer executable instructions, when executed by an electronic device, enabling the electronic device to:
    搜索本地存储的文件和设置信息;Search for locally stored files and settings information;
    复制搜索到的文件和设置信息并生成同步数据包;Copy the searched files and settings information and generate synchronization packets;
    搜索本地终端的型号信息;Search for model information of the local terminal;
    发送搜索到的型号信息和所述同步数据包。Send the searched model information and the synchronization packet.
  16. 根据权利要求15所述的存储介质,其特征在于,所述搜索本地存储的文件和设置信息,包括:The storage medium according to claim 15, wherein the searching for locally stored files and setting information comprises:
    访问预设存储目录;Access the default storage directory;
    在所述预设存储目录中搜索具有预定后缀的文件。Searching for a file with a predetermined suffix in the preset storage directory.
  17. 一种非易失性计算机存储介质,其特征在于:所述存储介质存储有计算机可执行指令的所述计算机可执行指令,当由电子设备执行时使得电子设备能够:A non-volatile computer storage medium characterized by: said storage medium storing said computer executable instructions of computer executable instructions, when executed by an electronic device, enabling the electronic device to:
    接收同步数据包和型号信息;Receiving isochronous data packets and model information;
    从所述同步数据包中解析出文件和设置信息;Parsing the file and setting information from the synchronization packet;
    判断解析出的型号信息与本地终端的型号信息是否相同;Determining whether the parsed model information is the same as the model information of the local terminal;
    当解析出的型号信息与本地终端的型号信息相同时,利用解析出的设 置信息覆盖本地终端的设置信息,将解析出的文件拷贝到预定存储目录中。When the parsed model information is the same as the model information of the local terminal, the parsed device is used. The setting information covers the setting information of the local terminal, and the parsed file is copied to the predetermined storage directory.
  18. 根据权利要求17所述的存储介质,其特征在于,使所述电子设备还能够:The storage medium of claim 17 wherein said electronic device is further capable of:
    当解析出的型号信息与本地终端的型号信息不相同时,将解析出的文件拷贝到预定存储目录中,删除解析出的设置信息。When the parsed model information is different from the model information of the local terminal, the parsed file is copied to the predetermined storage directory, and the parsed setting information is deleted.
  19. 一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,其特征在于,当所述程序指令被计算机执行时,使所述计算机执行上述任一权利要求所述的方法。 A computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, wherein when the program instructions are executed by a computer, The computer performs the method of any of the preceding claims.
PCT/CN2016/101860 2016-04-01 2016-10-12 Terminal information synchronization method and apparatus, information synchronization system, and electronic device WO2017166773A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610204646.0A CN105847374A (en) 2016-04-01 2016-04-01 Terminal information synchronization method and device, and information synchronization system
CN201610204646.0 2016-04-01

Publications (1)

Publication Number Publication Date
WO2017166773A1 true WO2017166773A1 (en) 2017-10-05

Family

ID=56596672

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/101860 WO2017166773A1 (en) 2016-04-01 2016-10-12 Terminal information synchronization method and apparatus, information synchronization system, and electronic device

Country Status (2)

Country Link
CN (1) CN105847374A (en)
WO (1) WO2017166773A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347341A (en) * 2019-07-09 2019-10-18 上海悦易网络信息技术有限公司 Data clearing method and control equipment
CN112118344A (en) * 2020-09-25 2020-12-22 斑马网络技术有限公司 Double-telephone-book transmission method and device, electronic equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847374A (en) * 2016-04-01 2016-08-10 乐视控股(北京)有限公司 Terminal information synchronization method and device, and information synchronization system
CN106598753B (en) * 2016-11-21 2019-08-16 广东欧珀移动通信有限公司 Data transmission method, device and equipment between a kind of first terminal and second terminal
CN108206998A (en) * 2016-12-20 2018-06-26 北京小米移动软件有限公司 Obtain the method and device of end message

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070022158A1 (en) * 2005-07-25 2007-01-25 Sony Ericsson Mobile Communications Ab Mobile communication terminal supporting information sharing
CN101600010A (en) * 2008-06-02 2009-12-09 希姆通信息技术(上海)有限公司 Sharing method of mobile phone interface configuration
CN101969501A (en) * 2010-09-21 2011-02-09 宇龙计算机通信科技(深圳)有限公司 Mobile terminal, and data synchronization system and method thereof
US20140176395A1 (en) * 2012-12-21 2014-06-26 Nokia Corporation Method and apparatus for sharing content
CN104868939A (en) * 2015-06-04 2015-08-26 广东欧珀移动通信有限公司 Bluetooth-based synchronized method and device between terminals
CN105847374A (en) * 2016-04-01 2016-08-10 乐视控股(北京)有限公司 Terminal information synchronization method and device, and information synchronization system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070022158A1 (en) * 2005-07-25 2007-01-25 Sony Ericsson Mobile Communications Ab Mobile communication terminal supporting information sharing
CN101600010A (en) * 2008-06-02 2009-12-09 希姆通信息技术(上海)有限公司 Sharing method of mobile phone interface configuration
CN101969501A (en) * 2010-09-21 2011-02-09 宇龙计算机通信科技(深圳)有限公司 Mobile terminal, and data synchronization system and method thereof
US20140176395A1 (en) * 2012-12-21 2014-06-26 Nokia Corporation Method and apparatus for sharing content
CN104868939A (en) * 2015-06-04 2015-08-26 广东欧珀移动通信有限公司 Bluetooth-based synchronized method and device between terminals
CN105847374A (en) * 2016-04-01 2016-08-10 乐视控股(北京)有限公司 Terminal information synchronization method and device, and information synchronization system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347341A (en) * 2019-07-09 2019-10-18 上海悦易网络信息技术有限公司 Data clearing method and control equipment
CN110347341B (en) * 2019-07-09 2023-07-04 上海万物新生环保科技集团有限公司 Data clearing method and control equipment
CN112118344A (en) * 2020-09-25 2020-12-22 斑马网络技术有限公司 Double-telephone-book transmission method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105847374A (en) 2016-08-10

Similar Documents

Publication Publication Date Title
WO2017166773A1 (en) Terminal information synchronization method and apparatus, information synchronization system, and electronic device
JP6242496B2 (en) Method, apparatus, program and recording medium for connecting to wireless network
WO2018054195A1 (en) Resource allocating method and base station
EP2924952A1 (en) Data synchronization method and device
KR102274950B1 (en) Apparatus and method for multi-network access in wireless communication system
WO2017166791A1 (en) Application backup method and apparatus
EP3125501A1 (en) File synchronization method, server, and terminal
US11671399B2 (en) Sharing media among remote access clients in a universal plug and play environment
CN102739706A (en) Method and system for carrying out data synchronization
US9690796B2 (en) Non-transitory computer-readable media storing file management program, file management apparatus, and file management method
CN103986776A (en) Router and downloading method based on router
KR102221100B1 (en) Method for storing data by using cloud services and apparatus thereof
WO2018107593A1 (en) Method and device for sharing file between different terminals
CN105681420A (en) Method for realizing backup of switch operating system based on Docker
WO2012034325A1 (en) Method and apparatus for backing up mobile terminal files
EP2615563A1 (en) Device for synchronously sharing files and method for synchronously sharing files
CN106250455B (en) Mobile terminal file management method and system
CN103179201B (en) A kind of method and system of file synchronization
CN103248678A (en) Data resource sharing method, server-side and client-side
WO2018050055A1 (en) Data request processing method and system, access device, and storage device therefor
WO2016026291A1 (en) Wireless data card, communication system, data synchronization method and computer storage medium
WO2013060132A1 (en) Data synchronization method and device
CN106407320B (en) File processing method, device and system
WO2024041188A1 (en) Data management method and corresponding device
JP6000608B2 (en) Replication execution unit

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16896543

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16896543

Country of ref document: EP

Kind code of ref document: A1