[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107948220B - Method and device for synchronizing address book cloud service - Google Patents

Method and device for synchronizing address book cloud service Download PDF

Info

Publication number
CN107948220B
CN107948220B CN201610889328.2A CN201610889328A CN107948220B CN 107948220 B CN107948220 B CN 107948220B CN 201610889328 A CN201610889328 A CN 201610889328A CN 107948220 B CN107948220 B CN 107948220B
Authority
CN
China
Prior art keywords
terminal
data
cloud
address book
entry
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610889328.2A
Other languages
Chinese (zh)
Other versions
CN107948220A (en
Inventor
姜宝琦
李庆芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201610889328.2A priority Critical patent/CN107948220B/en
Publication of CN107948220A publication Critical patent/CN107948220A/en
Application granted granted Critical
Publication of CN107948220B publication Critical patent/CN107948220B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/2753Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips providing data content
    • H04M1/2757Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips providing data content by data transmission, e.g. downloading

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a device for synchronizing address book cloud services. The method comprises the following steps: according to a synchronization request sent by a terminal, determining cloud updating data of a cloud address list after the terminal is synchronized last time; determining terminal updating data of a terminal address book according to a terminal address book identifier sent by a terminal; performing conflict processing on the cloud updating data and the terminal updating data, and determining cloud synchronous updating data to be updated in a cloud address book and terminal synchronous updating data to be updated in a terminal address book; and updating the cloud address book according to the cloud synchronous updating data, and sending the terminal synchronous updating data to the terminal so as to update the terminal address book of the terminal. According to the invention, conflict processing is carried out on the cloud server and the cloud synchronous updating data and the terminal synchronous updating data are determined, and the cloud server has stronger computing capacity, so that the synchronization time can be reduced.

Description

Method and device for synchronizing address book cloud service
Technical Field
The embodiment of the invention relates to a cloud computing technology, in particular to a method and a device for synchronizing address book cloud services.
Background
The synchronization of the address book cloud service needs to ensure that data of a plurality of terminal contacts of the same user are kept synchronous in real time, and due to the fact that the synchronization time and scenes are large, the system difference of the local terminal is large, and serious problems of contact duplication, contact loss and the like can often occur.
In the prior art, in order to avoid the above problems, each terminal of a user uploads a respective address book to a cloud for backup, and when address book cloud services are synchronized, synchronization is often performed at the terminal, and the cloud is only responsible for storage, that is, the terminal downloads all address books backed up at the cloud from the cloud, compares the downloaded address books with local address books, determines to add or delete address book data according to a comparison result, and needs to extract key fields of contacts for duplication removal after the address book data is added or deleted at the terminal. The existing defect is that the algorithm of comparison and repair work is too complex, the performance requirement on the terminal is high, and therefore the terminal judges and repairs data, and the synchronization time is long.
Disclosure of Invention
In view of this, embodiments of the present invention provide a synchronization method and apparatus for address book cloud services, so as to reduce synchronization time.
In a first aspect, an embodiment of the present invention provides a method for synchronizing an address book cloud service, where the method includes:
according to a synchronization request sent by a terminal, determining cloud updating data of a cloud address list after the terminal is synchronized last time;
determining terminal updating data of a terminal address book according to a terminal address book identifier sent by a terminal;
performing conflict processing on the cloud updating data and the terminal updating data, and determining cloud synchronous updating data to be updated in a cloud address book and terminal synchronous updating data to be updated in a terminal address book;
and updating the cloud address book according to the cloud synchronous updating data, and sending the terminal synchronous updating data to the terminal so as to update the terminal address book of the terminal.
In a second aspect, an embodiment of the present invention further provides a synchronization apparatus for an address book cloud service, where the apparatus includes:
the cloud data determining module is used for determining cloud updating data of a cloud address book after the terminal is synchronized last time according to a synchronization request sent by the terminal;
the terminal data determining module is used for determining terminal updating data of the terminal address book according to the terminal address book identification sent by the terminal;
the conflict processing module is used for carrying out conflict processing on the cloud updating data and the terminal updating data and determining cloud synchronous updating data to be updated in a cloud address book and terminal synchronous updating data to be updated in a terminal address book;
and the address book updating module is used for updating the cloud address book according to the cloud synchronous updating data and sending the terminal synchronous updating data to the terminal so as to update the terminal address book of the terminal.
According to the technical scheme of the embodiment of the invention, the synchronization of the terminal and the address book of the cloud is carried out by initiating the synchronization request by the terminal, the cloud updating data of the cloud address book after the last synchronization of the terminal is firstly determined after the synchronization request is received, the terminal updating data of the terminal address book is determined according to the terminal address book identification sent by the terminal, the cloud updating data and the terminal updating data are subjected to conflict processing, the cloud synchronous updating data to be updated of the cloud address book and the terminal synchronous updating data to be updated of the terminal address book are determined, the cloud address book is updated according to the cloud synchronous updating data, the terminal synchronous updating data are sent to the terminal to update the terminal address book of the terminal, the conflict processing on the cloud server is realized, the cloud synchronous updating data and the terminal synchronous updating data are determined, and the computing capacity of the cloud server is stronger, thereby reducing the synchronization time.
Drawings
Fig. 1 is a flowchart of a synchronization method for a cloud address book service according to an embodiment of the present invention;
fig. 2 is a flowchart of a synchronization method for a contact list cloud service according to a second embodiment of the present invention;
fig. 3 is a flowchart of determining terminal update data of a terminal address book in a synchronization method of an address book cloud service according to an embodiment of the present invention;
fig. 4 is a flowchart of a synchronization method for an address book cloud service according to a third embodiment of the present invention;
fig. 5 is a flowchart of a synchronization method for an address book cloud service according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a synchronization apparatus for address book cloud services according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.
Example one
Fig. 1 is a flowchart of a synchronization method for a cloud address book service according to an embodiment of the present invention, where the method is applicable to a situation of synchronizing an address book on a terminal and a cloud end, and the method may be executed by a synchronization device for the cloud address book service, and the synchronization device for the cloud address book service may be configured in a cloud end server, and specifically includes the following steps:
s110, according to a synchronization request sent by a terminal, determining cloud updating data of a cloud address book after the terminal is synchronized last time.
In the embodiment of the invention, the address book is respectively stored in the terminal and the cloud server. For a certain user, the user may have multiple terminals, and the respective terminal address lists are stored in the different terminals, and the contents of the terminal address lists may be inconsistent, for example, the user may store the communication mode of Zhang III of a friend on a mobile phone A, but does not store the communication mode of the friend on a mobile phone B. The cloud server provides a cloud address book for the user, and uniformly stores synchronous communication information uploaded by the user through each terminal to serve as the cloud address book. And the cloud server can distinguish the entries of the terminal address lists corresponding to the terminals in the cloud address list through the terminal identifications.
When the user synchronizes communication data to the cloud server through each terminal so that the cloud address book is updated, the cloud update data (sx _ list) can be stored in the cloud update list. The cloud updating data refers to data generated by updating the cloud address book, and comprises data adding, data modifying and data deleting. For example, a communication mode with Zhang III added is uploaded by the mobile phone A, namely, the communication mode is a piece of cloud updating data, and the cloud updating data is correspondingly stored in a cloud updating list. When the terminal needs to synchronize the terminal address book and the cloud address book, the terminal sends a synchronization request to the cloud server, and the synchronization request can indicate the end position of cloud update data generated when the terminal is synchronized with the cloud address book last time in the cloud update list, so that the start position of the cloud update data of the cloud address book in the cloud update list after the terminal is synchronized with the cloud address book last time is also indicated. And the positions of each terminal for synchronous updating can be independently recorded in the cloud updating list. The embodiment will illustrate the technical solution from the perspective of requesting synchronization from a terminal to a cloud server.
After receiving a synchronization request sent by a terminal, a cloud server determines the cloud update data of a cloud address book after last synchronization with the terminal according to the initial position of the cloud update data of the cloud address book in a cloud update list after the terminal in the synchronization request is synchronized with the cloud address book last time, and writes the cloud update data of the cloud address book after last synchronization with the terminal into a cache.
And S120, determining terminal updating data of the terminal address book according to the terminal address book identification sent by the terminal.
The terminal address book identification is obtained by calculating the terminal address book data through a preset algorithm, and can be used for distinguishing the address book data of each terminal by representing more terminal address book data with less data information.
After the terminal address book and the cloud address book are synchronized last time, the data of the terminal address book and the data of the cloud address book are consistent, and therefore the terminal address book identification stored in the cloud end and the terminal address book identification stored in the terminal are also the same. And if the terminal address book has data to be updated after the last synchronization, the terminal address book identification stored in the terminal changes relative to the terminal address book identification synchronized last time, and the terminal address book identification stored in the cloud end is not updated. Therefore, the terminal address book identifier sent by the terminal is the latest identifier, and the terminal address book identifier is compared with the terminal address book identifier stored in the cloud, so that the terminal update data (cx _ list) of the terminal address book can be determined after the last synchronization. By comparing the terminal address book identification, the data to be updated can be determined by comparing with less data volume without transmitting and comparing all address book data.
And S130, performing conflict processing on the cloud updating data and the terminal updating data, and determining cloud synchronous updating data to be updated in the cloud address book and terminal synchronous updating data to be updated in the terminal address book.
After the last synchronization, the cloud address book and the terminal address book are updated respectively, and cloud update data and terminal update data are generated. If the cloud updating data and the terminal updating data are updating data for different contacts, the updating data of the opposite terminal can be updated according to the updating data of one terminal. If the cloud updating data and the terminal updating data are updating data for the same contact person, the updating data comprise adding data, modifying data and deleting data, and the two updating data (the cloud updating data and the terminal updating data) perform different updating operations on the same contact person, the two updating data conflict with each other and need to be subjected to conflict processing; if the two update data carry out the same update operation on the same contact person, the address book entries aiming at the contact person in the cloud address book and the terminal address book do not need to be updated. Therefore, the cloud synchronous updating data to be updated in the cloud address book and the terminal synchronous updating data to be updated in the terminal address book can be determined.
And S140, updating the cloud address book according to the cloud synchronous updating data, and sending the terminal synchronous updating data to the terminal so as to update the terminal address book of the terminal.
And updating the cloud synchronous updating data into a cloud address book, issuing the terminal synchronous updating data to the terminal, and updating the terminal synchronous updating data into the terminal address book by the terminal. And after the terminal updates the terminal address book, updating the terminal address book identification according to the updated terminal address book.
The step of sending the terminal synchronous update data to the terminal to update the terminal address list of the terminal comprises the following steps:
paging and writing the terminal synchronous updating data into a cache;
and gradually issuing the terminal synchronous updating data stored in the cache in a paging manner to the terminal.
When the data volume of the terminal synchronous updating data is large, the terminal synchronous updating data can be written into the cache in a paging mode, and after the terminal request is received, the terminal synchronous updating data stored in the cache in a paging mode are issued to the terminal one by one, so that overtime of a single request is prevented.
In the technical scheme of this embodiment, the cloud update data of the cloud address book after the terminal is synchronized last time is determined according to the synchronization request sent by the terminal, and determines the terminal update data of the terminal address book according to the terminal address book identification sent by the terminal, conflict processing is carried out on the cloud updating data and the terminal updating data, cloud synchronous updating data to be updated in a cloud address book and terminal synchronous updating data to be updated in a terminal address book are determined, thereby updating the cloud address book according to the cloud synchronous updating data and sending the terminal synchronous updating data to the terminal, the terminal address book of the terminal is updated, conflict processing is carried out on the cloud server, and the cloud synchronous updating data and the terminal synchronous updating data are determined.
Example two
Fig. 2 is a flowchart of a synchronization method for an address book cloud service according to a second embodiment of the present invention, and in this embodiment, based on the first embodiment, the "determining terminal update data of a terminal address book according to a terminal address book identifier sent by a terminal" is further optimized to "receiving a total data identifier (total _ md5) of the terminal address book sent by the terminal, where the total data identifier is an overall identifier of all address book data in the terminal address book; comparing the received full data identification with the full data identification stored in the cloud; and determining terminal update data of the terminal address list according to the comparison result. The method specifically comprises the following steps:
s210, according to a synchronization request sent by a terminal, determining cloud updating data of a cloud address book after the terminal is synchronized last time.
And S220, receiving a full data identifier of the terminal address book sent by the terminal, wherein the full data identifier is an integral identifier of all address book data in the terminal address book.
After the terminal address book is updated, the corresponding terminal address book identification is also updated, the terminal address book identification comprises a full data identification, and the full data identification is an integral identification of all address book data in the terminal address book and can be represented by a character string. When the terminal address book is synchronized with the terminal address book, the terminal sends the full data identification of the terminal address book to the cloud server, so that the cloud server can compare the full data identification with the full data identification of the terminal stored in the cloud, and the terminal update data of the terminal address book is determined after last synchronization.
And S230, comparing the received full data identification with the full data identification stored in the cloud.
The full data identification stored in the cloud is the full data identification of the terminal address book of the terminal formed when the terminal is synchronized with the cloud last time.
And comparing the received full data identification with the full data identification stored in the cloud end to determine whether the received full data identification is consistent with the full data identification stored in the cloud end.
And S240, determining terminal updating data of the terminal address list according to the comparison result.
If the terminal address list is consistent with the terminal address list, determining that the terminal address list is not updated after the last synchronization; and if not, determining that the address book of the terminal is updated after the last synchronization. The terminal update data of the terminal address book can be determined by comparing the terminal address book with the cloud address book synchronized last time. After last synchronization, the cloud server can store the cloud address book in last synchronization, and the cloud address book in last synchronization is consistent with the terminal address book data.
Fig. 3 is a flowchart of determining terminal update data of a terminal address book in the synchronization method for the address book cloud service according to the embodiment of the present invention. As shown in fig. 3, determining the terminal update data of the terminal address book according to the comparison result preferably includes:
s241, if the received full data identification is inconsistent with the full data identification stored in the cloud, indicating the terminal to send an item identification list of the terminal address book;
the item identification list (full _ md5) is a single identification of each item of address book data in the terminal address book, and the single identification is a character string representing an item main key (lid) and an item identification (raw _ md5) of the single item of address book data. The entry main key is the serial number of the single address book data, and the entry identification is the actual single address book data.
S242, comparing the received item identification list with an item identification list stored in a cloud end;
the entry identification list stored in the cloud is an entry identification list of a terminal address book of the terminal formed in last synchronization.
S243, if the received entry identification list is inconsistent with the entry identification list stored in the cloud, determining an added entry identification list and a deleted entry identification list of the terminal address book;
if the received entry identifier list is inconsistent with the entry identifier list stored in the cloud, a single identifier in the received entry identifier list does not exist in the entry identifier list stored in the cloud, or a single identifier in the entry identifier list stored in the cloud does not exist in the received entry identifier list. At this time, a list consisting of single identifiers which exist in the received entry identifier list and do not exist in the entry identifier list stored in the cloud is determined as an added entry identifier list of the terminal address book, and a list consisting of single identifiers which exist in the entry identifier list stored in the cloud and do not exist in the entry identifier list stored in the cloud is determined as a deleted entry identifier list of the terminal address book.
And S244, determining the terminal updating data of the terminal address list according to the added item identification list and the deleted item identification list.
The terminal address book entry represented by the added entry identifier list can be determined as added data in the terminal update data of the terminal address book, and the cloud address book entry represented by the deleted entry identifier list can be determined as deleted data in the terminal update data.
The received item identification list and the item identification list stored in the cloud are compared to determine the terminal updating data of the terminal address list, so that the comparison time can be further reduced, and the synchronization time is further reduced.
And S250, performing conflict processing on the cloud updating data and the terminal updating data, and determining cloud synchronous updating data to be updated in the cloud address book and terminal synchronous updating data to be updated in the terminal address book.
And S260, updating the cloud address book according to the cloud synchronous updating data, and sending the terminal synchronous updating data to the terminal so as to update the terminal address book of the terminal.
According to the technical scheme, on the basis of the first embodiment, whether the terminal address book is updated or not can be directly determined by comparing the full data identification of the terminal address book sent by the terminal with the full data identification stored in the cloud, and when the terminal address book is not updated, the synchronization time can be further shortened.
On the basis of the above technical solution, determining that the terminal update data (cx _ list) of the terminal address book preferably includes, according to the added entry identifier list (full _ md5) and the deleted entry identifier list (full _ md 5):
instructing the terminal to transmit an item identification (raw _ md5) and an item primary key (lid) corresponding to the added item identification list (full _ md 5);
acquiring an item identifier (raw _ md5) and an item primary key (lid) corresponding to the deleted item identifier list (full _ md5) stored in the cloud;
comparing the newly added entry identifier (raw _ md5) with the deleted entry identifier (raw _ md5), and comparing the entry primary key (lid) corresponding to the newly added entry identifier (raw _ md5) with the entry primary key (lid) corresponding to the deleted entry identifier (raw _ md 5);
if the newly added item identification (raw _ md5) is consistent with the deleted item identification (raw _ md5), and the item primary key (lid) corresponding to the newly added item identification (raw _ md5) is inconsistent with the item primary key (lid) corresponding to the deleted item identification (raw _ md5), updating the deleted item primary key (lid) with the newly added item primary key (lid); for example, if the entry primary key for the communication method corresponding to the third page in the added entry identifier list is 25, and the entry primary key for the communication method corresponding to the same third page in the deleted entry identifier list is 22, the 22 is updated to 25.
And if the newly added entry identifier (raw _ md5) is inconsistent with the deleted entry identifier (raw _ md5), determining terminal update data (cx _ list) according to the terminal address book entry corresponding to the newly added entry identifier (raw _ md5) and the cloud address book entry corresponding to the deleted entry identifier (raw _ md 5). For example, if the mobile phone number of zhang san corresponding to the newly added entry identifier is 13901001100, and each deleted entry identifier is inconsistent with the newly added entry identifier, the mobile phone number of zhang san 13901001100 may be determined as the terminal added data in the terminal update data; the cell phone number of the prune four corresponding to the deleted entry identifier is 13812345678, and each of the newly added entry identifiers is inconsistent with the deleted entry identifier, the cell phone number of the prune four 13812345678 may be determined as the terminal deletion data in the terminal update data.
The added entry identification refers to an entry identification which is sent by a terminal and corresponds to the added entry identification list, and the deleted entry identification refers to an entry identification which is stored in a cloud and corresponds to the deleted entry identification list. If the newly added entry identifier is consistent with the deleted entry identifier, and the entry main key corresponding to the newly added entry identifier is inconsistent with the entry main key corresponding to the deleted entry identifier, it is indicated that the actual data of the terminal address book is not changed, but only the entry main key is changed (such as the change of the entry main key in the terminal address book caused by the synchronization of the address book by software such as google synchronization or crayon synchronization). If the newly added item identification is inconsistent with the deleted item identification, the actual data of the terminal address book is updated, so that the terminal update data can be determined according to the terminal address book item corresponding to the newly added item identification and the cloud address book item corresponding to the deleted item identification. The synchronization time can be further reduced by comparing the added entry identifier with the deleted entry identifier and the entry primary key corresponding to the added entry identifier with the entry primary key corresponding to the deleted entry identifier.
On the basis of the above technical solution, determining that the terminal update data (cx _ list) preferably includes, according to the terminal address book entry corresponding to the newly added entry identifier (raw _ md5) and the cloud address book entry corresponding to the deleted entry identifier (raw _ md 5):
comparing the item primary key (lid) corresponding to the newly added item identifier (raw _ md5) and the deleted item identifier (raw _ md 5);
if the entry main key (lid) corresponding to each of the newly added entry identifier (raw _ md5) and the deleted entry identifier (raw _ md5) is inconsistent, determining the terminal address book entry corresponding to the newly added entry identifier (raw _ md5) as terminal added data (ca _ list) in the terminal update data (cx _ list), and determining the cloud address book entry corresponding to the deleted entry identifier (raw _ md5) as terminal deleted data (cd _ list) in the terminal update data (cx _ list); for example, the terminal address book entry corresponding to the newly added entry identifier is a communication mode of three, the corresponding entry main key is 155, the cloud address book entry corresponding to the deleted entry identifier is a communication mode of lee four, and the corresponding entry main key is 75, it is determined that the terminal newly added the communication mode of three, but the communication mode of lee four is deleted, and the cloud address book still retains the communication mode of lee four because the cloud address book is not synchronized with the cloud.
And if the entry main key (lid) corresponding to the newly added entry identifier (raw _ md5) and the deletion entry identifier (raw _ md5) are consistent, determining the address book entry corresponding to the newly added entry identifier (raw _ md5) and the deletion entry identifier (raw _ md5) as the terminal modification data (cu _ list) in the terminal update data (cx _ list). For example, if the terminal address book entry corresponding to the newly added entry identifier is zhang and the corresponding mobile phone number is 13901001100, the entry primary key corresponding to the newly added entry identifier is 22, the cloud address book entry corresponding to the deleted entry identifier is zhang and the corresponding mobile phone number is 13812345678, and the entry primary key corresponding to the deleted entry identifier is 22, it is determined that the terminal modifies the mobile phone number of zhang from 13812345678 to 13901001100.
And when the newly added item identification is inconsistent with the deleted item identification, the terminal added data, the terminal deleted data and the terminal modified data in the terminal updated data of the terminal address book are determined by further comparing the item main keys corresponding to the newly added item identification and the deleted item identification. By positioning and updating data at the cloud, development difficulty is reduced, processing speed is increased, and synchronization time is further reduced.
EXAMPLE III
Fig. 4 is a flowchart of a synchronization method for a cloud service of an address book according to a third embodiment of the present invention, where in this embodiment, "conflict processing is performed on the cloud update data and the terminal update data, and determination is made on the cloud synchronization update data to be updated in the cloud address book and the terminal synchronization update data to be updated in the terminal address book" is further optimized to "determine update data for different contacts and update data for the same contact in the cloud update data and the terminal update data according to the cloud update data and the terminal update data; performing conflict processing on the update data aiming at the same contact in the cloud update data and the terminal update data, and determining cloud part data aiming at the cloud synchronous update data of the same contact and terminal part data of the terminal synchronous update data; and determining synchronous cloud updating data according to the updating data of different contacts in the terminal updating data and the cloud part data, and determining synchronous terminal updating data according to the updating data of different contacts in the cloud updating data and the terminal part data. The method specifically comprises the following steps:
s410, according to a synchronization request sent by a terminal, determining that the cloud end of the cloud end address list updates data after the terminal is synchronized last time.
And S420, determining terminal updating data of the terminal address book according to the terminal address book identification sent by the terminal.
S430, according to the cloud updating data and the terminal updating data, determining updating data aiming at different contacts and updating data aiming at the same contact in the cloud updating data and the terminal updating data.
When conflict processing is carried out, only the conflict processing needs to be carried out on the update data of the same contact person in the cloud end update data and the update data of the same contact person in the terminal update data, so that the cloud end update data and the terminal update data need to be compared to determine the update data of different contact persons and the update data of the same contact person in the cloud end update data and the terminal update data.
And S440, performing conflict processing on the update data aiming at the same contact in the cloud update data and the terminal update data, and determining cloud part data of the cloud synchronous update data aiming at the same contact and terminal part data of the terminal synchronous update data.
The cloud updating data comprises cloud adding data, cloud modifying data and cloud deleting data, and the terminal updating data comprises terminal adding data, terminal modifying data and terminal deleting data. The cloud updating data and the terminal updating data are respectively the updating data of the cloud address book and the updating data of the terminal address book after the last synchronization and before the current synchronization.
When conflict processing is performed, the terminal address book data in the synchronization is mainly taken as a reference, the terminal update data is updated to the cloud address book, conflict processing can be performed on the cloud update data and the terminal update data according to the conflict processing principle in the table 1, the cloud update data is updated to the terminal address book, and the terminal update data is updated to the cloud address book. In table 1, the content identity means that the actual data in the address book is the same, and the content identity or the entry key identity is the same as the content in the terminal update data or the entry key identity. In table 1, the cloud modified data indicates which data is specifically modified into which data, and if data 1 is modified into data 2, when the terminal address book is modified according to the cloud modified data, if the terminal address book does not have data 1, the terminal address book does not need to be modified, and only when data 1 exists, the terminal address book is correspondingly modified, and other processing is similar. For example, the mobile phone number of zhang san in the cloud address book is modified from 13812345678 to 13901001100, and the corresponding entry primary key is 22, so the cloud modification data can be recorded as the entry primary key 22, the contact zhang san, the modification content is a mobile phone number, the original mobile phone number is 13812345678, and the modified mobile phone number is 13901001100. When the address book synchronization is carried out between the terminal and the cloud, if the mobile phone number 13812345678 does not exist in the address book of the terminal, the modification is not needed; if the mobile phone number 13812345678 exists in the terminal address book, the corresponding item primary key is 22, and the contact is Zhang III, the mobile phone number 13812345678 is modified to 13901001100.
TABLE 1 Conflict handling principles for the same contact
Figure BDA0001129223580000141
Figure BDA0001129223580000151
After performing conflict processing according to the conflict processing principle in table 1, cloud part data of the cloud synchronous update data and terminal part data of the terminal synchronous update data for the same contact can be determined.
S450, according to the update data of the different contact persons in the terminal update data and the cloud part data, cloud synchronous update data are determined, and according to the update data of the different contact persons in the cloud update data and the terminal part data, the terminal synchronous update data are determined.
Determining the updating data of different contacts in the terminal updating data and the cloud part data as cloud synchronous updating data; and determining the updating data and the terminal part data of different contacts in the cloud updating data and the terminal updating data as the terminal synchronous updating data.
And S460, updating the cloud address book according to the cloud synchronous updating data, and sending the terminal synchronous updating data to the terminal so as to update the terminal address book of the terminal.
According to the technical scheme, on the basis of the embodiment, the process of performing conflict processing on the update data of the same contact in the cloud update data and the terminal update data is further defined, and the synchronization accuracy is guaranteed.
On the basis of the above technical solution, after the terminal synchronization update data is issued to a terminal to update a terminal address book of the terminal, the method further includes:
and the receiving terminal updates the corresponding entry main key of the cloud address book and the terminal address book identification stored in the cloud according to the entry main key of the terminal address book formed after the terminal address book is updated by the terminal synchronous updating data.
After the terminal updates the terminal address book according to the terminal synchronous updating data, the formed entry main keys of the terminal address book are sent to the cloud end, and after the cloud end receives the entry main keys, the entry main keys corresponding to the cloud end address book entries in the cloud end address book are updated so as to ensure that the cloud end address book and the terminal address book are completely synchronous. After the corresponding entry main key of the motion address book is updated, the cloud updates the terminal address book identification stored in the cloud according to the latest synchronized cloud address book, and the terminal address book identification stored in the cloud after the synchronization is the same as the terminal address book identification updated by the terminal after the synchronization.
Example four
Fig. 5 is a flowchart of a synchronization method for cloud services of an address book according to a fourth embodiment of the present invention, in this embodiment, based on the foregoing embodiment, the "determining, according to a synchronization request sent by a terminal, that cloud update data of a cloud address book after the terminal is synchronized last time" is further optimized to "obtain an update cursor stored by the terminal from the synchronization request sent by the terminal, where the update cursor is used to indicate an update position of the cloud update data of the cloud address book; determining cloud update data between two update positions according to an update cursor (cursor) sent by the terminal and a current update cursor of the cloud address book, and correspondingly, after updating the cloud address book according to the cloud synchronous update data, further comprising: and updating the cloud updating data according to the cloud synchronous updating data, adjusting the position of the current updating cursor to the end point of the cloud updating data, and returning the adjusted updating cursor to the terminal. The method specifically comprises the following steps:
and S510, acquiring an updating cursor stored by the terminal from a synchronization request sent by the terminal, wherein the updating cursor is used for indicating an updating position of cloud updating data of a cloud address list.
And after the updating cursor stored in the terminal is synchronized with the cloud address list last time, the cloud updating data are in the end position of the cloud updating list. If the cloud address book has data updating after the last synchronization with the terminal, the cloud updating cursor moves to the end point of the cloud updating data updated last, so that the motion updating data generated by the cloud after the last synchronization with the terminal can be determined according to the updating cursor in the synchronization request and the updating cursor stored in the cloud.
S520, determining cloud updating data between two updating positions according to the updating cursor sent by the terminal and the current updating cursor of the cloud address book.
And determining that data between the data indicated by the updating cursor sent by the terminal and the data indicated by the current updating cursor of the cloud address book is cloud updating data.
S530, determining terminal updating data of the terminal address book according to the terminal address book identification sent by the terminal.
And S540, performing conflict processing on the cloud updating data and the terminal updating data, and determining cloud synchronous updating data to be updated in the cloud address book and terminal synchronous updating data to be updated in the terminal address book.
And S550, updating the cloud address book according to the cloud synchronous updating data, and sending the terminal synchronous updating data to the terminal so as to update the terminal address book of the terminal.
And S560, updating the cloud updating data according to the cloud synchronous updating data, adjusting the position of the current updating cursor to the end point of the cloud updating data, and returning the adjusted updating cursor to the terminal.
The cloud synchronous updating data is data which needs to be updated when the cloud synchronous updating data is synchronized with the terminal, and the cloud updating data is updated into the cloud updating data, namely the cloud synchronous updating data is written into the cloud updating data. And the updating cursor moves along with the cloud updating data, the position of the current updating cursor is adjusted to the end point of the cloud updating data, and the adjusted updating cursor is returned to the terminal for next synchronization with the terminal.
According to the technical scheme, on the basis of the embodiment, the position of the cloud update data is indicated through the update cursor, so that the cloud update data synchronized with the terminal last time is determined through the update cursor stored in the terminal and the current update cursor of the cloud, the position of the update cursor is adjusted after the synchronization is performed, and the update cursor is sent to the terminal, and therefore the cloud update data needing to be synchronized can be obtained quickly.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a synchronization apparatus for a cloud address book service according to a fifth embodiment of the present invention, and as shown in fig. 6, the synchronization apparatus for a cloud address book service according to the present embodiment includes: the system comprises a cloud data determination module 610, a terminal data determination module 620, a conflict processing module 630 and an address book updating module 640.
The cloud data determining module 610 is configured to determine, according to a synchronization request sent by a terminal, cloud update data (sx _ list) of a cloud address list after the terminal is synchronized last time;
a terminal data determining module 620, configured to determine terminal update data (cx _ list) of the terminal address book according to the terminal address book identifier sent by the terminal;
the conflict processing module 630 is configured to perform conflict processing on the cloud update data (sx _ list) and the terminal update data (cx _ list), and determine cloud synchronous update data to be updated in the cloud address book and terminal synchronous update data to be updated in the terminal address book;
the address book updating module 640 is configured to update the cloud address book according to the cloud synchronous update data, and send the terminal synchronous update data to the terminal, so as to update the terminal address book of the terminal.
Preferably, the terminal data determining module includes:
the system comprises a total identification receiving submodule and a terminal address book identification receiving submodule, wherein the total identification receiving submodule is used for receiving a total data identification (total _ md5) of the terminal address book, which is sent by the terminal, and the total data identification (total _ md5) is the whole identification of all address book data in the terminal address book;
the total identification comparison submodule is used for comparing the received total data identification (total _ md5) with the total data identification (total _ md5) stored in the cloud;
and the terminal data determining submodule is used for determining terminal updating data (cx _ list) of the terminal address list according to the comparison result.
Preferably, the terminal data determination sub-module includes:
the terminal comprises an entry identification indicating unit, a terminal and a terminal, wherein the entry identification indicating unit is used for indicating the terminal to send an entry identification list (full _ md5) of a terminal address book if a received full data identification (total _ md5) is inconsistent with a full data identification (total _ md5) stored in a cloud, the entry identification list (full _ md5) is a single identification of each address book datum in the terminal address book, and the single identification is a character string representing an entry main key (lid) and an entry identification (raw _ md5) of the single address book datum;
the item identification comparison unit is used for comparing the received item identification list (full _ md5) with the item identification list (full _ md5) saved in the cloud;
an updated entry determining unit, configured to determine an added entry identification list (full _ md5) and a deleted entry identification list (full _ md5) of the terminal address book if the received entry identification list (full _ md5) is inconsistent with the cloud-stored entry identification list (full _ md 5);
and the terminal data determining unit is used for determining the terminal updating data (cx _ list) of the terminal address list according to the added item identification list (full _ md5) and the deleted item identification list (full _ md 5).
Preferably, the terminal data determining unit includes:
an added entry indication subunit, configured to instruct the terminal to send an entry identifier (raw _ md5) and an entry primary key (lid) corresponding to the added entry identifier list (full _ md 5);
a deleted entry obtaining subunit, configured to obtain an entry identifier (raw _ md5) and an entry primary key (lid) that correspond to the deleted entry identifier list (full _ md5) stored in the cloud;
the entry identifier comparison subunit is used for comparing the newly added entry identifier (raw _ md5) with the deleted entry identifier (raw _ md5), and comparing the entry primary key (lid) corresponding to the newly added entry identifier (raw _ md5) with the entry primary key (lid) corresponding to the deleted entry identifier (raw _ md 5);
an entry primary key updating subunit, configured to update the deleted entry primary key (lid) with the newly added entry primary key (lid) if the newly added entry identifier (raw _ md5) is consistent with the deleted entry identifier (raw _ md5), and the entry primary key (lid) corresponding to the newly added entry identifier (raw _ md5) is inconsistent with the entry primary key (lid) corresponding to the deleted entry identifier (raw _ md 5);
and the terminal data determining subunit is used for determining the terminal update data (cx _ list) according to the terminal address book entry corresponding to the added entry identifier (raw _ md5) and the cloud address book entry corresponding to the deleted entry identifier (raw _ md5) if the newly added entry identifier (raw _ md5) is inconsistent with the deleted entry identifier (raw _ md 5).
Preferably, the terminal data determination subunit is specifically configured to:
comparing the item primary key (lid) corresponding to the newly added item identifier (raw _ md5) and the deleted item identifier (raw _ md 5);
if the entry main key (lid) corresponding to each of the newly added entry identifier (raw _ md5) and the deleted entry identifier (raw _ md5) is inconsistent, determining the terminal address book entry corresponding to the newly added entry identifier (raw _ md5) as terminal added data (ca _ list) in the terminal update data (cx _ list), and determining the cloud address book entry corresponding to the deleted entry identifier (raw _ md5) as terminal deleted data (cd _ list) in the terminal update data (cx _ list);
and if the entry main key (lid) corresponding to the newly added entry identifier (raw _ md5) and the deletion entry identifier (raw _ md5) are consistent, determining the address book entry corresponding to the newly added entry identifier (raw _ md5) and the deletion entry identifier (raw _ md5) as the terminal modification data (cu _ list) in the terminal update data (cx _ list).
Preferably, the conflict processing module includes:
the update data distinguishing sub-module is used for determining update data aiming at different contacts and update data aiming at the same contact in the cloud update data (sx _ list) and the terminal update data (cx _ list) according to the cloud update data (sx _ list) and the terminal update data (cx _ list);
the conflict processing submodule is used for carrying out conflict processing on the update data (sx _ list) aiming at the same contact person in the cloud end update data (sx _ list) and the terminal update data (cx _ list) and determining the cloud end part data of the cloud end synchronous update data aiming at the same contact person and the terminal part data of the terminal synchronous update data;
the update data determining submodule is used for determining cloud synchronous update data according to update data of different contacts in the terminal update data (cx _ list) and the cloud part data, and determining terminal synchronous update data according to update data of different contacts in the cloud update data (sx _ list) and the terminal part data.
Preferably, the method further comprises the following steps:
and the cloud data updating module is used for sending the terminal synchronous updating data to the terminal so as to update the terminal address book of the terminal, and then receiving the entry main key of the terminal address book formed by the terminal after the terminal synchronous updating data update the terminal address book, and updating the corresponding entry main key of the cloud address book and the terminal address book identification stored in the cloud.
Preferably, the cloud data determining module includes:
the system comprises an update cursor acquisition submodule and an update cursor updating submodule, wherein the update cursor acquisition submodule is used for acquiring an update cursor (cursor) stored by a terminal from a synchronization request sent by the terminal, and the update cursor (cursor) is used for indicating an update position of cloud update data (sx _ list) of a cloud address list;
the cloud data determining submodule is used for determining cloud updating data (sx _ list) between two updating positions according to an updating cursor (cursor) sent by the terminal and a current updating cursor (cursor) of the cloud address book;
correspondingly, the device further comprises:
and the update cursor adjusting module is used for updating the cloud update data (sx _ list) according to the cloud synchronous update data after updating the cloud address book according to the cloud synchronous update data, adjusting the position of the current update cursor (cursor) to the end point of the cloud update data (sx _ list), and returning the adjusted update cursor (cursor) to the terminal.
Preferably, the address book update module includes:
the cache submodule is used for paging writing the terminal synchronous updating data into a cache;
and the successive issuing sub-module is used for successively issuing the terminal synchronous updating data stored in the cache in a paging manner to the terminal.
The synchronization device of the address book cloud service can execute the synchronization method of the address book cloud service provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (16)

1. A synchronization method for a contact list cloud service is characterized by comprising the following steps:
according to a synchronization request sent by a terminal, determining cloud updating data of a cloud address list after the terminal is synchronized last time;
determining terminal updating data of a terminal address book according to a terminal address book identifier sent by a terminal;
performing conflict processing on the cloud updating data and the terminal updating data, and determining cloud synchronous updating data to be updated in a cloud address book and terminal synchronous updating data to be updated in a terminal address book;
updating a cloud address book according to the cloud synchronous updating data, and sending the terminal synchronous updating data to a terminal so as to update the terminal address book of the terminal;
performing conflict processing on the cloud updating data and the terminal updating data, and determining the cloud synchronous updating data to be updated in the cloud address book and the terminal synchronous updating data to be updated in the terminal address book, wherein the conflict processing comprises the following steps:
according to the cloud updating data and the terminal updating data, determining updating data aiming at different contacts and updating data of the same contact in the cloud updating data and the terminal updating data;
performing conflict processing on the update data aiming at the same contact in the cloud update data and the terminal update data, and determining cloud part data aiming at the cloud synchronous update data of the same contact and terminal part data of the terminal synchronous update data;
and determining synchronous cloud updating data according to the updating data of different contacts in the terminal updating data and the cloud part data, and determining synchronous terminal updating data according to the updating data of different contacts in the cloud updating data and the terminal part data.
2. The method of claim 1, wherein determining the terminal update data of the terminal address book according to the terminal address book identifier sent by the terminal comprises:
receiving a full data identifier of a terminal address book sent by the terminal, wherein the full data identifier is an integral identifier of all address book data in the terminal address book;
comparing the received full data identification with the full data identification stored in the cloud;
and determining the terminal updating data of the terminal address list according to the comparison result.
3. The method of claim 2, wherein determining the terminal update data of the terminal address book according to the comparison result comprises:
if the received full data identification is inconsistent with the full data identification stored in the cloud, indicating the terminal to send an item identification list of the terminal address book, wherein the item identification list is a single identification of each address book data in the terminal address book, and the single identification is a character string representing an item main key and an item identification of the single address book data;
comparing the received item identification list with an item identification list stored in a cloud terminal;
if the received entry identification list is inconsistent with the entry identification list stored in the cloud, determining an added entry identification list and a deleted entry identification list of the terminal address book;
and determining the terminal updating data of the terminal address list according to the added item identification list and the deleted item identification list.
4. The method of claim 3, wherein determining the terminal update data of the terminal address book according to the added entry identifier list and the deleted entry identifier list comprises:
instructing the terminal to send an entry identifier and an entry primary key corresponding to the added entry identifier list;
acquiring an item identifier and an item primary key corresponding to the deleted item identifier list stored in the cloud;
comparing the newly added entry identification with the deleted entry identification, and comparing the entry main key corresponding to the newly added entry identification with the entry main key corresponding to the deleted entry identification;
if the newly added entry identifier is consistent with the deleted entry identifier, and the entry primary key corresponding to the newly added entry identifier is inconsistent with the entry primary key corresponding to the deleted entry identifier, updating the deleted entry primary key by using the newly added entry primary key;
and if the newly added item identification is inconsistent with the deleted item identification, determining terminal updating data according to the terminal address book item corresponding to the newly added item identification and the cloud address book item corresponding to the deleted item identification.
5. The method of claim 4, wherein determining the terminal update data according to the terminal address book entry corresponding to the added entry identifier and the cloud address book entry corresponding to the deleted entry identifier comprises:
comparing the corresponding entry primary keys of the newly added entry identifier and the deleted entry identifier;
if the entry main keys corresponding to the newly added entry identification and the deleted entry identification are not consistent, determining the terminal address book entry corresponding to the newly added entry identification as terminal added data in the terminal updating data, and determining the cloud address book entry corresponding to the deleted entry identification as terminal deleted data in the terminal updating data;
and if the corresponding entry main keys of the newly added entry identifier and the deleted entry identifier are consistent, determining the address book entry corresponding to the newly added entry identifier and the deleted entry identifier as terminal modification data in the terminal updating data.
6. The method according to any one of claims 1 to 5, further comprising, after sending the terminal synchronization update data to a terminal to update a terminal address book of the terminal:
and the receiving terminal updates the corresponding entry main key of the cloud address book and the terminal address book identification stored in the cloud according to the entry main key of the terminal address book formed after the terminal address book is updated by the terminal synchronous updating data.
7. The method according to any one of claims 1 to 5, wherein determining that the cloud update data of the cloud address book is updated after the terminal is synchronized last time according to the synchronization request sent by the terminal comprises:
the method comprises the steps that an updating cursor stored by a terminal is obtained from a synchronous request sent by the terminal, and the updating cursor is used for indicating an updating position of cloud updating data of a cloud address list;
determining cloud updating data between two updating positions according to the updating vernier sent by the terminal and the current updating vernier of the cloud address list;
correspondingly, after the cloud address book is updated according to the cloud synchronous update data, the method further comprises the following steps:
and updating the cloud updating data according to the cloud synchronous updating data, adjusting the position of the current updating cursor to the end point of the cloud updating data, and returning the adjusted updating cursor to the terminal.
8. The method according to any one of claims 1 to 5, wherein the sending the terminal synchronization update data to a terminal to update a terminal address book of the terminal comprises:
paging and writing the terminal synchronous updating data into a cache;
and gradually issuing the terminal synchronous updating data stored in the cache in a paging manner to the terminal.
9. A synchronization apparatus for a contact cloud service, the apparatus comprising:
the cloud data determining module is used for determining cloud updating data of a cloud address book after the terminal is synchronized last time according to a synchronization request sent by the terminal;
the terminal data determining module is used for determining terminal updating data of the terminal address book according to the terminal address book identification sent by the terminal;
the conflict processing module is used for carrying out conflict processing on the cloud updating data and the terminal updating data and determining cloud synchronous updating data to be updated in a cloud address book and terminal synchronous updating data to be updated in a terminal address book;
the address book updating module is used for updating a cloud address book according to the cloud synchronous updating data and sending the terminal synchronous updating data to a terminal so as to update the terminal address book of the terminal;
the conflict processing module comprises:
the update data distinguishing submodule is used for determining update data aiming at different contacts and update data aiming at the same contact in the cloud update data and the terminal update data according to the cloud update data and the terminal update data;
the conflict processing submodule is used for carrying out conflict processing on the cloud end updating data and the updating data of the terminal updating data aiming at the same contact person, and determining the cloud end part data of the cloud end synchronous updating data aiming at the same contact person and the terminal part data of the terminal synchronous updating data;
and the update data determining submodule is used for determining the cloud synchronous update data according to the update data of different contacts in the terminal update data and the cloud part data, and determining the terminal synchronous update data according to the update data of different contacts in the cloud update data and the terminal part data.
10. The apparatus of claim 9, wherein the terminal data determining module comprises:
the system comprises a full identification receiving submodule and a full identification receiving submodule, wherein the full identification receiving submodule is used for receiving a full data identification of a terminal address book sent by a terminal, and the full data identification is the whole identification of all address book data in the terminal address book;
the full identification comparison submodule is used for comparing the received full data identification with the full data identification stored in the cloud end;
and the terminal data determining submodule is used for determining terminal updating data of the terminal address list according to the comparison result.
11. The apparatus of claim 10, wherein the terminal data determination submodule comprises:
the terminal comprises an entry identification indicating unit, an entry identification list sending unit and a storage unit, wherein the entry identification indicating unit is used for indicating the terminal to send an entry identification list of a terminal address book if a received full data identification is inconsistent with a full data identification stored in a cloud end, the entry identification list is a single identification of each address book data in the terminal address book, and the single identification is a character string representing an entry main key and an entry identification of the single address book data;
the item identification comparison unit is used for comparing the received item identification list with an item identification list stored in the cloud;
the updating item determining unit is used for determining an added item identification list and a deleted item identification list of the terminal address list if the received item identification list is inconsistent with the item identification list stored in the cloud;
and the terminal data determining unit is used for determining the terminal updating data of the terminal address list according to the added item identification list and the deleted item identification list.
12. The apparatus of claim 11, wherein the terminal data determining unit comprises:
an added item indicating subunit, configured to instruct the terminal to send an item identifier and an item primary key corresponding to the added item identifier list;
a deleted item obtaining subunit, configured to obtain an item identifier and an item primary key that correspond to the deleted item identifier list stored in the cloud;
the entry identifier comparison subunit is used for comparing the newly added entry identifier with the deleted entry identifier and comparing the entry main key corresponding to the newly added entry identifier with the entry main key corresponding to the deleted entry identifier;
an entry primary key updating subunit, configured to update the deleted entry primary key with the newly added entry primary key if the newly added entry identifier is consistent with the deleted entry identifier, and the entry primary key corresponding to the newly added entry identifier is inconsistent with the entry primary key corresponding to the deleted entry identifier;
and the terminal data determining subunit is used for determining terminal updating data according to the terminal address book entry corresponding to the newly added entry identifier and the cloud address book entry corresponding to the deleted entry identifier if the newly added entry identifier is inconsistent with the deleted entry identifier.
13. The apparatus of claim 12, wherein the terminal data determination subunit is specifically configured to:
comparing the corresponding entry primary keys of the newly added entry identifier and the deleted entry identifier;
if the entry main keys corresponding to the newly added entry identification and the deleted entry identification are not consistent, determining the terminal address book entry corresponding to the newly added entry identification as terminal added data in the terminal updating data, and determining the cloud address book entry corresponding to the deleted entry identification as terminal deleted data in the terminal updating data;
and if the corresponding entry main keys of the newly added entry identifier and the deleted entry identifier are consistent, determining the address book entry corresponding to the newly added entry identifier and the deleted entry identifier as terminal modification data in the terminal updating data.
14. The apparatus of any of claims 9-13, further comprising:
and the cloud data updating module is used for sending the terminal synchronous updating data to the terminal so as to update the terminal address book of the terminal, and then receiving the entry main key of the terminal address book formed by the terminal after the terminal synchronous updating data update the terminal address book, and updating the corresponding entry main key of the cloud address book and the terminal address book identification stored in the cloud.
15. The apparatus of any of claims 9-13, wherein the cloud data determination module comprises:
the update cursor acquisition submodule is used for acquiring an update cursor stored by the terminal from a synchronous request sent by the terminal, and the update cursor is used for indicating the update position of cloud update data of a cloud address list;
the cloud data determining submodule is used for determining cloud updating data between two updating positions according to the updating cursor sent by the terminal and the current updating cursor of the cloud address book;
correspondingly, the device further comprises:
and the update cursor adjusting module is used for updating the cloud updating data according to the cloud synchronous updating data after updating the cloud address book according to the cloud synchronous updating data, adjusting the position of the current update cursor to the end point of the cloud updating data, and returning the adjusted update cursor to the terminal.
16. The apparatus according to any one of claims 9-13, wherein the address book update module comprises:
the cache submodule is used for paging writing the terminal synchronous updating data into a cache;
and the successive issuing sub-module is used for successively issuing the terminal synchronous updating data stored in the cache in a paging manner to the terminal.
CN201610889328.2A 2016-10-12 2016-10-12 Method and device for synchronizing address book cloud service Active CN107948220B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610889328.2A CN107948220B (en) 2016-10-12 2016-10-12 Method and device for synchronizing address book cloud service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610889328.2A CN107948220B (en) 2016-10-12 2016-10-12 Method and device for synchronizing address book cloud service

Publications (2)

Publication Number Publication Date
CN107948220A CN107948220A (en) 2018-04-20
CN107948220B true CN107948220B (en) 2021-01-08

Family

ID=61928248

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610889328.2A Active CN107948220B (en) 2016-10-12 2016-10-12 Method and device for synchronizing address book cloud service

Country Status (1)

Country Link
CN (1) CN107948220B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953722B (en) * 2019-05-16 2023-06-30 武汉海康存储技术有限公司 Synchronization method and device for terminal address book
CN111163221B (en) * 2019-12-25 2021-05-07 惠州Tcl移动通信有限公司 Group address book updating method and device, storage medium and terminal equipment
CN114547184A (en) * 2020-11-25 2022-05-27 深圳云天励飞技术股份有限公司 Personnel information synchronization method, terminal device and storage medium
CN113938381A (en) * 2021-10-15 2022-01-14 牙木科技股份有限公司 Universal simple network management and network element configuration synchronization method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794724A (en) * 2005-10-27 2006-06-28 华为技术有限公司 Method of realizing data synchronization on SyncML layer
CN1852160A (en) * 2005-12-30 2006-10-25 华为技术有限公司 Method for realizing data slow synchronization and system thereof
CN101483576A (en) * 2008-01-11 2009-07-15 上海博达数据通信有限公司 Version management implementing method in distributed system
KR20140031451A (en) * 2012-08-30 2014-03-13 삼성전자주식회사 Apparatus and metoho for synchronizing a contents in cloud service system
CN105100349A (en) * 2015-06-15 2015-11-25 北京奇虎科技有限公司 Method, device and system for synchronizing contact person information in address book
CN105847336A (en) * 2016-03-18 2016-08-10 周奇 Address book synchronization method and device
CN105872168A (en) * 2015-11-09 2016-08-17 乐视致新电子科技(天津)有限公司 Address list update method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794724A (en) * 2005-10-27 2006-06-28 华为技术有限公司 Method of realizing data synchronization on SyncML layer
CN1852160A (en) * 2005-12-30 2006-10-25 华为技术有限公司 Method for realizing data slow synchronization and system thereof
CN101483576A (en) * 2008-01-11 2009-07-15 上海博达数据通信有限公司 Version management implementing method in distributed system
KR20140031451A (en) * 2012-08-30 2014-03-13 삼성전자주식회사 Apparatus and metoho for synchronizing a contents in cloud service system
CN105100349A (en) * 2015-06-15 2015-11-25 北京奇虎科技有限公司 Method, device and system for synchronizing contact person information in address book
CN105872168A (en) * 2015-11-09 2016-08-17 乐视致新电子科技(天津)有限公司 Address list update method and device
CN105847336A (en) * 2016-03-18 2016-08-10 周奇 Address book synchronization method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郑金光."基于Android终端的用户信息同步平台设计与实现".《中国优秀硕士学位论文全文数据库》.2015,I136-916. *

Also Published As

Publication number Publication date
CN107948220A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
CN107948220B (en) Method and device for synchronizing address book cloud service
US9792340B2 (en) Identifying data items
US8213332B2 (en) Peer-to-peer data synchronization architecture
EP2378437A1 (en) Data synchronization methods in communication systems
EP3125501A1 (en) File synchronization method, server, and terminal
CN103873451A (en) Data synchronization method, equipment and system
CN104348859B (en) File synchronisation method, device, server, terminal and system
CN105373595B (en) data self-classification storage method and terminal
CN104092740B (en) Application data synchronous method and device
CN103281798A (en) Method, device and system for achieving modification synchronization
WO2013117809A1 (en) Automated notification of images showing common content
CN103312489A (en) Method and device for synchronizing terminal and server
CN105847336A (en) Address book synchronization method and device
CN103533169A (en) Method for positioning and linking field of electronic business card based on mobile terminal
CN106681995B (en) Data caching method, data query method and device
CN104901983A (en) Information synthesizing method, device and system
CN109889588B (en) File acquisition method and device, computer equipment and storage medium
CN101710921A (en) Method and system for updating numbering book of mobile terminal
CN106657433B (en) Naming method and device for physical network card in multi-network snap ring environment
CN104834749A (en) File synchronization method and synchronization system for mobile terminal and PC terminal
WO2015117356A1 (en) Start-up method and communication terminal
CN105338059A (en) Data synchronization method and mobile terminal
CN111324483B (en) Data recovery method and device and related equipment
CN105183586A (en) Method and apparatus for restoring accidentally deleted file in EXT file system and intelligent device
CN103856535B (en) A kind of method and apparatus obtaining user data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant