CN103905561A - Method and system for synchronizing data - Google Patents
Method and system for synchronizing data Download PDFInfo
- Publication number
- CN103905561A CN103905561A CN201410148392.6A CN201410148392A CN103905561A CN 103905561 A CN103905561 A CN 103905561A CN 201410148392 A CN201410148392 A CN 201410148392A CN 103905561 A CN103905561 A CN 103905561A
- Authority
- CN
- China
- Prior art keywords
- data content
- mark
- intelligent watch
- lastest imformation
- mobile phone
- 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.)
- Pending
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to the field of the communication electronic technique, in particular to a method and a system for synchronizing data. The method and the system for synchronizing data are used for solving the problem that redundant data are synchronized and speed is low when data are synchronized between a mobile phone and an intelligent watch in the prior art. The method comprises the steps that update information is transmitted to the intelligent watch when the fact that data contents in a mobile phone side update is confirmed; the update information comprises information associated with the updated data contents; when the intelligent watch receives the update information, update operation is executed according to the update information. Therefore, the method changes the operation mode that all the data information is synchronized in the prior art. By means of the method, only do the changed data contents update, the data contents needing updating are decreased, and therefore, synchronous speed is increased.
Description
Technical field
The present invention relates to communications electronics technical field, relate in particular to a kind of method and system of synchrodata.
Background technology
Along with constantly improving and development of android technology, android intelligent watch is taken advantage of a situation and is given birth to.What in this simultaneously, the data efficient in intelligent watch user mobile phone was complete be shown to becomes an important and difficult task in intelligent watch.With regard to existing market, most of intelligent watchs are synchronous all data messages in a synchrodata generally, for example name of contact person phone, and short message content etc., and show.
While carrying out a synchrodata at present between intelligent watch and mobile phone, need all data are all synchronous, if comprised a large amount of data in mobile phone, if and before synchronous, be only that wherein change has occurred a part of data, when synchronous, be also that all data are all synchronous, so once transmit total data and both wasted system resource, do not meet again user for the more and more higher requirement of speed.
Summary of the invention
The embodiment of the present invention provides a kind of method and system of synchrodata, synchronizing redundant data when solving between prior art mobile phone and intelligent watch synchrodata, and problem under speed.
A method for synchrodata, described method comprises:
In the time that the data content in definite mobile phone terminal occurs to upgrade, send lastest imformation to intelligent watch; In described lastest imformation, comprise the information relevant to the data content upgrading;
In the time that described intelligent watch receives described lastest imformation, carry out and upgrade operation according to described lastest imformation.
A system for synchrodata, described system comprises:
Mobile phone and intelligent watch;
Described mobile phone comprises judge module and sending module; Whether described judge module, upgrade for the data content that judges mobile phone terminal; Described sending module, for determine when described judge module mobile phone terminal data content occur upgrade time, to intelligent watch send lastest imformation; In described lastest imformation, comprise the information relevant to the data content upgrading;
Described intelligent watch comprises receiver module and operational module; Described receiver module is used for, and receives described lastest imformation; Described operational module is used for, and carries out and upgrades operation according to described lastest imformation.
Visible, the method and system that use the present embodiment to provide, in the time the synchronization of data content in mobile phone need to being arrived to intelligent watch, only the data content of renewal and relevant information thereof need be sent to intelligent watch, the data that this intelligent watch will be preserved self according to the lastest imformation receiving are upgraded operation, visible the method has changed in prior art and has all carried out synchronous mode of operation for all data messages, the present invention only upgrades the data content of change, synchronous data content is reduced, also therefore improved synchronizing speed.
Accompanying drawing explanation
In order to be illustrated more clearly in the present invention or technical scheme of the prior art, will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below.
The method flow diagram of a kind of synchrodata that Fig. 1 provides for the embodiment of the present invention;
The method flow diagram of detailed a kind of synchrodata that Fig. 2 provides for the embodiment of the present invention;
The system construction drawing of a kind of synchrodata that Fig. 3 provides for the embodiment of the present invention.
Embodiment
In order to make those skilled in the art person understand better the technical scheme in the embodiment of the present invention, and above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with accompanying drawing, technical scheme in the present invention is described in further detail.
The method and system that use the present embodiment to provide, in the time the synchronization of data content in mobile phone need to being arrived to intelligent watch, only the data content of renewal and relevant information thereof need be sent to intelligent watch, the data that this intelligent watch will be preserved self according to the lastest imformation receiving are upgraded operation, visible the method has changed in prior art and has all carried out synchronous mode of operation for all data messages, the present invention only upgrades the data content of change, synchronous data content is reduced, also therefore improved synchronizing speed.As shown in Figure 1, concrete steps are as follows:
Data content in described definite mobile phone terminal occurs to upgrade and comprises:
Judge whether the content in the source database of mobile phone terminal is upgraded;
Described to intelligent watch send lastest imformation comprise:
If upgraded, be upgrade data content add update mark, using described update mark and more fresh content send to described intelligent watch as described lastest imformation.
The described data content for renewal adds update mark and comprises:
When having increased in described source database after new data content, for adding, the data content increasing increases mark, using described increase mark as update mark, using the data content of described increase as the data content upgrading;
Or, when having deleted after data content in described source database, for the data content of deleting adds delete flag, using described delete flag as update mark;
Or, when having replaced after data content in described source database, replace mark for the data content of replacing adds; Using described replacement mark as update mark, using the data content of described replacement as the data content upgrading.
Using described update mark and more fresh content send to described intelligent watch to comprise as described lastest imformation:
In the time that described intelligent watch receives the data content that increases mark and increase, the data content of described increase is added in the target database of self preserving;
In the time that described intelligent watch receives described delete flag, in described target database, search the data content corresponding with described delete flag, and delete;
In the time that described intelligent watch receives the data content of described replacement mark and described replacement, in described target database, search the data content corresponding with described replacement mark, and use the data content of replacing to carry out replacement operation.
Describe with specific embodiment below:
The embodiment of the present invention provides a kind of method of synchrodata, the method is synchronizeed for data content between mobile phone and intelligent watch, and the data content after only synchronously deleting, increase or replacing, the method has greatly reduced the data volume when synchronous, also therefore improved synchronous speed, the method can be used for the information such as synchronous communication record, note, mail, and as shown in Figure 2, concrete steps are as follows:
Step 1, in the time that the data content in definite mobile phone terminal occurs to upgrade, sends lastest imformation to intelligent watch; In described lastest imformation, comprise the information relevant to the data content upgrading; This step comprises following content:
In source database, comprise the relevant informations such as address list, note, mail, can use the mode of monitoring to judge whether the content in source database is upgraded;
In step 21, use following mode to judge whether the content in source database is upgraded:
Mobile phone terminal has been preserved intermediate database in advance, has preserved and data message consistent in source database in mobile phone in this intermediate database; In order conveniently to introduce in the present embodiment take synchronous short message content as example, now in intermediate database, should preserve following content:
For example as: read, errorcode, type, mid_key etc., wherein, mid_key field is major key, each major key has and unique corresponding ID value in source database, and ID be used for unique sign with bar short message content;
ID in major key and described source database that use intermediate database comprises contrasts one by one;
If there be the ID corresponding with described major key in described source database, judge that whether the corresponding data content of described major key is consistent with the corresponding data content of described ID, if inconsistent, determine it is to have replaced new data content;
When determining in source database and increased after new data content in step 21, for adding, the data content increasing increases mark, will increase mark as update mark, using the data content increasing as the data content upgrading; Then perform step 23;
Or, when having deleted after data content in described source database, for the data content of deleting adds delete flag, using described delete flag as update mark; Then perform step 24;
Or, when having replaced after data content in described source database, replace mark for the data content of replacing adds; Using described replacement mark as update mark, using the data content of described replacement as the data content upgrading.Then perform step 25;
After completing steps 21 and step 22, using update mark and more fresh content send to described intelligent watch as lastest imformation, specifically comprise:
Concrete, the present embodiment can also carry out the synchronous of data message in the following manner:
Judging after the data content that all needs add, delete or replace, according to the content of judging, intermediate database is modified, and amended intermediate database is sent to intelligent watch; The target database that intelligent watch uses intermediate database to preserve self contrasts, and the operation that its data storehouse is completed interpolation, deletes or replace.
The concrete embodiment of the present invention can be used wireless or wired mode to carry out data transmission between intelligent watch and mobile phone.
As shown in Figure 3, the embodiment of the present invention also provides a kind of system of synchrodata, and described system comprises:
Described mobile phone 35 comprises judge module 37 and sending module 40; Whether described judge module 37, upgrade for the data content that judges mobile phone 35 ends; Described sending module 40, in the time that described judge module 37 determines that the data content of mobile phone 35 ends occurs to upgrade, sends lastest imformation to intelligent watch 31; In described lastest imformation, comprise the information relevant to the data content upgrading;
Described intelligent watch 31 comprises receiver module 32 and operational module 33; Described receiver module 32 for, receive described lastest imformation; Described operational module 33 for, carry out and upgrade operation according to described lastest imformation.
Described judge module 37 specifically for:
Judge whether the content in the source database 38 of mobile phone 35 ends is upgraded;
In described mobile phone 35, also comprise and add module 39:
Described interpolation module 39, if upgraded for the content of described judge module 37 definite described source databases 38, is that the data content upgrading adds update mark;
Described sending module 40 specifically for, using described update mark and more fresh content send to described intelligent watch 31 as described lastest imformation.
In described mobile phone 35, also comprise intermediate database 36; Described intermediate database 36 comprise with described source database 38 in ID major key one to one;
Described interpolation module 39 specifically for:
When having increased after new data content in described source database 38, for adding, the data content increasing increases mark, using described increase mark as update mark, using the data content of described increase as the data content upgrading;
Or, when having deleted after data content in described source database 38, for the data content of deleting adds delete flag, using described delete flag as update mark;
Or, when having replaced after data content in described source database 38, replace mark for the data content of replacing adds; Using described replacement mark as update mark, using the data content of described replacement as the data content upgrading.
Described sending module 40 specifically for:
In the time that described intelligent watch 31 receives the data content that increases mark and increase, the data content of described increase is added in the target database 34 of self preserving;
In the time that described intelligent watch 31 receives described delete flag, in described target database 34, search the data content corresponding with described delete flag, and delete;
In the time that described intelligent watch 31 receives the data content of described replacement mark and described replacement, in described target database 34, search the data content corresponding with described replacement mark, and use the data content of replacing to carry out replacement operation.
In sum, beneficial effect:
The method and system that use the present embodiment to provide, in the time the synchronization of data content in mobile phone 35 need to being arrived to intelligent watch 31, only the data content of renewal and relevant information thereof need be sent to intelligent watch 31, the data that this intelligent watch 31 will be preserved self according to the lastest imformation receiving are upgraded operation, visible the method has changed in prior art and has all carried out synchronous mode of operation for all data messages, the present invention only upgrades the data content of change, synchronous data content is reduced, also therefore improved synchronizing speed.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.
Claims (8)
1. a method for synchrodata, is characterized in that, described method comprises:
In the time that the data content in definite mobile phone terminal occurs to upgrade, send lastest imformation to intelligent watch; In described lastest imformation, comprise the information relevant to the data content upgrading;
In the time that described intelligent watch receives described lastest imformation, carry out and upgrade operation according to described lastest imformation.
2. the method for claim 1, is characterized in that, the data content in described definite mobile phone terminal occurs to upgrade and comprises:
Judge whether the content in the source database of mobile phone terminal is upgraded;
Described to intelligent watch send lastest imformation comprise:
If upgraded, be upgrade data content add update mark, using described update mark and more fresh content send to described intelligent watch as described lastest imformation.
3. method as claimed in claim 2, is characterized in that, the described data content for renewal adds update mark and comprises:
When having increased in described source database after new data content, for adding, the data content increasing increases mark, using described increase mark as update mark, using the data content of described increase as the data content upgrading;
Or, when having deleted after data content in described source database, for the data content of deleting adds delete flag, using described delete flag as update mark;
Or, when having replaced after data content in described source database, replace mark for the data content of replacing adds; Using described replacement mark as update mark, using the data content of described replacement as the data content upgrading.
4. method as claimed in claim 3, is characterized in that, using described update mark and more fresh content send to described intelligent watch to comprise as described lastest imformation:
In the time that described intelligent watch receives the data content that increases mark and increase, the data content of described increase is added in the target database of self preserving;
In the time that described intelligent watch receives described delete flag, in described target database, search the data content corresponding with described delete flag, and delete;
In the time that described intelligent watch receives the data content of described replacement mark and described replacement, in described target database, search the data content corresponding with described replacement mark, and use the data content of replacing to carry out replacement operation.
5. a system for synchrodata, is characterized in that, described system comprises:
Mobile phone and intelligent watch;
Described mobile phone comprises judge module and sending module; Whether described judge module, upgrade for the data content that judges mobile phone terminal; Described sending module, for determine when described judge module mobile phone terminal data content occur upgrade time, to intelligent watch send lastest imformation; In described lastest imformation, comprise the information relevant to the data content upgrading;
Described intelligent watch comprises receiver module and operational module; Described receiver module is used for, and receives described lastest imformation; Described operational module is used for, and carries out and upgrades operation according to described lastest imformation.
6. system as claimed in claim 5, is characterized in that, described judge module specifically for:
Judge whether the content in the source database of mobile phone terminal is upgraded;
In described mobile phone, also comprise interpolation module:
Described interpolation module, if determine that for described judge module the content of described source database upgrades, is that the data content upgrading adds update mark;
Described sending module specifically for, using described update mark and more fresh content send to described intelligent watch as described lastest imformation.
7. system as claimed in claim 6, is characterized in that, described interpolation module specifically for:
When having increased in described source database after new data content, for adding, the data content increasing increases mark, using described increase mark as update mark, using the data content of described increase as the data content upgrading;
Or, when having deleted after data content in described source database, for the data content of deleting adds delete flag, using described delete flag as update mark;
Or, when having replaced after data content in described source database, replace mark for the data content of replacing adds; Using described replacement mark as update mark, using the data content of described replacement as the data content upgrading.
8. system as claimed in claim 7, is characterized in that, described sending module specifically for:
In the time that described intelligent watch receives the data content that increases mark and increase, the data content of described increase is added in the target database of self preserving;
In the time that described intelligent watch receives described delete flag, in described target database, search the data content corresponding with described delete flag, and delete;
In the time that described intelligent watch receives the data content of described replacement mark and described replacement, in described target database, search the data content corresponding with described replacement mark, and use the data content of replacing to carry out replacement operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410148392.6A CN103905561A (en) | 2014-04-14 | 2014-04-14 | Method and system for synchronizing data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410148392.6A CN103905561A (en) | 2014-04-14 | 2014-04-14 | Method and system for synchronizing data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103905561A true CN103905561A (en) | 2014-07-02 |
Family
ID=50996715
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410148392.6A Pending CN103905561A (en) | 2014-04-14 | 2014-04-14 | Method and system for synchronizing data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103905561A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104796458A (en) * | 2015-03-20 | 2015-07-22 | 四川长虹电器股份有限公司 | Information fusion method for Android system |
WO2016090775A1 (en) * | 2014-12-09 | 2016-06-16 | 捷开通讯(深圳)有限公司 | Synchronous operation method and system for short message data |
CN105824916A (en) * | 2016-03-16 | 2016-08-03 | 上海携程商务有限公司 | System and method for synchronizing data |
CN106027776A (en) * | 2016-05-11 | 2016-10-12 | 广西科技大学 | Smart watch matched with mobile phone |
CN108900497A (en) * | 2018-06-25 | 2018-11-27 | 江苏欧软信息科技有限公司 | Method of data synchronization and system between a kind of heterogeneous system |
CN112463786A (en) * | 2020-12-10 | 2021-03-09 | 上海携宁计算机科技股份有限公司 | Data synchronization method, system, server and storage medium |
US11281334B2 (en) | 2018-11-30 | 2022-03-22 | Samsung Electronics Co., Ltd. | Interaction method, system, and device for information |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101459503A (en) * | 2007-12-12 | 2009-06-17 | 华为技术有限公司 | Method and device for implementing data synchronization |
KR20100058833A (en) * | 2008-11-25 | 2010-06-04 | 삼성전자주식회사 | Interest mining based on user's behavior sensible by mobile device |
US20110010699A1 (en) * | 2009-07-09 | 2011-01-13 | Simon Cooper | Methods and Systems for Upgrade and Synchronization of Securely Installed Applications on a Computing Device |
US20110246417A1 (en) * | 2010-04-01 | 2011-10-06 | Salesforce.Com, Inc. | System, method and computer program product for synchronizing entities within a system |
CN103135440A (en) * | 2013-02-25 | 2013-06-05 | 无锡威峰科技有限公司 | Bluetooth smart watch |
CN203300028U (en) * | 2013-05-27 | 2013-11-20 | 东华大学 | Industrial monitoring device |
CN103476024A (en) * | 2013-08-19 | 2013-12-25 | 东莞宇龙通信科技有限公司 | Smart watch and communication management method thereof |
CN103472914A (en) * | 2013-08-30 | 2013-12-25 | 浙江大学 | Method for quickly operating microblogs on basis of intelligent watch |
CN103491140A (en) * | 2013-09-03 | 2014-01-01 | 深圳市奋达科技股份有限公司 | Method and system enabling intelligent watch to synchronously display content of intelligent mobile phone |
-
2014
- 2014-04-14 CN CN201410148392.6A patent/CN103905561A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101459503A (en) * | 2007-12-12 | 2009-06-17 | 华为技术有限公司 | Method and device for implementing data synchronization |
KR20100058833A (en) * | 2008-11-25 | 2010-06-04 | 삼성전자주식회사 | Interest mining based on user's behavior sensible by mobile device |
US20110010699A1 (en) * | 2009-07-09 | 2011-01-13 | Simon Cooper | Methods and Systems for Upgrade and Synchronization of Securely Installed Applications on a Computing Device |
US20110246417A1 (en) * | 2010-04-01 | 2011-10-06 | Salesforce.Com, Inc. | System, method and computer program product for synchronizing entities within a system |
CN103135440A (en) * | 2013-02-25 | 2013-06-05 | 无锡威峰科技有限公司 | Bluetooth smart watch |
CN203300028U (en) * | 2013-05-27 | 2013-11-20 | 东华大学 | Industrial monitoring device |
CN103476024A (en) * | 2013-08-19 | 2013-12-25 | 东莞宇龙通信科技有限公司 | Smart watch and communication management method thereof |
CN103472914A (en) * | 2013-08-30 | 2013-12-25 | 浙江大学 | Method for quickly operating microblogs on basis of intelligent watch |
CN103491140A (en) * | 2013-09-03 | 2014-01-01 | 深圳市奋达科技股份有限公司 | Method and system enabling intelligent watch to synchronously display content of intelligent mobile phone |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016090775A1 (en) * | 2014-12-09 | 2016-06-16 | 捷开通讯(深圳)有限公司 | Synchronous operation method and system for short message data |
CN104796458A (en) * | 2015-03-20 | 2015-07-22 | 四川长虹电器股份有限公司 | Information fusion method for Android system |
CN105824916A (en) * | 2016-03-16 | 2016-08-03 | 上海携程商务有限公司 | System and method for synchronizing data |
CN105824916B (en) * | 2016-03-16 | 2019-05-31 | 上海携程商务有限公司 | Data synchronous system and method |
CN106027776A (en) * | 2016-05-11 | 2016-10-12 | 广西科技大学 | Smart watch matched with mobile phone |
CN108900497A (en) * | 2018-06-25 | 2018-11-27 | 江苏欧软信息科技有限公司 | Method of data synchronization and system between a kind of heterogeneous system |
US11281334B2 (en) | 2018-11-30 | 2022-03-22 | Samsung Electronics Co., Ltd. | Interaction method, system, and device for information |
CN112463786A (en) * | 2020-12-10 | 2021-03-09 | 上海携宁计算机科技股份有限公司 | Data synchronization method, system, server and storage medium |
CN112463786B (en) * | 2020-12-10 | 2021-08-13 | 上海携宁计算机科技股份有限公司 | Data synchronization method, system, server and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103905561A (en) | Method and system for synchronizing data | |
CN103402194B (en) | A kind of method recommending software when software upgrading and realize the system of the method | |
CN103297459A (en) | Synchronizing system of application configuration information, access server, clients and synchronizing method of application configuration information | |
US8718683B2 (en) | Apparatus for acquiring content through wireless communication | |
RU2015148138A (en) | METHOD AND DEVICE OF WIRELESS COMMUNICATION INTENDED FOR PROVIDING COMMUNICATION OF TYPE "DEVICE-C-DEVICE" | |
CN104885071A (en) | Multiple device intelligent language model synchronization | |
CN103699408A (en) | Software updating method and equipment | |
EP2939200B1 (en) | Method and apparatus for secure advertising | |
CN111369247A (en) | Cross-bank transaction data processing method and device | |
CN104283926A (en) | Data synchronization method, device and server | |
KR20130123482A (en) | Time stamp management method for data synchronizing and terminal thereof | |
CN104301428A (en) | Data synchronization method and server | |
CN104253872A (en) | Synchronous information updating method, system and terminal | |
US20170169356A1 (en) | Method, apparatus and computer program product for collaborative mobility mapping | |
CN106383709B (en) | Method and device for displaying progress in data migration | |
CN111880872A (en) | Method, terminal device, server and system for managing application program APP | |
CN114153856A (en) | Host data double-writing method and device | |
CN104320162A (en) | Contact synchronization method, smart mobile terminal and mobile terminal | |
CN104750774A (en) | Database upgrading method and device | |
CN104023073A (en) | Resource pushing method, system and device | |
CN114095876A (en) | Broadcast data processing method and device, storage medium and electronic device | |
CN105577511A (en) | Update noticing method and device of user account | |
CN101833585A (en) | Database server operation control system, method and device | |
CN104144393A (en) | Memo information reminding method and device | |
CN113434525B (en) | Cache data updating method and device, storage medium and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140702 |
|
WD01 | Invention patent application deemed withdrawn after publication |