TW201243619A - Terminal device and file synchronization method - Google Patents

Terminal device and file synchronization method Download PDF

Info

Publication number
TW201243619A
TW201243619A TW100114680A TW100114680A TW201243619A TW 201243619 A TW201243619 A TW 201243619A TW 100114680 A TW100114680 A TW 100114680A TW 100114680 A TW100114680 A TW 100114680A TW 201243619 A TW201243619 A TW 201243619A
Authority
TW
Taiwan
Prior art keywords
terminal device
latest
record
terminal
file
Prior art date
Application number
TW100114680A
Other languages
Chinese (zh)
Inventor
Shang-Chian Chen
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 TW100114680A priority Critical patent/TW201243619A/en
Publication of TW201243619A publication Critical patent/TW201243619A/en

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

A file synchronization method is provided for several terminal devices editing the same file. Each terminal device has a latest updated record comprises several fields respectively corresponding to the terminal devices. Each field records a latest edition serial number and a latest file modification segment corresponding to the latest edition serial number. The method comprises steps of establishing a wireless communication between the terminal devices and checking the latest edition serial number in each of the fields of the latest updated record. According to the checking result, a data synchronization process is performed. Then, the terminal devices commonly modify the same file to generate at least one commonly modified content. While one of the terminal devices disconnects from the rest of the terminal devices, the commonly modified content is stored into the fields of each latest updated record and the corresponding latest edition serial number in each field is updated.

Description

201243619 六、發明說明: 【發明所屬之技術領域】 本發明是有關於一種電子裝置與其操作方法,且特別 是有關於一種終端裝置與檔案同步方法。 【先前技術】 P:^著各類電子裝置的開發與其所配備的各種功能的 進步,人們生活上與電子裝置越來越密不可分。常用的電 子裝置,例如個人電腦、手機、個人數位助理(Pers〇nal Digital Assistant ’ PDA)等’通常都配備有通訊介面,以供 使用者透過此通訊介面與終端裝置之間進行訊息或是資料 傳遞。 在各式電子裝置之間的訊息或是資料傳遞步驟一開 始會透過通訊介面建立使用者與終端裝置之間 結。在通訊連結建立的過程中,使用者除了必須在近端電 子裝置上手動點選所需要建立通訊聯結的對象外,還必 在近端電子裝置上手動輸入通訊密碼,以供近端電子裝置 與終端裝置之間在建立通訊連結時做連線身份認證或^配 對(pairing)所使用。然而,當超過兩個以上的終端裝$相 互建立通訊連結並且共同編輯與修改同一檔案時,如何^ 夕個終ii而裝置彼此通訊聯結且修改同—權案,並在多個終 女而政置辦線又重新通聯結時,達到多個终端裝置對门'' 知案的修改或編輯内谷同步化,成為目前技術發展的主要 3 201243619 【發明内容】 本發明提供-種槽案同步方法,可有效記錄所有終端 裝置的資料同步進度。 本發明提供-種終端裝置,可與多個終端裝置彼此通 訊聯結並共同編輯與修改同一檔案。 本發明提出-種槽案同步方法,適用於複數個終端震 置共同編輯—齡,其中每-該些終端裝置具有-最新更 新。己錄’錢新更新記錄包含分別對應該些終端裝置的 數個記錄攔位’而每—該些記_位記錄—最新版本序號 以及該最.本序朗對應的—最新難修㈣容,該方 ί包括·建立該些終端裝置之間的―無線軌連線。該些 此本檢查,以相互檢查該些終端裝置的該 該些終端裝置所分別對應的該些記錄 ίΓ 記錄的該最新版本序號。根據該版本檢查的 檢查結果,該些終端裝置進行—資料同步,其中每一古亥 ΐ終于該資料同步包括:在該些最新更新記錄 版本置所對應到的該些記錄襴位中的該些最新 不更動相同的該些最新版本序號。在 j錄欄位中’以更新該些記錄欄位中的該最新槽^修 谷’並且將對應該終端裝置的該些記錄攔位中的該些 201243619 最新版本序號更新成相同於該終端裝置的該最新更新記錄 中,該終端裝置所對應的該記錄欄位所記錄的該最新版本 序號。該些終端裝置,經由該無線通訊連線,共同修改該 檔案以產生至少一共同修改内容。該些終端裝置至少其中 之一與其他該些終端裝置斷線,同時該些終端裝置分別儲 存該共同修改内容至該些終端裝置的該些記錄攔位中,而 成為最新檔案修改内容,並且更新每一該些記錄欄位中的 該最新版本序號。 在本發明之一實施例中,上述之檔案同步方法,其中 每一該些終端裝置還具有一歷史記錄,用以記錄每一該些 記錄欄位更新前的該最新版本序號以及該最新版本序號所 對應的該最新檔案修改内容。 —在本發明之一實施例中,上述之檔案同步方法,其中 每一该些終端裝置進行該資料同步包括:將該終端裝置於 該無線通訊連線之前對該檔案所做的一離線修改經由該無 線通訊連線傳遞至其他以該無線通訊連線的每一該些終端 裝置中該終端裝置所對應的該記錄欄位,以更新該最新檔 案修改内容。 — 在本發明之一實施例中,上述之檔案同步方法,其中 每一 S亥些終端裝置進行該資料同步中,當該終端裝置所對 應到的該些記錄襴位中的該些最新版本序號相同時,還包 括该終端裝置將該離線修改經由該無線通訊連線傳遞至其 他以該無線通訊連線的每一該些終端裝置中該終端裝置所 對應的該記錄襴位,以更新該最新檔案修改内容。 201243619 在本發明之一貫施例中,上述之檔案同步方法,其中 每一該些終端裝置進行該資料同步中,當該終端裴置所對 應到的該些記錄攔位中的該些最新版本序號不同時,還包 括該終端裝置將該離線修改經由該無線通訊連線傳遞至其 他以該無線通訊連線的每一該些終端裝置中該終端裝置所 對應的該記錄欄位,以更新該最新檔案修改内容。 在本發明之一實施例中,上述之檔案同步方法,其中 每一該些終端裝置進行該資料同步中,當該終端裝置所對 應到的該些記錄欄位中的該些最新版本序號不同時,還包 括該終端裝置的該最新更新記錄中,未與該終端裝置經= 該無線通訊連線的至少一斷線終端裝置,該斷線終端裝置 所對應的該記錄欄位中的該最新檔案修改内容相同於該終 端裝置所對應的該記錄欄位中的該最新檔案修改内容了則 於該終端裝置所對應的該記錄齡巾㈣韻難修改内 容同步至其他該些終端裝置巾祕喊置所對應的該些記 錄欄位同時,同錄其他該祕端I置巾騎線終^署 所對應的該些記錄攔位。 ^ 在本發明之一實施例中’上述之檔案同步方法,其中 該無線通訊連線包括基於IEEE802.15標準所建立二 線。 、 的—連 本發明另提出一種終端裝置,該終端裝置包括·一、 訊介面、-儲存雜與—處理器。儲存媒體,儲存;, 可讀寫程式與-最新更新記錄,其中該最新更新記二 分別對舰終端裝置與經由該通訊介面連結祕端裝= 201243619 其他該些終喊㈣魏個記翻位, 位記錄一檔案的一最新版本序號 w二5己錄欄 麻祕T 及錄新版本序號所對 應的-最新㈣U改内各。處理器’從該 電腦可讀寫程式,以執行該電腦可續 =载入°玄 個步驟,該些步驟包括··進行 終端裝置與經由該軌介面連結該終端裝置的^ 端裝置的該些最新更新記錄中,該些終端裝置所分別G _些記齡雜情分顺錄_最新版本序號。根據該 版本檢查的-檢查結果,進行―資料同步,其中該資料同 步包括.在雜最新更新記錄+,當該終端裝置所對應到 的該些記錄欄位中的該些最新版本序號相同時’則不更動 相同的該些最新版本序號。在該些最新更新記錄中,當該 終裝置所對應到的该些記錄欄位中的該些最新版本序號 不同時,則將δ亥終端裝置的該最新更新記錄中該終端裝置 所對應的記錄欄位中的該最新檔案修改内容同步至其他終 端裝置中該終端裝置所對應的該些記錄欄位中,以更新該 些記錄攔位中的該最新檔案修改内容,並且將對應該終端 裝置的該些記錄欄位中的該些最新版本序號更新成相同於 §亥終端裝置的該最新更新記錄中,該終端裝置所對應的該 記錄欄位所記錄的該最新版本序號。經由該通訊介面,該 終端裝置與經由該通訊介面連結該終端裝置的其他該些終 端裝置共同修改該檔案以產生至少一共同修改内容。該終 端裝置與經由該通訊介面連結該終端裝置的其他該些終端 裝置斷線時,該終端裝置儲存該共同修改内容至該些記錄 201243619 ,二’而成為最新檔案修改内容,並且更新 錄欄位中的該最新版本序號。 以二 j本發明之一實施例中,上述之終端裝置,1令領 一歷史記錄,用以記錄每-該些記錄攔位更 序號以及該最新版本序號所對應的該最 料πΐίίΓ之一實施例中,上述之終端裝置,其中該資 =步還包括:將該終端襄置經由該通訊介面連線至其他 :二置之前’對該檔案所做的一離線修改經由該通 u傳遞至其他經由該通訊介面連線的每一其他該些終 端裝置中該終端裝置所對庫的今^j-檔案修㈣。 _[嶋該最新 在本發明之-實施例中,上述之終端裝置,1中 料同步中’當該終端裝置所對應到的該些記錄攔位中的該 些最新版本序號相同時,還包括鱗端裝置將該離線修改 經由該通齡面連_遞至其他㈣軌介面連線的每一 其他該些終端裝置中該終端裝置所對應的該記錄欄位,以 更新該最新檔案修改内容。 在本發明之-貫施例中,上述之終端裝置,盆中 料同步中’當該終端裝置所對應到的該些記錄欄位中^ 些最新版本序號不㈣,還包括該終端裝置將該離線修^ 經由邊通訊介面傳遞至其他㈣軌介面連線的每一其他 该些終端裝置中該終端I置所對應的該記錄攔位, 該最新檔案修改内容。 201243619 在本發明之一實施例中,上述之終端裝置,其中該資 料同步中,當該終端裝置所對應到的該些記錄襴位中 些最新版本序號不同時,還包括該終端裝置的該最新更新 記錄中,未與該終端裝置經由該通訊介面連線的至少一斷 線終端t置,該斷線終端裝置所對應的該記錄欄位中的該 最新檔案修改内容相同於祕端裝置所對應的該記錄棚位 中的該最龍㈣改内容,則於祕職置賴應的該纪 錄欄位中的該最_案修㈣容时至經由該通訊部連接 的其他該些終端裝置中祕端裝置所對應的該些記錄棚位 同時’同步至其他該些終端裝置中該斷線終 的該些記錄欄位。 丁應 在本發明之-實施例中,上述之終端裝置,其中該 =介面包括基於IEE職.15標準建立連線的__無線 介面。 基於上述,本發明中每一終端裝置中具有一最新更新 ,錄’以分別記錄所個別對應的終端裝置於前次斷線前的 轉號與最新版本序動^應的最新職修改内 谷二糟由最新更新記錄有效記錄各個終端裝置之間的資 2進度’因此當至少任兩鱗端裝置無線連線時,經由 =個別的取敎新記錄的記錄難巾所記賴最新版 序^’:可知道終職置彼此之晴於同—齡的編輯或 步進度’以及互相需要同步的標案修改 =舌因此至少任_終純置顏無線連权後,益須 各別重頭開始同步彼此對於同—檔案的編輯或修改程度,、 9 201243619 也就疋無須重複同步已經同步過的最新檔案修改内容。 為讓本發明之上述特徵和優點能更明顯易懂,下文特 牛貫施例,並配合所附圖式作詳細說明如下。 【實施方式】 々圖1A疋依照本發明一實施例的—種槽案同步方法流 心簡,。圖2是依照本發明—實施_之—_案同步方 法示思簡圖。請參照圖1A,本實施例的檔案同步方法,適 ,於複數個終端裝置共同編輯一檔案。此檔案例如是純文 字$、影音檔案或是各種多媒體檔案。另外,終端裝置例 如疋可攜式裝置,包括手機、個人數位助理、筆記蜇電腦 或平板電腦。此外,終端裝置也可以是一桌上型電腦。更 明確的說’終端裝置可以是任何具有無線通訊功能的電子 裝置。 此外’每一終端裝置具有一最新更新記錄,且最新更 新記錄包含分別對應終端裝置的複數個記錄欄位,而每一 記錄欄位記錄所編輯檔案的一最新版本序號以及最新版本 序號所對應的一最新檔案修改内容。 請參照圖2,舉例而言,以終端裝置A、B、C與D 進行本發明上述實施例的檔案同步方法。圖2中繪示上述 四個終端裝置彼此連線與斷線共八個步驟(包括步驟2a、 2b、2c、2d、2e、2f、2g與2h)的最新更新記錄狀態。此 外,終端裝置A、B、C與D均個別具有一最新更新記錄 (2〇2a、2〇2b、2〇2c與2〇2d)。以圖2所示的實施例為例 201243619 每一最新更新記錄包括四個記錄欄位,分別對應至終端裝 置A、B、C與D。也就是終端裝置a的最新更新記錄2〇2a 包含對應至終端裝置A的記錄攔位2〇4Aa、對應至終端裝 置B的記錄攔位204Ab、對應至終端裝置c的記錄攔位 204Ac以及對應至終端裝置D的記錄攔位204Ad。終端裝 置B的最新更新記錄202b包含對應至終端裝置A的記錄 欄位204Ba、對應至終端裝置B的記錄攔位2〇4Bb、對應 至終端裝置C的記錄欄位204Bc以及對應至終端裝置D的 記錄欄位204Bd。終端裝置c的最新更新記錄202c包含對 應至終端裝置A的記錄欄位2〇4Ca、對應至終端裝置B的 記錄欄位204Cb、對應至終端裝置c的記錄欄位2〇4Cc以 及對應至終端裝置D的記錄攔位2〇4Cd。終端裝置D的最 新更新記錄202d包含對應至終端裝置A的記錄欄位 204Da、對應至終端裝置B的記錄欄位204Db、對應至終 端裝置C的記錄欄位204Dc以及對應至終端裝置d的記 錄欄位204Dd。 終端裝置A、B、C與D的最新更新記錄(2〇2a、202b、 202c與202d)分別對應至終端裝置a的記錄欄位204Aa、 204Ba、204Ca與204Da分別記錄有關於終端裝置A編輯 檔案所產生的最新版本序號以及最新版本序號所對應的最 新檔案修改内容。同樣的,終端裝置A、B、C與D的最 新更新記錄(202a、202b、202c與202d)分別對應至終端裝 置B的記錄攔位2〇4Ab、204Bb、204Cb與204Db分別記 錄有關於終端裝置B編輯檔案所產生的最新版本序號以及 201243619 最新版本序號所對應的最新檔案修改内容。而終端裝置 A、B、C與D的最新更新記錄(202a、202b、202c與202d) 分別對應至終端裝置C的記錄攔位2〇4Ac、204Bc、204Cc 與204Dc分別記錄有關於終端裝置c編輯檔案所產生的最 新版本序號以及最新版本序號所對應的最新槽案修改内 容。此外,終端裝置A、B、C與D的最新更新記錄(202a、 202b、202c與202d)分別對應至終端裝置d的記錄欄位 204Ad、204Bd、204Cd與204Dd分別記錄有關於終端裝置 D編輯槽案所產生的最新版本序號以及最新版本序號所對 應的最新檔案修改内容。 接著,請參照圖1A,於步驟S101中,建立終端裝置 之間的一無線通訊連線。值得注意的是,無線通訊連線, 依據通訊網路型態分類,可包括無線個人網路連線 (Wireless Personal Area Netw〇rk,—颜)或無線區域網路 連線(Wireless Local Area Network,WLAN)。其中,無線 個人網路連線例如是基於IEEE8〇2.丨5標準建立連線,包括 基於藍芽規範的無線連線(藍芽配對)。 、之後,於步驟S105中,終端裝置進行一版本檢查 X才=互k查終^裝置的彼此的最新更新記錄中,終端裝】 所分別對應的記侧位巾所分別記錄的最新版本序號。 繼之,於步驟S111中,根據版本檢查的一檢查結 所有t互無線連_終端裝置進行—資料同步。201243619 VI. Description of the Invention: [Technical Field] The present invention relates to an electronic device and a method of operating the same, and more particularly to a terminal device and file synchronization method. [Prior Art] P: The development of various electronic devices and the advancement of various functions equipped with them, people's lives are increasingly inseparable from electronic devices. Commonly used electronic devices, such as personal computers, mobile phones, personal digital assistants (PDAs), etc., are usually equipped with a communication interface for users to send messages or data between the communication device and the terminal device. transfer. The message or data transfer step between the various electronic devices begins with the communication interface to establish a connection between the user and the terminal device. In the process of establishing the communication link, in addition to manually selecting the object to be established in the near-end electronic device, the user must manually input the communication password on the near-end electronic device for the near-end electronic device and The terminal devices use connection authentication or pairing when establishing a communication link. However, when more than two terminals are installed to establish communication links and edit and modify the same file together, how do you end the communication and the devices are connected to each other and modify the same-rights, and in the end When the set-up line is re-connected, the modification of the door-to-door notification by the plurality of terminal devices or the editing of the intra-valley synchronization becomes the main technology development 3 201243619. [Invention] The present invention provides a method for synchronizing a trough case. It can effectively record the progress of data synchronization of all terminal devices. The present invention provides a terminal device that can communicate with a plurality of terminal devices and jointly edit and modify the same file. The present invention proposes a method for synchronizing a trough case, which is applicable to a plurality of terminal vibrating co-editing ages, wherein each of the terminal devices has a latest update. Have recorded the 'new update record of the money contains several record intercepts corresponding to some terminal devices' and each of these records _ bit records - the latest version number and the most recent refractory (four) capacity, The party ί includes the establishment of a "wireless track connection" between the terminal devices. The checksums are used to mutually check the latest version numbers of the records recorded by the terminal devices of the terminal devices. According to the inspection result of the version check, the terminal devices perform data synchronization, wherein each of the ancient ridges finally synchronizes the data includes: the ones of the record locations corresponding to the latest update record versions The latest version numbers of the latest versions are not changed. In the j-record field, 'to update the latest slot in the record fields> and update the number of the latest version of the 201243619 corresponding to the terminal devices corresponding to the terminal device to be the same as the terminal device In the latest update record, the latest version number recorded by the record field corresponding to the terminal device. The terminal devices jointly modify the file to generate at least one common modified content via the wireless communication connection. At least one of the terminal devices is disconnected from the other terminal devices, and the terminal devices respectively store the common modified content into the recording blocks of the terminal devices to become the latest file modification content and update The latest version number in each of these record fields. In an embodiment of the present invention, the file synchronization method, wherein each of the terminal devices further has a history record for recording the latest version number and the latest version number before each of the record field updates. Corresponding to the latest file modification content. In an embodiment of the present invention, the file synchronization method, wherein each of the terminal devices performs the data synchronization comprises: performing an offline modification of the file by the terminal device before the wireless communication connection The wireless communication connection is transmitted to the other recording field corresponding to the terminal device in each of the terminal devices connected to the wireless communication to update the latest file modification content. In an embodiment of the present invention, the file synchronization method, wherein each of the terminal devices performs the data synchronization, and the latest version numbers of the recording units corresponding to the terminal device When the same, the terminal device further transmits the offline modification to the other recording terminal corresponding to the terminal device in each of the terminal devices connected to the wireless communication connection via the wireless communication connection to update the latest update. File modification content. 201243619 In a consistent embodiment of the present invention, the file synchronization method, wherein each of the terminal devices performs the data synchronization, when the terminal sets the number of the latest version numbers of the record stops corresponding to the terminal device The terminal device further includes the terminal device transmitting the offline modification to the other record field corresponding to the terminal device in each of the terminal devices connected by the wireless communication connection to update the latest update. File modification content. In an embodiment of the present invention, the file synchronization method, wherein each of the terminal devices performs the data synchronization, when the latest version numbers of the record fields corresponding to the terminal device are different And the latest update record of the terminal device, the at least one disconnection terminal device not connected to the terminal device via the wireless communication, and the latest file in the record field corresponding to the disconnection terminal device The modified content is the same as the latest file modification content in the record field corresponding to the terminal device, and the record age towel corresponding to the terminal device (4) is difficult to modify the content to be synchronized to other terminal devices. At the same time, the corresponding record fields of the other records are recorded in the same record position corresponding to the other secret end I. In one embodiment of the invention, the file synchronization method described above, wherein the wireless communication connection comprises a second line established based on the IEEE 802.15 standard. Further, the present invention further provides a terminal device including a first interface, a message interface, and a storage and processor. Storage medium, storage;, readable and writable program and - latest update record, wherein the latest update record 2 respectively to the ship terminal device and through the communication interface to connect the secret end device = 201243619 other these final shouts (four) Wei a record turn, A record of the latest version of a file, the number of two, the record of the second column, and the number of the new version, the corresponding (the latest) (four) U change. The processor is readable and writable from the computer to execute the computer. The steps include: performing the terminal device and the terminal device connecting the terminal device via the track interface. In the latest update record, the terminal devices are respectively G_ some ageing records are recorded as the latest version number. According to the check result of the version check, the data synchronization is performed, wherein the data synchronization includes: the latest update record +, when the latest version numbers of the record fields corresponding to the terminal device are the same] The same version number of the latest version is not changed. In the latest update records, when the latest version numbers of the record fields corresponding to the terminal device are different, the record corresponding to the terminal device in the latest update record of the δ hai terminal device is recorded. The latest file modification content in the field is synchronized to the record fields corresponding to the terminal device in the other terminal device to update the latest file modification content in the record blocks, and corresponding to the terminal device The latest version numbers of the record fields are updated to be the same as the latest version number recorded by the record field corresponding to the terminal device in the latest update record of the terminal device. Through the communication interface, the terminal device modifies the file together with other terminal devices connected to the terminal device via the communication interface to generate at least one common modification content. When the terminal device is disconnected from other terminal devices connected to the terminal device via the communication interface, the terminal device stores the common modification content to the records 201243619, and becomes the latest file modification content, and updates the recorded field. The latest version number in the middle. In one embodiment of the present invention, the terminal device has a history record for recording each of the record block number and the most recent π ΐ ίί 对应In the above example, the terminal device further includes: connecting the terminal device to the other device via the communication interface: before the second device, an offline modification made to the file is transmitted to the other through the communication system Each of the other terminal devices connected via the communication interface is repaired (4) of the library of the terminal device. In the embodiment of the present invention, in the above-mentioned terminal device, in the material synchronization, when the latest version numbers of the recording blocks corresponding to the terminal device are the same, The scale device transmits the offline modification to the record field corresponding to the terminal device in each of the other terminal devices connected to the other (four) track interface to update the latest file modification content. In the embodiment of the present invention, in the above-mentioned terminal device, in the batch material synchronization, when the terminal device corresponds to some of the record fields, the latest version number is not (4), and the terminal device The offline file is transmitted to the other (4) track interface through the side communication interface, and the record holder corresponding to the terminal I in each of the other terminal devices, the latest file modification content. 201243619 In an embodiment of the present invention, the terminal device, wherein, in the data synchronization, when the latest version numbers of the recording units corresponding to the terminal device are different, the latest version of the terminal device is further included The update record is not placed with at least one disconnection terminal t connected to the terminal device via the communication interface, and the latest file modification content in the record field corresponding to the disconnection terminal device is the same as that of the secret device The content of the most dragon (four) in the record booth is the most recent in the record field of the secret service, and the other terminal devices connected via the communication department. The recording booths corresponding to the end devices are simultaneously 'synchronized' to the recording fields at the end of the disconnection in the other terminal devices. In the embodiment of the present invention, the terminal device described above, wherein the = interface comprises a __wireless interface based on the IEE job. Based on the above, each terminal device in the present invention has a latest update, recording 'to separately record the number of the respective corresponding terminal device before the previous disconnection and the latest version of the latest version of the modified version of the inner valley two The latest update record effectively records the progress of the resources between the various terminal devices. Therefore, when at least two of the scale devices are wirelessly connected, the latest version of the record is recorded via the individual record of the newly recorded record. : You can know that the final job is clear to each other in the same age - the editing or stepping degree and the revision of the standard that needs to be synchronized with each other = the tongue therefore at least _ end of the pure face wireless connection, the benefits must start to synchronize each other For the same-editing or modification level of the file, 9 201243619, there is no need to repeat the synchronization of the latest file modification content that has been synchronized. In order to make the above features and advantages of the present invention more comprehensible, the following detailed description is given in conjunction with the accompanying drawings. [Embodiment] FIG. 1A is a flow chart of a method for synchronizing a trough case according to an embodiment of the present invention. Figure 2 is a schematic diagram of a method of synchronizing a method in accordance with the present invention. Referring to FIG. 1A, the file synchronization method of this embodiment is suitable for editing a file together by a plurality of terminal devices. This file is for example a plain text $, a video file or a variety of multimedia files. In addition, the terminal device is, for example, a portable device, including a mobile phone, a personal digital assistant, a notebook computer, or a tablet computer. In addition, the terminal device can also be a desktop computer. More specifically, the terminal device can be any electronic device having wireless communication capabilities. In addition, each terminal device has a latest update record, and the latest update record includes a plurality of record fields respectively corresponding to the terminal device, and each record field records a latest version number of the edited file and a corresponding version number of the latest version. A new file to modify the content. Referring to FIG. 2, for example, the file synchronization method of the above embodiment of the present invention is performed by the terminal devices A, B, C, and D. 2 shows the latest update recording state of the above-mentioned four terminal devices connecting and disconnecting each other in eight steps (including steps 2a, 2b, 2c, 2d, 2e, 2f, 2g and 2h). In addition, the terminal devices A, B, C, and D each have an up-to-date update record (2〇2a, 2〇2b, 2〇2c, and 2〇2d). Taking the embodiment shown in Fig. 2 as an example 201243619 Each latest update record includes four record fields, which correspond to terminal devices A, B, C and D, respectively. That is, the latest update record 2〇2a of the terminal device a includes a record block 2〇4Aa corresponding to the terminal device A, a record block 204Ab corresponding to the terminal device B, a record block 204Ac corresponding to the terminal device c, and corresponding to Recording block 204Ad of terminal device D. The latest update record 202b of the terminal device B includes a record field 204Ba corresponding to the terminal device A, a record block 2〇4Bb corresponding to the terminal device B, a record field 204Bc corresponding to the terminal device C, and a corresponding record to the terminal device D. Record field 204Bd. The latest update record 202c of the terminal device c includes a record field 2〇4Ca corresponding to the terminal device A, a record field 204Cb corresponding to the terminal device B, a record field 2〇4Cc corresponding to the terminal device c, and a corresponding terminal device. The record of D is 2〇4Cd. The latest update record 202d of the terminal device D includes a recording field 204Da corresponding to the terminal device A, a recording field 204Db corresponding to the terminal device B, a recording field 204Dc corresponding to the terminal device C, and a recording column corresponding to the terminal device d. Bit 204Dd. The latest update records (2〇2a, 202b, 202c, and 202d) of the terminal devices A, B, C, and D respectively correspond to the record fields 204Aa, 204Ba, 204Ca, and 204Da of the terminal device a, respectively, and the terminal device A edits the file. The latest version number generated and the latest file modification corresponding to the latest version number. Similarly, the latest update records (202a, 202b, 202c, and 202d) of the terminal devices A, B, C, and D respectively correspond to the recording blocks 2〇4Ab, 204Bb, 204Cb, and 204Db of the terminal device B, respectively, and the terminal devices are recorded. The latest version number generated by the B edit file and the latest file modification content corresponding to the latest version of 201243619. The latest update records (202a, 202b, 202c, and 202d) of the terminal devices A, B, C, and D respectively correspond to the record blocks 2〇4Ac, 204Bc, 204Cc, and 204Dc of the terminal device C, respectively, and are recorded for the terminal device c. The latest version number generated by the file and the latest slot modification content corresponding to the latest version number. Further, the latest update records (202a, 202b, 202c, and 202d) of the terminal devices A, B, C, and D respectively correspond to the recording fields 204Ad, 204Bd, 204Cd, and 204Dd of the terminal device d, respectively, and the editing slots for the terminal device D are recorded. The latest version number generated by the case and the latest file modification content corresponding to the latest version number. Next, referring to FIG. 1A, in step S101, a wireless communication connection between the terminal devices is established. It is worth noting that the wireless communication connection, according to the type of communication network, may include a wireless personal area network (Wireless Personal Area Netw〇rk) or a wireless local area network (Wireless Local Area Network, WLAN). ). Among them, the wireless personal network connection is based on the IEEE8〇2.丨5 standard for establishing a connection, including a Bluetooth connection-based wireless connection (bluetooth pairing). Then, in step S105, the terminal device performs a version check. The data of the latest version of each of the latest update records of the mutual-inspection device is the latest version number recorded by the corresponding side towel. Then, in step S111, according to a check check of the version check, all t-intercommunication_terminal devices perform data synchronization.

續之,於步驟S115中,無線通訊連 共同修改樓案以產生至少-共同修改内容:二iLThen, in step S115, the wireless communication jointly modifies the building to generate at least a common modification content: two iL

S 12 201243619 容例如是一編輯片段,包括文字編輯片段、影音編輯片段 或是多媒體檔案編輯片段。 之後,於步驟S121中,無線通訊連線的終端農置至 少其中之一與其他該些終端裝置斷線,同時每一終端裝置 分別儲存共同修改内容至終端裝置的最新更新記錄中的記 錄攔位中,而成為最新檔案修改内容,並且更新每一記錄 攔位中的最新版本序號。其中,更新每一記錄攔位中的最 新版本序號例如是將原本最新版本序號加一差值(例如自 然數一)。 上述實施例中的步驟sin中’根據版本檢查的檢查 結果’所有相互無線連線的終端裝置進行一資料同步的步 驟於圖1B中的實施例加以描述。圖1B是依照本發明一實 施例的一種檔案同步方法中資料同步步驟的流程簡圖。請 參照圖1B,於終端裝置的版本檢查(步驟sl〇5)之後,每一 終端裝置檢查其本身與其他終端裝置的最新更新記錄中, 其所對應的記錄欄位中的版本序號是否彼此相同(圖1B中 步驟S501)。 於步驟S505中,在最新更新記錄中,當一終端裝置 所對應到的所有記錄攔位巾的最新版本序號相同時,則不 更動相同的最新版本序號。 者相反的,於步驟S511中,在該些最新更新記錄中, 當一終端裝置所對制的所有記錄攔位巾的最新版本序號 不同時,則將此終端裝置本身的最新更新記錄中,此 終端裝置所對應的記錄攔位中的最新檔案修改内容同步至 13 201243619 其他終端裝置中此終端裝置所對應的所有記錄攔位中,以 更新記錄攔位中的最新播案修改内容,並且將對應此終端 裝置的所有記錄欄位中的最新版本序號更新成相同於此終 端裝置本身的最新更新記錄巾,此終端裝置所對應的記錄 攔位中所記錄的最新版本序號。 上述圖1A與圖1B所述的本發明檔案同步方法的實施 例,將於下述搭配圖2中的步驟厶至步驟汕做更進一 的描述。 舉例而言,® 2中的步.驟2a顯示終端裝置A、B、C =彼此藉由無線通訊連線(以圖2中步驟2a所顯示的虛 η , Γ無線通訊連線)’並開始對檔案作共同編輯。於本實 :終端裝置A、Β、C與D彼此藉由無線通訊連線 =、、裝置A無線通訊連線至終端裝置B、終端裝置B ΐ線至終端裝置C以及終端裝置C紐通訊連線 不^^ ^無線通訊連線方式代表之,然而本發明並 的無線 線的排顺八2 B、C與D各自兩兩無線連 之-為主要二以疋:終端裝置A、B、C與D其中 無線連線。;^ 他終端裝置皆無要終端裝置 端裝置I㈣中’甚至其他終端裝置與主要終 於^ 後,更彼此之間兩兩無線連線。 線,此與終絲置B、CM斷 内容至最新更新=A 6、〇:與1)分別儲存共同修改 更新S己錄中的記錄攔位中(前述實施例的步驟 201243619 S121)。因此,終端裝置A的最新更新記錄202a中,記錄 攔位204Aa、204Ab、204Ac與204Ad分別記錄最新版本 序號為Al、Bl、C1與D1。換句話說,終端裝置a、B、 C與D的最新更新記錄中,對應至終端裝置a的記錄攔位 204Aa、204Ba、204Ca與204Da在終端裝置A斷線的同時, 記錄終端裝置A編輯檔案所產生的最新版本序號為A1。 終端裝置A、B、C與D的最新更新記錄中,對應至終端 裝置B的記錄欄位2〇4Ab、204Bb、204Cb與204Db在終 端裝置A斷線的同時,記錄終端裝置B編輯檔案所產生的 最新版本序號為B1。終端裝置A、B、C與D的最新更新 記錄中,對應至終端裝置c的記錄攔位204Ac、2〇4Bc、 204Cc與204Dc在終端裝置A斷線的同時,記錄終端裝置 c編輯檔案所產生的最新版本序號為C1。終端裝置A、B、 C與D的最新更新記錄巾’對應至終端裝置D的記錄棚位 204Ad、204Bd、204Cd與204Dd在終端裝置A斷線的同 時’記錄終端裝置D編輯㈣所產生的最新版本序號為 由於最新更新記錄巾的記賴位巾所儲存的共 改内容為終端裝置A _麵產生,因此在所有終端裝置 、C與D中最新更新記錄内的記錄攔財所儲存 同修改内容彼此相同。更明麵說,各崎新更新中、 記錄攔位情記錄的最新版本序號A卜B1、C1盎D1\t 的最:當案修改内容彼此相同。換句話說:、在無ί …終知、置至少其中之—與其他終端裝置斷線的同 15 201243619 時,所有終端裝置除了更新記錄攔位中的最新版本序號, 也同時儲存最新版本序號分別對應的最新檔案修改内容 (即是共同修改内容)。 之後’於步驟2b中’在終端裝置a斷線之後,仍維 持無線連線狀態的終端裝置B、c與D繼續對檔案進行共 同編輯(共同修改)’至步驟2C中,終端裝置b、C與D彼 此斷線’於此同時’所有終端裝置B、c與D分別儲存共 同修改内容至最新更新記錄中的所分別對應記錄欄位中, 並且分別更新所記錄的最新版本序號為B2、C2與D2(前 述實施例的步驟S121)。與前述步驟2b中終端裝置A斷線 時的狀況相同’由於此時最新更新記錄中的記錄欄位中所 儲存的共同修改内容為終端裝置B、C與D斷線前所產 生’因此在所有終端裝置B、c與D中最新更新記錄内的 s己錄攔位中所儲存的共同修改内容彼此相同。也就是,各 個最新更新記錄(2〇2b、202c與202d)中記錄欄位中所記錄 的最新版本序號B2、C2與分別對應的最新檔案修改 内容彼此相同。 接著’於步驟2d中,終端裝置a與B經由無線連線, 而終端褒置C與D經由無線連線(前述實施例的步驟 S101)。於終端裝置八與b無線連線(例如藍芽配對)時,終 端襄置A與B各自進行一版本檢查(前述實施例中的步驟 sl〇5)。也就是,終端裝置a中的最新更新記錄2〇2a中終 端裝置A所對應的記錄欄位2〇4Aa所記錄的最新版本序號 為A1 ’此與終端裝置B中的最新更新記錄202b中終端裝 5 16 201243619 置A所對應的記錄攔位2〇4Ba所記錄的最新版本序號A1 相同,表示終端裝置A所對應的記錄欄位2〇4Aa與204Ba 中所記錄的最新檔案修改内容同步。因此根據前述實施例 (圖1A中的步驟sill以及圖1B中的步驟S5〇5),在資料 同步的步驟中,不更動相同的最新版本序號。 對於終端裝置B在最新更新記錄2〇2a與202b中所分 別對應的記錄攔位204Ab與204Bb,經由版本檢查發現終 端裝置B的最新更新記錄2〇2b辛的記錄攔位2〇4Bb所記 錄的最新版本序號為B2,這與終端裝置A中的最新更新 s己錄202a中終端装置B所對應的記錄攔位2〇4Ab所記錄 的最新版本序號B1不相同,且表示終端裝置b在最新更 新記錄202a中所對應的記錄攔位2〇4Ab所記錄的最新檔 案修改内容與記錄欄位204Bb中所記錄的最新檔案修改内 容並不同步。而且從記錄欄位2〇4Ab與204Bb所分別記錄 的最新版本序號B1與B 2可發現終端裝置b的最新更新記 錄202b中其所對應的記錄攔位204Bb所記錄的最新版本 序號B2,比最新更新記錄202a中終端裝置B所對應的記 錄襴位204Ab所記錄的最新版本序號B1還要更新。因此 在版本檢查之後進行資料同步時,根據前述實施例(圖1B 的步驟S511) ’將終端裝置B在其最新更新記錄2〇2b中所 對應的記錄攔位204Bb中所記錄的最新檔案修改内容,同 步至終端裝置A的最新更新記錄202a中終端裝置b所對 應的記錄攔位204Ab中,並且將對應終端裝置b的記錄棚 位204Ab中的最新版本序號更新成相同於終端裝置b的最 17 201243619 新更新記錄2G2b t,終端裝置B所對應的記錄攔位2〇4Bb 所記錄的最新版本序號,也就是將記賴位綱处中的最 新版本序號由B1更新成B2。 此外,值得注意的是,對於終端裝置八與]5而言,未 與終端裝置A以及B經由該無線通訊連線的終端裝置c 與D則分別視為斷線終端裝置。然而,由步驟2c中可得 知’斷線終端裝置C與D在終端裝置B的最新更新記錄 202b中所對應的記錄攔位204Bc與204Bd中所記錄的該最 新槽案修改内容相同於終端裝置B所對應的記錄攔位 Bb中的最難案修改内容。亦即最新版本序號所 對應的最新檔案修改内容與版本序號C2與D2所對應的最 新檔案修改内容相同。因此於終端裝置㈣對應的記錄搁 位204Bb中的最新槽案修改内容同步至終端裝置a中的終 端裝置B所對應的記錄攔位2〇4Ab的同時,亦同時同步至 終端裝置A中斷線終端裝置c與〇所對應的記錄^位 204Ac與204Ad,並且將終端裝置A中斷線終端裝置c與 D所對應的記錄欄位204Ac與2〇4Ad所記錄的最新版本^ 號由C1與D1更新至C2與D2。 另一方面,在終端裝置C與D連線時,經過前述實施 例的版本檢查(步驟105)後發現,終端裝置c與D中,對 應到相同終端裝置的記錄攔位所記錄的最新版本序號彼此 相同,因此如同前述實施例所描述(步驟S5〇5),在進行資 料同步時,無須更動記錄攔位所記錄的最新版本序號。 接著,步驟2d中,連線的終端裝置A與B,與連線S 12 201243619 For example, an editing clip includes a text editing clip, a video editing clip, or a multimedia file editing clip. Then, in step S121, at least one of the terminals of the wireless communication connection is disconnected from the other terminal devices, and each terminal device separately stores the record modification in the latest update record of the terminal modification device. In, it becomes the latest file modification content, and updates the latest version serial number in each record block. Wherein, updating the latest version number in each record block is, for example, adding a difference value (for example, a natural number one) to the original latest version number. The steps of performing the data synchronization of all the wirelessly connected terminal devices in the step sin in the above-described embodiment in accordance with the check result of the version check are described in the embodiment of Fig. 1B. FIG. 1B is a schematic flow chart of a data synchronization step in a file synchronization method according to an embodiment of the invention. Referring to FIG. 1B, after the version check of the terminal device (step s1〇5), each terminal device checks whether the version numbers in the record fields corresponding to the latest update records of the terminal device and the other terminal devices are identical to each other. (Step S501 in Fig. 1B). In step S505, in the latest update record, when the latest version serial number of all the record intercepting towels corresponding to a terminal device is the same, the same latest version serial number is not changed. Conversely, in step S511, in the latest update records, when the latest version number of all the record intercepting pads of a terminal device is different, the latest update record of the terminal device itself is recorded. The latest file modification content in the record block corresponding to the terminal device is synchronized to all the record intercepts corresponding to the terminal device in the other terminal device in 2012-0419, to update the latest broadcast modification content in the record block, and correspondingly The latest version number of all the record fields of the terminal device is updated to the latest update record of the terminal device itself, and the latest version number recorded in the record block corresponding to the terminal device. The embodiment of the file synchronization method of the present invention described above with reference to Fig. 1A and Fig. 1B will be further described below in conjunction with the steps 厶 to 汕 in Fig. 2. For example, step 2a of the ® 2 shows that the terminal devices A, B, C = are connected to each other by wireless communication (by the virtual η shown in step 2a of FIG. 2, Γ wireless communication connection)' and start Co-editing the files. In this: terminal devices A, Β, C, and D are connected to each other by wireless communication =, device A wireless communication to terminal device B, terminal device B to terminal device C, and terminal device C communication communication The line is not ^^ ^ wireless communication connection mode, but the wireless line of the present invention is arbitrarily connected to the two 2B, C and D, respectively, two-way wireless connection - for the main two: terminal devices A, B, C Connect with D wirelessly. ;^ The terminal device has no terminal device. In the device I (4), even the other terminal devices and the main terminal device are connected to each other wirelessly. Line, this and the final wire set B, CM break content to the latest update = A 6, 〇: and 1) separately store the common modification in the record block in the update S (the previous embodiment step 201243619 S121). Therefore, in the latest update record 202a of the terminal device A, the record blocks 204Aa, 204Ab, 204Ac, and 204Ad respectively record the latest version numbers Al, Bl, C1, and D1. In other words, in the latest update record of the terminal devices a, B, C, and D, the recording blocks 204Aa, 204Ba, 204Ca, and 204Da corresponding to the terminal device a are recorded while the terminal device A is disconnected, and the recording terminal device A edits the file. The latest version number generated is A1. In the latest update record of the terminal devices A, B, C, and D, the record fields 2〇4Ab, 204Bb, 204Cb, and 204Db corresponding to the terminal device B are recorded while the terminal device A is disconnected, and the recording device device B records the file. The latest version number is B1. In the latest update record of the terminal devices A, B, C, and D, the record blocks 204Ac, 2〇4Bc, 204Cc, and 204Dc corresponding to the terminal device c are generated while the terminal device A is disconnected, and the recording device device c edits the file. The latest version number is C1. The latest update record of the terminal devices A, B, C, and D 'corresponds to the recording booths 204Ad, 204Bd, 204Cd, and 204Dd of the terminal device D while the terminal device A is disconnected, and the latest is generated by the recording terminal device D (4). The version number is the same as that of the terminal device A _ face stored in the record pad of the latest update record, so the record saves in the latest update record of all terminal devices, C and D are the same modified content. Same to each other. To be more explicit, the latest version of the new version of the record, the serial number of the record of the interception record, A B1, C1 ang D1\t, the most: the modified content of the case is the same. In other words: in the absence of ... the final knowledge, at least one of them - the same 15 201243619 disconnected from other terminal devices, all terminal devices in addition to updating the latest version number in the record block, also store the latest version number respectively Corresponding latest file modification content (that is, jointly modified content). Then, in step 2b, after the terminal device a is disconnected, the terminal devices B, c, and D that maintain the wireless connection state continue to jointly edit (co-modify) the file to the terminal device b, C in step 2C. And D are disconnected from each other 'at the same time', all terminal devices B, c and D respectively store the common modified content to the corresponding corresponding record fields in the latest update record, and respectively update the recorded latest version number B2, C2 And D2 (step S121 of the foregoing embodiment). The same as the situation when the terminal device A is disconnected in the foregoing step 2b 'because the common modification content stored in the record field in the latest update record is generated before the terminal device B, C and D are disconnected', so at all The common modification contents stored in the sever recording blocks in the latest update record in the terminal devices B, c, and D are identical to each other. That is, the latest version numbers B2, C2 recorded in the record fields in the latest update records (2〇2b, 202c, and 202d) and the latest file modification contents respectively corresponding to each other are identical to each other. Then, in step 2d, the terminal devices a and B are wirelessly connected, and the terminal devices C and D are wirelessly connected (step S101 of the foregoing embodiment). When the terminal device 8 is wirelessly connected to b (e.g., Bluetooth pairing), the terminal devices A and B each perform a version check (step sl〇5 in the foregoing embodiment). That is, the latest version number recorded in the record field 2〇4Aa corresponding to the terminal device A in the latest update record 2〇2a in the terminal device a is A1 'This is the terminal update in the latest update record 202b in the terminal device B. 5 16 201243619 The latest version number A1 recorded in the record block 2〇4Ba corresponding to A is the same, indicating that the record fields 2〇4Aa corresponding to the terminal device A are synchronized with the latest file modification contents recorded in 204Ba. Therefore, according to the foregoing embodiment (step sill in Fig. 1A and step S5 〇 5 in Fig. 1B), in the step of data synchronization, the same latest version number is not changed. For the record intercepts 204Ab and 204Bb respectively corresponding to the latest update records 2〇2a and 202b of the terminal device B, the latest update record of the terminal device B is found via the version check, and the record block 2〇4Bb recorded by the latest update record 2〇2bxin is recorded. The latest version number is B2, which is different from the latest version number B1 recorded by the recording block 2〇4Ab corresponding to the terminal device B in the latest update s recorded 202a in the terminal device A, and indicates that the terminal device b is in the latest update. The latest file modification content recorded by the record block 2〇4Ab corresponding to the record 202a is not synchronized with the latest file modification content recorded in the record field 204Bb. Moreover, the latest version numbers B1 and B2 recorded from the record fields 2〇4Ab and 204Bb respectively can find the latest version number B2 recorded by the record block 204Bb corresponding to the latest update record 202b of the terminal device b, which is newer than the latest version. The latest version number B1 recorded by the recording unit 204Ab corresponding to the terminal device B in the update record 202a is also updated. Therefore, when data synchronization is performed after the version check, according to the foregoing embodiment (step S511 of FIG. 1B) 'the latest file modification content recorded in the record block 204Bb corresponding to the terminal device B in its latest update record 2〇2b. And synchronized to the recording block 204Ab corresponding to the terminal device b in the latest update record 202a of the terminal device A, and updating the latest version number in the recording booth 204Ab of the corresponding terminal device b to be the same as the most 17 of the terminal device b. 201243619 The new update record 2G2b t, the latest version number recorded by the record block 2〇4Bb corresponding to the terminal device B, that is, the latest version number in the record is updated from B1 to B2. Further, it is to be noted that, for the terminal devices 8 and 5, the terminal devices c and D which are not connected to the terminal devices A and B via the wireless communication are regarded as disconnection terminal devices, respectively. However, it can be seen from step 2c that the latest slot modification content recorded in the record blocks 204Bc and 204Bd corresponding to the disconnection terminal devices C and D in the latest update record 202b of the terminal device B is the same as the terminal device. The most difficult case modification content in the record block Bb corresponding to B. That is, the latest file modification content corresponding to the latest version serial number is the same as the latest file modification content corresponding to the version numbers C2 and D2. Therefore, the latest slot modification content in the recording slot 204Bb corresponding to the terminal device (4) is synchronized to the recording block 2〇4Ab corresponding to the terminal device B in the terminal device a, and simultaneously synchronized to the terminal device A interrupt line. The terminal devices c and the corresponding recording bits 204Ac and 204Ad, and the terminal devices A interrupt the line terminal devices c and D corresponding recording fields 204Ac and 2〇4Ad recorded the latest version ^ by C1 and D1 Updated to C2 and D2. On the other hand, when the terminal device C is connected to the D, after the version check (step 105) of the foregoing embodiment, it is found that the latest version number recorded by the recording device corresponding to the same terminal device in the terminal devices c and D They are identical to each other, so as described in the foregoing embodiment (step S5〇5), when data synchronization is performed, it is not necessary to change the latest version number recorded by the recording block. Next, in step 2d, the connected terminal devices A and B, and the connection

S 18 201243619 的終端裝置C與D各自共㈣行觀轉(㈣修改)並分 別產生共同修改内容。之後步驟2e中,終端裝置a盘B 斷線,而終端裝置C與D彼此斷線,於此同時,終端裝置 A與B分職存終端裝置A與B鱗連料朗修改標案 的共同修改内容至最新更新記錄2〇2a與2〇2b中的所分別 對應記錄攔位2〇4Aa與2_a ’以及記賴位綱Ab與 20偏中,並且分別更新所記錄的最新版本序號為A2盥 B3(前述實施例的步驟S121广而終端裝置c與d分別儲 存終端裝置C與D無線連線時共同修改觀的共同修改内 容至最新更新記錄202c與202d中的所分別對應記錄搁位 204Cc與204Dc,以及記錄欄位2〇4Cd與2〇4Μ中並且 分別更新所記錄的最新版本序號為C3肖D3(前述實施例 的步驟S121)。與前述步驟2b巾終端裝置A斷線時的狀況 相同,由於此時最新更新記錄中的記錄欄位中所儲存的共 同修改内容為終端裝置A與B以及終端裝置c與D互相 斷線前所產生,因此在終端裝置A與B中最新更新記錄内 的記錄攔位中所儲存的共同修改内容彼此相同。也就是, 各個最新更新記錄(202a與202b)中記錄攔位中所記錄的最 新版本序號A2與B3分別對應的最新檔案修改内容彼此相 同。同樣的終端裝置C與D中最新更新記錄内的記錄欄位 中所儲存的共同修改内容彼此相同。也就是,各個最新更 新記錄(202c與202d)中記錄欄位中所記錄的最新版本序號 C3與D3分別對應的最新檔案修改内容彼此相同。 之後,步驟2f中,終端裝置B與c經由無線連線(前 201243619 述實施例的步驟S101)。與步驟2d相同,於終端裝置B與 C無線連線(例如藍芽配對)時,終端裝置B與c各自進行 一版本檢查(前述實施例中的步驟S105),因此終端裝置B 中的最新更新記錄2G2b巾終魏置B所對觸記錄搁位 204Bb所記錄的最新版本序號為B3,此與終端裝置c中的 最新更新圯錄202c中終端裝置B所對應的記錄攔位2〇4Cb 所記錄的最新版本序號B2不同,且表示終端裝置B在最 新更新s己錄202b中所對應的記錄欄位2〇4Bb所記錄的最 新檔案修改内容與在最新更新記錄2〇2c中所對應的記錄 欄位204Cb中所記錄的最新檔案修改内容並不同步。而^ 從記錄攔位204Bb與204Cb所分別記錄的最新版本序號 B3與B2可發現終端裝置B的最新更新記錄2〇2b中其所° 對應的記錄攔位204Bb所記錄的最新版本序號B3,/比最 新更新記錄202c中終端裝置B所對應的記錄欄位2〇4(^ 所記錄的最新版本序號B2還要更新。因此在版本檢查之 後進行資料同步時,根據前述實施例(圖1B的步驟S5ii), 將終端裝置B在其最新更新記錄鳩巾所對應的記錄搁 位204Bb中所記錄的最新檔案修改内容,同步至終端裝置 C的最新更新記錄2G2e中終端裝置b所對應的記錄^位 204Cb中,並且將對應終端裝置B的記錄欄位2〇4(:b中的 最新版本序號更新成相同於終端裝置B的最新更新記錄 202b中,終端裝置B所對應的記錄攔位2〇4Bb所記錄的 最新版本序號,也就是將記錄攔位2〇4Cb中的最 號由B2更新成B3。同樣的,將終端裝置c在其最新The terminal devices C and D of S 18 201243619 each have a total of (four) rows of observations ((4) modifications) and jointly produce the common modification content. After the step 2e, the terminal device a is disconnected from the disk B, and the terminal devices C and D are disconnected from each other. At the same time, the terminal device A and the B share the terminal device A and the B scale are modified to modify the standard. The content to the latest update record 2〇2a and 2〇2b respectively correspond to the record block 2〇4Aa and 2_a′ and the record position Ab and 20, and update the recorded latest version number A2盥B3 respectively (the aforementioned Step S121 of the embodiment is wide, and the terminal devices c and d respectively store the common modification content of the view when the terminal device C and the D wireless connection are connected to the corresponding record seats 204Cc and 204Dc in the latest update records 202c and 202d, respectively. Recording fields 2〇4Cd and 2〇4Μ and updating the latest version number recorded as C3 肖D3 (step S121 of the foregoing embodiment) respectively. The same as the situation when the above-mentioned step 2b towel terminal device A is disconnected, due to this The common modification content stored in the record field in the latest update record is generated before the terminal devices A and B and the terminal devices c and D are disconnected from each other, and thus the record block in the latest update record in the terminal devices A and B is generated. Bit in The stored common modified contents are identical to each other. That is, the latest file modification contents respectively corresponding to the latest version numbers A2 and B3 recorded in the record blocks in the latest update records (202a and 202b) are identical to each other. The same terminal device C and The common modification contents stored in the record field in the latest update record in D are identical to each other, that is, the latest version numbers C3 and D3 respectively recorded in the record fields in the latest update records (202c and 202d) respectively. The file modification contents are identical to each other. Thereafter, in step 2f, the terminal devices B and c are wirelessly connected (step S101 of the embodiment of the previous 201243619). As in step 2d, the terminal device B is wirelessly connected to the C (for example, Bluetooth). When pairing), the terminal devices B and c each perform a version check (step S105 in the foregoing embodiment), so the latest update record in the terminal device B records the latest record recorded by the touch record place 204Bb of the 2G2b towel. The version number is B3, which is different from the latest version number B2 recorded by the record block 2〇4Cb corresponding to the terminal device B in the latest update record 202c in the terminal device c. And indicates that the latest file modification content recorded by the terminal device B in the record field 2〇4Bb corresponding to the latest update s record 202b is the latest recorded in the record field 204Cb corresponding to the latest update record 2〇2c. The file modification contents are not synchronized. And the latest version numbers B3 and B2 recorded from the record blocks 204Bb and 204Cb respectively can be recorded in the record block 204Bb corresponding to the latest update record 2〇2b of the terminal device B. The latest version number B3, / is updated more than the record field 2〇4 (^ the latest version number B2 recorded by the terminal device B in the latest update record 202c). Therefore, when data synchronization is performed after the version check, according to the foregoing embodiment (step S5ii of FIG. 1B), the latest file modification content recorded by the terminal device B in the record job 204Bb corresponding to the latest update record wipe is synchronized. The latest update record to the terminal device C is recorded in the record bit 204Cb corresponding to the terminal device b in 2G2e, and the latest version number in the record field 2〇4 (:b) of the corresponding terminal device B is updated to be the same as the terminal device B. In the latest update record 202b, the latest version number recorded by the record block 2〇4Bb corresponding to the terminal device B, that is, the highest number of the record block 2〇4Cb is updated from B2 to B3. Similarly, the terminal is Device c is at its latest

S 20 201243619 記錄202c中所對應的記錄攔位2〇4Cc中所記錄的最新 案f改内容’同步至終端裝置B的最新更新記錄2〇2b ^ ,端裝置c所對應的記錄攔位綱Be中,並且將對應終端 裝置c的記錄欄位204Bc中的最新版本序號(C2)更新成 同於終端裝置C的最新更新記錄202c中,終端裝置c所 對應的記錄欄位2〇4Cc所記錄的最新版本序號(C3)。 對於終端裴置C而言,終端裝置A為斷線終端裝置, 而終端裝置B中的最新更新記錄2〇2b相對應於終端裝置a 的記錄欄位204Ba記錄的最新檔案修改内容與相對應終端 裝置B的記錄欄位2〇4Bb記錄的最新檔案修改内容相同, 因此在上述將終端裝置B在其最新更新記錄202b中所對 應的記錄欄位204Bb中所記錄的最新檔案修改内容,同步 至終端裝置C的最新更新記錄202c中終端裝置B所對應 的記錄攔位204Cb的同時,也同步至終端裝置c的最新更 新記錄202c中終端裝置A所對應的記錄攔位2〇4Ca,並且 更新記錄欄位204Ca中所記錄的最新版本序號為A2。此 外,對於終端裝置B而言,終端裝置D為斷線終端裝置, 如同上述,在將終端裝置C在其最新更新記錄2〇2c中所 對應的記錄襴位204Cc中所記錄的最新檔案修改内容,同 步至終端裝置B的最新更新記錄2〇2b中終端裝置C所對 應的記錄攔位204Bc的同時,也同步至終端裝置b的最新 更新記錄202b中終端裝置d所對應的記錄欄位204Bd, 並且更新記錄攔位2〇4Bd中所記錄的最新版本序號為D3。 接著’步驟2f中,連線的終端裝置b與C共同進行 21 201243619 槽案編輯(檔案修改)以產生共同修改内容。之後步驟2g 中,終端裝置B與C斷線,於此同時,終端裝置B與C 分別儲存共同修改檔案的共同修改内容至最新更新記錄 202b與202c中的所分別對應記錄欄位2〇4Bb與2〇4Bc, 以及記錄欄位204Cb與204Cc中,並且分別更新所記錄的 最新版本序號為B4與C4(前述實施例的步驟S121)。與前 述步驟2b中終端装置A斷線時的狀況相同,由於此時最 新更新記錄中的記錄攔位中所儲存的共同修改内容為終端 裝置B與C相斷線前所產生,因此在終端裝置B與c中 最新更新記錄内的記錄攔位中所儲存的共同修改内容彼此 相同。也就是,最新版本序號84與(:4分別對應的最新檔 案修改内容彼此相同。 於步驟2h中,終端裝置八、]8、(:與]:)經由無線連線 (前述實施例的步驟S1G1)。同樣的,在無線連線後,所有 終端裝置A、B、C與D進行—版本檢查(前述實施例中的 步驟S105),並根據版本檢查結果,進行一資料同步,以 將各個最败新記射,每—終狀置所制的記錄欄位 所s己錄的最新版本序號以及最新版本序號所對應的最新檐 案修改内容相互同步(同步結果請參照圖2中步驟2h所顯 不的各個記錄欄位)。 於-實施例中,每-終端裂置還具有一歷史記錄,用 —記_位更新前的最新版本序號以及最新版本 ^號所制的最浦雜改岐。圖3是舰本發明一實 列的-終端裝置的-歷史記錄示意簡圖。請參照圖3,S 20 201243619 The latest file recorded in the record block 2〇4Cc corresponding to the record 202c is changed to the latest update record of the terminal device B2〇2b^, and the record block corresponding to the end device c is And updating the latest version number (C2) in the record field 204Bc of the corresponding terminal device c to the latest update record 202c of the terminal device C, recorded in the record field 2〇4Cc corresponding to the terminal device c. The latest version number (C3). For the terminal device C, the terminal device A is the disconnection terminal device, and the latest update record 2〇2b in the terminal device B corresponds to the latest file modification content and corresponding terminal recorded in the recording field 204Ba of the terminal device a. The latest file modification content recorded by the recording field 2〇4Bb of the device B is the same, so that the latest file modification content recorded in the recording field 204Bb corresponding to the terminal device B in its latest update record 202b is synchronized to the terminal. The recording block 204Cb corresponding to the terminal device B in the latest update record 202c of the device C is also synchronized to the record block 2〇4Ca corresponding to the terminal device A in the latest update record 202c of the terminal device c, and the record column is updated. The latest version number recorded in bit 204Ca is A2. Further, with respect to the terminal device B, the terminal device D is the disconnection terminal device, as described above, the latest file modification content recorded in the recording unit 204Cc corresponding to the terminal device C in its latest update record 2〇2c. Synchronizing to the recording block 204Bc corresponding to the terminal device C in the latest update record 2〇2b of the terminal device B, and also synchronizing to the recording field 204Bd corresponding to the terminal device d in the latest update record 202b of the terminal device b, And the latest version number recorded in the update record block 2〇4Bd is D3. Next, in step 2f, the connected terminal device b and C perform 21 201243619 slot editing (file modification) to generate a common modification content. Then, in step 2g, the terminal devices B and C are disconnected. At the same time, the terminal devices B and C respectively store the common modified content of the common modified file to the corresponding corresponding record fields 2〇4Bb in the latest update records 202b and 202c, respectively. 2〇4Bc, and the recording fields 204Cb and 204Cc, and respectively update the recorded latest version numbers B4 and C4 (step S121 of the foregoing embodiment). The same as the situation when the terminal device A is disconnected in the foregoing step 2b, since the common modification content stored in the record block in the latest update record is generated before the terminal device B and the C phase are disconnected, the terminal device is generated. The common modification contents stored in the record block in the latest update record in B and c are identical to each other. That is, the latest version number 84 and (: 4 respectively corresponding to the latest file modification contents are identical to each other. In step 2h, the terminal device eight, ] 8, (: and ]:) is connected via wireless (step S1G1 of the foregoing embodiment) Similarly, after the wireless connection, all terminal devices A, B, C and D perform a version check (step S105 in the foregoing embodiment), and according to the version check result, perform a data synchronization to The new version of the recorded version of the record field and the latest version of the latest version of the record are synchronized with each other (the synchronization result is shown in step 2h of Figure 2) In the embodiment, the per-terminal splicing also has a history record, and the latest version number of the latest version before the update is updated with the latest version. Figure 3 is a schematic diagram showing the history of a terminal-terminal device of the present invention. Referring to Figure 3,

S 22 201243619 所綠示為終端裝置A關史記錄,其記錄終端裝置八於資 料同步過程(步驟2d與2h)與斷線時儲存共同修改内容斑 更新最新版本序號時(步驟2b與2e),記錄棚位2〇4Aa、 2〇4Ab、204Ac與204Ad更新前的最新版本序號(如表3〇ι 所示)與其所對應的最新檔案修改内容(如表3〇3)。 此外,於又-實施例中,在進行資_步過程中還包 括:將終端裝置於該祕通訊連線之前對難所做的一離 線修改經由該無㈣猶輯遞料他_鱗通訊連線 的終端裝置巾所職的記賴位’最新檔案修改 内容。舉例而·Τ,於步驟2d中,當終端裝置A|%B無線 連線’並進行資料同步時,雖然終端裝置A所對應的記錄 攔位204Aa與204Ba中記錄的版本序號相同(都是A1),但 是在終端裝置A與B連線之前,終端裝置A對於檔案進 行了離線修改’於㈣同步過程巾在不更改記錄棚位 204Aa與204Ba中記錄的版本序號的狀況下,將終端裝置 A對於檔案的離線修改傳遞至終端裝置B的最新更新記錄 202b中終端裝置a所對應的記錄攔位2〇4Ba,以更新所記 錄的最新槽案修改内容。 同樣的當終端裝置B對於檔案也進行了離線修改,因 此於資料同步過程中,不但將終端裝置B中最新更新記錄 202b内終端裝置b所對應的記錄攔位2〇4Bb内的最新樓 案修改内谷同步至最新更新記錄2〇2a内終端裝置b所對 應的記錄攔位2〇4Ab,還同時將終端裝置B對於檔案進行 的離線修改傳遞至記錄攔位2〇4Ab,以更新所記錄的最新 23 201243619 檔案修改内容。 …此外,於再一實施例中,終端裝置相互無線連線,進 行資料同步過私中’終端裝置會互相傳遞需要同步的最新 &案修改θ谷,以使所有終端裝置觸存的财編輯結果 互相-致而達到資料同步的目的。對於—終端裝置而言, ^斤接^的最㈣隸改魄與此終献㈣最新檀案 j内#不重複時’則直接將所接㈣的最㈣案修改内 中端裝置的原本最新樓案修改内容合併。然而,當 改内j ^ t新齡修㈣容與此終端裝置的最新權案修 則並列接收到的最新檔案修改内容與此終 置ίΐΐΐ ί新檔案修改内容,以待無線連線的終端裝 同修改時,由操作終端裝置邊及檔案的使 用者決疋選用哪一個最新檔案修改内容。 圖。本Γ,—實施例的—種終端裝置的示意簡 = 包括-通訊介 基於1醜G2·15標準建‘的^線ΐ= 新記錄更4新儲Ϊ—電腦可讀寫程式與-最新更 中詳細描述::===容已於前述實施例 儲存媒體404載入電腦可讀J而處:器406,則可從 式所包含的複數個㈣。·’H以執行電腦可讀寫程 4〇〇 ,丨面術連結終端裝置400的其他終端裝S 22 201243619 Green is shown as the terminal device A history record, which records the terminal device eight when the data synchronization process (steps 2d and 2h) and the disconnection store the common modification content spot update the latest version number (steps 2b and 2e), Record the latest version number (as shown in Table 3〇ι) before the update of 2〇4Aa, 2〇4Ab, 204Ac and 204Ad, and the latest file modification content (see Table 3〇3). In addition, in the embodiment, the method further includes: performing an offline modification of the terminal device before the connection to the secret communication, and transmitting the _scale communication connection via the non-fourth The terminal device wipes the position of the job's latest file modification content. For example, in step 2d, when the terminal device A|%B is wirelessly connected and performs data synchronization, although the record numbers 204Aa and 204Ba corresponding to the terminal device A are the same as the version number recorded in the 204Ba (all are A1). ), but before the terminal device A and B are connected, the terminal device A performs offline modification on the file. In the case where the (four) synchronization process towel does not change the version number recorded in the recording booths 204Aa and 204Ba, the terminal device A is The offline modification of the file is transmitted to the record block 2〇4Ba corresponding to the terminal device a in the latest update record 202b of the terminal device B to update the recorded latest slot modification content. Similarly, when the terminal device B also performs offline modification on the file, in the data synchronization process, not only the latest building modification in the record block 2〇4Bb corresponding to the terminal device b in the latest update record 202b in the terminal device B is modified. The inner valley is synchronized to the record block 2〇4Ab corresponding to the terminal device b in the latest update record 2〇2a, and the offline modification of the file by the terminal device B is also transmitted to the record block 2〇4Ab to update the recorded The latest 23 201243619 file modification content. In addition, in still another embodiment, the terminal devices are wirelessly connected to each other to perform data synchronization. The terminal device transmits to each other the latest & method modification θ valley that needs to be synchronized, so that all terminal devices can be saved. The results are mutually exclusive and achieve the purpose of data synchronization. For the terminal device, the most (four) syllabus of the jinji ^ and the final offering (four) the latest banyan case j inside # do not repeat 'the direct (4) of the most (four) case to modify the original mid-end device The contents of the modification of the building were merged. However, when the change is made, the latest file modification and the latest file modification received by this terminal device are combined with the final file modification content, and the new file modification content is waiting for the wireless connection terminal installation. When the same modification is made, the user who operates the terminal device and the file decides which of the latest file modification contents to use. Figure. Γ Γ — — 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 实施 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯 通讯The detailed description in the above::=== has been loaded into the computer-readable J at the storage medium 404 of the foregoing embodiment: the device 406 can be plural (4) included in the formula. · 'H to perform computer readable and writable process 4〇〇, other terminals installed in the joint interface device 400

S 24 201243619 置的最新更新記錄中’每個終端裝置所分別對應的記錄铜 位中所分別記錄的最新版本序號(前述步驟si〇5)。 之後,根據版本檢查的檢查結果,進行一資料同步 驟Sill)。其巾資料同步包括:在财最新更新記錄中二 當此終端裝置4 G 0所對㈣的記賴対的最新版本序號 相同時’則不更動相同的最新版本序號(步驟·5)。而在 所有最新更新記錄中,當此終端裝置所對應到的記錄 欄位中的最新版本序财㈣,聽此終端裝置的最 新更新記射終端裝置所對應的記賴位巾的最新产 案修改内容同步至其他終端裳置中此終難置所對應 的記錄欄位中,以更新記賴位中的最難祕改内容;^ 並且將對應終端裂置彻的記錄欄位中的些最新版本序號 更新成相同於此終财置_的最败新記射,此終端 裝置4〇〇㈣觸記賴⑽記錄的該最新版本序號(步 驟 S511)。 之後,經由通訊介面402,終端裝置4〇〇與經由通訊 介面402連結終端裝置彻的其他終端裝置共同修改樓案 以產生至少一共同修改内容(步驟SU5)。 接著,終端裝置400與經由通訊介面4〇2連結此線端 裝置400的其他終端裝置斷線時,終端裳置_儲存共同 修改内容纽賴位巾,而成為最新難修改内容,並且 更新每一記錄攔位中的最新版本序號(步驟si2i)。 前述勸執行電腦可讀寫程;切步驟還包括 則述貫細例中提到的資料同步過程中’終端裝置互相傳遞 25 201243619 離線修改内容的步驟,以及在資料同步過程中,斷線終端 裝置所對應的記錄攔位所記錄的最新版本序號與最新檔案 修改内容的更新步驟。由於上述步驟已經於前述實施例中 詳述,因此不在此作贅述。 綜上所述,本發明中每一終端裝置中具有一最新更新 §己錄,以分別記錄所個別對應的終端裝置於前次斷線前的 最新版本序號與最新版本序號所對應的最新檔案修改内 容。藉由最新更新記錄有效記錄各個終端裝置之間的資料 同步進度’因此當至少任兩個終端裝置無線連線時,經由 檢查個別的最較新記錄的記賴位巾所記錄的最新版本 序號’即可知道終端裝置彼此之間對於同—檔案的編輯或 修,程度、資料同步進度’以及互減要同步的檔案修改 内容。因此至少任兩鱗端裝置重新無線連線之後,無須 各巧,頭開始同步彼此對於同-職的編輯或修改程度, 也就疋無須重複同步已經同步過的最新檔案修改内容。 雖然本發明已以實施例揭露如上,然其並非用以限定 ^明’任何所屬技術領域中具有通常知 圍内,當可作些許之更動與潤御: 呆° 蔓範圍當視後附之申請專利範圍所界定者為準。 【圖式簡單說明】 程簡^ U是依照本發明—實施綱—觀案同步方法流 圖1B是依照本發明一實施例的一種檔案同步方法中In the latest update record of S 24 201243619, the latest version number recorded in each of the record copper positions corresponding to each terminal device (step si〇5 above). Then, according to the result of the check of the version check, a data synchronization step Sill) is performed. The data synchronization of the towel includes: in the latest update record of the financial information, when the terminal device 4G0 pairs (4) the latest version number of the record is the same, the same latest version number (step 5) is not changed. In all the latest update records, when the latest version of the record field corresponding to the terminal device (4), listen to the latest update of the record of the last updated record terminal device of the terminal device. The content is synchronized to the record field corresponding to the terminal in the other terminal to update the most difficult content in the record; ^ and the latest version in the record field of the corresponding terminal is split. The serial number is updated to the same as the most recent new record of the final fiscal position, and the terminal device 4(4) touches the latest version number recorded by (10) (step S511). Thereafter, via the communication interface 402, the terminal device 4 modifies the floor together with other terminal devices connected to the terminal device via the communication interface 402 to generate at least one common modification content (step SU5). Then, when the terminal device 400 is disconnected from the other terminal device that connects the line end device 400 via the communication interface 4〇2, the terminal hangs the _ storage common modification content, and becomes the latest hard-to-modify content, and updates each Record the latest version number in the block (step si2i). The above-mentioned persuasion execution computer can be read and written; the cutting step further includes the steps of the terminal device transmitting 25 201243619 offline modification content in the data synchronization process mentioned in the detailed example, and the disconnection terminal device in the data synchronization process. The latest version number recorded by the corresponding record block and the update step of the latest file modification content. Since the above steps have been described in detail in the foregoing embodiments, they are not described herein. In summary, each terminal device in the present invention has a latest update § recorded to separately record the latest file modification corresponding to the latest version serial number and the latest version serial number of the corresponding corresponding terminal device before the previous disconnection. content. The data synchronization progress between the respective terminal devices is effectively recorded by the latest update record. Therefore, when at least two of the terminal devices are wirelessly connected, the latest version number recorded by checking the individual newest recorded recording pads is checked. It is possible to know the editing or repairing of the same file between the terminal devices, the degree of data synchronization, and the file modification content to be synchronized with each other. Therefore, after at least two of the scale devices are rewired, it is not necessary to synchronize the heads to the same level of editing or modification, so that it is not necessary to repeatedly synchronize the latest file modifications that have been synchronized. Although the present invention has been disclosed in the above embodiments by way of example, it is not intended to limit the scope of the present invention. The scope defined by the patent scope shall prevail. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1B is a file synchronization method according to an embodiment of the present invention.

S 26 201243619 資料同步步驟的流程簡圖。 圖2是依照本發明一實施例的之一種標案同步方法示 思·間圖。 圖3是依照本發明一實施例的一終端裝置的一歷史記 錄示意簡圖。 圖4是依照本發明一實施例的一種終端裝置的示意簡 圖。 【主要元件符號說明】 S101〜S121 :方法流程步驟 S501〜S511 :方法流程步驟 2a〜2h :方法流程步驟 A、B、C、D :終端裝置 202a、202b、202c、202d :最新更新記錄 204Aa、204Ab、204Ac、204Ad、204Ba、204Bb、204Bc、 204Bd、204Ca、204Cb、204Cc、204Cd、204Da、204Db、 204Dc、204Dd :記錄欄位 A1〜A2、B1〜B4、Cl〜C4、D1〜D3 :最新版本序號 301 、303 :歷史記錄 400 :終端裝置 402 •通訊介面 404 :儲存媒體 406 :處理器 27S 26 201243619 Flow diagram of the data synchronization step. 2 is a diagram showing an example of a method for synchronizing a standard in accordance with an embodiment of the present invention. Figure 3 is a schematic diagram showing a history of a terminal device in accordance with an embodiment of the present invention. Figure 4 is a schematic diagram of a terminal device in accordance with an embodiment of the present invention. [Description of Main Element Symbols] S101 to S121: Method Flow Steps S501 to S511: Method Flow Steps 2a to 2h: Method Flow Steps A, B, C, D: Terminal Devices 202a, 202b, 202c, 202d: Latest Update Record 204Aa, 204Ab, 204Ac, 204Ad, 204Ba, 204Bb, 204Bc, 204Bd, 204Ca, 204Cb, 204Cc, 204Cd, 204Da, 204Db, 204Dc, 204Dd: recording fields A1~A2, B1~B4, Cl~C4, D1~D3: latest Version No. 301, 303: History 400: Terminal Device 402 • Communication Interface 404: Storage Media 406: Processor 27

Claims (1)

201243619 七、申請專利範圍·· ^ 一種檔案同步方法’適用於複數個終端裝置共同編 二1案’其中每-該些終端裝置具有—最新更新記錄, ^最新更新記錄包含分賴應該祕端裝置的複數個記錄 鉍立而母一該些s己錄欄位記錄一最新版本序號以及該最 々版本序號所對應的—最新檔案修改内容,該方法包括: 建立該些終端裝置之間的一無線通訊連線; 〇些終端裝置進彳亍—版本檢查,以相互檢查該些終端 ^此的雜最新更新記射,該些終端裝置所分別對應的 〜記錄·幅分觀賴域新版本序號; 根據該版本檢查的—檢查結果,該些終端裝置進行一 貝广同步’其中每—該些終端裝置進行該資料同步包括: ▲在該些最新更新記錄中,當該終端裝置所對應到 的"玄些§己錄欄位中的該些最新版本序號相同時,則不 更動相同的該些最新版本序號; 在該些最新更新記錄中,當該終端裝置所對應到 的5亥些記錄攔位中的該些最新版本序號不同時,則將 該終端裝置的該最新更新記錄中該終端裝置所對應 的記錄攔位中的該最新檔案修改内容同步至其他終 螭裝置中該終端裝置所對應的該些記錄攔位中,以更 新該些記錄欄位中的該最新檔案修改内容,並且將對 應該終端裝置的該些記錄攔位中的該些最新版本序 號更新成相同於該終端裝置的該最新更新記錄中,該 終端裝置所對應的該記錄攔位所記錄的該最新版本 S 28 201243619 序號; 雜終端裝置’經由該無線通訊連線,共同修改該樓 案以產生至少一共同修改内容;以及 邊些終端裝置至少其中之一與其他該些終端裝置斷 ^ ’同時β些終端裝置分顺存該共同修改内容至該些終 端裝置的㈣記錄攔位中,而成為該最新髓修改内容, 並且更新每-該些記賴位巾的該最新版本序號。 卜2.如申請專利範圍第1項所述之檔案同步方法,其中 每一邊些終端裝置還具有一歷史記錄,用以記錄每一該些 記錄欄位更新前的該最新版本序號以及該最新版本序號所 對應的該最新槽案修改内容。 3. 如申凊專利範圍第1項所述之標案同步方法,其中 每一該些終端裝置進行該資料同步包括:將該終端裝置於 該無線通訊連線之前對該檔案所做的一離線修改經由該無 線通訊連線傳遞至其他以該無線通訊連線的每一該些終端 裝置中該終端裝置所對應的該記錄攔位,以更新該最新檔 案修改内容。 4. 如申請專利範圍第3項所述之檔案同步方法,其中 每一該些終端裝置進行該資料同步中,當該終端裝置所對 應到的該些記錄攔位中的該些最新版本序號相同時,還包 括該終端裝置將該離線修改經由該無線通訊連線傳遞至其 他以該無線通訊連線的每一該些終端裝置中該終端裝置所 對應的該記錄攔位,以更新該最新檔案修改内容° 5. 如申請專利範圍第3項所述之檔案同步方法,其中 29 201243619 每一該些終端裝置進行該資料同步中,當該終端裝置所對 應到的該些記錄欄位中的該些最新版本序號不同時,還包 括該終端裝置將該離線修改經由該無線通訊連線傳遞至其 他以該無線通訊連線的每一該些終端裝置中該終端裴置所 對應的該記錄攔位,以更新該最新檔案修改内容。 6.如申請專利範圍第1項所述之檔案同步方法,其中 每一該些終端裝置進行該資料同步中,當該終端裝置所對 應到的該些記錄欄位中的該些最新版本序號不同時,還包 括該終端裝置的該最新更新記錄中,未與該終端裝置經由 該無線通訊連線的至少一斷線終端裝置,該斷線終端裝置 所對應的該記錄攔位中的該最新檔案修改内容相同於該終 裝置所對應的5亥§己錄攔位中的該最新檔案修改内容,則 於祕端裝置所對應的該記錄欄位中的該最新槽案修改内 容同步至其他該些終端裝置中該終端裝置所對應的該些記 錄欄位同時,时至其他該祕職置中騎線終端裝置 所對應的該些記錄攔位。 ⑼1. Γ請專利範圍第1項所述之檔案同步方法,其中 f 連線包括基於趣亂15標準所建立的一連 8. 一種終端裝置,該終端裝置包括: 一通訊介面; ’ 一Μ存媒體,儲存一電腦可讀 錄’其中該最新更新記錄包含分:新記 該通訊介面連結該終端褒 ^亥終&裝置與經由 褒其他_終端裝置的複數個 S 30 201243619 記錄攔位,而每— 序號以及該最新H A錄攔位記錄—檔_-最新版本 -處理器,所對應的一最新槽案修改内容; 執行該電财子媒魏人該電腦可讀寫程式,以 括: °私柄包含的複數個步驟,該些步驟包 該通檢查’以相互檢查該終端裝置與經由 該些最裝置的其他該些終端裝置的 也記釺們办★、彔中,3亥些終端褒置所分別對應的該 f搁位巾所分聰錄的該最新版本序號; 根據該版本檢杳的一檢杳姓 步,兮〜,的檢查結果,進行一資料同 丹宁该貧料同步包括·· 在該些最新更新記錄中,當該終端裝置所對 ^,該些記錄棚位中的該些最新版本序號相 同時’則不更動相同的該些最新版本序號; 在該些最新更新記錄中,當該終端裝置所對 應到的該些記錄攔位中的該些最新版本序號不 ?,’則將该終端裝置的該最新更新記錄中該終 端羞置所對應的記錄欄位中的該最新檔案修改 内容同步至其他終端裝置中該終端裝置所對應 的該些記錄攔位中,以更新該些記錄攔位中的該 最新檔案修改内容,並且將對應該終端裝置的該 些記錄欄財的該些最新版本序號更新成相同 於該終端裝置的該最新更新記錄中,該終端裝置 所對應的該記錄攔位所記錄的該最新版本序號; 31 201243619 連结面’該終端裝置與經由該通訊介面 案以產生至少—共同修改内_容\= 置共同修改該標 祕端裝置與經由該通訊介 的其他該些終端農置斷線時,該終端裝[儲存 容,並且更新Γ搁中,而成為最新檔案修改内 ;。更新母-該些記錄攔位中的該最新版本序 9_如申請專利範圍第8項所述之 存媒體還具有-歷史記錄,用以:該“: 新檔案修改内容。該取新版本序號所對應的該最 K).如申請專利範圍第8項所述之終端裝置, 資料同步還包括:將鱗端裝置經由該通訊介線2 前,對該槽案所做的-離線修改經由; 通訊介面傳絲其她由賴訊介岐線的每—盆他2 終端裝置中該終端裝置所對應的該記錄欄位,以更新= 新檔案修改内容。 又 11·如申請專利範圍第1G項所述之終端農置, 資料同步中,當該終端裝置所對應到的該些記錄攔位^ 该些最新版本序號㈣時’還包括該終端裝雜該離線修 改經由該通訊介面連線傳遞至其他以該通訊介面連每 -其他該些_裝置中鱗端裝置所對應_記錄搁位, 以更新該最新擔案修改内容。 s 32 201243619 u.如申請專利_第1()項所叙終 資料同步中,當祕端裝置所對制_些置其中該 該些最新版本序號不同時,還包括鱗辭中的 改經由該通訊介面傳遞至其他㈣通訊介 ^線修 他鮮終端裝置中該終端裝置所對應的該記錄攔^母^ 新該最新槽案修改内容。 以更 二3半t申,範圍第8項所述之終端裳置,复中, 負枓同步巾,當該終端裝置所對制_ =錄中’未與該終端裝置經由該通訊介面連線的Ϊ小f ’該斷線終端裝置所對應的該記錄攔位;的 :亥:,案修改内容相同於該終端裝置所對應的該記錄櫚 猶案修改内容’則於該終端裝置所對應的該 祕攔位巾_最_案修_容同步缝由該通訊部連 接的其他該些終端裝置中該終端裝置所對應的該些記錄搁 位同寺同步至其他S亥些終端裝置中該斷線終端裝置所對 應的該些記錄攔位。 14.如申睛專利範圍第8項所述之終端裝置,其中該 通訊介面包括基於ΙΕΕΕ802.15標準建立連線的一^線通 訊介面。 33201243619 VII. Application for patent scope·· ^ A file synchronization method is applicable to a plurality of terminal devices co-editing two cases 1 each of which has the latest update record, and the latest update record contains the corresponding secret device The plurality of records are erected and the mother records the latest version number and the latest file number corresponding to the latest file modification content, the method includes: establishing a wireless connection between the terminal devices Communication connection; some terminal devices enter the version-version check to check each other's latest update records, and the corresponding serial number of the record-to-view view of the terminal devices respectively; According to the inspection result of the version, the terminal devices perform a synchronization, wherein each of the terminal devices performs the data synchronization, including: ▲ in the latest update records, when the terminal device corresponds to &quot If some of the latest version numbers in the recorded fields are the same, then the same latest serial numbers are not changed; in these latest updates In the record, when the latest version numbers of the 5H record corresponding to the terminal device are different, the latest update record of the terminal device is recorded in the record block corresponding to the terminal device. The latest file modification content is synchronized to the record stops corresponding to the terminal device in the other terminal device to update the latest file modification content in the record fields, and the records corresponding to the terminal device are blocked. The latest version number in the bit is updated to be the same as the latest update record of the terminal device, the latest version of the recording device corresponding to the recording device S 28 201243619 serial number; the terminal device 'via the wireless Communication connection, jointly modifying the building to generate at least one common modification content; and at least one of the terminal devices is disconnected from the other terminal devices, and at the same time, the terminal devices respectively share the common modification content to the The (4) recording block of the terminal device becomes the latest modified content, and updates the latest version of each of the recording pads. number. 2. The file synchronization method according to claim 1, wherein each of the terminal devices further has a history record for recording the latest version number and the latest version before each of the record field updates. The latest slot modification content corresponding to the serial number. 3. The method for synchronizing a standard according to claim 1, wherein each of the terminal devices performs the data synchronization comprises: performing an offline of the file before the terminal device is connected to the wireless communication connection Modifying the record interception corresponding to the terminal device in each of the terminal devices connected to the wireless communication connection via the wireless communication connection to update the latest file modification content. 4. The file synchronization method according to claim 3, wherein each of the terminal devices performs the data synchronization, and the latest version numbers of the record stops corresponding to the terminal device are the same The terminal device further includes the terminal device transmitting the offline modification to the other recording terminal corresponding to the terminal device in each of the terminal devices connected to the wireless communication connection via the wireless communication connection to update the latest file. 5. The content synchronization method as described in claim 3, wherein 29 201243619 each of the terminal devices performs the data synchronization, when the terminal device corresponds to the record fields When the latest version numbers are different, the terminal device further transmits the offline modification to the record interception corresponding to the terminal device in each of the terminal devices connected to the wireless communication line via the wireless communication connection. To update the latest file to modify the content. 6. The file synchronization method according to claim 1, wherein each of the terminal devices performs the data synchronization, and the latest version numbers of the record fields corresponding to the terminal device are different. And including, in the latest update record of the terminal device, the at least one disconnection terminal device that is not connected to the terminal device via the wireless communication, and the latest file in the record block corresponding to the disconnection terminal device If the modified content is the same as the latest file modification content in the 5 § 己 recorded block corresponding to the terminal device, the latest slot modification content in the record field corresponding to the secret device is synchronized to the other content. The recording fields corresponding to the terminal device in the terminal device are simultaneously at the same time, and the recording stops corresponding to the other riding terminal device of the secret device are used. (9) 1. The method for file synchronization described in claim 1 of the patent scope, wherein the f connection includes an 8. terminal device established based on the Fun 15 standard, the terminal device comprising: a communication interface; , storing a computer readable record 'where the latest update record contains points: the new record of the communication interface is linked to the terminal 亥 ^ 终 && device and a plurality of S 30 201243619 recording blocks via other _ terminal devices, and each - serial number and the latest HA record block record - file _- latest version - processor, corresponding to the latest slot modification content; execute the electricity money media Wei people the computer can read and write programs, including: ° private The handle includes a plurality of steps, and the steps include the check check to mutually check the terminal device and the other terminal devices that pass through the most devices, and also remember that the terminal device is installed. Corresponding to the latest version number of the f-seat towel, the same version number; according to the version of the inspection, the inspection result of the inspection, the result of the inspection, the data is compared with the tannin ······································································································ The number of the latest versions in the record blocks corresponding to the terminal device is not?, 'the same in the latest update record of the terminal device in the record field corresponding to the terminal's shame. The latest file modification content is synchronized to the record intercepts corresponding to the terminal device in the other terminal device, to update the latest file modification content in the record block, and the corresponding record corresponding to the terminal device The latest version serial number is updated to be the same as the latest version number recorded by the recording device corresponding to the terminal device in the latest update record of the terminal device; 31 201243619 "Connecting surface" and the terminal device The communication interface case is configured to generate at least a common modification of the internal_capacity\=to jointly modify the target terminal device and the other terminals of the communication via the communication interface The terminal device [storage capacity, and in resting Γ updated and becomes the latest file modification;. Update parent - the latest version of the record block 9_ as described in claim 8 of the scope of the media also has a history record for: ": new file modification content. The new version number Corresponding to the most K). The terminal device according to item 8 of the patent application scope, the data synchronization further comprises: before the scale device is passed through the communication medium 2, the offline modification of the slot case is passed; The communication interface is transmitted by the recording field corresponding to the terminal device in each of the 2 terminal devices of the Lai Xun 岐 , 以 以 以 以 以 = = = = = = = = = = = = = = 新 新 新 新 新 新 新In the terminal farm, in the data synchronization, when the terminal devices correspond to the record blocks of the latest version number (4), the terminal device also includes the terminal device and the offline modification is transmitted to the other through the communication interface. The communication interface is connected with the _ record shelf corresponding to the scale device of each of the other devices to update the latest modification content. s 32 201243619 u. If the patent application _ Item 1 () Synchronization When the number of the latest version is different, the number of the new version is also transmitted through the communication interface to the other (4) communication medium to repair the record corresponding to the terminal device in the terminal device Block the mother ^ new the latest trough case to modify the content. In addition to the second and third half of the application, the scope of the eighth item of the terminal set, complex, negative 枓 synchronized towel, when the terminal device is _ = recorded 'The recording block corresponding to the disconnection terminal device that is not connected to the terminal device via the communication interface; the::: The modification content is the same as the record corresponding to the terminal device. The modified content of the case is the same as the terminal position corresponding to the terminal device in the other terminal devices connected to the communication device by the terminal device corresponding to the terminal device. The temple is synchronized to the recording stops corresponding to the disconnection terminal device in the other terminal devices. 14. The terminal device according to claim 8, wherein the communication interface comprises a standard based on the ΙΕΕΕ802.15 standard. Establish a wired communication network No. 33
TW100114680A 2011-04-27 2011-04-27 Terminal device and file synchronization method TW201243619A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW100114680A TW201243619A (en) 2011-04-27 2011-04-27 Terminal device and file synchronization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW100114680A TW201243619A (en) 2011-04-27 2011-04-27 Terminal device and file synchronization method

Publications (1)

Publication Number Publication Date
TW201243619A true TW201243619A (en) 2012-11-01

Family

ID=48093887

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100114680A TW201243619A (en) 2011-04-27 2011-04-27 Terminal device and file synchronization method

Country Status (1)

Country Link
TW (1) TW201243619A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI582623B (en) * 2013-06-11 2017-05-11 鴻海精密工業股份有限公司 File management system and method
CN107203537A (en) * 2016-03-16 2017-09-26 阿里巴巴集团控股有限公司 A kind of service implementation method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI582623B (en) * 2013-06-11 2017-05-11 鴻海精密工業股份有限公司 File management system and method
CN107203537A (en) * 2016-03-16 2017-09-26 阿里巴巴集团控股有限公司 A kind of service implementation method and device

Similar Documents

Publication Publication Date Title
US10891301B2 (en) Synchronization methods and systems
US7760767B2 (en) Wide area peer-to-peer synching in a decentralized environment
US7778971B2 (en) Synchronization methods and systems
US7761414B2 (en) Asynchronous data synchronization amongst devices
US7739410B2 (en) Synchronization methods and systems
US7660831B2 (en) Synchronization methods and systems
US8239504B2 (en) Synchronization methods and systems
CN110569309A (en) Apparatus, method, system, and medium for implementing blockchains
US10055473B2 (en) Systems for allowing annotation in real time
KR101212872B1 (en) Synchronizati0n methods and systems
KR20140088123A (en) Real time document presentation data synchronization through generic service
TW201030525A (en) Direct slave-to-slave data transfer on a master-slave bus
JP2016530608A (en) Replicating data between mirrored data sites
US20150227605A1 (en) Information processing terminal, synchronization control method, and computer-readable recording medium
CN105978948B (en) A kind of method and system of cloud service
CN102520920B (en) Method, network platform, application development terminal and system for releasing applications
TW201243619A (en) Terminal device and file synchronization method
WO2014121605A1 (en) Method, device and system for supporting always online infrastructure of multi-terminal application
WO2009107184A1 (en) Method for processing replication, program for processing replication, and device for processing replication
JP2020201891A (en) Specific area information sharing apparatus, system for transmitting information between specific areas, specific area information sharing method, method for transmitting information between specific areas, program, and recording medium
JP2010262518A (en) Information processor, program, and information processing system
TWI273433B (en) Update device and method
TW201421939A (en) Distributed multimedia online broadcasting system