WO2014101889A1 - 数据同步方法及设备 - Google Patents
数据同步方法及设备 Download PDFInfo
- Publication number
- WO2014101889A1 WO2014101889A1 PCT/CN2013/091130 CN2013091130W WO2014101889A1 WO 2014101889 A1 WO2014101889 A1 WO 2014101889A1 CN 2013091130 W CN2013091130 W CN 2013091130W WO 2014101889 A1 WO2014101889 A1 WO 2014101889A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- synchronization
- information
- user equipment
- file
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Definitions
- the present invention claims the priority of the Chinese Patent Application entitled “Data Synchronization Method and Apparatus” filed on December 31, 2012, the Chinese Patent Office, the application No. 201210593336.4, the entire contents of which are incorporated by reference.
- TECHNICAL FIELD The present invention relates to communications technologies, and in particular, to a data synchronization method and device. Background technique
- file synchronization operations can be performed between two User Equipments (UEs).
- UEs User Equipments
- UEs User Equipments
- USB Universal Serial Bus
- iTunes software for implementing point-to-point synchronization files between UE and personal computer (PC).
- the existing file synchronization method may perform repeated synchronization operations between user devices, resulting in wasted device resources.
- the embodiments of the present invention provide a data synchronization management method, device, and system, which can solve the problem of repeated file synchronization in the prior art and improve the utilization of device resources.
- a first aspect of the present invention provides a data synchronization method, including:
- the server receives the synchronization task message sent by the first user equipment, where the synchronization task message includes: information about the synchronization task indication and the synchronization file;
- the information of the synchronization file includes a uniform resource locator URL corresponding to a storage address of the synchronization file;
- the synchronization file information includes a URL corresponding to the storage address of the synchronization file, and further includes any one or more of the following information: name information of the synchronization file, capacity information of the synchronization file, the synchronization Type information of the file, synchronization status information of the synchronization file, and priority information of the file to be synchronized.
- the synchronization task is a create command
- the synchronization task message is And carrying information about the first user equipment and information of the second user equipment
- the server After the determining, according to the synchronization task indication, the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information stored by the server, the server further includes:
- the execution result of the synchronization task indication in the response message is used to indicate that the server
- the information of the synchronization file is stored in the history synchronization information.
- the synchronization task message further carries the information of the first user equipment and the information of the second user equipment; the server determines, according to the synchronization task indication, the synchronization file corresponding to the historical synchronization information stored by the server.
- the historical synchronization operation information it also includes:
- the server determines that the synchronization operation of the synchronization file by the second user equipment is not performed according to the historical synchronization operation information corresponding to the synchronization file, the server sends a notification message to the second user equipment,
- the notification message carries the information of the synchronization file, where the notification message is used to instruct the second user equipment to perform a corresponding synchronization operation according to the information of the synchronization file; the server associates the notification message to the Historical synchronization information.
- the sending, by the server, the notification message to the second user equipment includes: - the server determines whether the second user equipment is online;
- the server stores the synchronization task message; the server receives an online request of the second user equipment;
- a seventh possible implementation manner of the first aspect after the server sends the notification message to the second user equipment, also includes:
- the server synchronizes the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information according to the synchronization completion message.
- the synchronization task is indicated as a query command;
- the execution result of the synchronization task indication carries historical synchronization operation information corresponding to the synchronization file in the historical synchronization information.
- the synchronization task is indicated as an update command, and the synchronization task message is Also carrying information of the second user equipment;
- the server After the determining, according to the synchronization task indication, the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information stored by the server, the server further includes:
- the server updates the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information according to the information of the second user equipment.
- the execution result of the synchronization task indication in the response message is used to indicate that the server is configured according to the
- the information of the second user equipment updates historical synchronization operation information corresponding to the synchronization file in the history synchronization information.
- the synchronization task is instructed to be a delete command, and the synchronization task message further carries information of the second user equipment;
- the server After the determining, according to the synchronization task indication, the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information stored by the server, the server further includes:
- the server deletes historical synchronization operation information corresponding to the second user equipment in the synchronization file in the history synchronization information.
- the execution result of the synchronization task indication in the response message is used to indicate that the server is
- the historical synchronization operation information corresponding to the second user equipment in the synchronization file is deleted from the history synchronization information.
- the synchronization task message Before the synchronization task message, it also includes:
- the server stores the information of the first user equipment into a device list.
- the server receives the first user equipment and sends Before the synchronization task message, it also includes:
- the server sends a device list to the first user equipment, where the device list includes information of at least one user equipment registered to the server.
- a second aspect of the present invention provides a data synchronization method, including:
- the first user equipment sends a synchronization task message to the server, where the synchronization task message includes: a synchronization task indication and a synchronization file information;
- the first user equipment receives a response message of the synchronization task message sent by the server, where the response message carries an execution result of the synchronization task indication.
- the information of the synchronization file includes a uniform resource locator URL corresponding to a storage address of the synchronization file;
- the synchronization file information includes a URL corresponding to a storage address of the synchronization file, and includes the following Any one or more combinations of information: name information of the synchronization file, capacity information of the synchronization file, type information of the synchronization file, synchronization state information of the synchronization file, and the file to be synchronized Priority information.
- the synchronization task is a create command
- the synchronization task message is And carrying information about the first user equipment and information of the second user equipment
- the execution result of the synchronization task indication carried in the response message is used to instruct the server to store information of the synchronization file in the history synchronization information.
- the synchronization task message further carries the information of the first user equipment and the information of the second user equipment; the execution result of the synchronization task indication in the response message is used to indicate that the second user equipment is according to the Synchronize the information of the file to perform the corresponding synchronization operation.
- the synchronization task is indicated as a query command
- the execution result of the synchronization task indication carried in the response message carries historical synchronization operation information corresponding to the synchronization file in the historical synchronization information.
- the synchronization task is indicated as an update command, and the synchronization task message is Also carrying information of the second user equipment;
- the execution result of the synchronization task indication in the response message is used to instruct the server to update the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information according to the information of the second user equipment;
- the first user equipment updates historical synchronization operation information corresponding to the locally stored synchronization file according to the response message.
- the synchronization task is indicated as a delete command, and the synchronization task message is Also carrying information of the second user equipment;
- the execution result of the synchronization task indication in the response message is used to instruct the server to delete the historical synchronization operation corresponding to the second user equipment in the synchronization file in the historical synchronization information. - - for information;
- the first user equipment updates historical synchronization operation information corresponding to the locally stored synchronization file according to the response message.
- the first user equipment sends a synchronization task to the server Before the news, it also includes:
- the first user equipment sends a registration request to the server, where the registration request carries information of the first user equipment.
- the first user equipment sends a synchronization task to the server Before the news, it also includes:
- the first user equipment receives a device list sent by the server, and the device list includes information of at least one user equipment registered to the server.
- a server including:
- a first receiving module configured to receive a synchronization task message sent by the first user equipment, where the synchronization task message includes: a synchronization task indication and a synchronization file information;
- a determining module configured to determine, according to the synchronization task indication, historical synchronization operation information corresponding to the synchronization file in historical synchronization information stored by the server;
- the first sending module is configured to send a response message of the synchronization task message to the first user equipment, where the response message carries an execution result of the synchronization task indication.
- the information of the synchronization file includes a uniform resource locator URL corresponding to a storage address of the synchronization file;
- the synchronization file information includes a URL corresponding to the storage address of the synchronization file, and further includes any one or more of the following information: name information of the synchronization file, capacity information of the synchronization file, the synchronization Type information of the file, synchronization status information of the synchronization file, and priority information of the file to be synchronized.
- the synchronization task is a create command
- the synchronization task message is And carrying information about the first user equipment and information of the second user equipment; - -
- the server also includes:
- a determining module configured to determine, after the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information stored by the server, whether the information of the synchronization file is stored in the historical synchronization information;
- a first storage module configured to: if the information of the synchronization file is not stored in the historical synchronization information, store the information of the synchronization file in the historical synchronization information.
- the execution result of the synchronization task indication in the response message is used to indicate that the server
- the information of the synchronization file is stored in the history synchronization information.
- the synchronization task message further carries information of the first user equipment and information of the second user equipment; the determining module is further configured to determine a history corresponding to the synchronization file in historical synchronization information stored by the server After the operation information is synchronized, determining, according to the historical synchronization operation information corresponding to the synchronization file, that the synchronization operation of the synchronization file by the second user equipment is not performed;
- the first sending module is further configured to send a notification message to the second user equipment, where the notification message carries information of the synchronization file, where the notification message is used to indicate that the second user equipment is configured according to the Synchronize the information of the file to perform the corresponding synchronization operation;
- a second storage module configured to associate the notification message to the historical synchronization information.
- the determining module is further configured to determine whether the second user equipment is online;
- the second storage module is further configured to store the synchronization task message if the second user equipment is offline;
- the first receiving module is further configured to receive an online request of the second user equipment, where the first sending module is further configured to send the carrying to the second user equipment according to the stored synchronization task message.
- the notification message of the information of the synchronization file is further configured to send the carrying to the second user equipment according to the stored synchronization task message.
- the first receiving module is further configured to: after sending the notification message to the second user equipment, receive a synchronization completion message sent by the second user equipment;
- the server further includes:
- a first update module configured to update historical synchronization operation information corresponding to the synchronization file in the historical synchronization information according to the synchronization completion message.
- the synchronization task is indicated as a query command;
- the execution result of the synchronization task indication carries historical synchronization operation information corresponding to the synchronization file in the historical synchronization information.
- the synchronization task is indicated as an update command, and the synchronization task message is Also carrying information of the second user equipment;
- the server further includes:
- a second update module configured to: after the historical synchronization information corresponding to the synchronization file is determined in the historical synchronization information stored by the server, update the synchronization file according to the information of the second user equipment in the historical synchronization information Historical synchronization operation information.
- the execution result of the synchronization task indication in the response message is used to indicate that the server is configured according to the
- the information of the second user equipment updates historical synchronization operation information corresponding to the synchronization file in the history synchronization information.
- the synchronization task is indicated as a delete command, and the synchronization task is The message also carries information of the second user equipment;
- the server further includes:
- a deleting module configured to delete a historical synchronization operation corresponding to the second user equipment in the synchronization file in the historical synchronization information after determining the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information stored by the server information.
- the execution result of the synchronization task indication in the response message is used to indicate that the server is Deleting the history corresponding to the second user equipment in the synchronization file in the history synchronization information - - Synchronize operation information.
- the first receiving module is further used Before receiving the synchronization task message sent by the first user equipment, the server receives the registration request sent by the first user equipment, where the registration request carries the information of the first user equipment;
- a third storage module configured to: store, by the server, information of the first user equipment into a device list.
- the first receiving module is further used Receiving, before the server receives the synchronization task message sent by the first user equipment, the device list request message sent by the first user equipment;
- the first sending module is further configured to send a device list to the first user equipment, where the device list includes information of at least one user equipment registered to the server.
- a fourth aspect of the present invention provides a user equipment, including:
- a second sending module configured to send a synchronization task message to the server, where the synchronization task message includes: a synchronization task indication and a synchronization file information;
- a second receiving module configured to receive a response message of the synchronization task message sent by the server, where the response message carries an execution result of the synchronization task indication.
- the information of the synchronization file includes a uniform resource locator URL corresponding to a storage address of the synchronization file;
- the synchronization file information includes a URL corresponding to the storage address of the synchronization file, and further includes any one or more of the following information: name information of the synchronization file, capacity information of the synchronization file, the synchronization Type information of the file, synchronization status information of the synchronization file, and priority information of the file to be synchronized.
- the synchronization task is a create command
- the synchronization task message is And carrying information about the first user equipment and information of the second user equipment
- the execution result of the synchronization task indication carried in the response message is used to instruct the server to store information of the synchronization file in the history synchronization information.
- the synchronization task is configured to create a command, where the synchronization task message further carries information of the first user equipment and information of the second user equipment.
- the execution result of the synchronization task indication in the response message is used to instruct the second user equipment to perform a corresponding synchronization operation according to the information of the synchronization file.
- the synchronization task is indicated as a query command
- the execution result of the synchronization task indication carried in the response message carries historical synchronization operation information corresponding to the synchronization file in the historical synchronization information.
- the synchronization task is an update command, and the synchronization task message is Also carrying information of the second user equipment;
- the execution result of the synchronization task indication in the response message is used to instruct the server to update the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information according to the information of the second user equipment;
- the user equipment further includes:
- a third update module configured to update the historical synchronization operation information corresponding to the locally stored synchronization file according to the response message.
- the synchronization task is indicated as a delete command, and the synchronization task message is Also carrying information of the second user equipment;
- the execution result of the synchronization task indication in the response message is used to instruct the server to delete historical synchronization operation information corresponding to the second user equipment in the synchronization file in the historical synchronization information;
- the user equipment further includes:
- a fourth update module configured to update the historical synchronization operation information corresponding to the locally stored synchronization file according to the response message.
- the second sending module is further configured to be used in Before the first user equipment sends a synchronization task message to the server, the first user equipment sends a registration request to the server, where the registration request carries the information of the first user equipment.
- the second sending module is further used Sending a device list request message to the server before the first user equipment sends a synchronization task message to the server;
- the second receiving module is further configured to receive a device list sent by the server, where the device list includes information of at least one user equipment registered to the server.
- the data synchronization method and device receive a synchronization task message that is sent by the first user equipment and includes information about the synchronization task indication and the synchronization file, and determines, according to the synchronization task indication, the historical synchronization information stored in the server.
- the historical synchronization operation information corresponding to the synchronization file, and the execution result of the synchronization task indication is carried in the response message of the synchronization task message sent to the first user equipment, so that the server can control the data synchronization between the user equipment according to the historical synchronization information, thereby avoiding File synchronization is repeated to improve the utilization of device resources.
- Embodiment 1 is a flowchart of Embodiment 1 of a data synchronization method provided by the present invention
- Embodiment 2 is a flowchart of Embodiment 2 of a data synchronization method provided by the present invention
- Embodiment 3 is a flowchart of Embodiment 3 of a data synchronization method provided by the present invention.
- Embodiment 5 of a data synchronization method according to the present invention
- FIG. 5 is a flowchart of Embodiment 6 of a data synchronization method according to the present invention.
- Embodiment 7 of a data synchronization method according to the present invention.
- FIG. 7 is a flowchart of Embodiment 8 of a data synchronization method according to the present invention.
- Embodiment 10 of a data synchronization method provided by the present invention
- FIG. 9 is a flowchart of Embodiment 11 of a data synchronization method according to the present invention.
- FIG. 10 is a flowchart of Embodiment 12 of a data synchronization method according to the present invention.
- FIG. 11 is a flowchart of Embodiment 13 of a data synchronization method according to the present invention.
- - Figure 12 is a flowchart of Embodiment 14 of the data synchronization method provided by the present invention;
- Embodiment 13 is a schematic structural diagram of Embodiment 1 of a server provided by the present invention.
- Embodiment 2 of a server provided by the present invention.
- Embodiment 15 is a schematic structural diagram of Embodiment 3 of a server provided by the present invention.
- Embodiment 5 of a server provided by the present invention is a schematic structural diagram of Embodiment 5 of a server provided by the present invention.
- FIG. 17 is a schematic structural diagram of Embodiment 6 of a server according to the present invention.
- Embodiment 7 of a server provided by the present invention.
- FIG. 19 is a schematic structural diagram of Embodiment 1 of a user equipment according to the present invention.
- FIG. 20 is a schematic structural diagram of Embodiment 3 of a user equipment according to the present invention.
- FIG. 21 is a schematic structural diagram of Embodiment 4 of a user equipment according to the present invention.
- FIG. 22 is a schematic structural diagram of Embodiment 6 of a user equipment according to the present invention.
- the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention.
- the embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
- FIG. 1 is a flowchart of Embodiment 1 of a data synchronization method according to the present invention.
- the data synchronization method in this embodiment includes:
- the server receives a synchronization task message sent by the first user equipment, where the synchronization task message includes: a synchronization task indication and a synchronization file information.
- the embodiment may be directed to a scenario of resource sharing between user equipments in a home network or a local area network.
- the embodiment of the present invention is not limited to the scenario, and the server may be a smart set top box, and may be independently set or may be
- the user equipment integration setting in the network is responsible for docking each user equipment.
- the first user equipment may include, but is not limited to, a mobile phone, a personal digital assistant (PDA), a wireless handheld device, a wireless netbook, a portable computer, an MP3 player. , MP4 player, TV, personal computer (PC), etc.
- the server and each user device can communicate via Wireless Fidelity (WiFi).
- WiFi Wireless Fidelity
- the present invention does not limit the communication mode between the server and each user equipment.
- the server stores the synchronization operation information of each user equipment.
- the first user equipment initiates the synchronization task, it sends a synchronization task message to the server, and synchronizes.
- the task message may include: a synchronization task indication and a synchronization file information
- the synchronization task indication may include a creation operation indication, a query operation indication, an update operation instruction, and a deletion operation indication, etc., for indicating a synchronization task operation type to the server, the first user equipment
- the information of the synchronization task indication and the synchronization file may be encapsulated into a synchronization task message and sent to the server.
- the information of the synchronization file includes a Universal Resource Locator (URL) corresponding to the storage address of the synchronization file; or
- URL Universal Resource Locator
- the synchronization file information includes a URL corresponding to the storage address of the synchronization file, and includes any one or more of the following combinations: name information of the synchronization file, capacity information of the synchronization file, type information of the synchronization file, synchronization status of the synchronization file Information and priority information of files to be synchronized.
- the file type includes image type, video, audio, document, etc.
- the synchronization status can be set to synchronous wait state, synchronous pause state, synchronous timing state, and synchronization priority indicates file synchronization priority.
- the server determines, according to the synchronization task indication, historical synchronization operation information corresponding to the synchronization file in the historical synchronization information stored by the server.
- the server may parse the synchronization task message according to the preset synchronization task message parsing specification, determine the synchronization task indication and the synchronization file information, and the server may indicate the corresponding operation type according to the synchronization task.
- the historical synchronization information corresponding to the synchronization file is determined in the historical synchronization information stored by the server. If the historical synchronization information stored in the server does not include the historical synchronization operation information corresponding to the synchronization file, the information of the received synchronization file may be stored first.
- the operation corresponding to the synchronization task is performed, and if the historical synchronization information stored in the server includes the historical synchronization operation information corresponding to the synchronization file, the historical synchronization operation information corresponding to the synchronization file and the execution synchronization task indication are corresponding. operating.
- the server sends a response message of the synchronization task message to the first user equipment, where the response message carries the execution result of the synchronization task indication.
- the response message of the synchronization task message may be sent to the first user equipment, and after receiving the response message, the first user equipment may update the historical synchronization information stored in the user equipment.
- the above synchronization task message and response message can be in Extensible Markup Language (Extensible Markup) - -
- XML XML Language
- a user equipment in the network system may send a synchronization task message to the server that records the historical synchronization information in the network system, and the server stores or updates the historical synchronization information corresponding to the synchronization file.
- the server can record historical synchronization information of data synchronization between user equipments in the network system, avoiding the problem of repeated file synchronization that may exist in the prior art, and improving the utilization of equipment resources.
- the server receives the synchronization task message that is sent by the first user equipment and includes the synchronization task indication and the synchronization file information, and determines the synchronization file corresponding to the synchronization task indication in the historical synchronization information stored by the server.
- the historical synchronization operation information carries the execution result of the synchronization task indication in the response message for sending the synchronization task message to the first user equipment, so that the server can control the data synchronization between the user equipments according to the historical synchronization information, and avoid file duplication synchronization. Improve the utilization of equipment resources.
- Embodiment 2 is a flowchart of Embodiment 2 of the data synchronization method provided by the present invention.
- the scenario in this embodiment is:
- the synchronization task indication is a creation command
- the server receives the synchronization task message sent by the first user equipment.
- the server receives the synchronization task message sent by the first user equipment, where the synchronization task message includes: a synchronization task indication and a synchronization file information, where the synchronization task indication is a creation command, the synchronization task message further carries the information of the first user equipment and the Two user device information.
- the creating command is used to indicate that the synchronization task is created, and the information of the first user equipment and the information of the second user equipment are included in the synchronization task message, and the device information may include the device. Name, device ID, device IP address, device type, device online status, etc.
- the server determines, according to the synchronization task indication, historical synchronization operation information corresponding to the synchronization file in the historical synchronization information stored by the server.
- the server determines whether the information of the synchronization file is stored in the historical synchronization information.
- the server stores the information of the synchronization file in the history synchronization information.
- the server will synchronize the text. - The information of the piece is stored in the history synchronization information; if the information of the synchronization file is stored in the history synchronization information, the creation is not repeated; if the information of the synchronization file is stored in the history synchronization information, but the synchronization operation has been completed, the information can be updated. Historical synchronization information and synchronization status and other related information.
- the server sends a response message of the synchronization task message to the first user equipment, where the execution result of the synchronization task indication in the response message is used to instruct the server to store the information of the synchronization file in the historical synchronization information.
- the server receives the synchronization task message that is sent by the first user equipment and includes the information of the creation command and the synchronization file, and determines, according to the synchronization task indication, the synchronization file corresponding to the synchronization information stored in the server.
- the historical synchronization operation information if the information of the synchronization file is not stored in the historical synchronization information, the server stores the information of the synchronization file in the historical synchronization information, and then carries the synchronization task indication in the response message that sends the synchronization task message to the first user equipment.
- the execution result is used to instruct the server to store the information of the synchronization file in the historical synchronization information, and the server can control the data synchronization between the user equipments according to the historical synchronization information, avoiding repeated file synchronization, and improving the utilization of the device resources.
- FIG. 3 is a flowchart of a third embodiment of a data synchronization method according to the present invention.
- the scenario in this embodiment is: a synchronization task indication is a creation command, and the server receives a synchronization task message sent by the first user equipment. After the second user equipment is online or online, the second user equipment is notified to perform the synchronization operation.
- the data synchronization method in this embodiment includes:
- the server receives the synchronization task message sent by the first user equipment, where the synchronization task message includes: a synchronization task indication and a synchronization file information, where the synchronization task indication is a creation command, and the synchronization task message further carries the information of the first user equipment and the Two user device information.
- the creating command is used to indicate that the synchronization task is created, and the information of the first user equipment and the information of the second user equipment are included in the synchronization task message, and the device information may include the device. Name, device ID, device IP address, device type, device online status, etc.
- the server determines, according to the synchronization task indication, historical synchronization operation information corresponding to the synchronization file in the historical synchronization information stored by the server.
- the server determines whether the second user equipment is online, and if yes, executes S304, and if not, executes S305; Specifically, after the server receives the synchronization task message that includes the instruction to create the command, it is determined that the synchronization operation of the synchronization file by the second user equipment is not performed, and if the second user equipment is online, the synchronization is sent to the second user equipment.
- the notification message of the information of the file if the second user equipment is not online, the server first stores the synchronization task message, and after the second user equipment goes online, sends a notification message to the second user equipment.
- S304 The server sends a notification message carrying the information of the synchronization file to the second user equipment.
- the server stores the synchronization task message.
- the server receives an online request of the second user equipment.
- the server sends a notification message carrying the information of the synchronization file to the second user equipment according to the stored synchronization task message, where the notification message carries the information of the synchronization file, and the notification message is used to instruct the second user equipment to perform the information according to the synchronization file.
- the corresponding synchronization operation The corresponding synchronization operation.
- the second user equipment can obtain the information of the synchronization file by parsing the notification message. If the same synchronization task information is not stored in the historical synchronization information of the second user equipment, the queue is waiting for the download; if the second The historical synchronization information of the user equipment stores the same synchronization task record and has been downloaded. The user can resynchronize the download. If the same synchronization task is waiting or downloading, the historical synchronization information of the user equipment does not need to be updated.
- the multi-thread execution function can be adopted to dynamically set one or more threads to download at the same time.
- the download of the synchronization file can mean that the second user equipment establishes a connection with the user equipment where the synchronization file is located according to the URL of the synchronization file, receives the file content, and writes Locally, the synchronous receive channel has multi-thread execution capability, and multi-threaded breakpoint download mode can be adopted as required.
- the second user equipment performs a corresponding synchronization operation according to the information of the synchronization file, in addition to the file downloading, the second user equipment may further upload the synchronization file to a shared unit, such as a cloud platform, according to the synchronization task message. operating.
- the server stores the notification message association to the historical synchronization information.
- the server receives a synchronization completion message sent by the second user equipment.
- the server updates the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information according to the synchronization completion message.
- the server sends a response message of the synchronization task message to the first user equipment, where the execution result of the synchronization task indication in the response message is used to instruct the second user equipment to perform a corresponding synchronization operation according to the information of the synchronization file.
- the data synchronization method provided in this embodiment may also create a synchronization task for the user equipment that is not online.
- the server first stores the synchronization task message, and then sends the synchronization task message to the user equipment when the user equipment is online.
- the user equipment is used to complete the data synchronization, and the server serves as a synchronization task storage and forwarding center, and supports a complete file synchronization function between multiple user equipments, and expands the service scenario with respect to the prior art.
- the server receives the synchronization task message that is sent by the first user equipment and includes the information of the creation command and the synchronization file, and determines, according to the synchronization task indication, the synchronization file corresponding to the synchronization information stored in the server.
- the historical synchronization operation information if the server determines that the synchronization operation of the synchronization file by the second user equipment is not performed according to the historical synchronization operation information corresponding to the synchronization file, the server determines whether the second user equipment is online, and if the second user equipment is online, The second user equipment sends a notification message carrying the information of the synchronization file. If the second user equipment is offline, the server stores the synchronization task message.
- the second user equipment After the second user equipment is online, the second user equipment sends a notification message to the second user equipment.
- the server sends a response message of the synchronization task message to the first user equipment, and the execution result of the synchronization task indication in the response message is used to instruct the second user equipment to perform the corresponding synchronization operation according to the information of the synchronization file, which can be implemented.
- Service is based on historical information to control the synchronization of data between the user device synchronization to avoid duplicate file synchronization, improve equipment utilization rate of resources, and can achieve synchronization task is not to create online user equipment.
- the fourth embodiment of the data synchronization method provided by the present invention is directed to: the first user equipment needs to query the historical synchronization information of the file, and sends a synchronization file message to the server, and the server will query
- the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information is sent to the first user equipment, and the synchronization task indication is a query command, and the execution result of the synchronization task indication in the response message carries the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information.
- the information of the second user equipment may not need to be instructed according to the actual situation, so that all the synchronization history information of the synchronization file may be queried, and all the query results are assembled into an XML document, which is fed back to the first user as a data packet. device.
- the user equipment can query all the synchronization history information of the synchronization file on the server, further avoiding the problem that the files may be repeatedly synchronized in the prior art, and improving the utilization of the device resources.
- FIG. 4 is a flowchart of Embodiment 5 of the data synchronization method provided by the present invention.
- the scenario in this embodiment is: the synchronization task indication is an update command, and the first user equipment indicates the server according to the - The information of the second user equipment updates the historical synchronization operation information corresponding to the synchronization file in the history synchronization information.
- the data synchronization method in this embodiment includes:
- the server receives the synchronization task message sent by the first user equipment, where the synchronization task message includes: a synchronization task indication and a synchronization file information, and the synchronization task indication is an update command, and the synchronization task message further carries information of the second user equipment.
- the server determines, according to the synchronization task indication, historical synchronization operation information corresponding to the synchronization file in the historical synchronization information stored by the server.
- the server updates the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information according to the information of the second user equipment.
- the server sends a response message of the synchronization task message to the first user equipment, where the execution result of the synchronization task indication in the response message is used to instruct the server to update the historical synchronization operation corresponding to the synchronization file in the historical synchronization information according to the information of the second user equipment. information.
- the server receives the synchronization task message that is sent by the first user equipment and includes the information of the update command and the synchronization file, and according to the synchronization task indication, the server is in the historical synchronization information according to the information of the second user equipment.
- Update the historical synchronization operation information corresponding to the synchronization file and then send a response message of the synchronization task message to the first user equipment, where the execution result of the synchronization task indication in the response message is used to indicate that the server is in the historical synchronization information according to the information of the second user equipment.
- Update the historical synchronization operation information corresponding to the synchronization file so that the server can control data synchronization between user devices according to historical synchronization information, avoid file duplication synchronization, and improve utilization of device resources.
- a synchronization task message including a message of the update command and the synchronization file may be sent to the server, so that the server updates the history corresponding to the synchronization file. Synchronize operational information.
- FIG. 5 is a flowchart of Embodiment 6 of the data synchronization method provided by the present invention.
- the scenario in this embodiment is: the synchronization task indication is a deletion command, and the first user equipment indicates that the server is based on the second user equipment.
- the information is deleted from the history synchronization information, and the data synchronization method in this embodiment includes:
- the server receives the synchronization task message sent by the first user equipment, where the synchronization task message includes: a synchronization task indication and a synchronization file information, where the synchronization task indication is a deletion command, and the synchronization task message further carries information of the second user equipment.
- the server determines, according to the synchronization task indication, historical synchronization operation information corresponding to the synchronization file in the historical synchronization information stored by the server.
- the server deletes historical synchronization operation information corresponding to the second user equipment in the synchronization file in the historical synchronization information.
- S504 The server sends a response message of the synchronization task message to the first user equipment, where the execution result of the synchronization task indication in the response message is used to instruct the server to delete the historical synchronization operation information corresponding to the second user equipment in the synchronization file in the historical synchronization information.
- the server receives the synchronization task message that is sent by the first user equipment and includes the information of the deletion command and the synchronization file, and according to the synchronization task indication, the server deletes the second user in the synchronization file in the historical synchronization information.
- the response message of the synchronization task message is sent to the first user equipment, and the execution result of the synchronization task indication in the response message is used to instruct the server to delete the second user equipment in the synchronization file in the historical synchronization information.
- the historical synchronization operation information can enable the server to control data synchronization between user devices according to historical synchronization information, avoid file duplication synchronization, and improve utilization of device resources.
- the synchronization task message including the message of the deletion command and the synchronization file may be sent to the server, so that the historical synchronization operation information corresponding to the server update synchronization file is Delete the status.
- FIG. 6 is a flowchart of Embodiment 7 of the data synchronization method provided by the present invention.
- the scenario in this embodiment is: server initialization, collecting and buffering all registered user equipment information, and establishing synchronization of the first user equipment. Before the task, the device list information in the network needs to be known.
- the data synchronization method in this embodiment based on the embodiment shown in FIG. 1, includes:
- the server receives a registration request sent by the first user equipment, where the registration request carries information about the first user equipment.
- the server initializes and collects and caches all registered user equipment information, and the user equipment information includes at least a device name, a device ID, a device IP address, a device type, and an online status of the device.
- the server stores information of the first user equipment into the device list.
- the server receives a device list request message sent by the first user equipment.
- the server sends a device list to the first user equipment, where the device list includes information of at least one user equipment registered to the server.
- the data synchronization method provided in this embodiment receives the registration sent by the user equipment through the server. - requesting, storing the information of the first user equipment into the device list, receiving the device list request message sent by the first user equipment, and sending the device list to the first user equipment, which can ensure the user equipment in the home private network or the local area network Communication connection with the server and automatic discovery on the line.
- FIG. 7 is a flowchart of Embodiment 8 of the data synchronization method provided by the present invention. As shown in FIG. 7, the data synchronization method in this embodiment includes:
- the first user equipment sends a synchronization task message to the server, where the synchronization task message includes: information about the synchronization task indication and the synchronization file.
- the information of the synchronization file includes a uniform resource locator URL corresponding to the storage address of the synchronization file;
- the synchronization file information includes a URL corresponding to the storage address of the synchronization file, and includes any one or more of the following combinations: name information of the synchronization file, capacity information of the synchronization file, type information of the synchronization file, synchronization status of the synchronization file Information and priority information of files to be synchronized.
- the first user equipment receives a response message of the synchronization task message sent by the server, and the response message carries the execution result of the synchronization task indication.
- the above synchronization task message and response message may be sent in the form of XML.
- the first user equipment in the network system may send a synchronization task message to the server that records the historical synchronization information in the network system, and the server stores or updates the historical synchronization information corresponding to the synchronization file.
- the server can control data synchronization between user devices according to historical synchronization information, avoid file duplication synchronization, and improve utilization of device resources.
- the data synchronization method provided by the embodiment sends a synchronization task message to the server by using the first user equipment, where the synchronization task message includes: a synchronization task indication and a synchronization file information, and then receives a response message of the synchronization task message sent by the server, and a response message.
- the server Carrying the execution result of the synchronization task indication, the server can control the data synchronization between the user equipments according to the historical synchronization information, avoiding repeated file synchronization, and improving the utilization of the device resources.
- the synchronization task indication is a creation command
- the synchronization task message further carries the information of the first user equipment and the information of the second user equipment.
- the execution result of the synchronization task indication carried in the response message is used to instruct the server to store the information of the synchronization file in the history synchronization information.
- the synchronization task indicates that the command is created, and the synchronization task message also carries the information of the first user equipment and - - information of the second user equipment;
- the execution result of the synchronization task indication carried in the response message is used to instruct the second user equipment to perform a corresponding synchronization operation according to the information of the synchronization file.
- the synchronization task is indicated as a query command
- the execution result of the synchronization task indication carried in the response message carries the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information.
- FIG. 8 is a flowchart of Embodiment 10 of the data synchronization method provided by the present invention.
- the scenario in this embodiment is: the synchronization task indication is an update command, and the first user equipment indicates that the server is configured according to the second user equipment.
- the information is updated in the historical synchronization information to update the historical synchronization operation information corresponding to the synchronization file.
- the data synchronization method in this embodiment includes:
- the first user equipment sends a synchronization task message to the server, where the synchronization task message includes: a synchronization task indication and a synchronization file information, where the synchronization task indication is an update command, and the synchronization task message further carries information of the second user equipment.
- the first user equipment receives the response message of the synchronization task message sent by the server, and the execution result of the synchronization task indication in the response message is used to instruct the server to update the history synchronization corresponding to the synchronization file in the historical synchronization information according to the information of the second user equipment. Operational information.
- the first user equipment updates the historical synchronization operation information corresponding to the locally stored synchronization file according to the response message.
- the first user equipment updates the historical synchronization operation information corresponding to the locally stored synchronization file, which can further avoid the problem of repeated file synchronization that may exist in the prior art, and improve the utilization rate of the device resources.
- the synchronization task message is sent to the server by the first user equipment, where the synchronization task message includes: a synchronization task indication and a synchronization file information, and the synchronization task indication is an update command, and the synchronization task message also carries the
- the information of the second user equipment is received by the response message of the synchronization task message sent by the server, and the execution result of the synchronization task indication in the response message is used to instruct the server to update the history of the synchronization file in the historical synchronization information according to the information of the second user equipment.
- Synchronous operation information can enable the server to control data synchronization between user devices according to historical synchronization information, avoid file duplication synchronization, and improve utilization of device resources.
- FIG. 9 is a flowchart of Embodiment 11 of the data synchronization method provided by the present invention.
- the scenario in this embodiment is: the synchronization task indication is a deletion command, and the first user equipment indicates the server according to - The information of the second user equipment deletes the historical synchronization operation information corresponding to the synchronization file in the history synchronization information.
- the data synchronization method in this embodiment includes:
- the first user equipment sends a synchronization task message to the server, where the synchronization task message includes: a synchronization task indication and a synchronization file information, where the synchronization task indication is a deletion command, and the synchronization task message further carries information of the second user equipment.
- the first user equipment receives the response message of the synchronization task message sent by the server, and the execution result of the synchronization task indication in the response message is used to instruct the server to delete the historical synchronization operation information corresponding to the second user equipment in the synchronization file in the historical synchronization information.
- the first user equipment updates the historical synchronization operation information corresponding to the locally stored synchronization file according to the response message.
- the synchronization task message is sent to the server by the first user equipment, where the synchronization task message includes: a synchronization task indication and a synchronization file information, and the synchronization task indication is a deletion command, and the synchronization task message also carries the
- the information of the second user equipment is received by the response message of the synchronization task message sent by the server, and the execution result of the synchronization task indication in the response message is used to instruct the server to delete the historical synchronization operation corresponding to the second user equipment in the synchronization file in the historical synchronization information.
- the information can be used by the server to control data synchronization between user devices according to historical synchronization information, avoiding file duplication synchronization, and improving utilization of device resources.
- FIG. 10 is a flowchart of Embodiment 12 of the data synchronization method provided by the present invention.
- the scenario in this embodiment is: server initialization, collecting and buffering all registered user equipment information, and establishing the first user equipment. Before the synchronization task, the device list information in the network needs to be known.
- the data synchronization method in this embodiment based on the embodiment shown in FIG. 1, includes:
- the first user equipment sends a registration request to the server, where the registration request carries information about the first user equipment.
- the first user equipment sends a device list request message to the server.
- the first user equipment receives a device list sent by the server, where the device list includes information of at least one user equipment registered to the server.
- the first user equipment sends a registration request to the server, where the registration request carries the information of the first user equipment, and then sends a device list request message to the server, where the first user equipment receives the device list sent by the server.
- the device list includes information of at least one user equipment registered to the server, and can ensure user equipment and services inside the home private network or the local area network. - Communication connection between servers and automatic discovery on the line.
- FIG. 11 is a flowchart of Embodiment 13 of the data synchronization method provided by the present invention. As shown in FIG. 11, the data synchronization method in this embodiment includes:
- the second user equipment sends an online request to the server.
- the second user equipment receives a notification message that is sent by the server and carries information about the synchronization file, where the notification message is used to instruct the second user equipment to perform a corresponding synchronization operation according to the information of the synchronization file.
- the second user equipment sends a synchronization complete message to the server.
- the data synchronization method provided by the embodiment sends a synchronization request to the server by the second user equipment, and receives a notification message that is sent by the server and carries the information of the synchronization file. After the second user equipment completes the synchronization task, the second user equipment sends a synchronization completion message to the server.
- the server can control data synchronization between user devices according to historical synchronization information, avoid file duplication synchronization, and improve utilization of device resources.
- the data synchronization method provided by the present invention is described in detail below by taking a configuration command between the first user equipment, the server, and the second user equipment.
- FIG. 12 is a flowchart of Embodiment 14 of the data synchronization method provided by the present invention. As shown in FIG.
- the scenario in this embodiment is as follows: The first user equipment needs to share the synchronization file to the second user equipment by using the server, and the second user equipment is offline, and the synchronization operation is performed after the online connection, and the data synchronization in this embodiment is performed.
- Methods including:
- the first user equipment sends a registration request to the server, where the registration request carries information about the first user equipment.
- S1202 The server stores the information of the first user equipment into the equipment list.
- the first user equipment sends a device list request message to the server.
- the server sends a device list to the first user equipment, where the device list includes information of at least one user equipment registered to the server.
- the first user equipment sends a synchronization task message to the server, where the synchronization task message includes: a synchronization task indication and a synchronization file information, where the synchronization task indication is a creation command, and the synchronization task message further carries the information of the first user equipment and the second User device information.
- the server determines, according to the synchronization task indication, historical synchronization operation information corresponding to the synchronization file in the historical synchronization information stored by the server.
- the information of the synchronization file is not stored in the history synchronization information, and the server stores the information of the synchronization file in the history synchronization information.
- the second user equipment is offline, and the server stores the synchronization task message.
- the second user equipment sends an online request to the server.
- the server sends a notification message carrying the information of the synchronization file to the second user equipment.
- the second user equipment sends a synchronization complete message to the server.
- S1212 The server updates the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information according to the synchronization completion message.
- S1213 The server sends a response message of the synchronization task message to the first user equipment, where the execution result of the synchronization task indication in the response message is used to instruct the second user equipment to perform a corresponding synchronization operation according to the information of the synchronization file.
- the server receives the synchronization task message that is sent by the first user equipment and includes the information of the creation command and the synchronization file, and determines, according to the synchronization task indication, the synchronization file corresponding to the synchronization information stored in the server.
- the historical synchronization operation information if the server determines that the synchronization operation of the synchronization file by the second user equipment is not performed according to the historical synchronization operation information corresponding to the synchronization file, and the second user equipment is not online, the server first stores the synchronization task message, and waits for the second user equipment.
- the server After the online device sends a notification message to the second user equipment, after the second device completes the synchronization operation, the server sends a response message of the synchronization task message to the first user equipment, and the execution result of the synchronization task indication in the response message is used to indicate the
- the user equipment performs the corresponding synchronization operation according to the information of the synchronization file, so that the server can control the data synchronization between the user equipments according to the historical synchronization information, avoid file duplication synchronization, improve the utilization of the device resources, and can be implemented as Online user equipment to create synchronization tasks.
- FIG. 13 is a schematic structural diagram of a server according to Embodiment 1 of the present invention.
- the server in this embodiment includes a first receiving module 131, a determining module 132, and a first sending module 133, where the first receiving module
- the synchronization task message is used to receive the synchronization task message sent by the first user equipment, where the synchronization task message includes: information about the synchronization task indication and the synchronization file;
- the determining module 132 is configured to determine the synchronization file in the historical synchronization information stored by the server according to the synchronization task indication.
- Corresponding historical synchronization operation information; the first sending module 133 is configured to send a response message of the synchronization task message to the first user equipment, where the response message carries the execution result of the synchronization task indication.
- the information of the synchronization file includes a uniform resource locator URL corresponding to the storage address of the synchronization file;
- the synchronization file information includes a URL corresponding to the storage address of the synchronization file, and includes the following information. - - Any combination or combination of: Name information of the synchronization file, Capacity information of the synchronization file, Type information of the synchronization file, Synchronization status information of the synchronization file, and Priority information of the file to be synchronized.
- the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 1.
- the implementation principle and technical effects are similar, and details are not described herein again.
- FIG. 14 is a schematic structural diagram of a second embodiment of a server according to the present invention.
- the server in this embodiment is used to receive the first user.
- the synchronization task message sent by the device, the synchronization task message includes: a synchronization task indication and a synchronization file information, and the synchronization task indication is a creation command, and the synchronization task message further carries the information of the first user equipment and the information of the second user equipment;
- the server of this embodiment further includes: a determining module 134 and a first storage module 135, wherein the determining module 134 is configured to determine whether the historical synchronization information is in the historical synchronization information after determining the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information stored by the server.
- the information of the synchronization file is stored;
- the first storage module 135 is configured to store the information of the synchronization file in the history synchronization information if the information of the synchronization file is not stored in the history synchronization information.
- the first sending module 133 is further configured to send a response message of the synchronization task message to the first user equipment, where the execution result of the synchronization task indication in the response message is used to instruct the server to store the information of the synchronization file in the historical synchronization information.
- the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and the technical effect are similar, and details are not described herein again.
- FIG. 15 is a schematic structural diagram of a third embodiment of a server according to the present invention.
- the server in this embodiment is used to receive the first user equipment on the basis of the embodiment shown in FIG.
- the synchronization task message is sent, and the synchronization task message includes: a synchronization task indication and a synchronization file information, and the synchronization task indication is a creation command, and the synchronization task message further carries the information of the first user equipment and the information of the second user equipment;
- the determining module 132 is further configured to: after determining the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information stored by the server, determining, according to the historical synchronization operation information corresponding to the synchronization file, that the synchronization operation of the synchronization file by the second user equipment is not performed;
- the first sending module 133 is further configured to send a notification message to the second user equipment, where the notification message carries the information of the synchronization file, where the notification message is used to instruct the second user equipment to perform a corresponding synchronization operation according to the information of the synchronization file;
- the server of the embodiment further includes a second storage module 139, and the second storage module 139 is configured to store the notification message association to the historical synchronization information;
- the determining module 132 is further configured to determine whether the second user equipment is online;
- the second storage module 139 is further configured to: if the second user equipment is offline, store the synchronization task message; the first receiving module 131 is further configured to receive an online request of the second user equipment;
- the first sending module 133 is further configured to send, to the second user equipment, a notification message carrying information of the synchronization file according to the stored synchronization task message;
- the first sending module 133 is further configured to send a response message of the synchronization task message to the first user equipment, where the execution result of the synchronization task indication in the response message is used to instruct the second user equipment to perform a corresponding synchronization operation according to the information of the synchronization file;
- the first receiving module 131 is further configured to: after sending the notification message to the second user equipment, receive a synchronization completion message sent by the second user equipment;
- the server of this embodiment further includes a first update module 136, and the first update module 136 is configured to update historical synchronization operation information corresponding to the synchronization file in the history synchronization information according to the synchronization completion message.
- the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 3, and the implementation principle and technical effects are similar, and details are not described herein again.
- the first receiving module 131 is configured to receive a synchronization task message sent by the first user equipment, where the synchronization task message includes: synchronization task indication and synchronization The information of the file, the synchronization task is indicated as a query command;
- the first sending module 133 is further configured to send a response message of the synchronization task message to the first user equipment, where the execution result of the synchronization task indication in the response message carries the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information.
- the device in this embodiment may be used to implement the technical solution of the method embodiment shown in the fourth embodiment of the data synchronization method, and the implementation principle and the technical effect are similar, and details are not described herein again.
- FIG. 16 is a schematic structural diagram of a fifth embodiment of a server according to the present invention.
- the server in this embodiment is used to receive the first user equipment on the basis of the embodiment shown in FIG.
- the synchronization task message is sent, and the synchronization task message includes: a synchronization task indication and a synchronization file information, and the synchronization task indication is an update command, and the synchronization task message further carries information of the second user equipment;
- the server of this embodiment further includes: a second update module 137, where the second update module 137 is configured to - After determining the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information stored by the server, the historical synchronization operation information corresponding to the synchronization file is updated in the history synchronization information according to the information of the second user equipment.
- the first sending module 133 is further configured to send a response message of the synchronization task message to the first user equipment, where the execution result of the synchronization task indication in the response message is used to instruct the server to update the synchronization file in the historical synchronization information according to the information of the second user equipment. Corresponding historical synchronization operation information.
- the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 4, and the implementation principle and the technical effect are similar, and details are not described herein again.
- FIG. 17 is a schematic structural diagram of a sixth embodiment of a server according to the present invention.
- the server in this embodiment is used to receive the first user equipment on the basis of the embodiment shown in FIG.
- the synchronization task message is sent, and the synchronization task message includes: a synchronization task indication and a synchronization file information, and the synchronization task indication is a deletion command, and the synchronization task message further carries information of the second user equipment;
- the server of this embodiment further includes: a deleting module 138, configured to delete the second user equipment in the synchronization file in the historical synchronization information after determining the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information stored by the server Corresponding historical synchronization operation information.
- a deleting module 138 configured to delete the second user equipment in the synchronization file in the historical synchronization information after determining the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information stored by the server Corresponding historical synchronization operation information.
- the first sending module 133 is further configured to send a response message of the synchronization task message to the first user equipment, where the execution result of the synchronization task indication in the response message is used to instruct the server to delete the second user equipment in the synchronization file in the historical synchronization information.
- Historical synchronization operation information is used to instruct the server to delete the second user equipment in the synchronization file in the historical synchronization information.
- the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 5, and the implementation principle and the technical effect are similar, and details are not described herein again.
- the server is provided in the seventh embodiment.
- the first receiving module 131 is further configured to: before the server receives the synchronization task message sent by the first user equipment, receive the registration request sent by the first user equipment.
- the registration request carries the information of the first user equipment;
- the method further includes: a third storage module, wherein the third storage module is configured to store, by the server, information of the first user equipment into the device list.
- the first receiving module 131 is further configured to: before the server receives the synchronization task message sent by the first user equipment, receive the device list request message sent by the first user equipment;
- the first sending module 133 is further configured to send, to the first user equipment, a device list, where the device list includes information of at least one user equipment registered to the server.
- the device of the present embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 6. The implementation principle and technical effects are similar, and details are not described herein again.
- FIG. 18 is a schematic structural diagram of Embodiment 7 of a server according to the present invention.
- the server of this embodiment includes a transmitter 181, a receiver 182, a memory 183, and a transmitter 181, a receiver 182, and a memory, respectively.
- the server may also include a common component such as an antenna, a baseband processing component, a medium-frequency processing component, and an input/output device.
- the embodiment of the present invention is not limited herein.
- the memory 183 stores a set of program codes
- the processor 184 is configured to call the program code stored in the memory 183 for performing the following operations:
- synchronization task message includes: a synchronization task indication and a synchronization file information
- server shown in FIG. 13 to FIG. 18 may be used to implement any of the methods provided in the foregoing method embodiments, and details are not described herein again.
- FIG. 19 is a schematic structural diagram of Embodiment 1 of a user equipment according to the present invention.
- the user equipment in this embodiment includes: a second sending module 191 and a second receiving module 192, where the second sending module 191 And the sending the synchronization task message to the server, where the synchronization task message includes: a synchronization task indication and a synchronization file information; the second receiving module 192 is configured to receive a response message of the synchronization task message sent by the server, where the response message carries the synchronization task indication Results of the.
- the information of the synchronization file includes a uniform resource locator URL corresponding to the storage address of the synchronization file;
- the synchronization file information includes a URL corresponding to the storage address of the synchronization file, and includes any one or more of the following combinations: name information of the synchronization file, capacity information of the synchronization file, type information of the synchronization file, synchronization status of the synchronization file Information and priority information of files to be synchronized.
- the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 7.
- the implementation principle and technical effects are similar, and details are not described herein again.
- the second - The sending module 191 is further configured to send a synchronization task message to the server, where the synchronization task message includes: a synchronization task indication and a synchronization file information, and the synchronization task indication is a creation command, and the synchronization task message further carries the information of the first user equipment and
- the second receiving module 192 is further configured to receive a response message of the synchronization task message sent by the server, where the execution result of the synchronization task indication in the response message is used to instruct the server to store the information of the synchronization file in the historical synchronization information. in.
- the second sending module 191 is further configured to send a synchronization task message to the server, where the synchronization task message includes: a synchronization task indication and a synchronization file information, where the synchronization task indication is a creation command, and the synchronization task message further carries the information of the first user equipment and The second user equipment is further configured to receive a response message of the synchronization task message sent by the server, where the execution result of the synchronization task indication is used to indicate that the second user equipment performs the corresponding information according to the synchronization file. Synchronous operation.
- the second sending module 191 is further configured to send a synchronization task message to the server, where the synchronization task message includes: a synchronization task indication and a synchronization file information, and the synchronization task indication is a query command; the second receiving module 192 is further configured to receive the synchronization sent by the server.
- the response message of the task message, the execution result of the synchronization task indication carried in the response message carries the historical synchronization operation information corresponding to the synchronization file in the historical synchronization information.
- FIG. 20 is a schematic structural diagram of Embodiment 3 of a user equipment according to the present invention.
- the user equipment in this embodiment is used on the basis of the embodiment shown in FIG.
- the synchronization task message is sent, and the synchronization task message includes: a synchronization task indication and a synchronization file information, and the synchronization task indication is an update command, and the synchronization task message further carries information of the second user equipment; the second receiving module 192 is further configured to receive the server.
- the response message of the synchronization task message is sent, and the execution result of the synchronization task indication in the response message is used to instruct the server to update the historical synchronization operation information corresponding to the synchronization file in the history synchronization information according to the information of the second user equipment.
- the user equipment of this embodiment further includes a third update module 193, and the third update module 193 is configured to update historical synchronization operation information corresponding to the locally stored synchronization file according to the response message.
- the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 8.
- the implementation principle and technical effects are similar, and details are not described herein again.
- FIG. 21 is a schematic structural diagram of a fourth embodiment of a user equipment according to the present invention.
- the user equipment in this embodiment is used on the basis of the embodiment shown in FIG.
- Sending a synchronization task message the synchronization task message includes: a synchronization task indication and a synchronization file letter -
- the information about the synchronization task is the deletion command, and the synchronization task message also carries the information of the second user equipment.
- the second receiving module 192 is further configured to receive a response message of the synchronization task message sent by the server, where the response message carries the synchronization task indication.
- the execution result is used to instruct the server to delete historical synchronization operation information corresponding to the second user equipment in the synchronization file in the historical synchronization information.
- the user equipment, the fourth update module 194, and the fourth update module 194 of the embodiment are configured to update historical synchronization operation information corresponding to the locally stored synchronization file according to the response message.
- the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 9.
- the implementation principle and technical effects are similar, and details are not described herein again.
- the second sending module 191 is further configured to send a registration request, a registration request, to the server before the first user equipment sends a synchronization task message to the server.
- the information of the first user equipment is carried in the middle.
- the second sending module 191 is further configured to send a device list request message to the server before the first user equipment sends the synchronization task message to the server;
- the second receiving module 192 is further configured to receive a device list sent by the server, where the device list includes information of at least one user equipment registered to the server.
- the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 10, and the implementation principle and the technical effect are similar, and details are not described herein again.
- FIG. 22 is a schematic structural diagram of Embodiment 6 of a user equipment according to the present invention.
- the user equipment in this embodiment includes a transmitter 221, a receiver 222, a memory 223, and a transmitter 221 and a receiver 222, respectively.
- a processor 224 coupled to the memory 223.
- the server may also include a common component such as an antenna, a baseband processing component, a medium RF processing component, an input/output device, and the like, and the embodiment of the present invention is not limited thereto.
- the memory 223 stores a set of program codes, and the processor 224 is configured to call the program code stored in the memory 223 for performing the following operations:
- a synchronization task message to the server, where the synchronization task message includes: a synchronization task indication and a synchronization file information;
- the response message of the synchronization task message sent by the server is received, and the response message carries the execution result of the synchronization task indication.
- server shown in FIG. 19 to FIG. 22 may be used to implement any of the methods provided in the foregoing method embodiments, and details are not described herein again.
- the structural diagrams corresponding to the above embodiments are merely illustrative, and the connection relationship of the various parts or modules is not limited to the form shown in the drawings, and may be subject to the actual application.
- the aforementioned program can be stored in a computer readable storage medium.
- the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明实施例提供一种数据同步方法及设备,该方法包括:服务器接收第一用户设备发送的同步任务消息,同步任务消息中包括:同步任务指示和同步文件的信息;服务器根据同步任务指示,在服务器存储的历史同步信息中确定同步文件对应的历史同步操作信息;服务器向第一用户设备发送同步任务消息的响应消息,响应消息中携带同步任务指示的执行结果。本发明的技术方案,可以实现服务器记录网络系统内用户设备之间进行数据同步的历史同步信息,避免现有技术中可能存在的文件重复同步的问题,提高设备资源的利用率。
Description
一 一
数据同步方法及殳备 本申请要求于 2012 年 12 月 31 日提交中国专利局、 申请号为 201210593336.4, 发明名称为 "数据同步方法及设备" 的中国专利申请的优先 权, 其全部内容通过引用结合在本申请中。 技术领域 本发明涉及通信技术, 尤其涉及一种数据同步方法及设备。 背景技术
随着信息技术的飞速发展,现代家庭已经演变成数字化、 网络化和智能化 的媒体中心。 人们希望在家中的任何地方都能方便地享受丰富多彩的媒体文 件, 而这些媒体文件可以存储在不同的设备中。
现有技术, 两个用户设备( User Equipment , 简称 UE )之间可以执行文件 同步操作。 例如使用普通的蓝牙技术、 通用串行总线( Universal Serial BUS , 简称 USB )技术或者苹果公司用于实现 UE和个人计算机 ( ersonal computer, 简称 PC ) 点对点的同步文件而提供的 iTunes软件。
然而,现有的文件同步方法用户设备之间可能执行重复的同步操作,从而 导致设备资源浪费。 发明内容 本发明实施例提供一种数据同步管理方法、设备及系统, 可以解决现有技 术中文件重复同步的问题, 提高设备资源的利用率。
本发明第一方面, 提供一种数据同步方法, 包括:
服务器接收第一用户设备发送的同步任务消息, 所述同步任务消息中包 括: 同步任务指示和同步文件的信息;
所述服务器根据所述同步任务指示,在所述服务器存储的历史同步信息中 确定所述同步文件对应的历史同步操作信息;
所述服务器向所述第一用户设备发送所述同步任务消息的响应消息 ,所述
- - 响应消息中携带所述同步任务指示的执行结果。
在第一方面的第一种可能的实现方式中,所述同步文件的信息包括所述同 步文件的存储地址对应的统一资源定位符 URL; 或者,
所述同步文件信息包括所述同步文件的存储地址对应的 URL,还包括以下 信息中的任意一种或多种组合: 所述同步文件的名称信息, 所述同步文件的容 量信息, 所述同步文件的类型信息, 所述同步文件的同步状态信息和所述待同 步文件的优先级信息。
结合第一方面或第一方面的第一种可能的实现方式中任意一种,在第一方 面的第二种可能的实现方式中, 所述同步任务指示为创建命令, 则所述同步任 务消息还携带所述第一用户设备的信息和第二用户设备的信息;
所述服务器根据所述同步任务指示,在所述服务器存储的历史同步信息中 确定所述同步文件对应的历史同步操作信息之后, 还包括:
所述服务器判断所述历史同步信息中是否已存储所述同步文件的信息; 若所述历史同步信息中未存储所述同步文件的信息,则所述服务器将所述 同步文件的信息存储在所述历史同步信息中。
根据第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现 方式中,所述响应消息中携带所述同步任务指示的执行结果用于指示所述服务 器将所述同步文件的信息存储在所述历史同步信息中。
结合第一方面或第一方面的第一种至第三种可能的实现方式中任意一种, 在第一方面的第四种可能的实现方式中, 所述同步任务指示为创建命令, 则所 述同步任务消息还携带所述第一用户设备的信息和所述第二用户设备的信息; 所述服务器根据所述同步任务指示,在所述服务器存储的历史同步信息中 确定所述同步文件对应的历史同步操作信息之后, 还包括:
若所述服务器根据所述同步文件对应的历史同步操作信息确定所述第二 用户设备对所述同步文件的同步操作未进行,则所述服务器向所述第二用户设 备发送通知消息, 所述通知消息中携带所述同步文件的信息, 所述通知消息用 于指示所述第二用户设备根据所述同步文件的信息执行相应的同步操作; 所述服务器将所述通知消息关联存储至所述历史同步信息。
根据第一方面的第四种可能的实现方式,在第一方面的第五种可能的实现 方式中, 所述服务器向所述第二用户设备发送通知消息, 包括:
- - 所述服务器确定所述第二用户设备是否在线;
若所述第二用户设备不在线, 则所述服务器存储所述同步任务消息; 所述服务器接收所述第二用户设备的上线请求;
所述服务器根据所存储的所述同步任务消息,向所述第二用户设备发送携 带所述同步文件的信息的所述通知消息。
结合第一方面的第四种或第五种可能的实现方式中任意一种,在第一方面 的第六种可能的实现方式中,所述响应消息中携带所述同步任务指示的执行结 果用于指示所述第二用户设备根据所述同步文件的信息执行相应的同步操作。
结合第一方面的第四种至第六种可能的实现方式中任意一种,在第一方面 的第七种可能的实现方式中,所述服务器向所述第二用户设备发送通知消息之 后, 还包括:
所述服务器接收所述第二用户设备发送的同步完成消息;
所述 ϋ良务器才艮据所述同步完成消息,在历史同步信息中更新所述同步文件 对应的历史同步操作信息。
结合第一方面或第一方面的第一种可能的实现方式中任意一种,在第一方 面的第八种可能的实现方式中, 所述同步任务指示为查询命令; 所述响应消息 中携带所述同步任务指示的执行结果携带所述历史同步信息中所述同步文件 对应的历史同步操作信息。
结合第一方面或第一方面的第一种可能的实现方式中任意一种,在第一方 面的第九种可能的实现方式中, 所述同步任务指示为更新命令, 则所述同步任 务消息还携带第二用户设备的信息;
所述服务器根据所述同步任务指示,在所述服务器存储的历史同步信息中 确定所述同步文件对应的历史同步操作信息之后, 还包括:
所述服务器根据所述第二用户设备的信息在历史同步信息中更新所述同 步文件对应的历史同步操作信息。
根据第一方面的第九种可能的实现方式,在第一方面的第十种可能的实现 方式中,所述响应消息中携带所述同步任务指示的执行结果用于指示所述服务 器根据所述第二用户设备的信息在历史同步信息中更新所述同步文件对应的 历史同步操作信息。
结合第一方面或第一方面的第一种可能的实现方式中任意一种,在第一方
- - 面的第十一种可能的实现方式中, 所述同步任务指示为删除命令, 则所述同步 任务消息还携带第二用户设备的信息;
所述服务器根据所述同步任务指示,在所述服务器存储的历史同步信息中 确定所述同步文件对应的历史同步操作信息之后, 还包括:
所述服务器在历史同步信息中删除所述同步文件中所述第二用户设备对 应的历史同步操作信息。
根据第一方面的第十一种可能的实现方式,在第一方面的第十二种可能的 实现方式中,所述响应消息中携带所述同步任务指示的执行结果用于指示所述 服务器在历史同步信息中删除所述同步文件中所述第二用户设备对应的历史 同步操作信息。
结合第一方面或第一方面的第一种至第十二种可能的实现方式中任意一 种,在第一方面的第十三种可能的实现方式中, 所述服务器接收第一用户设备 发送的同步任务消息之前, 还包括:
所述服务器接收所述第一用户设备发送的注册请求 ,所述注册请求中携带 所述第一用户设备的信息;
所述服务器将所述第一用户设备的信息存储至设备列表中。
结合第一方面或第一方面的第一种至第十二种可能的实现方式中任意一 种,在第一方面的第十四种可能的实现方式中, 所述服务器接收第一用户设备 发送的同步任务消息之前, 还包括:
所述服务器接收所述第一用户设备发送的设备列表请求消息;
所述服务器向所述第一用户设备发送设备列表,所述设备列表中包括注册 到所述服务器的至少一个用户设备的信息。
本发明第二方面, 提供一种数据同步方法, 包括:
第一用户设备向服务器发送同步任务消息, 所述同步任务消息中包括: 同 步任务指示和同步文件的信息;
所述第一用户设备接收所述服务器发送的所述同步任务消息的响应消息, 所述响应消息中携带所述同步任务指示的执行结果。
在第二方面的第一种可能的实现方式中,所述同步文件的信息包括所述同 步文件的存储地址对应的统一资源定位符 URL; 或者,
所述同步文件信息包括所述同步文件的存储地址对应的 URL,还包括以下
信息中的任意一种或多种组合: 所述同步文件的名称信息, 所述同步文件的容 量信息, 所述同步文件的类型信息, 所述同步文件的同步状态信息和所述待同 步文件的优先级信息。
结合第二方面或第二方面的第一种可能的实现方式中任意一种,在第二方 面的第二种可能的实现方式中, 所述同步任务指示为创建命令, 则所述同步任 务消息还携带所述第一用户设备的信息和第二用户设备的信息;
所述响应消息中携带所述同步任务指示的执行结果用于指示所述服务器 将所述同步文件的信息存储在所述历史同步信息中。
结合第二方面或第二方面的第一种或第二种可能的实现方式中任意一种, 在第二方面的第三种可能的实现方式中, 所述同步任务指示为创建命令, 则所 述同步任务消息还携带所述第一用户设备的信息和所述第二用户设备的信息; 所述响应消息中携带所述同步任务指示的执行结果用于指示所述第二用 户设备根据所述同步文件的信息执行相应的同步操作。
结合第二方面或第二方面的第一种可能的实现方式中任意一种,在第二方 面的第四种可能的实现方式中, 所述同步任务指示为查询命令;
所述响应消息中携带所述同步任务指示的执行结果携带所述历史同步信 息中所述同步文件对应的历史同步操作信息。
结合第二方面或第二方面的第一种可能的实现方式中任意一种,在第二方 面的第五种可能的实现方式中, 所述同步任务指示为更新命令, 则所述同步任 务消息还携带第二用户设备的信息;
所述响应消息中携带所述同步任务指示的执行结果用于指示所述服务器 根据所述第二用户设备的信息在历史同步信息中更新所述同步文件对应的历 史同步操作信息;
所述第一用户设备根据所述响应消息,更新本地存储的所述同步文件对应 的历史同步操作信息。
结合第二方面或第二方面的第一种可能的实现方式中任意一种,在第二方 面的第六种可能的实现方式中, 所述同步任务指示为删除命令, 则所述同步任 务消息还携带第二用户设备的信息;
所述响应消息中携带所述同步任务指示的执行结果用于指示所述服务器 在历史同步信息中删除所述同步文件中所述第二用户设备对应的历史同步操
- - 作信息;
所述第一用户设备根据所述响应消息,更新本地存储的所述同步文件对应 的历史同步操作信息。
结合第二方面或第二方面的第一种至第六种可能的实现方式中任意一种, 在第二方面的第七种可能的实现方式中,所述第一用户设备向服务器发送同步 任务消息之前, 还包括:
所述第一用户设备向所述服务器发送注册请求 ,所述注册请求中携带所述 第一用户设备的信息。
结合第二方面或第二方面的第一种至第六种可能的实现方式中任意一种, 在第二方面的第八种可能的实现方式中,所述第一用户设备向服务器发送同步 任务消息之前, 还包括:
所述第一用户设备向所述服务器发送设备列表请求消息;
所述第一用户设备接收所述服务器发送的设备列表,所述设备列表中包括 注册到所述服务器的至少一个用户设备的信息。
本发明第三方面, 提供一种服务器, 包括:
第一接收模块, 用于接收第一用户设备发送的同步任务消息, 所述同步任 务消息中包括: 同步任务指示和同步文件的信息;
确定模块, 用于根据所述同步任务指示,在所述服务器存储的历史同步信 息中确定所述同步文件对应的历史同步操作信息;
第一发送模块,用于向所述第一用户设备发送所述同步任务消息的响应消 息, 所述响应消息中携带所述同步任务指示的执行结果。
在第三方面的第一种可能的实现方式中,所述同步文件的信息包括所述同 步文件的存储地址对应的统一资源定位符 URL; 或者,
所述同步文件信息包括所述同步文件的存储地址对应的 URL,还包括以下 信息中的任意一种或多种组合: 所述同步文件的名称信息, 所述同步文件的容 量信息, 所述同步文件的类型信息, 所述同步文件的同步状态信息和所述待同 步文件的优先级信息。
结合第三方面或第三方面的第一种可能的实现方式中任意一种,在第三方 面的第二种可能的实现方式中, 所述同步任务指示为创建命令, 则所述同步任 务消息还携带所述第一用户设备的信息和第二用户设备的信息;
- - 所述服务器, 还包括:
判断模块 ,用于在所述服务器存储的历史同步信息中确定所述同步文件对 应的历史同步操作信息之后,判断所述历史同步信息中是否已存储所述同步文 件的信息;
第一存储模块, 用于若所述历史同步信息中未存储所述同步文件的信息, 则将所述同步文件的信息存储在所述历史同步信息中。
根据第三方面的第二种可能的实现方式,在第三方面的第三种可能的实现 方式中,所述响应消息中携带所述同步任务指示的执行结果用于指示所述服务 器将所述同步文件的信息存储在所述历史同步信息中。
结合第三方面或第三方面的第一种至第三种可能的实现方式中任意一种, 在第三方面的第四种可能的实现方式中, 所述同步任务指示为创建命令, 则所 述同步任务消息还携带所述第一用户设备的信息和所述第二用户设备的信息; 所述确定模块 ,还用于在所述服务器存储的历史同步信息中确定所述同步 文件对应的历史同步操作信息之后,根据所述同步文件对应的历史同步操作信 息确定所述第二用户设备对所述同步文件的同步操作未进行;
所述第一发送模块,还用于向所述第二用户设备发送通知消息, 所述通知 消息中携带所述同步文件的信息,所述通知消息用于指示所述第二用户设备根 据所述同步文件的信息执行相应的同步操作;
第二存储模块, 用于将所述通知消息关联存储至所述历史同步信息。 根据第三方面的第四种可能的实现方式,在第三方面的第五种可能的实现 方式中, 所述确定模块, 还用于确定所述第二用户设备是否在线;
所述第二存储模块,还用于若所述第二用户设备不在线, 则存储所述同步 任务消息;
所述第一接收模块, 还用于接收所述第二用户设备的上线请求; 所述第一发送模块,还用于根据所存储的所述同步任务消息, 向所述第二 用户设备发送携带所述同步文件的信息的所述通知消息。
结合第三方面的第四种或第五种可能的实现方式中任意一种,在第三方面 的第六种可能的实现方式中,所述响应消息中携带所述同步任务指示的执行结 果用于指示所述第二用户设备根据所述同步文件的信息执行相应的同步操作。
结合第三方面的第四种至第六种可能的实现方式中任意一种,在第三方面
- - 的第七种可能的实现方式中, 所述第一接收模块,还用于向所述第二用户设备 发送通知消息之后, 接收所述第二用户设备发送的同步完成消息;
所述服务器, 还包括:
第一更新模块, 用于根据所述同步完成消息,在历史同步信息中更新所述 同步文件对应的历史同步操作信息。
结合第三方面或第三方面的第一种可能的实现方式中任意一种,在第三方 面的第八种可能的实现方式中, 所述同步任务指示为查询命令; 所述响应消息 中携带所述同步任务指示的执行结果携带所述历史同步信息中所述同步文件 对应的历史同步操作信息。
结合第三方面或第三方面的第一种可能的实现方式中任意一种,在第三方 面的第九种可能的实现方式中, 所述同步任务指示为更新命令, 则所述同步任 务消息还携带第二用户设备的信息;
所述服务器, 还包括:
第二更新模块,用于在所述服务器存储的历史同步信息中确定所述同步文 件对应的历史同步操作信息之后,根据所述第二用户设备的信息在历史同步信 息中更新所述同步文件对应的历史同步操作信息。
根据第三方面的第九种可能的实现方式,在第三方面的第十种可能的实现 方式中,所述响应消息中携带所述同步任务指示的执行结果用于指示所述服务 器根据所述第二用户设备的信息在历史同步信息中更新所述同步文件对应的 历史同步操作信息。
结合第三方面或第三方面的第一种可能的实现方式中任意一种,在第三方 面的第十一种可能的实现方式中, 所述同步任务指示为删除命令, 则所述同步 任务消息还携带第二用户设备的信息;
所述服务器, 还包括:
删除模块,用于在所述服务器存储的历史同步信息中确定所述同步文件对 应的历史同步操作信息之后,在历史同步信息中删除所述同步文件中所述第二 用户设备对应的历史同步操作信息。
根据第三方面的第十一种可能的实现方式,在第三方面的第十二种可能的 实现方式中,所述响应消息中携带所述同步任务指示的执行结果用于指示所述 服务器在历史同步信息中删除所述同步文件中所述第二用户设备对应的历史
- - 同步操作信息。
结合第三方面或第三方面的第一种至第十二种可能的实现方式中任意一 种, 在第三方面的第十三种可能的实现方式中, 所述第一接收模块, 还用于在 所述服务器接收第一用户设备发送的同步任务消息之前,接收所述第一用户设 备发送的注册请求, 所述注册请求中携带所述第一用户设备的信息;
第三存储模块,用于所述服务器将所述第一用户设备的信息存储至设备列 表中。
结合第三方面或第三方面的第一种至第十二种可能的实现方式中任意一 种, 在第三方面的第十四种可能的实现方式中, 所述第一接收模块, 还用于在 所述服务器接收第一用户设备发送的同步任务消息之前,接收所述第一用户设 备发送的设备列表请求消息;
所述第一发送模块,还用于向所述第一用户设备发送设备列表, 所述设备 列表中包括注册到所述服务器的至少一个用户设备的信息。
本发明第四方面, 提供一种用户设备, 包括:
第二发送模块, 用于向服务器发送同步任务消息, 所述同步任务消息中包 括: 同步任务指示和同步文件的信息;
第二接收模块, 用于接收所述服务器发送的所述同步任务消息的响应消 息, 所述响应消息中携带所述同步任务指示的执行结果。
在第四方面的第一种可能的实现方式中,所述同步文件的信息包括所述同 步文件的存储地址对应的统一资源定位符 URL; 或者,
所述同步文件信息包括所述同步文件的存储地址对应的 URL,还包括以下 信息中的任意一种或多种组合: 所述同步文件的名称信息, 所述同步文件的容 量信息, 所述同步文件的类型信息, 所述同步文件的同步状态信息和所述待同 步文件的优先级信息。
结合第四方面或第四方面的第一种可能的实现方式中任意一种,在第四方 面的第二种可能的实现方式中, 所述同步任务指示为创建命令, 则所述同步任 务消息还携带所述第一用户设备的信息和第二用户设备的信息;
所述响应消息中携带所述同步任务指示的执行结果用于指示所述服务器 将所述同步文件的信息存储在所述历史同步信息中。
结合第四方面或第四方面的第一种或第二种可能的实现方式中任意一种,
- - 在第四方面的第三种可能的实现方式中, 所述同步任务指示为创建命令, 则所 述同步任务消息还携带所述第一用户设备的信息和所述第二用户设备的信息; 所述响应消息中携带所述同步任务指示的执行结果用于指示所述第二用 户设备根据所述同步文件的信息执行相应的同步操作。
结合第四方面或第四方面的第一种可能的实现方式中任意一种,在第四方 面的第四种可能的实现方式中, 所述同步任务指示为查询命令;
所述响应消息中携带所述同步任务指示的执行结果携带所述历史同步信 息中所述同步文件对应的历史同步操作信息。
结合第四方面或第四方面的第一种可能的实现方式中任意一种,在第四方 面的第五种可能的实现方式中, 所述同步任务指示为更新命令, 则所述同步任 务消息还携带第二用户设备的信息;
所述响应消息中携带所述同步任务指示的执行结果用于指示所述服务器 根据所述第二用户设备的信息在历史同步信息中更新所述同步文件对应的历 史同步操作信息;
所述用户设备, 还包括:
第三更新模块, 用于根据所述响应消息, 更新本地存储的所述同步文件对 应的历史同步操作信息。
结合第四方面或第四方面的第一种可能的实现方式中任意一种,在第四方 面的第六种可能的实现方式中, 所述同步任务指示为删除命令, 则所述同步任 务消息还携带第二用户设备的信息;
所述响应消息中携带所述同步任务指示的执行结果用于指示所述服务器 在历史同步信息中删除所述同步文件中所述第二用户设备对应的历史同步操 作信息;
所述用户设备, 还包括:
第四更新模块, 用于根据所述响应消息, 更新本地存储的所述同步文件对 应的历史同步操作信息。
结合第四方面或第四方面的第一种至第六种可能的实现方式中任意一种, 在第四方面的第七种可能的实现方式中, 所述第二发送模块,还用于在所述第 一用户设备向服务器发送同步任务消息之前, 向所述服务器发送注册请求, 所 述注册请求中携带所述第一用户设备的信息。
- - 结合第四方面或第四方面的第一种至第六种可能的实现方式中任意一种, 在第四方面的第八种可能的实现方式中, 所述第二发送模块,还用于在所述第 一用户设备向服务器发送同步任务消息之前,向所述服务器发送设备列表请求 消息;
所述第二接收模块,还用于接收所述服务器发送的设备列表, 所述设备列 表中包括注册到所述服务器的至少一个用户设备的信息。
本发明实施例提供的数据同步方法及设备,通过服务器接收第一用户设备发送 的包含有同步任务指示和同步文件的信息的同步任务消息, 根据同步任务指 示, 在服务器存储的历史同步信息中确定同步文件对应的历史同步操作信息, 再在向第一用户设备发送同步任务消息的响应消息中携带同步任务指示的执 行结果, 可以实现服务器根据历史同步信息来控制用户设备之间的数据同步, 避免文件重复同步, 提高设备资源的利用率。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描 述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出 创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明提供的数据同步方法实施例一的流程图;
图 2为本发明提供的数据同步方法实施例二的流程图;
图 3为本发明提供的数据同步方法实施例三的流程图;
图 4为本发明提供的数据同步方法实施例五的流程图;
图 5为本发明提供的数据同步方法实施例六的流程图;
图 6为本发明提供的数据同步方法实施例七的流程图;
图 7为本发明提供的数据同步方法实施例八的流程图;
图 8为本发明提供的数据同步方法实施例十的流程图;
图 9为本发明提供的数据同步方法实施例十一的流程图;
图 10为本发明提供的数据同步方法实施例十二的流程图;
图 11为本发明提供的数据同步方法实施例十三的流程图;
- - 图 12为本发明提供的数据同步方法实施例十四的流程图;
图 13为本发明提供的服务器实施例一的结构示意图;
图 14为本发明提供的服务器实施例二的结构示意图;
图 15为本发明提供的服务器实施例三的结构示意图;
图 16为本发明提供的服务器实施例五的结构示意图;
图 17为本发明提供的服务器实施例六的结构示意图;
图 18为本发明提供的服务器实施例七的结构示意图;
图 19为本发明提供的用户设备实施例一的结构示意图;
图 20为本发明提供的用户设备实施例三的结构示意图;
图 21为本发明提供的用户设备实施例四的结构示意图;
图 22为本发明提供的用户设备实施例六的结构示意图。 具体实施方式 为使本发明实施例的目的、技术方案和优点更加清楚, 下面将结合本发明 实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。基于本发明中 的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其 他实施例, 都属于本发明保护的范围。
图 1为本发明提供的数据同步方法实施例一的流程图,如图 1所示, 本实施 例的数据同步方法包括:
S101、服务器接收第一用户设备发送的同步任务消息, 同步任务消息中包 括: 同步任务指示和同步文件的信息。
举例来说,本实施例可以针对家庭内部网络或局域网络中各用户设备之间 资源分享的场景,但本发明实施例并不限于该场景,服务器可以是智能机顶盒, 可以独立设置,也可以和网络中的用户设备集成设置,负责对接各个用户设备, 第一用户设备可以包括但不限于手机、 个人数字处理 (Personal Digital Assistant, 简称 PDA )、 无线手持设备、 无线上网本、 便携电脑、 MP3播放器、 MP4播放器、 电视机、 个人计算机(Personal Computer, 简称 PC )等, 服务器 和各用户设备之间可以通过无线保真( Wireless Fidelity ,简称 WiFi )进行通信,
- - 本发明对服务器和各用户设备之间的通信方式不做限制,服务器中存储有各个 用户设备的同步操作信息, 当第一用户设备发起同步任务时,会向服务器发送 同步任务消息, 同步任务消息中可以包括: 同步任务指示和同步文件的信息, 同步任务指示可以包括创建操作指示、 查询操作指示、 更新操作指示以及删除 操作指示等用于向服务器指示同步任务操作类型,第一用户设备可以将同步任 务指示和同步文件的信息封装成同步任务消息, 发送给服务器。
可选地,同步文件的信息包括同步文件的存储地址对应的统一资源定位符 ( Universal Resource Locator, 简称 URL ) ; 或者,
同步文件信息包括同步文件的存储地址对应的 URL,还包括以下信息中的 任意一种或多种组合: 同步文件的名称信息, 同步文件的容量信息, 同步文件 的类型信息, 同步文件的同步状态信息和待同步文件的优先级信息。
其中, 文件类型包括图片、 视频、 音频、 文档等数据类型, 同步状态可以 设置为同步等待状态, 同步暂停状态, 同步定时状态, 同步优先级表示文件同 步优先顺序。
S102、服务器根据同步任务指示,在服务器存储的历史同步信息中确定同 步文件对应的历史同步操作信息。
具体来说,服务器在接收到同步任务消息后, 可以根据预设的同步任务消 息解析规范解析同步任务消息, 确定同步任务指示和同步文件的信息,服务器 可以根据同步任务指示对应的操作类型,在服务器存储的历史同步信息中确定 同步文件对应的历史同步操作信息,若服务器中存储的历史同步信息中未包含 同步文件对应的历史同步操作信息,则可以先存储接收到的同步文件的信息存 储在历史同步信息中,再执行同步任务指示对应的操作, 若服务器中存储的历 史同步信息中包含同步文件对应的历史同步操作信息,则根据同步文件对应的 历史同步操作信息和执行同步任务指示对应的操作。
S103、服务器向第一用户设备发送同步任务消息的响应消息, 响应消息中 携带同步任务指示的执行结果。
具体来说, 在服务器行同步任务指示对应的操作之后, 可以向第一用户设 备发送同步任务消息的响应消息, 第一用户设备接收到响应消息后, 可以更新 用户设备中存储的历史同步信息。
上述同步任务消息和响应消息可以以可扩展标记语言 (Extensible Markup
- -
Language , 简称 XML)的形式发送。
当网络系统中的用户设备之间需要同步数据时,可由网络系统中的一个用 户设备向记录有网络系统中历史同步信息的服务器发送同步任务消息,服务器 存储或更新同步文件对应的历史同步信息,可以实现服务器记录网络系统内用 户设备之间进行数据同步的历史同步信息,避免现有技术中可能存在的文件重 复同步的问题, 提高设备资源的利用率。
本实施例提供的数据同步方法,通过服务器接收第一用户设备发送的包含 有同步任务指示和同步文件的信息的同步任务消息,根据同步任务指示, 在服 务器存储的历史同步信息中确定同步文件对应的历史同步操作信息,再在向第 一用户设备发送同步任务消息的响应消息中携带同步任务指示的执行结果,可 以实现服务器根据历史同步信息来控制用户设备之间的数据同步,避免文件重 复同步, 提高设备资源的利用率。
图 2为本发明提供的数据同步方法实施例二的流程图,如图 2所示, 本实施 例针对的场景为: 同步任务指示为创建命令,服务器接收到第一用户设备发送 的同步任务消息后,确定历史同步信息中是否存储有同步文件的信息, 若历史 同步信息中存储有同步文件的信息则不再重复创建,本实施例的数据同步方法 包括:
S201、服务器接收第一用户设备发送的同步任务消息, 同步任务消息中包 括: 同步任务指示和同步文件的信息, 同步任务指示为创建命令, 则同步任务 消息还携带第一用户设备的信息和第二用户设备的信息。
具体来说,创建命令用于指示创建同步任务, 同步任务消息中除同步任务 指示和同步文件的信息之外,还携带第一用户设备的信息和第二用户设备的信 息, 设备信息可以包括设备名称、 设备 ID、 设备 IP地址、 设备类型、 设备在线 状态等信息。
S202、服务器根据同步任务指示,在服务器存储的历史同步信息中确定同 步文件对应的历史同步操作信息。
S203、 服务器判断历史同步信息中是否已存储同步文件的信息。
S204、若历史同步信息中未存储同步文件的信息,则服务器将同步文件的 信息存储在历史同步信息中。
具体来说, 若历史同步信息中未存储同步文件的信息, 则服务器将同步文
- - 件的信息存储在历史同步信息中;若历史同步信息中存储有同步文件的信息则 不再重复创建; 若历史同步信息中存储有同步文件的信息,但同步操作已经完 成, 则可以更新历史同步信息和同步状态等相关信息。
S205、服务器向第一用户设备发送同步任务消息的响应消息, 响应消息中 携带同步任务指示的执行结果用于指示服务器将同步文件的信息存储在历史 同步信息中。
本实施例提供的数据同步方法,通过服务器接收第一用户设备发送的包含 有创建命令和同步文件的信息的同步任务消息,根据同步任务指示,在服务器 存储的历史同步信息中确定同步文件对应的历史同步操作信息,若历史同步信 息中未存储同步文件的信息,则服务器将同步文件的信息存储在历史同步信息 中,再在向第一用户设备发送同步任务消息的响应消息中携带同步任务指示的 执行结果用于指示服务器将同步文件的信息存储在历史同步信息中,可以实现 服务器根据历史同步信息来控制用户设备之间的数据同步, 避免文件重复同 步, 提高设备资源的利用率。
图 3为本发明提供的数据同步方法实施例三的流程图,如图 3所示, 本实施 例针对的场景为: 同步任务指示为创建命令,服务器接收到第一用户设备发送 的同步任务消息后,判断第二用户设备是否在线,若第二用户设备在线或上线, 则通知第二用户设备进行同步操作, 本实施例的数据同步方法包括:
5301、服务器接收第一用户设备发送的同步任务消息, 同步任务消息中包 括: 同步任务指示和同步文件的信息, 同步任务指示为创建命令, 则同步任务 消息还携带第一用户设备的信息和第二用户设备的信息。
具体来说,创建命令用于指示创建同步任务, 同步任务消息中除同步任务 指示和同步文件的信息之外,还携带第一用户设备的信息和第二用户设备的信 息, 设备信息可以包括设备名称、 设备 ID、 设备 IP地址、 设备类型、 设备在线 状态等信息。
5302、服务器根据同步任务指示,在服务器存储的历史同步信息中确定同 步文件对应的历史同步操作信息。
S303、若服务器根据同步文件对应的历史同步操作信息确定第二用户设备 对同步文件的同步操作未进行, 则服务器确定第二用户设备是否在线, 若是, 则执行 S304, 若否, 执行 S305;
- - 具体来说,服务器接收到包含有创建命令指示的同步任务消息后,确定第 二用户设备对同步文件的同步操作未进行, 若第二用户设备在线, 则向第二用 户设备发送携带同步文件的信息的通知消息, 若第二用户设备不在线, 则服务 器先存储同步任务消息,待第二用户设备上线后, 向第二用户设备发送通知消 息。
5304、 服务器向第二用户设备发送携带同步文件的信息的通知消息。
5305、 若第二用户设备不在线, 则服务器存储同步任务消息。
5306、 服务器接收第二用户设备的上线请求。
5307、服务器根据所存储的同步任务消息, 向第二用户设备发送携带同步 文件的信息的通知消息, 通知消息中携带同步文件的信息,通知消息用于指示 第二用户设备根据同步文件的信息执行相应的同步操作。
第二用户设备接收到通知消息后,通过解析通知消息, 可以获得同步文件 的信息, 若第二用户设备的历史同步信息中未存储相同的同步任务信息, 则放 入队列等待下载;若第二用户设备的历史同步信息中存储有相同的同步任务记 录且曾经下载过, 可以重新同步下载, 若有相同的同步任务正在等待或下载, 不需要更新用户设备的历史同步信息, 若同步任务开始下载, 可以采取多线程 执行功能, 动态设置一个或多个线程同时断点下载, 同步文件的下载可以指第 二用户设备根据同步文件的 URL与同步文件所在的用户设备建立连接,接收文 件内容, 写入本地, 同步接收通道具有多线程执行功能, 并且根据要求可以采 取多线程断点下载方式。
可以理解的是,第二用户设备根据同步文件的信息执行相应的同步操作除 上述文件下载外,还可以包括第二用户设备根据同步任务消息将同步文件上传 至例如云平台中的共享单元等上传操作。
5308、 服务器将通知消息关联存储至历史同步信息。
S309、 服务器接收第二用户设备发送的同步完成消息。
5310、服务器根据同步完成消息,在历史同步信息中更新同步文件对应的 历史同步操作信息。
5311、服务器向第一用户设备发送同步任务消息的响应消息, 响应消息中 携带同步任务指示的执行结果用于指示第二用户设备根据同步文件的信息执 行相应的同步操作。
- - 本实施例提供的数据同步方法,对于不在线的用户设备也可以创建同步任 务, 当用户设备不在线时, 先由服务器存储同步任务消息, 待用户设备上线时 再将同步任务消息发送给用户设备, 以完成数据同步,服务器作为同步任务存 储和转发中心, 支撑多个用户设备间完整的文件同步功能,相对于现有技术扩 展了业务场景。
本实施例提供的数据同步方法,通过服务器接收第一用户设备发送的包含 有创建命令和同步文件的信息的同步任务消息,根据同步任务指示,在服务器 存储的历史同步信息中确定同步文件对应的历史同步操作信息,若服务器根据 同步文件对应的历史同步操作信息确定第二用户设备对同步文件的同步操作 未进行, 则服务器确定第二用户设备是否在线, 若第二用户设备在线, 则向第 二用户设备发送携带同步文件的信息的通知消息, 若第二用户设备不在线, 则 服务器先存储同步任务消息,待第二用户设备上线后, 向第二用户设备发送通 知消息,在第二设备完成同步操作后,服务器再向第一用户设备发送同步任务 消息的响应消息,响应消息中携带同步任务指示的执行结果用于指示第二用户 设备根据同步文件的信息执行相应的同步操作 ,可以实现服务器根据历史同步 信息来控制用户设备之间的数据同步,避免文件重复同步,提高设备资源的利 用率, 并可以实现为不在线的用户设备创建同步任务。
在图 1所示实施例的基础上, 本发明提供的数据同步方法实施例四, 针对 的场景为: 第一用户设备需要查询文件的历史同步信息, 向服务器发送同步文 件消息,服务器将查询到的历史同步信息中同步文件对应的历史同步操作信息 发送给第一用户设备, 同步任务指示为查询命令, 响应消息中携带同步任务指 示的执行结果携带历史同步信息中同步文件对应的历史同步操作信息。
具体来说, 第二用户设备的信息根据实际情况可以不需要指示, 这样可以 查询到同步文件所有的同步历史信息, 将所有的查询结果组装成一个 XML文 档, 作为一个数据包反馈给第一用户设备。
在本实施例提供的数据同步方法中,用户设备可以在服务器上查询到同步 文件所有的同步历史信息,进一步避免现有技术中可能存在的文件重复同步的 问题, 提高设备资源的利用率。
图 4为本发明提供的数据同步方法实施例五的流程图,如图 4所示, 本实施 例针对的场景为: 同步任务指示为更新命令, 第一用户设备指示服务器根据第
- - 二用户设备的信息在历史同步信息中更新同步文件对应的历史同步操作信息, 本实施例的数据同步方法包括:
5401、服务器接收第一用户设备发送的同步任务消息, 同步任务消息中包 括: 同步任务指示和同步文件的信息, 同步任务指示为更新命令, 则同步任务 消息还携带第二用户设备的信息。
5402、服务器根据同步任务指示,在服务器存储的历史同步信息中确定同 步文件对应的历史同步操作信息。
5403、服务器根据第二用户设备的信息在历史同步信息中更新同步文件对 应的历史同步操作信息。
S404、服务器向第一用户设备发送同步任务消息的响应消息, 响应消息中 携带同步任务指示的执行结果用于指示服务器根据第二用户设备的信息在历 史同步信息中更新同步文件对应的历史同步操作信息。
本实施例提供的数据同步方法,通过服务器接收第一用户设备发送的包含 有更新命令和同步文件的信息的同步任务消息,根据同步任务指示,服务器根 据第二用户设备的信息在历史同步信息中更新同步文件对应的历史同步操作 信息,再向第一用户设备发送同步任务消息的响应消息, 响应消息中携带同步 任务指示的执行结果用于指示服务器根据第二用户设备的信息在历史同步信 息中更新同步文件对应的历史同步操作信息,可以实现服务器根据历史同步信 息来控制用户设备之间的数据同步,避免文件重复同步,提高设备资源的利用 率。
可以理解的是, 若第一用户设备或第二用户设备中同步文件的状态有变 化, 可以向服务器发送包含有更新命令和同步文件的消息的同步任务消息, 以 使服务器更新同步文件对应的历史同步操作信息。
图 5为本发明提供的数据同步方法实施例六的流程图,如图 5所示, 本实施 例针对的场景为: 同步任务指示为删除命令, 第一用户设备指示服务器根据第 二用户设备的信息在历史同步信息中删除同步文件对应的历史同步操作信息, 本实施例的数据同步方法包括:
S501、服务器接收第一用户设备发送的同步任务消息, 同步任务消息中包 括: 同步任务指示和同步文件的信息, 同步任务指示为删除命令, 则同步任务 消息还携带第二用户设备的信息。
- -
S502、服务器根据同步任务指示,在服务器存储的历史同步信息中确定同 步文件对应的历史同步操作信息。
S503、服务器在历史同步信息中删除同步文件中第二用户设备对应的历史 同步操作信息。
S504、服务器向第一用户设备发送同步任务消息的响应消息, 响应消息中 携带同步任务指示的执行结果用于指示服务器在历史同步信息中删除同步文 件中第二用户设备对应的历史同步操作信息。
本实施例提供的数据同步方法,通过服务器接收第一用户设备发送的包含 有删除命令和同步文件的信息的同步任务消息,根据同步任务指示,服务器在 历史同步信息中删除同步文件中第二用户设备对应的历史同步操作信息,再向 第一用户设备发送同步任务消息的响应消息,响应消息中携带同步任务指示的 执行结果用于指示服务器在历史同步信息中删除同步文件中第二用户设备对 应的历史同步操作信息,可以实现服务器根据历史同步信息来控制用户设备之 间的数据同步, 避免文件重复同步, 提高设备资源的利用率。
可以理解的是, 若第一用户设备或第二用户设备删除同步文件, 可以向服 务器发送包含有删除命令和同步文件的消息的同步任务消息,以使服务器更新 同步文件对应的历史同步操作信息为删除状态。
图 6为本发明提供的数据同步方法实施例七的流程图,如图 6所示, 本实施 例针对的场景为: 服务器初始化, 收集并緩存所有注册的用户设备信息, 第一 用户设备建立同步任务前需要获知网络中的设备列表信息,本实施例的数据同 步方法, 在图 1所示实施例的基础上, 包括:
5601、服务器接收第一用户设备发送的注册请求, 注册请求中携带第一用 户设备的信息。
具体来说, 服务器初始化, 收集并緩存所有注册的用户设备信息, 用户设 备信息至少包括设备名称,设备 ID,设备 IP地址,设备类型,设备在线状态等。
5602, 服务器将第一用户设备的信息存储至设备列表中。
S603、 服务器接收第一用户设备发送的设备列表请求消息;
S604、服务器向第一用户设备发送设备列表,设备列表中包括注册到服务 器的至少一个用户设备的信息。
本实施例提供的数据同步方法, 通过服务器接收用户设备发送的注册请
- - 求,将第一用户设备的信息存储至设备列表中,再接收第一用户设备发送的设 备列表请求消息, 向第一用户设备发送设备列表, 可以保证家庭私有网络或局 域网内部的用户设备和服务器之间的通信连接以及上线自动发现。
图 7为本发明提供的数据同步方法实施例八的流程图,如图 7所示, 本实施 例的数据同步方法, 包括:
5701、 第一用户设备向服务器发送同步任务消息, 同步任务消息中包括: 同步任务指示和同步文件的信息。
可选地,同步文件的信息包括同步文件的存储地址对应的统一资源定位符 URL; 或者,
同步文件信息包括同步文件的存储地址对应的 URL,还包括以下信息中的 任意一种或多种组合: 同步文件的名称信息, 同步文件的容量信息, 同步文件 的类型信息, 同步文件的同步状态信息和待同步文件的优先级信息。
5702、第一用户设备接收服务器发送的同步任务消息的响应消息,响应消 息中携带同步任务指示的执行结果。
上述同步任务消息和响应消息可以以 XML的形式发送。
当网络系统中的用户设备之间需要同步数据时,可由网络系统中的第一用 户设备向记录有网络系统中历史同步信息的服务器发送同步任务消息,服务器 存储或更新同步文件对应的历史同步信息,可以实现服务器根据历史同步信息 来控制用户设备之间的数据同步,避免文件重复同步,提高设备资源的利用率。
本实施例提供的数据同步方法,通过第一用户设备向服务器发送同步任务 消息, 同步任务消息中包括: 同步任务指示和同步文件的信息, 再接收服务器 发送的同步任务消息的响应消息, 响应消息中携带同步任务指示的执行结果, 可以实现服务器根据历史同步信息来控制用户设备之间的数据同步,避免文件 重复同步, 提高设备资源的利用率。
在图 7所示实施例的基础上, 在本发明提供的数据同步方法实施例九中, 同步任务指示为创建命令,则同步任务消息还携带第一用户设备的信息和第二 用户设备的信息;
响应消息中携带同步任务指示的执行结果用于指示服务器将同步文件的 信息存储在历史同步信息中。
同步任务指示为创建命令,则同步任务消息还携带第一用户设备的信息和
- - 第二用户设备的信息;
响应消息中携带同步任务指示的执行结果用于指示第二用户设备根据同 步文件的信息执行相应的同步操作。
同步任务指示为查询命令;
响应消息中携带同步任务指示的执行结果携带历史同步信息中同步文件 对应的历史同步操作信息。
图 8为本发明提供的数据同步方法实施例十的流程图,如图 8所示, 本实施 例针对的场景为: 同步任务指示为更新命令, 第一用户设备指示服务器根据第 二用户设备的信息在历史同步信息中更新同步文件对应的历史同步操作信息, 本实施例的数据同步方法, 包括:
5801、 第一用户设备向服务器发送同步任务消息, 同步任务消息中包括: 同步任务指示和同步文件的信息, 同步任务指示为更新命令, 则同步任务消息 还携带第二用户设备的信息。
5802、第一用户设备接收服务器发送的同步任务消息的响应消息,响应消 息中携带同步任务指示的执行结果用于指示服务器根据第二用户设备的信息 在历史同步信息中更新同步文件对应的历史同步操作信息。
5803、第一用户设备根据响应消息, 更新本地存储的同步文件对应的历史 同步操作信息。
第一用户设备更新本地存储的同步文件对应的历史同步操作信息,可以进 一步避免现有技术中可能存在的文件重复同步的问题, 提高设备资源的利用 率。
本实施例提供的数据同步方法,通过第一用户设备向服务器发送同步任务 消息, 同步任务消息中包括: 同步任务指示和同步文件的信息, 同步任务指示 为更新命令, 则同步任务消息还携带第二用户设备的信息,再接收服务器发送 的同步任务消息的响应消息,响应消息中携带同步任务指示的执行结果用于指 示服务器根据第二用户设备的信息在历史同步信息中更新同步文件对应的历 史同步操作信息,可以实现服务器根据历史同步信息来控制用户设备之间的数 据同步, 避免文件重复同步, 提高设备资源的利用率。
图 9为本发明提供的数据同步方法实施例十一的流程图,如图 9所示, 本实 施例针对的场景为: 同步任务指示为删除命令, 第一用户设备指示服务器根据
- - 第二用户设备的信息在历史同步信息中删除同步文件对应的历史同步操作信 息, 本实施例的数据同步方法, 包括:
5901、 第一用户设备向服务器发送同步任务消息, 同步任务消息中包括: 同步任务指示和同步文件的信息, 同步任务指示为删除命令, 则同步任务消息 还携带第二用户设备的信息。
5902、第一用户设备接收服务器发送的同步任务消息的响应消息,响应消 息中携带同步任务指示的执行结果用于指示服务器在历史同步信息中删除同 步文件中第二用户设备对应的历史同步操作信息。
5903、第一用户设备根据响应消息, 更新本地存储的同步文件对应的历史 同步操作信息。
本实施例提供的数据同步方法,通过第一用户设备向服务器发送同步任务 消息, 同步任务消息中包括: 同步任务指示和同步文件的信息, 同步任务指示 为删除命令, 则同步任务消息还携带第二用户设备的信息,再接收服务器发送 的同步任务消息的响应消息,响应消息中携带同步任务指示的执行结果用于指 示服务器在历史同步信息中删除同步文件中第二用户设备对应的历史同步操 作信息, 可以实现服务器根据历史同步信息来控制用户设备之间的数据同步, 避免文件重复同步, 提高设备资源的利用率。
图 10为本发明提供的数据同步方法实施例十二的流程图, 如图 10所示, 本 实施例针对的场景为: 服务器初始化, 收集并緩存所有注册的用户设备信息, 第一用户设备建立同步任务前需要获知网络中的设备列表信息,本实施例的数 据同步方法, 在图 1所示实施例的基础上, 包括:
S1001 , 第一用户设备向服务器发送注册请求, 注册请求中携带第一用户 设备的信息。
S 1002、 第一用户设备向服务器发送设备列表请求消息。
S1003、 第一用户设备接收服务器发送的设备列表, 设备列表中包括注册 到服务器的至少一个用户设备的信息。
本实施例提供的数据同步方法, 通过第一用户设备向服务器发送注册请 求,注册请求中携带第一用户设备的信息,再向服务器发送设备列表请求消息, 第一用户设备接收服务器发送的设备列表,设备列表中包括注册到服务器的至 少一个用户设备的信息,可以保证家庭私有网络或局域网内部的用户设备和服
- - 务器之间的通信连接以及上线自动发现。
图 11为本发明提供的数据同步方法实施例十三的流程图, 如图 11所示, 本 实施例的数据同步方法, 包括:
S1101、 第二用户设备向服务器发送上线请求。
S1102、 第二用户设备接收服务器发送的携带有同步文件的信息的通知消 息, 通知消息用于指示第二用户设备根据同步文件的信息执行相应的同步操 作。
S1103、 第二用户设备向服务器发送同步完成消息。
本实施例提供的数据同步方法, 通过第二用户设备向服务器发送上线请 求,接收服务器发送的携带有同步文件的信息的通知消息, 第二用户设备完成 同步任务后, 向服务器发送同步完成消息, 可以实现服务器根据历史同步信息 来控制用户设备之间的数据同步,避免文件重复同步,提高设备资源的利用率。 以下以第一用户设备、服务器以及第二用户设备之间执行创建命令为例,对本 发明提供的数据同步方法进行详细说明,图 12为本发明提供的数据同步方法实 施例十四的流程图, 如图 12所示, 本实施例针对的场景为: 第一用户设备需要 通过服务器将同步文件分享给第二用户设备, 第二用户设备不在线, 上线后进 行同步操作, 本实施例的数据同步方法, 包括:
S1201 , 第一用户设备向服务器发送注册请求, 注册请求中携带第一用户 设备的信息。
S1202、 服务器将第一用户设备的信息存储至设备列表中。
S1203、 第一用户设备向服务器发送设备列表请求消息。
51204、 服务器向第一用户设备发送设备列表, 设备列表中包括注册到服 务器的至少一个用户设备的信息。
51205、第一用户设备向服务器发送同步任务消息, 同步任务消息中包括: 同步任务指示和同步文件的信息, 同步任务指示为创建命令, 则同步任务消息 还携带第一用户设备的信息和第二用户设备的信息。
51206, 服务器根据同步任务指示, 在服务器存储的历史同步信息中确定 同步文件对应的历史同步操作信息。
51207 , 历史同步信息中未存储同步文件的信息, 则服务器将同步文件的 信息存储在历史同步信息中。
- -
51208, 第二用户设备不在线, 则服务器存储同步任务消息。
51209, 第二用户设备向服务器发送上线请求。
51210、 服务器向第二用户设备发送携带同步文件的信息的通知消息。
51211、 第二用户设备向服务器发送同步完成消息。
S1212、 服务器根据同步完成消息, 在历史同步信息中更新同步文件对应 的历史同步操作信息。
S1213、 服务器向第一用户设备发送同步任务消息的响应消息, 响应消息 中携带同步任务指示的执行结果用于指示第二用户设备根据同步文件的信息 执行相应的同步操作。
本实施例提供的数据同步方法,通过服务器接收第一用户设备发送的包含 有创建命令和同步文件的信息的同步任务消息,根据同步任务指示,在服务器 存储的历史同步信息中确定同步文件对应的历史同步操作信息,若服务器根据 同步文件对应的历史同步操作信息确定第二用户设备对同步文件的同步操作 未进行, 第二用户设备不在线, 则服务器先存储同步任务消息, 待第二用户设 备上线后, 向第二用户设备发送通知消息, 在第二设备完成同步操作后, 服务 器再向第一用户设备发送同步任务消息的响应消息,响应消息中携带同步任务 指示的执行结果用于指示第二用户设备根据同步文件的信息执行相应的同步 操作, 可以实现服务器根据历史同步信息来控制用户设备之间的数据同步,避 免文件重复同步,提高设备资源的利用率, 并可以实现为不在线的用户设备创 建同步任务。
图 13为本发明提供的服务器实施例一的结构示意图,如图 13所示, 本实施 例的服务器, 包括第一接收模块 131、 确定模块 132以及第一发送模块 133 , 其 中, 第一接收模块 131用于接收第一用户设备发送的同步任务消息, 同步任务 消息中包括: 同步任务指示和同步文件的信息; 确定模块 132用于根据同步任 务指示,在服务器存储的历史同步信息中确定同步文件对应的历史同步操作信 息; 第一发送模块 133用于向第一用户设备发送同步任务消息的响应消息, 响 应消息中携带同步任务指示的执行结果。
可选地,同步文件的信息包括同步文件的存储地址对应的统一资源定位符 URL; 或者,
同步文件信息包括同步文件的存储地址对应的 URL,还包括以下信息中的
- - 任意一种或多种组合: 同步文件的名称信息, 同步文件的容量信息, 同步文件 的类型信息, 同步文件的同步状态信息和待同步文件的优先级信息。
本实施例的装置, 可以用于执行图 1所示方法实施例的技术方案, 其实现 原理和技术效果类似, 此处不再赘述。
图 14为本发明提供的服务器实施例二的结构示意图,如图 14所示, 本实施 例的服务器, 在图 13所示实施例的基础上, 第一接收模块 131还用于接收第一 用户设备发送的同步任务消息, 同步任务消息中包括: 同步任务指示和同步文 件的信息, 同步任务指示为创建命令, 则同步任务消息还携带第一用户设备的 信息和第二用户设备的信息;
本实施例的服务器还包括: 判断模块 134和第一存储模块 135 , 其中, 判断 模块 134用于在服务器存储的历史同步信息中确定同步文件对应的历史同步操 作信息之后, 判断历史同步信息中是否已存储同步文件的信息; 第一存储模块 135用于若历史同步信息中未存储同步文件的信息, 则将同步文件的信息存储 在历史同步信息中。
第一发送模块 133还用于向第一用户设备发送同步任务消息的响应消息, 响应消息中携带同步任务指示的执行结果用于指示服务器将同步文件的信息 存储在历史同步信息中。
本实施例的装置, 可以用于执行图 2所示方法实施例的技术方案, 其实现 原理和技术效果类似, 此处不再赘述。
图 15为本发明提供的服务器实施例三的结构示意图,如图 15所示, 本实施 例的服务器, 在图 13所示实施例的基础上, 第一接收模块 131用于接收第一用 户设备发送的同步任务消息, 同步任务消息中包括: 同步任务指示和同步文件 的信息, 同步任务指示为创建命令, 则同步任务消息还携带第一用户设备的信 息和第二用户设备的信息;
确定模块 132还用于在服务器存储的历史同步信息中确定同步文件对应的 历史同步操作信息之后,根据同步文件对应的历史同步操作信息确定第二用户 设备对同步文件的同步操作未进行;
第一发送模块 133还用于向第二用户设备发送通知消息, 通知消息中携带 同步文件的信息,通知消息用于指示第二用户设备根据同步文件的信息执行相 应的同步操作;
- - 本实施例的服务器,还包括第二存储模块 139, 第二存储模块 139用于将通 知消息关联存储至历史同步信息;
确定模块 132还用于确定第二用户设备是否在线;
第二存储模块 139还用于若第二用户设备不在线, 则存储同步任务消息; 第一接收模块 131还用于接收第二用户设备的上线请求;
第一发送模块 133还用于根据所存储的同步任务消息, 向第二用户设备发 送携带同步文件的信息的通知消息;
第一发送模块 133还用于向第一用户设备发送同步任务消息的响应消息, 响应消息中携带同步任务指示的执行结果用于指示第二用户设备根据同步文 件的信息执行相应的同步操作;
第一接收模块 131还用于向第二用户设备发送通知消息之后, 接收第二用 户设备发送的同步完成消息;
本实施例的服务器,还包括第一更新模块 136, 第一更新模块 136用于根据 同步完成消息, 在历史同步信息中更新同步文件对应的历史同步操作信息。
本实施例的装置, 可以用于执行图 3所示方法实施例的技术方案, 其实现 原理和技术效果类似, 此处不再赘述。
在图 13所示实施例的基础上, 本发明提供的服务器实施例四中, 第一接收 模块 131用于接收第一用户设备发送的同步任务消息, 同步任务消息中包括: 同步任务指示和同步文件的信息, 同步任务指示为查询命令;
第一发送模块 133还用于向第一用户设备发送同步任务消息的响应消息, 响应消息中携带同步任务指示的执行结果携带历史同步信息中同步文件对应 的历史同步操作信息。
本实施例的装置,可以用于执行数据同步方法实施例四所示方法实施例的 技术方案, 其实现原理和技术效果类似, 此处不再赘述。
图 16为本发明提供的服务器实施例五的结构示意图,如图 16所示, 本实施 例的服务器, 在图 13所示实施例的基础上, 第一接收模块 131用于接收第一用 户设备发送的同步任务消息, 同步任务消息中包括: 同步任务指示和同步文件 的信息, 同步任务指示为更新命令, 则同步任务消息还携带第二用户设备的信 息;
本实施例的服务器, 还包括: 第二更新模块 137, 第二更新模块 137用于在
- - 服务器存储的历史同步信息中确定同步文件对应的历史同步操作信息之后 ,根 据第二用户设备的信息在历史同步信息中更新同步文件对应的历史同步操作 信息。
第一发送模块 133还用于向第一用户设备发送同步任务消息的响应消息, 响应消息中携带同步任务指示的执行结果用于指示服务器根据第二用户设备 的信息在历史同步信息中更新同步文件对应的历史同步操作信息。
本实施例的装置, 可以用于执行图 4所示方法实施例的技术方案, 其实现 原理和技术效果类似, 此处不再赘述。
图 17为本发明提供的服务器实施例六的结构示意图,如图 17所示, 本实施 例的服务器, 在图 13所示实施例的基础上, 第一接收模块 131用于接收第一用 户设备发送的同步任务消息, 同步任务消息中包括: 同步任务指示和同步文件 的信息, 同步任务指示为删除命令, 则同步任务消息还携带第二用户设备的信 息;
本实施例的服务器, 还包括: 删除模块 138, 删除模块 138用于在服务器存 储的历史同步信息中确定同步文件对应的历史同步操作信息之后,在历史同步 信息中删除同步文件中第二用户设备对应的历史同步操作信息。
第一发送模块 133还用于向第一用户设备发送同步任务消息的响应消息, 响应消息中携带同步任务指示的执行结果用于指示服务器在历史同步信息中 删除同步文件中第二用户设备对应的历史同步操作信息。
本实施例的装置, 可以用于执行图 5所示方法实施例的技术方案, 其实现 原理和技术效果类似, 此处不再赘述。
在上述服务器实施例的基础上, 本发明提供的服务器实施例七种, 第一接 收模块 131还用于在服务器接收第一用户设备发送的同步任务消息之前, 接收 第一用户设备发送的注册请求, 注册请求中携带第一用户设备的信息;
还包括: 第三存储模块, 第三存储模块用于服务器将第一用户设备的信息 存储至设备列表中。
第一接收模块 131还用于在服务器接收第一用户设备发送的同步任务消息 之前, 接收第一用户设备发送的设备列表请求消息;
第一发送模块 133还用于向第一用户设备发送设备列表, 设备列表中包括 注册到服务器的至少一个用户设备的信息。
- - 本实施例的装置, 可以用于执行图 6所示方法实施例的技术方案, 其实现 原理和技术效果类似, 此处不再赘述。
图 18为本发明提供的服务器实施例七的结构示意图,如图 18所示, 本实施 例的服务器, 包括发射器 181、 接收器 182、 存储器 183以及分别与发射器 181、 接收器 182和存储器 183连接的处理器 184。 当然, 服务器还可以包括天线、 基 带处理部件、 中射频处理部件、 输入输出装置等通用部件, 本发明实施例在此 不再任何限制。
其中, 存储器 183中存储一组程序代码, 且处理器 184用于调用存储器 183 中存储的程序代码, 用于执行以下操作:
接收第一用户设备发送的同步任务消息, 同步任务消息中包括: 同步任务 指示和同步文件的信息;
根据同步任务指示,在服务器存储的历史同步信息中确定同步文件对应的 历史同步操作信息;
向第一用户设备发送同步任务消息的响应消息,响应消息中携带同步任务 指示的执行结果。
需要说明的是,图 13至图 18所示的服务器可以用于实现以上方法实施例所 提供的任一种方法, 在此不再赘述。
图 19为本发明提供的用户设备实施例一的结构示意图,如图 19所示, 本实 施例的用户设备, 包括: 第二发送模块 191和第二接收模块 192 , 其中, 第二发 送模块 191用于向服务器发送同步任务消息, 同步任务消息中包括: 同步任务 指示和同步文件的信息; 第二接收模块 192用于接收服务器发送的同步任务消 息的响应消息, 响应消息中携带同步任务指示的执行结果。
可选地,同步文件的信息包括同步文件的存储地址对应的统一资源定位符 URL; 或者,
同步文件信息包括同步文件的存储地址对应的 URL,还包括以下信息中的 任意一种或多种组合: 同步文件的名称信息, 同步文件的容量信息, 同步文件 的类型信息, 同步文件的同步状态信息和待同步文件的优先级信息。
本实施例的装置, 可以用于执行图 7所示方法实施例的技术方案, 其实现 原理和技术效果类似, 此处不再赘述。
在图 19所示实施例的基础上, 本发明提供的用户设备实施例二中, 第二发
- - 送模块 191还用于向服务器发送同步任务消息, 同步任务消息中包括: 同步任 务指示和同步文件的信息, 同步任务指示为创建命令, 则同步任务消息还携带 第一用户设备的信息和第二用户设备的信息; 第二接收模块 192还用于接收服 务器发送的同步任务消息的响应消息,响应消息中携带同步任务指示的执行结 果用于指示服务器将同步文件的信息存储在历史同步信息中。
第二发送模块 191还用于向服务器发送同步任务消息, 同步任务消息中包 括: 同步任务指示和同步文件的信息, 同步任务指示为创建命令, 则同步任务 消息还携带第一用户设备的信息和第二用户设备的信息; 第二接收模块 192还 用于接收服务器发送的同步任务消息的响应消息,响应消息中携带同步任务指 示的执行结果用于指示第二用户设备根据同步文件的信息执行相应的同步操 作。
第二发送模块 191还用于向服务器发送同步任务消息, 同步任务消息中包 括: 同步任务指示和同步文件的信息, 同步任务指示为查询命令; 第二接收模 块 192还用于接收服务器发送的同步任务消息的响应消息, 响应消息中携带同 步任务指示的执行结果携带历史同步信息中同步文件对应的历史同步操作信 息。
图 20为本发明提供的用户设备实施例三的结构示意图,如图 20所示, 本实 施例的用户设备, 在图 19所示实施例的基础上, 第二发送模块 191还用于向服 务器发送同步任务消息, 同步任务消息中包括: 同步任务指示和同步文件的信 息, 同步任务指示为更新命令, 则同步任务消息还携带第二用户设备的信息; 第二接收模块 192还用于接收服务器发送的同步任务消息的响应消息, 响应消 息中携带同步任务指示的执行结果用于指示服务器根据第二用户设备的信息 在历史同步信息中更新同步文件对应的历史同步操作信息。
本实施例的用户设备,还包括第三更新模块 193 , 第三更新模块 193用于根 据响应消息, 更新本地存储的同步文件对应的历史同步操作信息。
本实施例的装置, 可以用于执行图 8所示方法实施例的技术方案, 其实现 原理和技术效果类似, 此处不再赘述。
图 21为本发明提供的用户设备实施例四的结构示意图,如图 21所示, 本实 施例的用户设备, 在图 19所示实施例的基础上, 第二发送模块 191还用于向服 务器发送同步任务消息, 同步任务消息中包括: 同步任务指示和同步文件的信
- - 息, 同步任务指示为删除命令, 则同步任务消息还携带第二用户设备的信息; 第二接收模块 192还用于接收服务器发送的同步任务消息的响应消息, 响应消 息中携带同步任务指示的执行结果用于指示服务器在历史同步信息中删除同 步文件中第二用户设备对应的历史同步操作信息。
本实施例的用户设备, 第四更新模块 194, 第四更新模块 194用于根据响应 消息, 更新本地存储的同步文件对应的历史同步操作信息。
本实施例的装置, 可以用于执行图 9所示方法实施例的技术方案, 其实现 原理和技术效果类似, 此处不再赘述。
在上述用户设备实施例的基础上, 本发明提供的用户设备实施例五中, 第 二发送模块 191还用于在第一用户设备向服务器发送同步任务消息之前, 向服 务器发送注册请求, 注册请求中携带第一用户设备的信息。
第二发送模块 191还用于在第一用户设备向服务器发送同步任务消息之 前, 向服务器发送设备列表请求消息;
第二接收模块 192还用于接收服务器发送的设备列表, 设备列表中包括注 册到服务器的至少一个用户设备的信息。
本实施例的装置, 可以用于执行图 10所示方法实施例的技术方案, 其实现 原理和技术效果类似, 此处不再赘述。
图 22为本发明提供的用户设备实施例六的结构示意图,如图 22所示, 本实 施例的用户设备, 包括发射器 221、 接收器 222、 存储器 223以及分别与发射器 221、接收器 222和存储器 223连接的处理器 224。 当然,服务器还可以包括天线、 基带处理部件、 中射频处理部件、 输入输出装置等通用部件, 本发明实施例在 此不再任何限制。
其中, 存储器 223中存储一组程序代码, 且处理器 224用于调用存储器 223 中存储的程序代码, 用于执行以下操作:
向服务器发送同步任务消息, 同步任务消息中包括: 同步任务指示和同步 文件的信息;
接收服务器发送的同步任务消息的响应消息,响应消息中携带同步任务指 示的执行结果。
需要说明的是,图 19至图 22所示的服务器可以用于实现以上方法实施例所 提供的任一种方法, 在此不再赘述。
- - 上述各实施例对应的结构示意图仅为一种示意,各部分或模块的连接关系 不限于图中示出的形式, 可以以实际应用中的情况为准。
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取 存储介质中。 该程序在执行时, 执行包括上述各方法实施例的步骤; 而前述的 存储介质包括: ROM, RAM,磁碟或者光盘等各种可以存储程序代码的介质。 最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制; 尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应 当理解: 其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中 部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并不使相应技术 方案的本质脱离本发明各实施例技术方案的范围。
Claims
1、 一种数据同步方法, 其特征在于, 包括:
服务器接收第一用户设备发送的同步任务消息, 所述同步任务消息中包 括: 同步任务指示和同步文件的信息;
所述服务器根据所述同步任务指示,在所述服务器存储的历史同步信息中 确定所述同步文件对应的历史同步操作信息;
所述服务器向所述第一用户设备发送所述同步任务消息的响应消息 ,所述 响应消息中携带所述同步任务指示的执行结果。
2、 根据权利要求 1所述的方法, 其特征在于, 所述同步文件的信息包括所 述同步文件的存储地址对应的统一资源定位符 URL; 或者,
所述同步文件信息包括所述同步文件的存储地址对应的 URL,还包括以下 信息中的任意一种或多种组合: 所述同步文件的名称信息, 所述同步文件的容 量信息, 所述同步文件的类型信息, 所述同步文件的同步状态信息和所述待同 步文件的优先级信息。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述同步任务指示为创 建命令,则所述同步任务消息还携带所述第一用户设备的信息和第二用户设备 的信息;
所述服务器根据所述同步任务指示,在所述服务器存储的历史同步信息中 确定所述同步文件对应的历史同步操作信息之后, 还包括:
所述服务器判断所述历史同步信息中是否已存储所述同步文件的信息; 若所述历史同步信息中未存储所述同步文件的信息 ,则所述服务器将所述 同步文件的信息存储在所述历史同步信息中。
4、 根据权利要求 3所述的方法, 其特征在于, 所述响应消息中携带所述同 步任务指示的执行结果用于指示所述服务器将所述同步文件的信息存储在所 述历史同步信息中。
5、 根据权利要求 1-4任一项所述的方法, 其特征在于, 所述同步任务指示 为创建命令,则所述同步任务消息还携带所述第一用户设备的信息和所述第二 用户设备的信息;
所述服务器根据所述同步任务指示,在所述服务器存储的历史同步信息中 确定所述同步文件对应的历史同步操作信息之后, 还包括:
若所述服务器根据所述同步文件对应的历史同步操作信息确定所述第二 用户设备对所述同步文件的同步操作未进行,则所述服务器向所述第二用户设 备发送通知消息, 所述通知消息中携带所述同步文件的信息, 所述通知消息用 于指示所述第二用户设备根据所述同步文件的信息执行相应的同步操作; 所述服务器将所述通知消息关联存储至所述历史同步信息。
6、 根据权利要求 5所述的方法, 其特征在于, 所述服务器向所述第二用户 设备发送通知消息, 包括:
所述服务器确定所述第二用户设备是否在线;
若所述第二用户设备不在线, 则所述服务器存储所述同步任务消息; 所述服务器接收所述第二用户设备的上线请求;
所述服务器根据所存储的所述同步任务消息 ,向所述第二用户设备发送携 带所述同步文件的信息的所述通知消息。
7、 根据权利要求 5或 6所述的方法, 其特征在于, 所述响应消息中携带所 述同步任务指示的执行结果用于指示所述第二用户设备根据所述同步文件的 信息执行相应的同步操作。
8、 根据权利要求 5-7任一项所述的方法, 其特征在于, 所述服务器向所述 第二用户设备发送通知消息之后, 还包括:
所述服务器接收所述第二用户设备发送的同步完成消息;
所述 ϋ良务器才艮据所述同步完成消息,在历史同步信息中更新所述同步文件 对应的历史同步操作信息。
9、 根据权利要求 1或 2所述的方法, 其特征在于, 所述同步任务指示为查 询命令;所述响应消息中携带所述同步任务指示的执行结果携带所述历史同步 信息中所述同步文件对应的历史同步操作信息。
10、 根据权利要求 1或 2所述的方法, 其特征在于, 所述同步任务指示为更 新命令, 则所述同步任务消息还携带第二用户设备的信息;
所述服务器根据所述同步任务指示,在所述服务器存储的历史同步信息中 确定所述同步文件对应的历史同步操作信息之后, 还包括:
所述服务器根据所述第二用户设备的信息在历史同步信息中更新所述同
步文件对应的历史同步操作信息。
11、 根据权利要求 10所述的方法, 其特征在于, 所述响应消息中携带所述 同步任务指示的执行结果用于指示所述服务器根据所述第二用户设备的信息 在历史同步信息中更新所述同步文件对应的历史同步操作信息。
12、 根据权利要求 1或 2所述的方法, 其特征在于, 所述同步任务指示为删 除命令, 则所述同步任务消息还携带第二用户设备的信息;
所述服务器根据所述同步任务指示,在所述服务器存储的历史同步信息中 确定所述同步文件对应的历史同步操作信息之后, 还包括:
所述服务器在历史同步信息中删除所述同步文件中所述第二用户设备对 应的历史同步操作信息。
13、 根据权利要求 12所述的方法, 其特征在于, 所述响应消息中携带所述 同步任务指示的执行结果用于指示所述服务器在历史同步信息中删除所述同 步文件中所述第二用户设备对应的历史同步操作信息。
14、 根据权利要求 1-13任一项所述的方法, 其特征在于, 所述服务器接收 第一用户设备发送的同步任务消息之前, 还包括:
所述服务器接收所述第一用户设备发送的注册请求 ,所述注册请求中携带 所述第一用户设备的信息;
所述服务器将所述第一用户设备的信息存储至设备列表中。
15、 根据权利要求 1-13任一项所述的方法, 其特征在于, 所述服务器接收 第一用户设备发送的同步任务消息之前, 还包括:
所述服务器接收所述第一用户设备发送的设备列表请求消息;
所述服务器向所述第一用户设备发送设备列表,所述设备列表中包括注册 到所述服务器的至少一个用户设备的信息。
16、 一种数据同步方法, 其特征在于, 包括:
第一用户设备向服务器发送同步任务消息, 所述同步任务消息中包括: 同 步任务指示和同步文件的信息;
所述第一用户设备接收所述服务器发送的所述同步任务消息的响应消息, 所述响应消息中携带所述同步任务指示的执行结果。
17、 根据权利要求 16所述的方法, 其特征在于, 所述同步文件的信息包括 所述同步文件的存储地址对应的统一资源定位符 URL; 或者,
所述同步文件信息包括所述同步文件的存储地址对应的 URL,还包括以下 信息中的任意一种或多种组合: 所述同步文件的名称信息, 所述同步文件的容 量信息, 所述同步文件的类型信息, 所述同步文件的同步状态信息和所述待同 步文件的优先级信息。
18、 根据权利要求 16或 17所述的方法, 其特征在于, 所述同步任务指示为 创建命令,则所述同步任务消息还携带所述第一用户设备的信息和第二用户设 备的信息;
所述响应消息中携带所述同步任务指示的执行结果用于指示所述服务器 将所述同步文件的信息存储在所述历史同步信息中。
19、 根据权利要求 16-18任一项所述的方法, 其特征在于, 所述同步任务 指示为创建命令,则所述同步任务消息还携带所述第一用户设备的信息和所述 第二用户设备的信息;
所述响应消息中携带所述同步任务指示的执行结果用于指示所述第二用 户设备根据所述同步文件的信息执行相应的同步操作。
20、 根据权利要求 16或 17所述的方法, 其特征在于, 所述同步任务指示为 查询命令;
所述响应消息中携带所述同步任务指示的执行结果携带所述历史同步信 息中所述同步文件对应的历史同步操作信息。
21、 根据权利要求 16或 17所述的方法, 其特征在于, 所述同步任务指示为 更新命令, 则所述同步任务消息还携带第二用户设备的信息;
所述响应消息中携带所述同步任务指示的执行结果用于指示所述服务器 根据所述第二用户设备的信息在历史同步信息中更新所述同步文件对应的历 史同步操作信息;
所述第一用户设备根据所述响应消息,更新本地存储的所述同步文件对应 的历史同步操作信息。
22、 根据权利要求 16或 17所述的方法, 其特征在于, 所述同步任务指示为 删除命令, 则所述同步任务消息还携带第二用户设备的信息;
所述响应消息中携带所述同步任务指示的执行结果用于指示所述服务器 在历史同步信息中删除所述同步文件中所述第二用户设备对应的历史同步操 作信息;
所述第一用户设备根据所述响应消息,更新本地存储的所述同步文件对应 的历史同步操作信息。
23、 根据权利要求 16-22任一项所述的方法, 其特征在于, 所述第一用户 设备向服务器发送同步任务消息之前, 还包括:
所述第一用户设备向所述服务器发送注册请求,所述注册请求中携带所述 第一用户设备的信息。
24、 根据权利要求 16-22任一项所述的方法, 其特征在于, 所述第一用户 设备向服务器发送同步任务消息之前, 还包括:
所述第一用户设备向所述服务器发送设备列表请求消息;
所述第一用户设备接收所述服务器发送的设备列表,所述设备列表中包括 注册到所述服务器的至少一个用户设备的信息。
25、 一种服务器, 其特征在于, 包括:
第一接收模块, 用于接收第一用户设备发送的同步任务消息, 所述同步任 务消息中包括: 同步任务指示和同步文件的信息;
确定模块, 用于根据所述同步任务指示,在所述服务器存储的历史同步信 息中确定所述同步文件对应的历史同步操作信息;
第一发送模块,用于向所述第一用户设备发送所述同步任务消息的响应消 息, 所述响应消息中携带所述同步任务指示的执行结果。
26、 根据权利要求 25所述的服务器, 其特征在于, 所述同步文件的信息包 括所述同步文件的存储地址对应的统一资源定位符 URL; 或者,
所述同步文件信息包括所述同步文件的存储地址对应的 URL,还包括以下 信息中的任意一种或多种组合: 所述同步文件的名称信息, 所述同步文件的容 量信息, 所述同步文件的类型信息, 所述同步文件的同步状态信息和所述待同 步文件的优先级信息。
27、 根据权利要求 25或 26所述的服务器, 其特征在于, 所述同步任务指示 为创建命令,则所述同步任务消息还携带所述第一用户设备的信息和第二用户 设备的信息;
所述服务器, 还包括:
判断模块,用于在所述服务器存储的历史同步信息中确定所述同步文件对 应的历史同步操作信息之后,判断所述历史同步信息中是否已存储所述同步文
件的信息;
第一存储模块, 用于若所述历史同步信息中未存储所述同步文件的信息, 则将所述同步文件的信息存储在所述历史同步信息中。
28、 根据权利要求 27所述的服务器, 其特征在于, 所述响应消息中携带所 述同步任务指示的执行结果用于指示所述服务器将所述同步文件的信息存储 在所述历史同步信息中。
29、 根据权利要求 25-28任一项所述的服务器, 其特征在于, 所述同步任 务指示为创建命令,则所述同步任务消息还携带所述第一用户设备的信息和所 述第二用户设备的信息;
所述确定模块 ,还用于在所述服务器存储的历史同步信息中确定所述同步 文件对应的历史同步操作信息之后,根据所述同步文件对应的历史同步操作信 息确定所述第二用户设备对所述同步文件的同步操作未进行;
所述第一发送模块,还用于向所述第二用户设备发送通知消息, 所述通知 消息中携带所述同步文件的信息,所述通知消息用于指示所述第二用户设备根 据所述同步文件的信息执行相应的同步操作;
第二存储模块, 用于将所述通知消息关联存储至所述历史同步信息。
30、 根据权利要求 29所述的服务器, 其特征在于, 所述确定模块, 还用于 确定所述第二用户设备是否在线;
所述第二存储模块,还用于若所述第二用户设备不在线, 则存储所述同步 任务消息;
所述第一接收模块, 还用于接收所述第二用户设备的上线请求; 所述第一发送模块,还用于根据所存储的所述同步任务消息, 向所述第二 用户设备发送携带所述同步文件的信息的所述通知消息。
31、 根据权利要求 29或 30所述的服务器, 其特征在于, 所述响应消息中携 带所述同步任务指示的执行结果用于指示所述第二用户设备根据所述同步文 件的信息执行相应的同步操作。
32、 根据权利要求 29-31任一项所述的服务器, 其特征在于, 所述第一接 收模块,还用于向所述第二用户设备发送通知消息之后,接收所述第二用户设 备发送的同步完成消息;
所述服务器, 还包括:
第一更新模块, 用于根据所述同步完成消息,在历史同步信息中更新所述 同步文件对应的历史同步操作信息。
33、 根据权利要求 25或 26所述的服务器, 其特征在于, 所述同步任务指示 为查询命令;所述响应消息中携带所述同步任务指示的执行结果携带所述历史 同步信息中所述同步文件对应的历史同步操作信息。
34、 根据权利要求 25或 26所述的服务器, 其特征在于, 所述同步任务指示 为更新命令, 则所述同步任务消息还携带第二用户设备的信息;
所述服务器, 还包括:
第二更新模块,用于在所述服务器存储的历史同步信息中确定所述同步文 件对应的历史同步操作信息之后,根据所述第二用户设备的信息在历史同步信 息中更新所述同步文件对应的历史同步操作信息。
35、 根据权利要求 34所述的服务器, 其特征在于, 所述响应消息中携带所 述同步任务指示的执行结果用于指示所述服务器根据所述第二用户设备的信 息在历史同步信息中更新所述同步文件对应的历史同步操作信息。
36、 根据权利要求 25或 26所述的服务器, 其特征在于, 所述同步任务指示 为删除命令, 则所述同步任务消息还携带第二用户设备的信息;
所述服务器, 还包括:
删除模块,用于在所述服务器存储的历史同步信息中确定所述同步文件对 应的历史同步操作信息之后,在历史同步信息中删除所述同步文件中所述第二 用户设备对应的历史同步操作信息。
37、 根据权利要求 36所述的服务器, 其特征在于, 所述响应消息中携带所 述同步任务指示的执行结果用于指示所述服务器在历史同步信息中删除所述 同步文件中所述第二用户设备对应的历史同步操作信息。
38、 根据权利要求 25-37任一项所述的服务器, 其特征在于, 所述第一接 收模块,还用于在所述服务器接收第一用户设备发送的同步任务消息之前,接 收所述第一用户设备发送的注册请求 ,所述注册请求中携带所述第一用户设备 的信息;
第三存储模块,用于所述服务器将所述第一用户设备的信息存储至设备列 表中。
39、 根据权利要求 25-37任一项所述的服务器, 其特征在于, 所述第一接
收模块,还用于在所述服务器接收第一用户设备发送的同步任务消息之前,接 收所述第一用户设备发送的设备列表请求消息;
所述第一发送模块,还用于向所述第一用户设备发送设备列表, 所述设备 列表中包括注册到所述服务器的至少一个用户设备的信息。
40、 一种用户设备, 其特征在于, 包括:
第二发送模块, 用于向服务器发送同步任务消息, 所述同步任务消息中包 括: 同步任务指示和同步文件的信息;
第二接收模块, 用于接收所述服务器发送的所述同步任务消息的响应消 息, 所述响应消息中携带所述同步任务指示的执行结果。
41、 根据权利要求 40所述的用户设备, 其特征在于, 所述同步文件的信息 包括所述同步文件的存储地址对应的统一资源定位符 URL; 或者,
所述同步文件信息包括所述同步文件的存储地址对应的 URL,还包括以下 信息中的任意一种或多种组合: 所述同步文件的名称信息, 所述同步文件的容 量信息, 所述同步文件的类型信息, 所述同步文件的同步状态信息和所述待同 步文件的优先级信息。
42、 根据权利要求 40或 41所述的用户设备, 其特征在于, 所述同步任务指 示为创建命令,则所述同步任务消息还携带所述第一用户设备的信息和第二用 户设备的信息;
所述响应消息中携带所述同步任务指示的执行结果用于指示所述服务器 将所述同步文件的信息存储在所述历史同步信息中。
43、 根据权利要求 40-42任一项所述的用户设备, 其特征在于, 所述同步 任务指示为创建命令,则所述同步任务消息还携带所述第一用户设备的信息和 所述第二用户设备的信息;
所述响应消息中携带所述同步任务指示的执行结果用于指示所述第二用 户设备根据所述同步文件的信息执行相应的同步操作。
44、 根据权利要求 40或 41所述的用户设备, 其特征在于, 所述同步任务指 示为查询命令;
所述响应消息中携带所述同步任务指示的执行结果携带所述历史同步信 息中所述同步文件对应的历史同步操作信息。
45、 根据权利要求 40或 41所述的用户设备, 其特征在于, 所述同步任务指
示为更新命令, 则所述同步任务消息还携带第二用户设备的信息; 所述响应消息中携带所述同步任务指示的执行结果用于指示所述服务器 根据所述第二用户设备的信息在历史同步信息中更新所述同步文件对应的历 史同步操作信息;
所述用户设备, 还包括:
第三更新模块, 用于根据所述响应消息, 更新本地存储的所述同步文件对 应的历史同步操作信息。
46、 根据权利要求 40或 41所述的用户设备, 其特征在于, 所述同步任务指 示为删除命令, 则所述同步任务消息还携带第二用户设备的信息;
所述响应消息中携带所述同步任务指示的执行结果用于指示所述服务器 在历史同步信息中删除所述同步文件中所述第二用户设备对应的历史同步操 作信息;
所述用户设备, 还包括:
第四更新模块, 用于根据所述响应消息, 更新本地存储的所述同步文件对 应的历史同步操作信息。
47、 根据权利要求 40-46任一项所述的用户设备, 其特征在于, 所述第二 发送模块,还用于在所述第一用户设备向服务器发送同步任务消息之前, 向所 述服务器发送注册请求, 所述注册请求中携带所述第一用户设备的信息。
48、 根据权利要求 40-46任一项所述的用户设备, 其特征在于, 所述第二 发送模块,还用于在所述第一用户设备向服务器发送同步任务消息之前, 向所 述服务器发送设备列表请求消息;
所述第二接收模块,还用于接收所述服务器发送的设备列表, 所述设备列 表中包括注册到所述服务器的至少一个用户设备的信息。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP13869311.4A EP2924952A4 (en) | 2012-12-31 | 2013-12-31 | METHOD AND DEVICE FOR SYNCHRONIZING DATA |
| US14/753,471 US20150304417A1 (en) | 2012-12-31 | 2015-06-29 | Data synchronization method, and device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210593336.4A CN103916423A (zh) | 2012-12-31 | 2012-12-31 | 数据同步方法及设备 |
| CN201210593336.4 | 2012-12-31 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US14/753,471 Continuation US20150304417A1 (en) | 2012-12-31 | 2015-06-29 | Data synchronization method, and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2014101889A1 true WO2014101889A1 (zh) | 2014-07-03 |
Family
ID=51019901
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2013/091130 Ceased WO2014101889A1 (zh) | 2012-12-31 | 2013-12-31 | 数据同步方法及设备 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20150304417A1 (zh) |
| EP (1) | EP2924952A4 (zh) |
| CN (1) | CN103916423A (zh) |
| WO (1) | WO2014101889A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103686355A (zh) * | 2013-12-27 | 2014-03-26 | 珠海迈科电子科技有限公司 | 一种机顶盒的软件故障的修复方法及系统 |
| CN111766863A (zh) * | 2019-12-30 | 2020-10-13 | 广州极飞科技有限公司 | 作业设备与任务地块的绑定方法及相关装置 |
Families Citing this family (53)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11605043B2 (en) * | 2011-02-22 | 2023-03-14 | Theatro Labs, Inc. | Configuring, deploying, and operating an application for buy-online-pickup-in-store (BOPIS) processes, actions and analytics |
| KR101659649B1 (ko) | 2011-02-22 | 2016-09-23 | 디아트로 랩스, 인크. | 구조화된 통신을 이용하기 위한 관측 플랫폼 |
| US11636420B2 (en) | 2011-02-22 | 2023-04-25 | Theatro Labs, Inc. | Configuring, deploying, and operating applications for structured communications within observation platforms |
| US9602625B2 (en) | 2011-02-22 | 2017-03-21 | Theatrolabs, Inc. | Mediating a communication in an observation platform |
| US9407543B2 (en) | 2011-02-22 | 2016-08-02 | Theatrolabs, Inc. | Observation platform for using structured communications with cloud computing |
| US10375133B2 (en) | 2011-02-22 | 2019-08-06 | Theatro Labs, Inc. | Content distribution and data aggregation for scalability of observation platforms |
| US10699313B2 (en) | 2011-02-22 | 2020-06-30 | Theatro Labs, Inc. | Observation platform for performing structured communications |
| US10204524B2 (en) | 2011-02-22 | 2019-02-12 | Theatro Labs, Inc. | Observation platform for training, monitoring and mining structured communications |
| US11599843B2 (en) | 2011-02-22 | 2023-03-07 | Theatro Labs, Inc. | Configuring , deploying, and operating an application for structured communications for emergency response and tracking |
| US10134001B2 (en) | 2011-02-22 | 2018-11-20 | Theatro Labs, Inc. | Observation platform using structured communications for gathering and reporting employee performance information |
| CN105530593B (zh) * | 2014-09-30 | 2019-04-30 | 中国移动通信集团公司 | 一种用户设备间的状态同步方法及装置 |
| CN104601674A (zh) * | 2014-12-29 | 2015-05-06 | 小米科技有限责任公司 | 通知消息同步方法、装置及系统 |
| CN105407148B (zh) * | 2015-10-26 | 2019-06-14 | 广州视睿电子科技有限公司 | 一种基于客户端的网络数据同步的方法、装置以及系统 |
| US10735348B2 (en) * | 2016-04-29 | 2020-08-04 | International Business Machines Corporation | Providing an optimal resource to a client computer via interactive dialog |
| GB2566886B (en) * | 2016-07-27 | 2022-04-13 | Walmart Apollo Llc | Automated informix engine install |
| US11182357B2 (en) | 2016-09-16 | 2021-11-23 | Walmart Apollo, Llc | Auto top off tool |
| CN106657254B (zh) * | 2016-10-25 | 2019-10-25 | Oppo广东移动通信有限公司 | 一种联系人信息的同步方法、装置及系统 |
| CN107347090A (zh) * | 2017-06-08 | 2017-11-14 | 广州市呼百应网络技术股份有限公司 | 数据同步方法 |
| CN108881357B (zh) * | 2017-08-31 | 2019-11-12 | 视联动力信息技术股份有限公司 | 一种数据同步的方法和装置 |
| EP3703303A4 (en) | 2017-11-24 | 2020-12-02 | Huawei Technologies Co., Ltd. | NETWORK DEVICE SYNCHRONIZATION PROCESS AND NETWORK DEVICE |
| CN110198331B (zh) * | 2018-03-28 | 2022-11-25 | 腾讯科技(上海)有限公司 | 一种同步数据的方法及系统 |
| US11599644B2 (en) | 2019-05-17 | 2023-03-07 | Walmart Apollo, Llc | Blocking insecure code with locking |
| CN110856029B (zh) * | 2019-10-17 | 2022-04-01 | 北京雷石天地电子技术有限公司 | 一种局域网机顶盒资源同步的方法与系统 |
| CN110851290A (zh) * | 2019-11-01 | 2020-02-28 | 香港乐蜜有限公司 | 一种数据同步方法、装置、电子设备及存储介质 |
| CN110851413A (zh) * | 2019-11-08 | 2020-02-28 | 深圳市元征科技股份有限公司 | 一种数据同步方法、装置及电子设备和存储介质 |
| US11644996B2 (en) | 2019-12-02 | 2023-05-09 | International Business Machines Corporation | Feedback loops in data replication |
| US11528610B2 (en) * | 2019-12-12 | 2022-12-13 | Cisco Technology, Inc. | Dynamic control and creation of user private networks |
| CN111478943A (zh) * | 2020-03-06 | 2020-07-31 | 上海数据交易中心有限公司 | 跨局域网的文件存储方法和系统、存储介质、终端 |
| CN111506653B (zh) * | 2020-04-17 | 2024-03-26 | 中国人民银行清算总中心 | 一种数据异地同步计划性数据恢复系统及方法 |
| CN114095511B (zh) * | 2020-07-31 | 2023-03-10 | 华为技术有限公司 | 一种移动分布式系统数据同步的方法和设备 |
| CN111935315B (zh) * | 2020-09-25 | 2021-01-12 | 支付宝(杭州)信息技术有限公司 | 区块同步方法及装置 |
| CN111934998B (zh) | 2020-09-25 | 2021-02-09 | 支付宝(杭州)信息技术有限公司 | 消息传输方法及装置 |
| CN113079081B (zh) | 2020-09-25 | 2022-08-02 | 支付宝(杭州)信息技术有限公司 | 消息传输方法及装置 |
| CN111935000B (zh) | 2020-09-25 | 2021-01-08 | 支付宝(杭州)信息技术有限公司 | 消息传输方法及装置 |
| CN111934999B (zh) | 2020-09-25 | 2021-01-22 | 支付宝(杭州)信息技术有限公司 | 消息传输方法及装置 |
| CN112968969B (zh) | 2020-09-25 | 2023-05-12 | 支付宝(杭州)信息技术有限公司 | 区块链系统、消息传输方法及装置 |
| CN111934997B (zh) | 2020-09-25 | 2021-01-12 | 支付宝(杭州)信息技术有限公司 | 消息传输方法及装置 |
| CN111934996B (zh) | 2020-09-25 | 2021-01-12 | 支付宝(杭州)信息技术有限公司 | 消息传输方法及装置 |
| CN112787868B (zh) * | 2021-01-29 | 2023-06-30 | 杭州迪普科技股份有限公司 | 一种信息同步的方法和装置 |
| US11349907B1 (en) | 2021-02-17 | 2022-05-31 | Cisco Technology, Inc. | Patternless prompt detection of command completion |
| CN113407629A (zh) * | 2021-06-18 | 2021-09-17 | 湖南快乐阳光互动娱乐传媒有限公司 | 数据同步的方法、装置、电子设备及存储介质 |
| CN113407498A (zh) * | 2021-06-18 | 2021-09-17 | 北京金山云网络技术有限公司 | 一种数据同步方法、装置、云平台、系统及存储介质 |
| US11757991B2 (en) | 2021-07-22 | 2023-09-12 | Cisco Technology, Inc. | Common synchronization of device command into multiple synchronized single device tasks |
| US12088681B2 (en) * | 2021-07-24 | 2024-09-10 | VMware LLC | Synchronization of notification actions across multiple enrolled devices |
| CN113987069A (zh) * | 2021-10-09 | 2022-01-28 | 中汽创智科技有限公司 | 一种数据同步方法、装置、系统、设备、存储介质及车辆 |
| CN114003659A (zh) * | 2021-11-05 | 2022-02-01 | 中国工商银行股份有限公司 | 数据同步方法、装置、电子设备、存储介质及程序产品 |
| CN114500571A (zh) * | 2022-02-16 | 2022-05-13 | 科来网络技术股份有限公司 | 任务同步方法、装置、计算机设备及存储介质 |
| CN115277681B (zh) * | 2022-07-29 | 2024-04-02 | 山石网科通信技术股份有限公司 | 避免同步过程冲突的文件同步方法和装置 |
| CN116016496B (zh) * | 2023-01-30 | 2024-07-30 | 中国联合网络通信集团有限公司 | 实时文件同步方法、装置、设备和介质 |
| CN116527655B (zh) * | 2023-04-21 | 2026-04-21 | 杭州数美科技有限公司 | 批量文件同步方法、装置、电子设备及存储介质 |
| US12238170B2 (en) * | 2023-07-28 | 2025-02-25 | Google Llc | On demand serverless container based storage transfer |
| CN118233475B (zh) * | 2024-03-07 | 2024-12-10 | 一汽—大众汽车有限公司 | 文件同步方法、电子设备和存储介质 |
| CN118827696A (zh) * | 2024-05-30 | 2024-10-22 | 中移物联网有限公司 | 数据同步方法、装置、设备、存储介质及产品 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101064630A (zh) * | 2006-04-24 | 2007-10-31 | 华为技术有限公司 | 一种数据同步方法及系统 |
| CN102624768A (zh) * | 2011-01-28 | 2012-08-01 | 腾讯科技(深圳)有限公司 | 在不同设备之间进行文件同步处理的方法和系统 |
| CN102769660A (zh) * | 2012-04-18 | 2012-11-07 | 中兴通讯股份有限公司 | 云服务器、终端及其备份数据的方法 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101459503A (zh) * | 2007-12-12 | 2009-06-17 | 华为技术有限公司 | 一种实现数据同步的方法和装置 |
| CN101551801B (zh) * | 2008-03-31 | 2013-05-22 | 国际商业机器公司 | 数据同步的方法和系统 |
| CN101593185A (zh) * | 2008-05-29 | 2009-12-02 | 国际商业机器公司 | 利用同步进行数据恢复的方法和系统 |
| KR101175248B1 (ko) * | 2010-07-08 | 2012-08-21 | 에스케이하이닉스 주식회사 | 다수의 적층된 칩의 리프레쉬 동작을 제어하는 시스템, 반도체 장치 및 방법 |
-
2012
- 2012-12-31 CN CN201210593336.4A patent/CN103916423A/zh active Pending
-
2013
- 2013-12-31 EP EP13869311.4A patent/EP2924952A4/en not_active Withdrawn
- 2013-12-31 WO PCT/CN2013/091130 patent/WO2014101889A1/zh not_active Ceased
-
2015
- 2015-06-29 US US14/753,471 patent/US20150304417A1/en not_active Abandoned
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101064630A (zh) * | 2006-04-24 | 2007-10-31 | 华为技术有限公司 | 一种数据同步方法及系统 |
| CN102624768A (zh) * | 2011-01-28 | 2012-08-01 | 腾讯科技(深圳)有限公司 | 在不同设备之间进行文件同步处理的方法和系统 |
| CN102769660A (zh) * | 2012-04-18 | 2012-11-07 | 中兴通讯股份有限公司 | 云服务器、终端及其备份数据的方法 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103686355A (zh) * | 2013-12-27 | 2014-03-26 | 珠海迈科电子科技有限公司 | 一种机顶盒的软件故障的修复方法及系统 |
| CN111766863A (zh) * | 2019-12-30 | 2020-10-13 | 广州极飞科技有限公司 | 作业设备与任务地块的绑定方法及相关装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103916423A (zh) | 2014-07-09 |
| EP2924952A1 (en) | 2015-09-30 |
| US20150304417A1 (en) | 2015-10-22 |
| EP2924952A4 (en) | 2015-11-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2014101889A1 (zh) | 数据同步方法及设备 | |
| US11595797B2 (en) | Communication method and network device | |
| KR102164457B1 (ko) | 다중 무선 억세스를 위한 전자 장치 및 그 방법 | |
| WO2022143081A1 (zh) | 一种数据同步方法和装置 | |
| CN110336871A (zh) | 一种文件处理方法、装置、存储介质及电子设备 | |
| US20130013669A1 (en) | Method and apparatus for guaranteeing web-based mobility | |
| JP2019537356A (ja) | ユーザ端末の位置エリアの更新方法、アクセスネットワークエンティティ、ユーザ端末およびコアネットワークエンティティ | |
| CN107861686A (zh) | 文件存储方法、服务端和计算机可读存储介质 | |
| JP5847185B2 (ja) | コンテンツ中心のネットワーク環境でグループ変更に関する情報を用いるコンテンツ共有方法及び装置 | |
| WO2015007245A1 (zh) | 跨终端进行下载的方法、系统、云端服务器和终端 | |
| WO2013034103A1 (zh) | 一种无线网络及其实现方法、终端 | |
| WO2014154108A1 (zh) | 媒体流的转移方法和用户设备 | |
| CN104717289A (zh) | 一种数据同步方法和装置 | |
| WO2020044092A9 (zh) | 数据传输方法及其装置 | |
| WO2013152677A1 (zh) | 资源共享方法及设备 | |
| WO2018107373A1 (zh) | 一种多级电子地图的实现方法及其装置 | |
| JP2014131143A (ja) | 送信装置、送信方法、及びプログラム | |
| KR101714821B1 (ko) | 홈 네트워크에서의 애플리케이션 이동성 관리 장치 | |
| WO2014180436A1 (zh) | 一种终端间进行通信的方法及终端 | |
| WO2025015917A1 (zh) | 一种对象推送方法、装置及相关设备 | |
| CN104602047A (zh) | Epg数据的分享方法、服务器、终端及系统 | |
| WO2015165034A1 (zh) | 加载网页的方法和装置 | |
| JP5687255B2 (ja) | 端末装置、方法、プログラム及び無線通信システム | |
| CN102946435A (zh) | 文件的同步方法及装置 | |
| CN106487787A (zh) | 一种点播多媒体方法及服务器 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13869311 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2013869311 Country of ref document: EP |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |