CN100525208C - Data synchronization method - Google Patents

Data synchronization method Download PDF

Info

Publication number
CN100525208C
CN100525208C CNB2006100111048A CN200610011104A CN100525208C CN 100525208 C CN100525208 C CN 100525208C CN B2006100111048 A CNB2006100111048 A CN B2006100111048A CN 200610011104 A CN200610011104 A CN 200610011104A CN 100525208 C CN100525208 C CN 100525208C
Authority
CN
China
Prior art keywords
data
phone directory
tabulation
log list
client
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.)
Expired - Fee Related
Application number
CNB2006100111048A
Other languages
Chinese (zh)
Other versions
CN1996871A (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.)
Inspur LG Digital Mobile Communications Co Ltd
Original Assignee
LG Electronics China Research and Development Center 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 LG Electronics China Research and Development Center Co Ltd filed Critical LG Electronics China Research and Development Center Co Ltd
Priority to CNB2006100111048A priority Critical patent/CN100525208C/en
Publication of CN1996871A publication Critical patent/CN1996871A/en
Application granted granted Critical
Publication of CN100525208C publication Critical patent/CN100525208C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This invention discloses one data simultaneous method applied in the system composed of customer end and servo end, which is characterized by the following: the customer end judges the servo end back status codes and deleting the status codes relative data information when the said status codes is for successful status codes; in failure keeping the simultaneous list relative data information. This invention provides one data simultaneous method.

Description

A kind of method of data synchronization
Technical field
The present invention relates to a kind of method of data synchronization, particularly relate to the method for data synchronization of client process when the last time, synchronously middle server end returned status of fail, to improve synchronizing quality.
Background technology
Along with the development of mobile communication technology, the value-added service of more portable terminal is developed, and SyncML (Synchronization Markup Language, synchronization makeup language) simultaneous techniques is exactly one of them.SyncML is a kind of and information synchronization standard agreement platform independence.The most existing synchronization solutions overwhelming majority depends on certain manufacturer, application, or certain operating system, and the purpose of SyncML will provide an open standard exactly.At present, this standard has obtained the support of the product of more companies.
See also shown in Figure 1ly, be client in the prior art and the synchronous general flow schematic diagram of server end.This flow process comprises the steps: step 101, and user (User) 10 starts synchronously; Step 102, then, client (Client) 20 beginning initialization; Step 103, netinit subsequently; Step 104 is carried out synchronous initiation in succession after the netinit; Step 105, subsequently, the data of client 20 are sent to server end (Server) 30; Step 106, server end 30 receive and in addition reference, its data is increased, revises, deletes, subsequently, the data of server end 30 with and conditional code be sent to client 20; Step 107, client 20 receive and increase, revise, delete self data with reference to these data, send map information and conditional code immediately and are returned to server end 30; Step 108, server end 30 receives the back transmit status and is returned to client 20, thereby has realized both sides' data synchronization process.
But SyncML DS (Data Synchronization, data sync) agreement is not stipulated client and is sent interpolation, renewal, deleted data to server end, the processing method when server end returns the status of fail sign indicating number.To this, the general way that adopts is that it is ignored, promptly, in data of send server return state failure not synchronously time the next time, but this can cause the inconsistent problem of data of server end and client again, slowly synchronously all data of client are all sent to server end unless start, and this will cause synchronizing quality can't satisfy user's demand.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of method of data synchronization, is used for realizing synchronously that next time server end returns status of fail, to improve synchronizing quality.
To achieve these goals, the invention provides a kind of method of data synchronization, be applied to comprise client, the data synchronous system of server end, generate a log list when when described client initialization, reading the phone directory data, when comparing, the data in described phone directory data and the described log list generate a tabulation synchronously, described synchronous tabulation comprises adds tabulation, upgrade tabulation and deletion tabulation, described phone directory data comprise: local unique identification, revise the date, described log list comprises: local unique identification, revise the date, it is characterized in that, this method is judged the conditional code that described server end returns by described client, and when described conditional code is the success status sign indicating number, delete the information of the data of conditional code correspondence described in the described synchronous tabulation, the mode that keeps the information of the data of conditional code correspondence described in the described synchronous tabulation when described conditional code is the status of fail sign indicating number realizes data sync.
Described method of data synchronization, wherein, this method specifically comprises:
Step 21, the user imports synchronous starting command and starts synchronously;
Step 22 reads the data in the described phone directory;
Step 23 compares and generates synchronous tabulation with described phone directory data that read and the data in the described log list;
Step 24, described client with the transfer of data in the described synchronous tabulation to described server end;
Step 25, described server end return state sign indicating number is to described client; And
Step 26, described client is judged described conditional code and is handled.
Described method of data synchronization wherein, in the described step 23, also comprises:
If the local unique identification of no described phone directory data then adds these data to described interpolation tabulation, log list in the described log list;
If the local unique identification of described phone directory data is arranged, the then more described modification date in the described log list;
If the data in the described phone directory in the no described log list are then added these data to described deletion tabulation, and are deleted corresponding data information in the described log list.
Described method of data synchronization wherein, in the step on described modification date, further comprises:
If the modification date in the described phone directory, is then added the modification date in the described phone directory to described renewal tabulation early than the modification date in the described log list, and upgrade the modification date in the described log list;
If the modification date in the described phone directory is identical with the modification date in the described log list, the data in the then more next phone directory.
Described method of data synchronization, wherein, in the described step 21, described user imports synchronous starting command by user interface.
A kind of method of data synchronization that the present invention proposes, realized when last synchronously middle server end returns the status of fail sign indicating number that upgrades failure, deletion failure, interpolation failure, transmit the data of last modification after synchronously next time synchronously the time simultaneously and lastly server end takes place in synchronously and upgrade failure, deletion failure, add the object of failure, thereby improve synchronizing quality.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is client and the synchronous general flow schematic diagram of server end in the prior art;
Client process flow schematic diagram when Fig. 2 returns the status of fail sign indicating number for server end of the present invention.
Embodiment
See also shown in Figure 2, client process flow when returning the status of fail sign indicating number for server end of the present invention.This flow process comprises the steps:
Step 210, under the holding state, the user imports synchronous starting command by UI (User Interface, user interface);
Step 220 starts synchronously;
Step 230 reads all data messages of phone directory from phone directory, comprising: LUID (LocallyUnique Identifier, local unique identification), Date data such as (revising the date);
Step 240, with the phone directory data that read one by one with LogList (log list) in data message compare, specifically comprise:
If there is not the LUID of data in the phone directory among the LogList, then this data message is added to the AddList (adding tabulation) of SyncList (tabulation synchronously), add among the LogList simultaneously;
If the LUID of data in the phone directory is arranged among the LogList, then relatively and revise Date: if the Date in the phone directory is more Zao than the Date among the LogList, then this Date data message in the phone directory is added to the UpdateList (upgrading tabulation) of SyncList, and upgrade the Date among the LogList; If the Date in the phone directory is identical with the Date among the LogList, the data in the then more next phone directory;
If there are not the data of LogList in the phone directory, then it added to the DeIeteList (deletion tabulation) of SyncList, and in LogList, delete corresponding data information.
Step 250, client Client transfers to server end Server to the concrete data content among the SyncList and the corresponding command;
Step 260, server end Server returns success or the status of fail sign indicating number to client Client each data;
Step 270, does the conditional code that client Client reception server end Server returns also judge that this conditional code is success status sign indicating number or status of fail sign indicating number? if the success status sign indicating number, then execution in step 280, if the status of fail sign indicating number, then execution in step 290;
Step 280, the information of the corresponding data of success status sign indicating number among the deletion SyncList, and change step 210;
Step 290 is not deleted object corresponding among the SyncList, that is, keep the information of the corresponding data of status of fail sign indicating number in SyncList, and change step 210.
In the above-mentioned explanation of Fig. 2, LogList is the log list that generates when reading the phone directory data when client Client initialization, and this table is corresponding one by one with the data in the phone directory, data such as the local unique identification of this table storage, Date.
The synchronous tabulation of SyncList generation when when client Client initialization the phone directory data that read being compared with LogList comprises three aspects:
If there are not the data in the phone directory among the LogList, then add the AddList of these data, and add among the LogList to SyncList;
If the Date of data is greater than the Date of data among the LogList in the phone directory, then adds the UpdateList of these data, and upgrade the Date among the LogList to SyncList;
If the data in the phone directory among the no LogList are then added the DeleteList of these data to SyncList, and delete corresponding data from LogList.
In Fig. 2, after this subsynchronous end, during down subsynchronous startup, execution in step 210,220, after 230 and 240, data except changing in the phone directory of last subsynchronous back among the SyncList, the data of the status of fail sign indicating number correspondence that the server end Server that receives in upward subsynchronous in addition returns, promptly add or upgrade or delete the data message of failure at server end Server, execution in step 250 more subsequently, so just can overcome existing synchronously in server end Server add or upgrade or deletion failure and incured loss through delay the renewal of local data and then the problem of bringing synchronizing quality to reduce.
The present invention is because of after the data that only relate to client and send are sent to server end, and server end returns the step of this data synchronization conditional code synchronously after these data, so, other flow process of omission among Fig. 2.
A kind of method of data synchronization that the present invention proposes, realized when last synchronously middle server end returns the status of fail sign indicating number that upgrades failure, deletion failure, interpolation failure, transmit the data of last modification after synchronously next time synchronously the time simultaneously and lastly server end takes place in synchronously and upgrade failure, deletion failure, add the object of failure, thereby improve synchronizing quality.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (5)

1, a kind of method of data synchronization, be applied to comprise client, the data synchronous system of server end, generate a log list when when described client initialization, reading the phone directory data, when comparing, the data in described phone directory data and the described log list generate a tabulation synchronously, described synchronous tabulation comprises adds tabulation, upgrade tabulation and deletion tabulation, described phone directory data comprise: local unique identification, revise the date, described log list comprises: local unique identification, revise the date, it is characterized in that, this method is judged the conditional code that described server end returns by described client, and when described conditional code is the success status sign indicating number, delete the information of the data of conditional code correspondence described in the described synchronous tabulation, the mode that keeps the information of the data of conditional code correspondence described in the described synchronous tabulation when described conditional code is the status of fail sign indicating number realizes data sync.
2, method of data synchronization according to claim 1 is characterized in that, this method specifically comprises:
Step 21, the user imports synchronous starting command and starts synchronously;
Step 22 reads the data in the described phone directory;
Step 23 compares and generates synchronous tabulation with described phone directory data that read and the data in the described log list;
Step 24, described client with the transfer of data in the described synchronous tabulation to described server end;
Step 25, described server end return state sign indicating number is to described client; And
Step 26, described client is judged described conditional code and is handled.
3, method of data synchronization according to claim 2 is characterized in that, in the described step 23, also comprises:
If the local unique identification of no described phone directory data then adds these data to described interpolation tabulation, log list in the described log list;
If the local unique identification of described phone directory data is arranged, the then more described modification date in the described log list;
If the data in the described phone directory in the no described log list are then added these data to described deletion tabulation, and are deleted corresponding data information in the described log list.
4, method of data synchronization according to claim 3 is characterized in that, in the step on described modification date, further comprises:
If the modification date in the described phone directory, is then added the modification date in the described phone directory to described renewal tabulation early than the modification date in the described log list, and upgrade the modification date in the described log list;
If the modification date in the described phone directory is identical with the modification date in the described log list, the data in the then more next phone directory.
According to claim 2,3 or 4 described method of data synchronization, it is characterized in that 5, in the described step 21, described user imports synchronous starting command by user interface.
CNB2006100111048A 2006-01-05 2006-01-05 Data synchronization method Expired - Fee Related CN100525208C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100111048A CN100525208C (en) 2006-01-05 2006-01-05 Data synchronization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100111048A CN100525208C (en) 2006-01-05 2006-01-05 Data synchronization method

Publications (2)

Publication Number Publication Date
CN1996871A CN1996871A (en) 2007-07-11
CN100525208C true CN100525208C (en) 2009-08-05

Family

ID=38251819

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100111048A Expired - Fee Related CN100525208C (en) 2006-01-05 2006-01-05 Data synchronization method

Country Status (1)

Country Link
CN (1) CN100525208C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101370032B (en) * 2008-09-09 2011-08-10 中兴通讯股份有限公司 Modification log maintenance method and apparatus for data synchronization
CN101771710B (en) * 2008-12-15 2012-08-29 华为终端有限公司 Method for optimizing return results of CBUS server and CBUS server
US20120323990A1 (en) * 2011-06-15 2012-12-20 Microsoft Corporation Efficient state reconciliation
US10768849B2 (en) 2017-03-29 2020-09-08 Amazon Technologies, Inc. Migration of information via storage devices
EP3603025B1 (en) * 2017-03-29 2023-01-25 Amazon Technologies, Inc. Migration of information via storage devices

Also Published As

Publication number Publication date
CN1996871A (en) 2007-07-11

Similar Documents

Publication Publication Date Title
CN110427385B (en) Block chain data updating method, related node and block chain
CN101179791A (en) Method of updating software edition of mobile terminal
WO2013178048A1 (en) Method and device for generating firmware over-the-air upgrade package
CN111142905B (en) OTA upgrading method, OTA server and OTA upgrading system
CN103841167A (en) User data synchronizing method and device
CN103118048A (en) Data synchronization method, server and terminal
CN101656789A (en) Method for managing application information of mobile phone and application manager
CN100525208C (en) Data synchronization method
CN103605798A (en) Method for directly operating file stored at cloud end
CN101702158A (en) Index file creation synchronized method and search system
CN1997173A (en) Implementation system and method for data synchronization of the mobile terminal
CN103476020A (en) Switching method and OTA intelligent card for over-the-air downloading service registering modes
CN107018189A (en) Migrate application data and receive the method and device of application data
CN102256241B (en) Method, server and intelligent card for acquiring bearer independent protocol (BIP) information of terminal
CN105007310A (en) Information synchronization method, device and system
CN101390410B (en) Icon transforming system, and service method for the same
CN102594874B (en) Synchronization processing method and device
CN101583204B (en) Method and system for realizing managing universal combined circuit card multiple application files
CN103327133B (en) A kind of geographical location information update method and device
CN100556192C (en) The method that information of mobile terminal reports automatically
US20060111147A1 (en) Sim card data transfer system and methods
CN110502574B (en) Cross-system information synchronization method, user equipment, storage medium and device
WO2011116616A1 (en) Method and device for backing up non-read short messages
CN102111487A (en) Method and device for realizing global system for mobile communications (GSM) terminal to access 3G universal subscriber identity module (USIM) card
CN104581695A (en) Mobile terminal configuration method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: LANGCHAO LEJIN DIGITAL MOBILE COMMUNICATION CO., L

Free format text: FORMER OWNER: LG ELECTRONICS (CHINA) R + D CENTER CO., LTD.

Effective date: 20120321

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100022 CHAOYANG, BEIJING TO: 264001 YANTAI, SHANDONG PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20120321

Address after: 264001 No. 228 Changjiang Road, Yantai economic and Technological Development Zone, Shandong, China

Patentee after: Langchao Lejin Digital Mobile Communication Co., Ltd.

Address before: 100022 Beijing city Chaoyang District Jianguomenwai Street No. 12 b Gemini building 18 layer tower

Patentee before: LG Electronic (China) Research and Development Center Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090805

Termination date: 20170105