CN102779127A - Terminal device and file synchronization method - Google Patents

Terminal device and file synchronization method Download PDF

Info

Publication number
CN102779127A
CN102779127A CN2011101212297A CN201110121229A CN102779127A CN 102779127 A CN102779127 A CN 102779127A CN 2011101212297 A CN2011101212297 A CN 2011101212297A CN 201110121229 A CN201110121229 A CN 201110121229A CN 102779127 A CN102779127 A CN 102779127A
Authority
CN
China
Prior art keywords
end device
those
latest
record
pairing
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
Application number
CN2011101212297A
Other languages
Chinese (zh)
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.)
Acer Inc
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to CN2011101212297A priority Critical patent/CN102779127A/en
Publication of CN102779127A publication Critical patent/CN102779127A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention relates to a file synchronization method and a terminal device. The file synchronization method is suitable for a plurality of terminal devices to edit one file jointly, wherein each terminal device has one latest update record, the latest update record contains a plurality of record fields respectively corresponding to the terminal devices, and each record field records a latest version sequence number and a latest file revised content corresponding to the latest version sequence number. The method comprises the steps of establishing wireless communication between the terminal devices, carrying out version detection so as to mutually detect the latest version sequence numbers. Data synchronization is carried out according to the detection result, and then the files are revised jointly so as to generate at least one jointly revised content. At least one terminal device is disconnected with other terminal devices, at the same time the jointly revised content is saved in the record fields to become the latest field revised content, and the latest version sequence number is updated.

Description

End device and file synchronisation method
Technical field
The present invention relates to a kind of electronic installation and its method of operating, and be particularly related to a kind of end device and file synchronisation method.
Background technology
Along with the exploitation of all kinds of electronic devices and the progress of its various functions that are equipped with, people are in life more and more inseparable with electronic installation.Electronic installation commonly used; For example PC, mobile phone, personal digital assistant (Personal Digital Assistant; PDA) etc. the communication interface all is equipped with, usually, for the user through carrying out information or data transfer between this communication interface and the end device.
Begin and to set up the communication link between user and the end device through the communication interface in the information between the various electronic installation or data transfer step 1.In the process that communication link is set up; The user is except must manually clicking required foundation the object that communication connects on the near-end electronic installation; Also must be on the near-end electronic installation manual incoming traffic password, for when setting up communication link, doing the line authentication between near-end electronic installation and the end device or pairing (pairing) is used.Yet; When setting up communication link and common editor above plural end device each other and revising identical file; How to let a plurality of end devices each other communication connect and revise identical file; And when a plurality of end devices break the connection of communication again, reach of modification or the content of edit synchronization of a plurality of end devices to identical file, become the major subjects of present technical development.
Summary of the invention
The present invention provides a kind of file synchronisation method, can effectively write down the data sync progress of all end devices.
The present invention provides a kind of end device, can with a plurality of end devices each other communication connect and common editor with revise identical file.
The present invention proposes a kind of file synchronisation method; Be applicable to the common editor of several end devices one file; Wherein each those end device has a latest update record; This latest update record comprises several record fields of respectively corresponding those end devices, and each those record field writes down a latest edition sequence number and the pairing latest document of this latest edition sequence number is revised content, and this method comprises: set up the wireless telecommunications line between those end devices.Those end devices carry out a version checking, in those latest updates record with mutual those end devices of inspection, those end devices distinguish in those record fields of correspondence this latest edition sequence number of writing down respectively.Check result according to this version checking; Those end devices carry out a data sync; Wherein each those end device carries out this data sync and comprises: in those latest updates records; When those latest edition sequence numbers in those record fields that this end device corresponded to are identical, then do not change those identical latest edition sequence numbers.In those latest update records; Those latest edition sequence numbers in those record fields that this end device corresponded to are not simultaneously; Then with in pairing those record fields of this end device in this latest document modification content synchronization to other-end device in the pairing record field of this end device in this latest update record of this end device; This latest document to upgrade in those record fields is revised content; And will be updated in this latest update record that is same as this end device this latest edition sequence number that pairing this record field of this end device is write down to those latest edition sequence numbers in should those record fields of end device.Those end devices, via this wireless telecommunications line, together modify this document is to produce at least one together modify content.Those end devices are those end devices broken strings of one of them and other at least; Those end devices store respectively in those record fields of these together modify content to those end devices simultaneously; Revise content and this latest edition sequence number in those record fields of Refreshing Every and become latest document.
In one embodiment of this invention; Above-mentioned file synchronisation method; Wherein each those end device also has a historical record, revises content in order to this latest edition sequence number and pairing this latest document of this latest edition sequence number of writing down before each those record field upgrades.
In one embodiment of this invention; Above-mentioned file synchronisation method; Wherein each those end device carries out this data sync and comprises: the off-line that this end device was made this document before this wireless telecommunications line revise be passed to via this wireless telecommunications line other with each those end device of this wireless telecommunications line in pairing this record field of this end device, revise content to upgrade this latest document.
In one embodiment of this invention; Above-mentioned file synchronisation method; Wherein each those end device carries out in this data sync; When those latest edition sequence numbers in those record fields that this end device corresponded to are identical, comprise that also this end device is passed to other with pairing this record field of this end device in each those end device of this wireless telecommunications line with this off-line modification via this wireless telecommunications line, revises content to upgrade this latest document.
In one embodiment of this invention; Above-mentioned file synchronisation method; Wherein each those end device carries out in this data sync; Those latest edition sequence numbers in those record fields that this end device corresponded to comprise that also this end device is passed to other with pairing this record field of this end device in each those end device of this wireless telecommunications line with this off-line modification via this wireless telecommunications line, revises content to upgrade this latest document not simultaneously.
In one embodiment of this invention; Above-mentioned file synchronisation method; Wherein each those end device carries out in this data sync; Those latest edition sequence numbers in those record fields that this end device corresponded to are not simultaneously; Also comprise in this latest update record of this end device; Not with at least one broken string end device of this end device via this wireless telecommunications line; This latest document in pairing this record field of this broken string end device is revised content and is same as this latest document modification content in pairing this record field of this end device, and then this latest document in pairing this record field of this end device is revised pairing those record fields whiles of this end device in content synchronization to other those end devices, to other those end devices, is somebody's turn to do pairing those record fields of broken string end device synchronously.
In one embodiment of this invention, above-mentioned file synchronisation method, wherein this wireless telecommunications line comprises a line of being set up based on the IEEE802.15 standard.
The present invention proposes a kind of end device in addition, and this end device comprises: a communication interface, a Storage Media and a processor.Storage Media; Storing a computer-readable writes a program and a latest update record; Wherein this latest update record comprises respectively should end device and several record fields that link other several end devices of this end device via this communication interface, and each those record field writes down a latest edition sequence number and the pairing latest document of this latest edition sequence number of a file and revises content.Processor; Being written into this computer-readable from this Storage Media writes a program; To carry out several steps that this computer-readable is write a program and comprised; Those steps comprise: carry out a version checking, in each latest update record with this end device of mutual inspection and other those end devices that link this end device via this communication interface, those end devices distinguish in those record fields of correspondence this latest edition sequence number of writing down respectively.Check result according to this version checking; Carry out a data sync; Wherein this data sync comprises: in those latest update records, when those latest edition sequence numbers in those record fields that this end device corresponded to are identical, then do not change those identical latest edition sequence numbers.In those latest update records; Those latest edition sequence numbers in those record fields that this end device corresponded to are not simultaneously; Then with in pairing those record fields of this end device in this latest document modification content synchronization to other-end device in the pairing record field of this end device in this latest update record of this end device; This latest document to upgrade in those record fields is revised content; And will be updated in this latest update record that is same as this end device this latest edition sequence number that pairing this record field of this end device is write down to those latest edition sequence numbers in should those record fields of end device.Via this communication interface, this end device and other those end device together modify this document that link this end device via this communication interface are to produce at least one together modify content.When this end device breaks with other those end devices that link this end device via this communication interface; This end device stores this together modify content to those record fields; Revise content and this latest edition sequence number in those record fields of Refreshing Every and become latest document.
In one embodiment of this invention, above-mentioned end device, wherein this Storage Media also has a historical record, revises content in order to this latest edition sequence number and pairing this latest document of this latest edition sequence number of writing down before each those record field upgrades.
In one embodiment of this invention; Above-mentioned end device; Wherein this data sync also comprises: this end device is linked to before other those end devices via this communication interface; The off-line modification that this document is made is passed to other via pairing this record field of this end device in each other those end device of this communication interface line via this communication interface, revises content to upgrade this latest document.
In one embodiment of this invention; Above-mentioned end device; Wherein in this data sync; When those latest edition sequence numbers in those record fields that this end device corresponded to are identical, comprise that also this end device is passed to other with pairing this record field of this end device in each other those end device of this communication interface line with this off-line modification via this communication interface line, revises content to upgrade this latest document.
In one embodiment of this invention; Above-mentioned end device; Wherein in this data sync; Those latest edition sequence numbers in those record fields that this end device corresponded to comprise that also this end device is passed to other with pairing this record field of this end device in each other those end device of this communication interface line with this off-line modification via this communication interface, revises content to upgrade this latest document not simultaneously.
In one embodiment of this invention; Above-mentioned end device; Wherein in this data sync; Those latest edition sequence numbers in those record fields that this end device corresponded to are not simultaneously; Also comprise in this latest update record of this end device; Not with at least one broken string end device of this end device via this communication interface line; This latest document in pairing this record field of this broken string end device is revised content and is same as this latest document modification content in pairing this record field of this end device, and then this latest document in pairing this record field of this end device is revised content synchronization to via pairing those record fields of this end device in other those end devices of this communication section connection simultaneously, to other those end devices, is somebody's turn to do pairing those record fields of broken string end device synchronously.
In one embodiment of this invention, above-mentioned end device, wherein this communication interface comprises a wireless telecommunications interface of setting up line based on the IEEE802.15 standard.
Based on above-mentioned, has a latest update record among the present invention in each end device, with latest edition sequence number and the pairing latest document modification of the latest edition sequence number content before broken string last time of indivedual terminal device corresponding of record institute respectively.Effectively write down the data sync progress between each end device through the latest update record; Therefore when any two end device radio connectings at least; The latest edition sequence number that is write down in the record field via inspection other latest update record; Promptly know end device each other for the editor of identical file or modification degree, data sync progress, and need synchronous file modification content mutually.Therefore any two end devices again after the radio connecting at least, distinctly accent begins synchronously just need not to repeat synchronously the latest document modification content of synchronous mistake each other for the editor or the modification degree of identical file.
For letting the above-mentioned feature and advantage of the present invention can be more obviously understandable, hereinafter is special lifts embodiment, and conjunction with figs. elaborates as follows.
Description of drawings
Figure 1A is a kind of file synchronisation method general flow chart according to one embodiment of the invention.
Figure 1B is the general flow chart according to data sync step in a kind of file synchronisation method of one embodiment of the invention.
Fig. 2 be according to one embodiment of the invention a kind of file synchronisation method simplified schematic diagram.
Fig. 3 is the historical record simplified schematic diagram according to an end device of one embodiment of the invention.
Fig. 4 is the simplified schematic diagram according to a kind of end device of one embodiment of the invention.
Reference numeral:
S101~S121: method flow step
S501~S511: method flow step
2a~2h: method flow step
A, B, C, D: end device
202a, 202b, 202c, 202d: latest update record
204Aa, 204Ab, 204Ac, 204Ad, 204Ba, 204Bb, 204Bc, 204Bd, 204Ca, 204Cb, 204Cc, 204Cd, 204Da, 204Db, 204Dc, 204Dd: record field
A1~A2, B1~B4, C1~C4, D1~D3: latest edition sequence number
301,303: historical record
400: end device
402: the communication interface
404: Storage Media
406: processor
Embodiment
Figure 1A is a kind of file synchronisation method general flow chart according to one embodiment of the invention.Fig. 2 be according to one embodiment of the invention a kind of file synchronisation method simplified schematic diagram.Please with reference to Figure 1A, the file synchronisation method of present embodiment is applicable to the common editor of several end devices one file.This file for example is pure words shelves, audio/video file or various multimedia file.In addition, end device for example is a portable apparatus, comprises mobile phone, personal digital assistant, notebook computer or panel computer.In addition, end device also can be a desktop computer.More particularly, end device can be any electronic installation with wireless communication function.
In addition; Each end device has a latest update record; And the latest update record comprises several record fields of counterpart terminal device respectively, and a latest edition sequence number and the pairing latest document of latest edition sequence number of each record field record institute editing files are revised content.
Please, for example, carry out the file synchronisation method of the above embodiment of the present invention with end device A, B, C and D with reference to Fig. 2.Show above-mentioned four end devices line and the latest update recording status of totally eight steps (comprising step 2a, 2b, 2c, 2d, 2e, 2f, 2g and 2h) that breaks each other among Fig. 2.In addition, end device A, B, C and D all have latest update record (202a, 202b, 202c and 202d) individually.With embodiment shown in Figure 2 is example, and each latest update record comprises four record fields, corresponds to end device A, B, C and D respectively.The record field 204Ad that the record of the latest update of end device A just 202a comprises the record field 204Aa that corresponds to end device A, the record field 204Ab that corresponds to end device B, the record field 204Ac that corresponds to end device C and corresponds to end device D.The record field 204Bd that the latest update record 202b of end device B comprises the record field 204Ba that corresponds to end device A, the record field 204Bb that corresponds to end device B, the record field 204Bc that corresponds to end device C and corresponds to end device D.The record field 204Cd that the latest update record 202c of end device C comprises the record field 204Ca that corresponds to end device A, the record field 204Cb that corresponds to end device B, the record field 204Cc that corresponds to end device C and corresponds to end device D.The record field 204Dd that the latest update record 202d of end device D comprises the record field 204Da that corresponds to end device A, the record field 204Db that corresponds to end device B, the record field 204Dc that corresponds to end device C and corresponds to end device D.
Record field 204Aa, 204Ba, 204Ca and 204Da that the latest update record (202a, 202b, 202c and 202d) of end device A, B, C and D corresponds to end device A respectively record latest edition sequence number and the pairing latest document modification of the latest edition sequence number content that is produced about end device A editing files respectively.Same, record field 204Ab, 204Bb, 204Cb and 204Db that the latest update record (202a, 202b, 202c and 202d) of end device A, B, C and D corresponds to end device B respectively record latest edition sequence number and the pairing latest document modification of the latest edition sequence number content that is produced about end device B editing files respectively.And the latest update of end device A, B, C and D record (202a, 202b, 202c and 202d) corresponds to record field 204Ac, 204Bc, 204Cc and the 204Dc of end device C respectively and records latest edition sequence number and the pairing latest document modification of the latest edition sequence number content that is produced about end device C editing files respectively.In addition, the latest update of end device A, B, C and D record (202a, 202b, 202c and 202d) the record field 204Ad, 204Bd, 204Cd and the 204Dd that correspond to end device D respectively records latest edition sequence number and the pairing latest document modification of the latest edition sequence number content that is produced about end device D editing files respectively.
Then, please with reference to Figure 1A, in step S101, set up the wireless telecommunications line between the end device.It should be noted that; The wireless telecommunications line according to the classification of communication network kenel, can comprise radio individual networking line (Wireless Personal Area Network; WPAN) or the Wireless LAN line (Wireless Local Area Network, WLAN).Wherein, radio individual networking line for example is based on the IEEE802.15 standard and sets up line, comprises the radio connecting (blue bud pairing) based on blue bud standard.
Afterwards, in step S105, end device carries out a version checking, in the latest update record each other with mutual inspection end device, end device distinguish in the record field of correspondence the latest edition sequence number that writes down respectively.
Continue it, in step S111, according to a check result of version checking, the end device of all mutual radio connectings carries out a data sync.
Continue it, in step S115, the end device of wireless telecommunications line, the together modify file is to produce at least one together modify content.This together modify content for example is editor's fragment, comprises copy editor's fragment, audio-visual editor's fragment or multimedia file editor fragment.
Afterwards; In step S121; The end device of wireless telecommunications line is those end devices broken strings of one of them and other at least; Simultaneously each end device stores respectively in the record field in the latest update record of together modify content to end device, revises content and the latest edition sequence number in the Refreshing Every record field and become latest document.Wherein, the latest edition sequence number in the Refreshing Every record field for example is that script latest edition sequence number is added a difference (for example natural number one).
Among the step S111 in the foregoing description, according to the check result of version checking, the embodiment of step in Figure 1B that the end device of all mutual radio connectings carries out a data sync describes.Figure 1B is the general flow chart according to data sync step in a kind of file synchronisation method of one embodiment of the invention.Please with reference to Figure 1B, in the version checking (step S105) of end device afterwards, in the latest update record of each end device itself and other-end device, whether the version sequence number in its pairing record field mutually the same (step S501 among Figure 1B).
In step S505, in the latest update record, when the latest edition sequence number in all record fields that an end device is corresponded to is identical, then do not change identical latest edition sequence number.
Opposite; In step S511; In those latest update records; When the latest edition sequence number in all record fields that an end device is corresponded to differs from one another; Then in the latest update record with this end device itself, in pairing all record fields of this end device, revise content in latest document modification content synchronization to the other-end device in the pairing record field of this end device with the latest document that upgrades in the record field; And the latest edition sequence number in all record fields of corresponding this end device is updated in the latest update record that is same as this end device itself the latest edition sequence number that is write down in the pairing record field of this end device.
The embodiment of above-mentioned Figure 1A and the described file synchronisation method of the present invention of Figure 1B will do description further in the step 2a among following collocation Fig. 2 to step 2h.
For example, step 2a display terminal device A, B, C and the D among Fig. 2 be each other through wireless telecommunications line (dotted line so that step 2a among Fig. 2 is shown is represented the wireless telecommunications line), and begin file is done common editor.In present embodiment; End device A, B, C and D are to link to end device B, end device B wireless telecommunications with end device A wireless telecommunications to link to the wireless telecommunications connection mode representative that end device C and end device C wireless telecommunications link to end device D through the wireless telecommunications line each other, yet the present invention is not limited to this.Just the radio connecting mode of four end device A, B, C and D can be end device A, B, C and the D permutation and combination of radio connecting in twos separately; Also can be that one of them is main end device with end device A, B, C and D, and the other-end device all with main end device radio connecting.In another embodiment, even after other-end device and the main end device radio connecting, radio connecting in twos more each other.
In step 2b, end device A and end device B, C and D broken string, all end device A, B, C and D store respectively in the record field in together modify content to the latest update record (the step S121 of previous embodiment) at this moment.Therefore, among the latest update of the end device A record 202a, it is A1, B1, C1 and D1 that record field 204Aa, 204Ab, 204Ac and 204Ad write down the latest edition sequence number respectively.In other words; In the latest update record of end device A, B, C and D; The record field 204Aa, 204Ba, 204Ca and the 204Da that correspond to end device A are in end device A broken string, and the latest edition sequence number that record end device A editing files is produced is A1.In the latest update record of end device A, B, C and D, the record field 204Ab, 204Bb, 204Cb and the 204Db that correspond to end device B are in end device A broken string, and the latest edition sequence number that record end device B editing files is produced is B1.In the latest update record of end device A, B, C and D, the record field 204Ac, 204Bc, 204Cc and the 204Dc that correspond to end device C are in end device A broken string, and the latest edition sequence number that record end device C editing files is produced is C1.In the latest update record of end device A, B, C and D, the record field 204Ad, 204Bd, 204Cd and the 204Dd that correspond to end device D are in end device A broken string, and the latest edition sequence number that record end device D editing files is produced is D1.
Because stored together modify content is produced before by end device A broken string in the record field in the latest update record, thus in all end device A, B, C and D in the intrarecord record field of latest update stored together modify content mutually the same.More particularly, it is mutually the same that latest edition sequence number A1, B1, the C1 latest document corresponding with the D1 difference that is write down in the record field in each latest update record revised content.In other words; In end device one and the other-end device broken string at least wherein of wireless link; All end devices also store the corresponding respectively latest document of latest edition sequence number simultaneously and revise content (promptly being the together modify content) except upgrading the latest edition sequence number in the record field.
Afterwards, in step 2b, after end device A broken string; The end device B, C and the D that still keep the radio connecting state continue file is edited (together modify) jointly; To step 2c, end device B, C and D break each other, in this simultaneously; The institute that all end device B, C and D store respectively in together modify content to the latest update record is distinguished in the corresponding record field, and the latest edition sequence number that write down of renewal is B2, C2 and D2 (the step S121 of previous embodiment) respectively.Situation when breaking with end device A among the abovementioned steps 2b is identical; Because stored together modify content is produced by before end device B, C and the D broken string in the record field in this moment latest update record, thus in all end device B, C and D in the intrarecord record field of latest update stored together modify content mutually the same.Just, the latest document modification content that the latest edition sequence number B2 that is write down in record field in each latest update record (202b, 202c and 202d), C2 and D2 are corresponding respectively is mutually the same.
Then, in step 2d, end device A and B are via radio connecting, and end device C and D are via radio connecting (the step S101 of previous embodiment).When end device A and B radio connecting (for example blue bud pairing), end device A and B carry out a version checking (the step S105 in the previous embodiment) separately.Just; The latest edition sequence number that the pairing record field 204Aa of end device A is write down among the latest update record 202a among the end device A is A1; This with end device B in latest update record 202b in the latest edition sequence number A1 that write down of the pairing record field 204Ba of end device A identical, the latest document modification content synchronization that is write down among the expression pairing record field 204Aa of end device A and the 204Ba.Therefore according to previous embodiment (the step S111 among Figure 1A and the step S505 among Figure 1B), in the step of data sync, do not change identical latest edition sequence number.
In latest update record 202a and 202b, distinguish corresponding record field 204Ab and 204Bb for end device B; The latest edition sequence number that is write down via the record field 204Bb among the latest update record 202b of version checking discovery end device B is B2; The latest edition sequence number B1 that the pairing record field 204Ab of end device B is write down among the latest update record 202a among this and the end device A is inequality, and the expression end device B latest document that pairing record field 204Ab is write down in latest update record 202a is revised the latest document that is write down among content and the record field 204Bb, and to revise content also asynchronous.And from record field 204Ab and 204Bb respectively latest edition sequence number B1 and the B2 of record can find end device B latest update record 202b the latest edition sequence number B2 that write down of its pairing record field 204Bb, write down the latest edition sequence number B1 that the pairing record field 204Ab of end device B is write down among the 202a than latest update and also will upgrade.When therefore after version checking, carrying out data sync; According to previous embodiment (the step S511 of Figure 1B); The latest document that end device B is write down among the pairing record field 204Bb in its latest update record 202b is revised content; Synchronously to the latest update record 202a of end device A among the pairing record field 204Ab of end device B; And the latest edition sequence number among the record field 204Ab of counterpart terminal device B is updated among the latest update record 202b that is same as end device B; The latest edition sequence number that the pairing record field 204Bb of end device B is write down just is updated to B2 with the latest edition sequence number among the record field 204Ab by B1.
In addition, it should be noted that for end device A and B, then be not regarded as the end device that breaks respectively via the end device C and the D of this wireless telecommunications line with end device A and B.Yet; By can learning among the step 2c, this latest document modification content that broken string end device C and D are write down among pairing record field 204Bc and the 204Bd in the latest update record 202b of end device B is same as the latest document modification content among the pairing record field 204Bb of end device B.That is the pairing latest document modification of latest edition sequence number B2 content is identical with the pairing latest document modification of D2 content with version sequence number C2.Therefore when the latest document in the pairing record field 204Bb of end device B is revised content synchronization to the pairing record field 204Ab of the end device B among the end device A; Also simultaneously synchronously to end device A interrupt line end device C and pairing record field 204Ac of D and 204Ad, and the latest edition sequence number that end device A interrupt line end device C and D pairing record field 204Ac and 204Ad are write down is updated to C2 and D2 by C1 and D1.
On the other hand; When end device C and D line, find through version checking (step 105) back of previous embodiment, among end device C and the D; The latest edition sequence number that record field write down that corresponds to the same terminal device is mutually the same; Therefore describe (step S505) as previous embodiment, when carrying out data sync, need not change the latest edition sequence number that record field writes down.
Then, among the step 2d, the end device A and the B of line carry out file editor (file modification) separately jointly and produce the together modify content respectively with the end device C of line and D.Afterwards among the step 2e; End device A and B broken string; And end device C and D break each other, in this simultaneously, when end device A and B store end device A and B radio connecting respectively together modify content to the latest update of together modify file write down among 202a and the 202b distinguish corresponding record field 204Aa and 204Ba; And among record field 204Ab and the 204Bb, and to upgrade the latest edition sequence number write down respectively be A2 and B3 (the step S121 of previous embodiment).And among together modify content to the latest update record 202c of end device C and D together modify file when storing end device C and D radio connecting respectively and the 202d distinguish corresponding record field 204Cc and 204Dc; And among record field 204Cd and the 204Dd, and to upgrade the latest edition sequence number write down respectively be C3 and D3 (the step S121 of previous embodiment).Situation when breaking with end device A among the abovementioned steps 2b is identical; Owing to produced before stored together modify content breaks mutually with D by end device A and B and end device C in the record field in this moment latest update record, thus in end device A and B in the intrarecord record field of latest update stored together modify content mutually the same.Just, the latest document modification content that the latest edition sequence number A2 that is write down in record field in each latest update record (202a and 202b) and B3 are corresponding respectively is mutually the same.Among same end device C and the D in the intrarecord record field of latest update stored together modify content mutually the same.Just, the latest document modification content that the latest edition sequence number C3 that is write down in record field in each latest update record (202c and 202d) and D3 are corresponding respectively is mutually the same.
Afterwards, among the step 2f, end device B and C are via radio connecting (the step S101 of previous embodiment).2d is identical with step; When end device B and C radio connecting (for example blue bud pairing); End device B and C carry out a version checking (the step S105 in the previous embodiment) separately; Therefore the latest edition sequence number that the pairing record field 204Bb of end device B is write down among the latest update record 202b among the end device B is B3; This with end device C in latest update record 202c in the latest edition sequence number B2 that write down of the pairing record field 204Cb of end device B different, and the expression end device B latest document that pairing record field 204Bb is write down in latest update record 202b is revised the latest document that is write down among content and the pairing record field 204Cb in latest update record 202c and is revised content and asynchronous.And from record field 204Bb and 204Cb respectively latest edition sequence number B3 and the B2 of record can find end device B latest update record 202b the latest edition sequence number B3 that write down of its pairing record field 204Bb, write down the latest edition sequence number B2 that the pairing record field 204Cb of end device B is write down among the 202c than latest update and also will upgrade.When therefore after version checking, carrying out data sync; According to previous embodiment (the step S511 of Figure 1B); The latest document that end device B is write down among the pairing record field 204Bb in its latest update record 202b is revised content; Synchronously to the latest update record 202c of end device C among the pairing record field 204Cb of end device B; And the latest edition sequence number among the record field 204Cb of counterpart terminal device B is updated among the latest update record 202b that is same as end device B; The latest edition sequence number that the pairing record field 204Bb of end device B is write down just is updated to B3 with the latest edition sequence number among the record field 204Cb by B2.Same; The latest document that end device C is write down among the pairing record field 204Cc in its latest update record 202c is revised content; Synchronously to the latest update record 202b of end device B among the pairing record field 204Bc of end device C; And the latest edition sequence number (C2) among the record field 204Bc of counterpart terminal device C is updated among the latest update record 202c that is same as end device C the latest edition sequence number (C3) that the pairing record field 204Cc of end device C is write down.
For end device C; End device A is the broken string end device; To revise content identical with the latest document modification content of the record field 204Bb record of corresponding end device B and the latest update among end device B record 202b corresponds to the latest document of the record field 204Ba record of end device A; Therefore revise content at the above-mentioned latest document that end device B is write down among the pairing record field 204Bb in its latest update record 202b; Synchronously to the latest update record 202c of end device C the pairing record field 204Cb of end device B the time; The pairing record field 204Ca of end device A among the 202c is write down in also synchronous latest update to end device C, and the latest edition sequence number that is write down among the renewal record field 204Ca is A2.In addition; For end device B; End device D is the broken string end device; As above-mentioned, revise content at the latest document that end device C is write down among the pairing record field 204Cc in its latest update record 202c, synchronously to the latest update record 202b of end device B the pairing record field 204Bc of end device C the time; The pairing record field 204Bd of end device D among the 202b is write down in also synchronous latest update to end device B, and the latest edition sequence number that is write down among the renewal record field 204Bd is D3.
Then, among the step 2f, the end device B of line and C carry out file editor (file modification) jointly to produce the together modify content.Afterwards among the step 2g; End device B and C broken string; In this simultaneously; Among together modify content to the latest update record 202b that end device B and C store the together modify file respectively and the 202c distinguish corresponding record field 204Bb and 204Bc, and among record field 204Cb and the 204Cc, and the latest edition sequence number that write down of renewal is B4 and C4 (the step S121 of previous embodiment) respectively.Situation when breaking with end device A among the abovementioned steps 2b is identical; Owing to produced before stored together modify content breaks by end device B and C mutually in the record field in this moment latest update record, thus in end device B and C in the intrarecord record field of latest update stored together modify content mutually the same.Just, it is mutually the same that the latest document that latest edition sequence number B4 is corresponding with the C4 difference is revised content.
In step 2h, end device A, B, C and D are via radio connecting (the step S101 of previous embodiment).Same; Behind radio connecting; All end device A, B, C and D carry out a version checking (the step S105 in the previous embodiment), and according to the version checking result, carry out a data sync; In each latest update was write down, the pairing latest document of latest edition sequence number that the pairing record field of each end device is write down and latest edition sequence number was revised content phase mutually synchronization (each record field that synchronized result is please shown with reference to step 2h among Fig. 2).
In an embodiment, each end device also has a historical record, revises content in order to the latest edition sequence number and the pairing latest document of latest edition sequence number that write down before each record field upgrades.Fig. 3 is the historical record simplified schematic diagram according to an end device of one embodiment of the invention.Please with reference to Fig. 3; The historical record of the end device A that is shown as; When its record end device A stores the together modify content and upgrades the latest edition sequence number when data synchronization process ( step 2d and 2h) and broken string ( step 2b and 2e), latest edition sequence number (shown in the table 301) latest document pairing with it before record field 204Aa, 204Ab, 204Ac and the 204Ad renewal revised content (like table 303).
In addition; In another embodiment; In carrying out data synchronization process, also comprise: end device is revised being passed to pairing record field in other end devices in the preceding off-line that file is made of this wireless telecommunications line, revised content to upgrade this latest document with this wireless telecommunications line via this wireless telecommunications line.For example; In step 2d, when end device A and B radio connecting, when the line data of going forward side by side is synchronous; Though the version sequence number identical (all being A1) that writes down among the pairing record field 204Aa of end device A and the 204Ba; But before end device A and B line, end device A has carried out the off-line modification for file, under the situation of the version sequence number that therefore in data synchronization process, in not changing record field 204Aa and 204Ba, writes down; End device A is revised the pairing record field 204Ba of end device A among the latest update record 202b that is passed to end device B for the off-line of file, revise content to upgrade the latest document that is write down.
The same end device B that works as has also carried out the off-line modification for file; Therefore in data synchronization process; Not only the latest document in the pairing record field 204Bb of end device B in the latest update record 202b among the end device B is revised the pairing record field 204Ab of end device B in content synchronization to the latest update record 202a; The off-line that also simultaneously end device B is carried out for file is revised and is passed to record field 204Ab, revises content to upgrade the latest document that is write down.
In addition; In an embodiment again, the mutual radio connecting of end device carries out in the data synchronization process; End device mutually transmissions needs synchronous latest document to revise content, so that the stored file edited result of all end devices unanimity and reach the purpose of data sync mutually.For an end device; When received latest document is revised content the latest document of end device is revised content and do not repeated therewith, latest document that then directly will be received revise content therewith in the script latest document modification content merging of end device.Yet; When received latest document is revised content the latest document of end device is revised content and repeated therewith; The latest document that then receives is side by side revised the content script latest document modification content of end device therewith; When file being carried out together modify, select for use which latest document to revise content by user's decision of operating terminal device limit and file with the end device of treating radio connecting.
Fig. 4 is the simplified schematic diagram according to a kind of end device of one embodiment of the invention.Please with reference to Fig. 4, the end device 400 of present embodiment comprises a communication interface 402, a Storage Media 404 and a processor 406.Wherein, communication interface 402 comprises a wireless telecommunications interface of setting up line based on the IEEE802.15 standard.And Storage Media 404 stores a computer-readable and writes a program and a latest update record.Above-mentioned latest update is write down institute's content recorded and in previous embodiment, is described in detail, does not therefore do at this and gives unnecessary details.And processor 406 then can be written into computer-readable from Storage Media 404 to write a program, to carry out several steps that computer-readable is write a program and comprised.
Abovementioned steps comprises carries out a version checking; In the latest update record with mutual inspection end device 400 and the other-end device that links end devices 400 via communication interface 402, each end device distinguish in the record field of correspondence the latest edition sequence number (abovementioned steps S105) that writes down respectively.
Afterwards, according to the check result of version checking, carry out a data sync (step S111).Wherein data sync comprises: in all latest update records, when the latest edition sequence number in the record field that this end device 400 is corresponded to is identical, then do not change identical latest edition sequence number (step S505).And in all latest update records; Latest edition sequence number in the record field that this end device 400 is corresponded to is not simultaneously; Then with in these end device 400 pairing record fields in latest document modification content synchronization to the other-end device in the end device 400 pairing record fields in the latest update record of this end device 400; Latest document to upgrade in the record field is revised content; And a little latest edition sequence numbers in the record field of counterpart terminal device 400 are updated in the latest update record that is same as this end device 400 this latest edition sequence number (step S511) that these end device 400 pairing record fields are write down.
Afterwards, via communication interface 402, end device 400 and the other-end device together modify file that links end devices 400 via communication interface 402 are to produce at least one together modify content (step S115).
Then; When end device 400 breaks with the other-end device that links this end device 400 via communication interface 402; End device 400 stores the together modify content to record field; Revise content and the latest edition sequence number (step S121) in the Refreshing Every record field and become latest document.
In addition; The step that processor 406 execution computer-readables are write a program also comprises in the data synchronization process of mentioning in the previous embodiment; End device transmits the step that off-line is revised content mutually; And in data synchronization process, latest edition sequence number that the pairing record field of broken string end device is write down and latest document are revised the step of updating of content.Because above-mentioned steps details in previous embodiment, therefore do not give unnecessary details at this.
In sum, has a latest update record among the present invention in each end device, with latest edition sequence number and the pairing latest document modification of the latest edition sequence number content before broken string last time of indivedual terminal device corresponding of record institute respectively.Through the data sync progress between each end device of the effective record of latest update record; Therefore when any two end device radio connectings at least; The latest edition sequence number that is write down in the record field via inspection other latest update record; Promptly know end device each other for the editor of identical file or modification degree, data sync progress, and need synchronous file modification content mutually.Therefore any two end devices again after the radio connecting at least, distinctly accent begins synchronously just need not to repeat synchronously the latest document modification content of synchronous mistake each other for the editor or the modification degree of identical file.
Though the present invention discloses as above with embodiment, so it is not in order to limiting the present invention, any under those of ordinary skill in the technical field, when can doing a little change and retouching, and do not break away from the spirit and scope of the present invention.

Claims (14)

1. file synchronisation method; Be applicable to the common editor of several end devices one file; Wherein each those end device has a latest update record; This latest update record comprises several record fields of respectively corresponding those end devices, and each those record field writes down a latest edition sequence number and the pairing latest document of this latest edition sequence number is revised content, and this method comprises:
Set up the wireless telecommunications line between those end devices;
Those end devices carry out a version checking, in those latest updates record with mutual those end devices of inspection, those end devices distinguish in those record fields of correspondence this latest edition sequence number of writing down respectively;
According to a check result of this version checking, those end devices carry out a data sync, and wherein each those end device carries out this data sync and comprises:
In those latest update records, when those latest edition sequence numbers in those record fields that this end device corresponded to are identical, then do not change those identical latest edition sequence numbers;
In those latest update records; Those latest edition sequence numbers in those record fields that this end device corresponded to are not simultaneously; Then with in pairing those record fields of this end device in this latest document modification content synchronization to other-end device in the pairing record field of this end device in this latest update record of this end device; This latest document to upgrade in those record fields is revised content; And will be updated in this latest update record that is same as this end device this latest edition sequence number that pairing this record field of this end device is write down to those latest edition sequence numbers in should those record fields of end device;
Those end devices, via this wireless telecommunications line, together modify this document is to produce at least one together modify content; And
Those end devices are those end devices broken strings of one of them and other at least; Those end devices store respectively in those record fields of these together modify content to those end devices simultaneously; Revise content and this latest edition sequence number in those record fields of Refreshing Every and become this latest document.
2. file synchronisation method according to claim 1; Wherein each those end device also has a historical record, revises content in order to this latest edition sequence number and pairing this latest document of this latest edition sequence number of writing down before each those record field upgrades.
3. file synchronisation method according to claim 1; Wherein each those end device carries out this data sync and comprises: the off-line that this end device was made this document before this wireless telecommunications line revise be passed to via this wireless telecommunications line other with each those end device of this wireless telecommunications line in pairing this record field of this end device, revise content to upgrade this latest document.
4. file synchronisation method according to claim 3; Wherein each those end device carries out in this data sync; When those latest edition sequence numbers in those record fields that this end device corresponded to are identical; Comprise that also this end device is passed to other with pairing this record field of this end device in each those end device of this wireless telecommunications line with this off-line modification via this wireless telecommunications line, revises content to upgrade this latest document.
5. file synchronisation method according to claim 3; Wherein each those end device carries out in this data sync; Those latest edition sequence numbers in those record fields that this end device corresponded to are not simultaneously; Comprise that also this end device is passed to other with pairing this record field of this end device in each those end device of this wireless telecommunications line with this off-line modification via this wireless telecommunications line, revises content to upgrade this latest document.
6. file synchronisation method according to claim 1; Wherein each those end device carries out in this data sync; Those latest edition sequence numbers in those record fields that this end device corresponded to are not simultaneously; Also comprise in this latest update record of this end device; Not with at least one broken string end device of this end device via this wireless telecommunications line; This latest document in pairing this record field of this broken string end device is revised content and is same as this latest document modification content in pairing this record field of this end device; Then this latest document in pairing this record field of this end device is revised pairing those record fields whiles of this end device in content synchronization to other those end devices, to other those end devices, is somebody's turn to do pairing those record fields of broken string end device synchronously.
7. file synchronisation method according to claim 1, wherein this wireless telecommunications line comprises a line of being set up based on the IEEE802.15 standard.
8. end device, this end device comprises:
One communication interface;
One Storage Media; Storing a computer-readable writes a program and a latest update record; Wherein this latest update record comprises respectively should end device and several record fields that link other several end devices of this end device via this communication interface, and each those record field writes down a latest edition sequence number and the pairing latest document of this latest edition sequence number of a file and revises content;
One processor is written into this computer-readable from this Storage Media and writes a program, and to carry out several steps that this computer-readable is write a program and comprised, those steps comprise:
Carry out a version checking; In each latest update record with this end device of mutual inspection and other those end devices that link this end device via this communication interface, those end devices distinguish in those record fields of correspondence this latest edition sequence number of writing down respectively;
According to a check result of this version checking, carry out a data sync, wherein this data sync comprises:
In those latest update records, when those latest edition sequence numbers in those record fields that this end device corresponded to are identical, then do not change those identical latest edition sequence numbers;
In those latest update records; Those latest edition sequence numbers in those record fields that this end device corresponded to are not simultaneously; Then with in pairing those record fields of this end device in this latest document modification content synchronization to other-end device in the pairing record field of this end device in this latest update record of this end device; This latest document to upgrade in those record fields is revised content; And will be updated in this latest update record that is same as this end device this latest edition sequence number that pairing this record field of this end device is write down to those latest edition sequence numbers in should those record fields of end device;
Via this communication interface, this end device and other those end device together modify this document that link this end device via this communication interface are to produce at least one together modify content; And
When this end device breaks with other those end devices that link this end device via this communication interface; This end device stores this together modify content to those record fields; Revise content and this latest edition sequence number in those record fields of Refreshing Every and become latest document.
9. end device according to claim 8, wherein this Storage Media also has a historical record, revises content in order to this latest edition sequence number and pairing this latest document of this latest edition sequence number of writing down before each those record field upgrades.
10. end device according to claim 8; Wherein this data sync also comprises: with this end device via this communication interface link to other those end devices before; The off-line modification that this document is made is passed to other via pairing this record field of this end device in each other those end device of this communication interface line via this communication interface, revises content to upgrade this latest document.
11. end device according to claim 10; Wherein in this data sync; When those latest edition sequence numbers in those record fields that this end device corresponded to are identical; Comprise that also this end device is passed to other with pairing this record field of this end device in each other those end device of this communication interface line with this off-line modification via this communication interface line, revises content to upgrade this latest document.
12. end device according to claim 10; Wherein in this data sync; Those latest edition sequence numbers in those record fields that this end device corresponded to are not simultaneously; Comprise that also this end device is passed to other with pairing this record field of this end device in each other those end device of this communication interface line with this off-line modification via this communication interface, revises content to upgrade this latest document.
13. end device according to claim 8; Wherein in this data sync; Those latest edition sequence numbers in those record fields that this end device corresponded to are not simultaneously; Also comprise in this latest update record of this end device; Not with at least one broken string end device of this end device via this communication interface line; This latest document in pairing this record field of this broken string end device is revised content and is same as this latest document modification content in pairing this record field of this end device, and then this latest document in pairing this record field of this end device is revised content synchronization to via pairing those record fields of this end device in other those end devices of this communication section connection simultaneously, to other those end devices, is somebody's turn to do pairing those record fields of broken string end device synchronously.
14. end device according to claim 8, wherein this communication interface comprises a wireless telecommunications interface of setting up line based on the IEEE802.15 standard.
CN2011101212297A 2011-05-11 2011-05-11 Terminal device and file synchronization method Pending CN102779127A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101212297A CN102779127A (en) 2011-05-11 2011-05-11 Terminal device and file synchronization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101212297A CN102779127A (en) 2011-05-11 2011-05-11 Terminal device and file synchronization method

Publications (1)

Publication Number Publication Date
CN102779127A true CN102779127A (en) 2012-11-14

Family

ID=47124044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101212297A Pending CN102779127A (en) 2011-05-11 2011-05-11 Terminal device and file synchronization method

Country Status (1)

Country Link
CN (1) CN102779127A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873565A (en) * 2014-02-28 2014-06-18 北京智谷睿拓技术服务有限公司 Data synchronism method and equipment
CN103986742A (en) * 2013-02-08 2014-08-13 纬创资通股份有限公司 File synchronization method and correlation electronic devices
CN104239312A (en) * 2013-06-11 2014-12-24 富泰华工业(深圳)有限公司 File management system and method
CN106210594A (en) * 2016-07-18 2016-12-07 福建天泉教育科技有限公司 The method and system of simultaneous display
CN107395763A (en) * 2017-08-30 2017-11-24 郑州云海信息技术有限公司 A kind of method, service end and the system of multi-client synchronization process file
CN108920523A (en) * 2018-06-04 2018-11-30 深圳乐信软件技术有限公司 Data query method, apparatus, equipment, system and medium on block chain
CN109147950A (en) * 2018-08-24 2019-01-04 北京大医未然生物科技有限公司 A kind of kinsfolk's health account management method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801074A (en) * 2004-12-31 2006-07-12 东友科技股份有限公司 Paging method for printing file
CN101271416A (en) * 2007-03-23 2008-09-24 英华达(上海)科技有限公司 Data synchronization method
US20090271447A1 (en) * 2008-04-28 2009-10-29 Shin Kang Soo Method for synchronizing contents file and device for employing the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801074A (en) * 2004-12-31 2006-07-12 东友科技股份有限公司 Paging method for printing file
CN101271416A (en) * 2007-03-23 2008-09-24 英华达(上海)科技有限公司 Data synchronization method
US20090271447A1 (en) * 2008-04-28 2009-10-29 Shin Kang Soo Method for synchronizing contents file and device for employing the same

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986742A (en) * 2013-02-08 2014-08-13 纬创资通股份有限公司 File synchronization method and correlation electronic devices
CN103986742B (en) * 2013-02-08 2018-08-31 纬创资通股份有限公司 The method and related electronic device of file synchronization
CN104239312A (en) * 2013-06-11 2014-12-24 富泰华工业(深圳)有限公司 File management system and method
CN104239312B (en) * 2013-06-11 2019-03-15 富泰华工业(深圳)有限公司 File management system and method
CN103873565A (en) * 2014-02-28 2014-06-18 北京智谷睿拓技术服务有限公司 Data synchronism method and equipment
CN103873565B (en) * 2014-02-28 2017-09-05 北京智谷睿拓技术服务有限公司 Method of data synchronization and equipment
CN106210594A (en) * 2016-07-18 2016-12-07 福建天泉教育科技有限公司 The method and system of simultaneous display
CN107395763A (en) * 2017-08-30 2017-11-24 郑州云海信息技术有限公司 A kind of method, service end and the system of multi-client synchronization process file
CN108920523A (en) * 2018-06-04 2018-11-30 深圳乐信软件技术有限公司 Data query method, apparatus, equipment, system and medium on block chain
CN109147950A (en) * 2018-08-24 2019-01-04 北京大医未然生物科技有限公司 A kind of kinsfolk's health account management method
CN109147950B (en) * 2018-08-24 2019-07-16 北京大医未然生物科技有限公司 A kind of kinsfolk's health account management method

Similar Documents

Publication Publication Date Title
CN102779127A (en) Terminal device and file synchronization method
US11468008B2 (en) File processing method and mobile terminal
US9753746B2 (en) Application store and intelligence system for networked telephony and digital media services devices
CN101331741B (en) Electronic equipment and method for automatic synchronisation and communication system
EP2608463B1 (en) Apparatus and method for managing attached file of message in portable terminal
WO2013178048A1 (en) Method and device for generating firmware over-the-air upgrade package
CN104540027A (en) Multimedia display interaction control system under multi-screen environment
CN106445663A (en) Application data migration method and device
CN202004894U (en) Network video conference system with written communication function
CN105493025A (en) Method and system for presenting content
CN103019520B (en) Display method for optional item information of terminal application and terminal
CN102932543A (en) Device for configuring multimedia acquisition devices by using multimedia
US20130210396A1 (en) Method for collectively transferring logically grouped objects
CN103428325A (en) Function cooperating method and portable terminal supporting the same
CN101196822B (en) Code upgrading device, method and system
US20150052185A1 (en) File information system management system and method
CN102065174A (en) Method and system for pushing multimedia resources of mobile terminal
CN103577554A (en) Method and device for triggering multimedia database scanning of Android equipment
CN101252617A (en) Synchronizing method and synchronizing system of linkmen between host computer and secondary computer
WO2021254167A1 (en) Application development platform, application development method, and electronic device
US8595852B2 (en) Method for providing shared contents in a portable terminal to an external apparatus
US20080263532A1 (en) Data updating method and electric device using the same
US20050289195A1 (en) Centrally controlled backup functionality
CN106559550A (en) SIM management method and electronic installation
CN103198252A (en) Apparatus and method for managing control information of application in portable terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20121114