Data synchronization method between mobile terminal and server
First Claim
1. A method of data uplink synchronization between a mobile terminal and a server, comprising:
- step 1, a mobile terminal sending an uplink synchronization request of an address book to a server;
step 2, the server returning an uplink synchronization request response of the address book to the mobile terminal;
step 3, the mobile terminal sending to the server address book data needing to be synchronized;
step 4, the server, according to a number of the mobile terminal, judging whether the address book data of the number exists in the server;
if and only if the address book data of the number exist, executing a step 5;
if and only if the address book data of the number does not exist, executing a step 6;
step 5, the server, according to the received address book data, modifying the address book data stored in the server one item by one item, wherein the address book data comprises many records and each of the records further comprises many items, and executing a step 7;
step 6, the server storing the received address book data; and
step 7, ending;
wherein the step 5 comprises;
step 501, the server judging whether a first record in the received address book data exists in the address book data stored in the server;
if it exists, executing a step 502;
otherwise, executing a step 508;
step 502, the server judging whether a first item of the first record can be mapped to an item in the address book stored in the server;
if it can, executing a step 503;
otherwise, executing a step 506;
step 503, the server extracting content data information from the first item and replacing content data information of a corresponding item by the content data information;
step 504, the server judging whether the first item'"'"'s information of attribute and parameter is the same as the corresponding item'"'"'s information of attribute and parameter;
if they are the same, executing a step 507;
otherwise, executing a step 505;
step 505, the server, according to the first item'"'"'s information of attribute and parameter, modifying the corresponding item'"'"'s information of attribute and parameter;
executing the step 507;
step 506, the server storing the first item under a corresponding record of the address book stored in the server;
step 507, the server deleting the first item from the first record of the received address book data;
judging whether an item still exists in the first record;
if the item exists, executing the step 502;
otherwise, executing a step 509;
step 508, the server storing the first record into the address book stored in the server; and
step 509, the server deleting the first record from the received address book data;
judging whether a record still exists in the received address book data;
if the record exists, executing the step 501;
otherwise, executing the step 7.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention relates to a method of data uplink synchronization between a mobile terminal and a server. The server modifies the stored address book data one item by one item. The present invention also relates to a method of data downlink synchronization between a mobile terminal and a server. Before the server sends address book data to the mobile terminal requesting the downlink synchronization, it performs item-by-item adaptation of the address book data according to the item'"'"'s attribute and parameter supported by the mobile terminal. The present invention relates to another method of data downlink synchronization between a mobile terminal and a server. The mobile terminal, according to the received address book data, modifies the stored address book one item by one item. The present invention implements the operation on each item in the address book, the adaptation to the item'"'"'s attribute and parameter of the address book according to the specific situation of the mobile terminal, and the mapping to each item according to the meaning of the attribute and parameter so as to effectively avoid information loss caused by inconsistent attributes and parameters and the operations on the record.
-
Citations
13 Claims
-
1. A method of data uplink synchronization between a mobile terminal and a server, comprising:
-
step 1, a mobile terminal sending an uplink synchronization request of an address book to a server; step 2, the server returning an uplink synchronization request response of the address book to the mobile terminal; step 3, the mobile terminal sending to the server address book data needing to be synchronized; step 4, the server, according to a number of the mobile terminal, judging whether the address book data of the number exists in the server;
if and only if the address book data of the number exist, executing a step 5;
if and only if the address book data of the number does not exist, executing a step 6;step 5, the server, according to the received address book data, modifying the address book data stored in the server one item by one item, wherein the address book data comprises many records and each of the records further comprises many items, and executing a step 7; step 6, the server storing the received address book data; and step 7, ending; wherein the step 5 comprises; step 501, the server judging whether a first record in the received address book data exists in the address book data stored in the server;
if it exists, executing a step 502;
otherwise, executing a step 508;step 502, the server judging whether a first item of the first record can be mapped to an item in the address book stored in the server;
if it can, executing a step 503;
otherwise, executing a step 506;step 503, the server extracting content data information from the first item and replacing content data information of a corresponding item by the content data information; step 504, the server judging whether the first item'"'"'s information of attribute and parameter is the same as the corresponding item'"'"'s information of attribute and parameter;
if they are the same, executing a step 507;
otherwise, executing a step 505;step 505, the server, according to the first item'"'"'s information of attribute and parameter, modifying the corresponding item'"'"'s information of attribute and parameter;
executing the step 507;step 506, the server storing the first item under a corresponding record of the address book stored in the server; step 507, the server deleting the first item from the first record of the received address book data;
judging whether an item still exists in the first record;
if the item exists, executing the step 502;
otherwise, executing a step 509;step 508, the server storing the first record into the address book stored in the server; and step 509, the server deleting the first record from the received address book data;
judging whether a record still exists in the received address book data;
if the record exists, executing the step 501;
otherwise, executing the step 7. - View Dependent Claims (2, 3)
-
-
4. A method of data downlink synchronization method between a mobile terminal and a server, comprising:
-
step 1, a mobile terminal sending to a server a downlink synchronization request of an address book, which carries the number information of the mobile terminal and an address book item supported by the mobile terminal in the information of attribute and parameter; step 2, after the server receives the downlink synchronization request, the server, according to the number of the mobile terminal, judging whether the address book data of the number exists in the server;
if and only if the address book data exist, executing a step 3;
if and only if the address book does not exist, executing a step 6;step 3, the server, according to the item'"'"'s information of attribute and parameter supported by the mobile terminal, modifying each item'"'"'s information of attribute and parameter in the address book data one item by one item, wherein the address book data comprises many records and each of the records further comprises many items; step 4, the server sending the address book data to the mobile terminal; step 5, the mobile terminal storing the received address book data;
executing a step 7;step 6, the server returning error information to the mobile terminal; and step 7, ending; wherein the step 3 comprises; step 301, the server extracting a first record to be modified from the address book; step 302, the server extracting a first item to be modified from the first record; step 303, the server judging whether the first item'"'"'s information of attribute and parameter can be mapped to the item'"'"'s information of attribute and parameter supported by the mobile terminal;
if it can, executing a step 304;
otherwise, executing a step 305;step 304, the server, according to the item'"'"'s information of attribute and parameter supported by the mobile terminal, modifying the item'"'"'s information of attribute and parameter; step 305, the server judging whether an item to be modified exists in the current record;
if the item exists, executing the step 302;
otherwise, executing a step 306; andstep 306, the server judging whether there is a record to be modified;
if there is the record, executing the step 301;
otherwise, executing the step 4. - View Dependent Claims (5, 6, 7, 8, 9, 10, 11)
-
-
12. A method of data downlink synchronization between a mobile terminal and a server, comprising:
-
step 1, a mobile terminal sending to a server a downlink synchronization request of an address book data, which carries the number information of the mobile terminal and an item'"'"'s information of attribute and parameter of the address book supported by the mobile terminal; step 2, after the server receives the downlink synchronization request, according to the number of the mobile terminal, judging whether an address book data of the number exists in the server;
if and only if the address book data exist, executing a step 3;
if and only if the address book data does not exist, executing a step 5;step 3, the server sending the address book data of the number to the mobile terminal; step 4, the mobile terminal, according to the received address book data, modifying the address book data stored in the mobile terminal one item by one item, wherein the address book data comprises many records and each of the records further comprises many items;
executing a step 6;step 5, the server returning error information to the mobile terminal; and step 6, ending; wherein the step 4 comprises; step 401, the mobile terminal extracting a first record from the received address book data; step 402, the mobile terminal judging whether the first record exists in the address book of the mobile terminal;
if the first record exists, executing the step 404;
otherwise executing a step 403;step 403, the mobile terminal establishing a new record in the address book stored in the mobile terminal; step 404, the mobile terminal extracting a first item from the first record and judging whether the first item can be mapped to an item of the address book stored in the mobile terminal;
if it can, executing a step 405;
otherwise, executing a step 406;step 405, the mobile terminal obtaining content data from the first item and storing the content data at a corresponding item'"'"'s content data part in the address book of the mobile terminal; step 406, the mobile terminal deleting the first item from the first record and judging whether item data exist in the first record;
if the item data exist, executing the step 404;otherwise, executing a step 407; and step 407, the mobile terminal deleting the first record from the received address book data and judging whether record data exist in the received address book data;
if the record data exist, executing the step 401;
otherwise, ending. - View Dependent Claims (13)
-
Specification