TW201500933A - Method for sharing and synchronizing data in local area network - Google Patents

Method for sharing and synchronizing data in local area network Download PDF

Info

Publication number
TW201500933A
TW201500933A TW102135891A TW102135891A TW201500933A TW 201500933 A TW201500933 A TW 201500933A TW 102135891 A TW102135891 A TW 102135891A TW 102135891 A TW102135891 A TW 102135891A TW 201500933 A TW201500933 A TW 201500933A
Authority
TW
Taiwan
Prior art keywords
data
server
terminal device
network
message
Prior art date
Application number
TW102135891A
Other languages
Chinese (zh)
Other versions
TWI505100B (en
Inventor
Ju-Nan Chang
Shieng-Ting Kao
Yang Zhang
Original Assignee
Inventec Appliances Corp
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 Inventec Appliances Corp filed Critical Inventec Appliances Corp
Publication of TW201500933A publication Critical patent/TW201500933A/en
Application granted granted Critical
Publication of TWI505100B publication Critical patent/TWI505100B/en

Links

Landscapes

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

Abstract

A method for sharing and synchronizing data in a Local Area Network is provided for use by a network connection device which is installed with a first synchronization procedure and stores plural entries of data. According to the method, the network connection device determines whether itself has a server tag when starting the first synchronization procedure. If yes, and upon receiving a connection request from a second device, the network connection device connects with the second device, reads a data selection message therefrom, and determines according to the message whether the update date of the corresponding data in the network connection device is later than that of the corresponding data in the second device. If yes, the network connection device sends its own data to the second device; otherwise, the network connection device receives data from the second device. Thus, a user can create a private cloud in a Local Area Network, allowing data to be rapidly shared and synchronized between devices.

Description

在區域網路中進行資料分享與數據同步的方法 Method for data sharing and data synchronization in a local area network

本發明係關於資料分享與數據同步的方法,尤指一種應用於區域網路中,且使用者能依使用上的需求,將任一終端裝置設為伺服器的資料分享與數據同步的方法。 The invention relates to a method for data sharing and data synchronization, in particular to a method for data sharing and data synchronization in a local area network, and the user can set any terminal device as a server according to the requirements of use.

按,現有的電腦科學中,我們常以「雲」的圖案,作為表示網際網路上數量眾多的伺服器及底層基礎設施的示意圖形,而「端」則是指能夠藉由各種通信界面(如:瀏覽器)連接上網際網路的終端裝置(如:智慧型手機、電腦),因此,使用者無需對「雲」的基礎設施有所瞭解,亦無需具備高度的專業知識,只要透過自身擁有的終端裝置,便能夠迅速地自「雲」上取得自身所需的服務與資源,故,雲端服務已成為現今最被廣泛應用的電腦技術之一。 According to the existing computer science, we often use the "cloud" pattern as a schematic representation of a large number of servers and underlying infrastructure on the Internet, while "end" refers to the ability to use various communication interfaces (such as : Browsers) Connect to the Internet's terminal devices (eg, smart phones, computers), so users do not need to have an understanding of the "cloud" infrastructure, and do not need to have a high degree of expertise, as long as they own The terminal device can quickly obtain the services and resources it needs from the "cloud". Therefore, cloud service has become one of the most widely used computer technologies.

一般言,現有的雲端服務大多是由網路服務商所提供,其中雲端備份服務更是深受人們青睞,舉例而言,使用者能夠利用個人電腦,將文件傳輸到網路服務商所提供的網路空間進行儲存,嗣,當使用者外出或辦公時,若需使用到前述文件,則使用者能夠利用智慧型手機或是筆記型電腦下載該文件,意即,使用者不需將文件重覆儲存至多個設備中,便能夠迅速地取得所需要的文件。然而,前述的使用方式中,使用者的文件是儲存於網路服務商的伺服器中,對於極度重視自身隱私權利的使用者而言,若是將重要的資料放在網路服務商的伺服器中,難免會有擔心資料外洩的疑慮,造成使用者於使用上的顧慮。因此,仍有諸多使用者在面對一些機密性高的資料情況下,不敢輕易地使用由網路服務商所提供的雲端備份服務,造成使用者必須將同樣的資料在不同裝置間重復地複製,導致使 用上的不便利性。 Generally speaking, most of the existing cloud services are provided by network service providers. Among them, cloud backup services are favored by people. For example, users can use personal computers to transfer files to network service providers. The cyberspace is stored. 嗣, when the user goes out or works, if the file is used, the user can download the file by using a smart phone or a notebook computer, meaning that the user does not need to load the file. By storing it in multiple devices, you can quickly get the files you need. However, in the foregoing usage mode, the user's file is stored in the server of the network service provider, and for the user who attaches great importance to his privacy right, if the important information is placed on the server of the network service provider, In the meantime, there will inevitably be concerns about data leakage, causing users' concerns about use. Therefore, there are still many users who are afraid to use the cloud backup service provided by the network service provider in the face of some confidential information, so that the user must repeat the same data between different devices. Copy, causing Inconvenience in use.

綜上所述可知,由於將資料存放於網路服務商所提供的「公共雲」上,會造成使用者的心理擔憂,導致使用者無法好好享受雲端備份服務的好處,故,如何針對前述問題,設計出一種更佳的雲端服務,即成為相關網路業者之重要課題。 In summary, as the data is stored in the "public cloud" provided by the network service provider, the user's psychological concerns may be caused, and the user cannot enjoy the benefits of the cloud backup service. Therefore, how to address the above problem Designing a better cloud service is an important issue for related network operators.

有鑑於使用者在進行雲端服務時,對於「公共雲」的隱私問題,仍有著諸多顧慮,故,發明人經過長久努力研究與實驗,終於開發設計出本發明之一種在區域網路中進行資料分享與數據同步的方法,以期藉由本發明而能提供使用者「私人雲」的雲端服務,並使業者能在現有的網路市場中,佔有一席之地。 In view of the user's privacy during the cloud service, there are still many concerns about the privacy of the "public cloud". Therefore, after long-term efforts and experiments, the inventor finally developed and designed a data of the present invention in the local area network. Sharing the method of synchronizing data, with the aim of providing the user with a "private cloud" cloud service by the present invention, and enabling the industry to have a place in the existing network market.

本發明之一目的,係提供一種在區域網路中進行資料分享與數據同步的方法,主要是供使用者能夠在自家的區域網路中架構一朵「私人雲」,且能迅速地同步多個終端裝置間的資料,而不需如同習知方式一般,重覆地將同一資料複製到多個終端裝置內,該方法係應用於一終端裝置(如:智慧型手機、平板電腦)上,該終端裝置包括一中央處理單元、一網路單元及一儲存單元,其中該中央處理單元分別電氣連接該網路單元及該儲存單元,以能傳送訊息至該網路單元及儲存單元,或接收來自該網路單元及儲存單元的訊息,該網路單元能接收外界區域網路中傳來的網路訊息,或傳送網路訊息至外界區域網路中,該儲存單元內安裝有一第一同步程序,且儲存有複數筆數據資料,當該終端裝置啟動該第一同步程序(即,啟動同步功能)時,其會先判斷自身是否具有一伺服器標籤,若是,則代表自身被設定為伺服器,其在接收到該網路單元傳來之其它裝置的連結請求訊息後,會與該其它裝置建立連結,並讀取該其它裝置傳來的一選擇資料訊息,嗣,其會根據該選擇資料訊息的內容,取得對應的數據資料之更新日期,以比對自身內儲存的數據資料及該其它裝置對應的數據資料之更新日期,並在自身對應的數據資料之更新日期較晚時,將自身對應的數據資料傳送至該其它裝置,否則,便接收該其它裝置傳來的數據資料,並儲存至該儲存單元。如此,使用者能夠依使用需求,將所需的終端裝置設置 為伺服器,並能在家中的區域網路中,將自身所攜帶的終端裝置與其它裝置中的數據資料進行同步,以免除使用者需將同一數據資料重覆儲存到不同裝置上的行為,有效提高使用者於使用上的便利性。 An object of the present invention is to provide a method for data sharing and data synchronization in a local area network, which is mainly for a user to construct a "private cloud" in a local area network, and can quickly synchronize more The data between the terminal devices is repeated, and the same data is repeatedly copied into a plurality of terminal devices, which is applied to a terminal device (eg, a smart phone or a tablet computer). The terminal device includes a central processing unit, a network unit and a storage unit, wherein the central processing unit electrically connects the network unit and the storage unit respectively to transmit messages to the network unit and the storage unit, or receive The message from the network unit and the storage unit, the network unit can receive the network information transmitted from the external area network, or transmit the network message to the external area network, and the first synchronization is installed in the storage unit. a program, and storing a plurality of data data, when the terminal device starts the first synchronization program (ie, starts the synchronization function), it first determines whether it has a server tag, if yes, the server itself is set as a server, and after receiving the link request message of other devices transmitted from the network unit, a connection is established with the other device, and the other device is read and read. The selected data message is selected, and based on the content of the selected data message, the updated date of the corresponding data is obtained to compare the data stored in the data with the update date of the data corresponding to the other device, and When the update date of the corresponding data data is later, the corresponding data data is transmitted to the other device; otherwise, the data data transmitted by the other device is received and stored in the storage unit. In this way, the user can set the required terminal device according to the usage requirements. For the server, and in the local area network at home, the terminal device carried by itself is synchronized with the data in other devices, so as to avoid the user having to repeatedly store the same data data on different devices. Effectively improve the user's convenience in use.

本發明之另一目的,係該終端裝置之儲存單元中,尚安裝有一第二同步程序,以使該終端裝置能由外界網際網路連結至家中區域網路,進行數據資料的同步更新,當該終端裝置啟動該第二同步程序(即,啟動另一同步功能)時,其會在自身已設置欲連結之伺服器之位置的情況下,透過一網頁瀏覽器與該伺服器建立連結,嗣,其會選擇欲同步之數據資料,並傳送一選擇資料訊息予該伺服器,以等待該伺服器判斷出何者的數據資料之更新日期較晚,進而能接收該伺服器傳來的數據資料,或依該伺服器傳來之一要求資料訊息將自身的數據資料傳送予該伺服器。如此,儘管使用者將該終端裝置攜帶出門,但仍能夠與家中的區域網路中的伺服器同步數據資料,以減少使用者後續重覆儲存資料之困擾。 Another object of the present invention is to install a second synchronization program in the storage unit of the terminal device, so that the terminal device can be connected to the home network by the external network, and the data data is synchronously updated. When the terminal device starts the second synchronization process (ie, starts another synchronization function), it establishes a connection with the server through a web browser when the location of the server to be connected is set. , which selects the data to be synchronized, and transmits a selection data message to the server, waiting for the server to determine which data data is updated later, and thus can receive the data data sent by the server. Or according to one of the servers, the data message is required to transmit its own data to the server. In this way, although the user carries the terminal device out of the door, the data can be synchronized with the server in the home network of the home to reduce the user's subsequent repeated storage of data.

為便 貴審查委員能對本發明目的、技術特徵及其功效,做更進一步之認識與瞭解,茲舉實施例配合圖式,詳細說明如下: For your convenience, the review committee can make a further understanding and understanding of the purpose, technical features and effects of the present invention. The embodiments are combined with the drawings, and the details are as follows:

〔習知〕 [study]

no

〔本發明〕 〔this invention〕

1‧‧‧終端裝置 1‧‧‧ Terminal devices

11‧‧‧中央處理單元 11‧‧‧Central Processing Unit

13‧‧‧網路單元 13‧‧‧Network Unit

15‧‧‧儲存單元 15‧‧‧ storage unit

151‧‧‧第一同步程序 151‧‧‧First synchronization procedure

152‧‧‧第二同步程序 152‧‧‧Second synchronization procedure

154‧‧‧數據資料 154‧‧‧Data materials

第1圖係本發明之終端裝置的硬體架構圖;第2圖係本發明之第一同步程序的流程圖;及第3圖係發明之第二同步程序的流程圖。 1 is a hardware architecture diagram of a terminal device of the present invention; FIG. 2 is a flowchart of a first synchronization procedure of the present invention; and FIG. 3 is a flowchart of a second synchronization procedure of the invention.

本發明係一種在區域網路中進行資料分享與數據同步的方法,請參閱第1圖所示,在一實施例中,該方法係應用於具由連網功能及同步功能的至少一終端裝置1上,該終端裝置1能夠為智慧型手機(Smartphone)、平板電腦(tablet pc)、個人數位助理器(PDA)…等,其中該終端裝置1包括一中央處理單元11、一網路單元13及一儲存單元15,該中央處理單元11分別電氣連接該網路單元13及該儲存單元15,其能傳送訊息至該網路單元13及儲存單元15,以控制該網路單元13及儲存單元 15執行對應之程序行為,又,該中央處理單元11亦能接收來自該網路單元13及儲存單元15傳來的訊息,並執行相對應之程序行為。 The present invention is a method for data sharing and data synchronization in a local area network. Referring to FIG. 1 , in an embodiment, the method is applied to at least one terminal device having a networking function and a synchronization function. 1 , the terminal device 1 can be a smart phone, a tablet pc, a personal digital assistant (PDA), etc., wherein the terminal device 1 includes a central processing unit 11 and a network unit 13 And a storage unit 15, the central processing unit 11 is electrically connected to the network unit 13 and the storage unit 15, respectively, and can transmit messages to the network unit 13 and the storage unit 15 to control the network unit 13 and the storage unit. 15 executes the corresponding program behavior, and the central processing unit 11 can also receive messages from the network unit 13 and the storage unit 15 and execute corresponding program behaviors.

承上,復請參閱第1圖所示,該網路單元13能接收外界網路中傳來的網路訊息,或傳送網路訊息至外界網路中,另,該儲存單元15內安裝有一第一同步程序151及一第二同步程序152,且其內儲存有複數筆數據資料154,當該終端裝置1判斷出處於一區域網路(即,使用私有IP位址所架構而成之區域網路)中,會啟動同步功能(即,執行該第一同步程序151),該中央處理單元11會判斷終端裝置1自身是否具有該區域網路內之一伺服器標籤,在沒有該伺服器標籤的情況下,表示該終端裝置1並未被使用者設定為該區域網路中的伺服器,此時,該中央處理單元11會透過該網路單元13傳送一連結請求訊息至區域網路中,以能與該區域網路中的伺服器建立連結;反之,在具有該伺服器之標籤的情況下,則代表該終端裝置1已被使用者設定為該區域網路中的伺服器,嗣,該中央處理單元11會判斷是否接收到該網路單元13所傳來之連結請求訊息,若有,則表示有其它裝置欲跟自身建立連結,此時,該中央處理單元11便會與該其它裝置建立連結。 As shown in FIG. 1 , the network unit 13 can receive network information transmitted from an external network or transmit network information to an external network. In addition, the storage unit 15 has a built-in a first synchronization program 151 and a second synchronization program 152, and storing a plurality of data data 154 therein, when the terminal device 1 determines that it is in a regional network (ie, an area constructed using a private IP address) In the network, the synchronization function is started (ie, the first synchronization program 151 is executed), and the central processing unit 11 determines whether the terminal device 1 itself has one of the server tags in the local area network. In the case of a tag, the terminal device 1 is not set by the user as a server in the local area network. At this time, the central processing unit 11 transmits a link request message to the local area network through the network unit 13. In order to establish a connection with a server in the local area network; conversely, in the case of having the label of the server, it means that the terminal device 1 has been set by the user as a server in the local area network, Oh, the central processing The element 11 determines whether the connection request message sent by the network unit 13 is received, and if so, indicates that another device wants to establish a connection with itself, and at this time, the central processing unit 11 establishes a connection with the other device. .

復請參閱第1圖所示,當該終端裝置1與該其它裝置建立連結成功時,該其它裝置會傳送一選擇資料訊息至該終端裝置1,該選擇資料訊息內包括了至少一個被選定的數據資料名稱及對應該數據資料的更新日期,嗣,該中央處理單元11會根據該選擇資料訊息的內容,讀取該儲存單元15中對應於該數據資料名稱的數據資料154及更新日期,並判斷自身對應的數據資料154之更新日期與該其它裝置對應的數據資料154之更新日期何者的更新日期較晚,若自身對應的數據資料154之更新日期較晚,則代表自身的數據資料154內容較新,則該中央處理單元11便會將自身對應的數據資料154傳送至該其它裝置;若該其它裝置的數據資料154之更新日期較晚,則代表自身的數據資料154內容較舊,該中央處理單元11會透過該網路單元13傳送一要求資料訊息予該其它裝置,以能接收該其它裝置傳來的數據資料154,並儲存至該儲存單元15中,令終端裝置1的數據資料154與其它裝置的數據資料154能維持一致,並保持於最新狀態。如此, 使用者在回到家中後,只要啟動手中的終端裝置1(如:智慧型手機)之第一同步程序,便能夠使該終端裝置1中的數據資料154與家中的其它裝置(如:個人電腦、筆記型電腦)的數據資料154進行同步,使得該終端裝置1中的數據資料154能分享予其它裝置,之後,使用者只要直接使該其它裝置,便能夠利用其它裝置中已更新的數據資料來進行後續工作,大幅提高使用上的便利性。 Referring to FIG. 1 , when the terminal device 1 successfully establishes a connection with the other device, the other device transmits a selection data message to the terminal device 1 , and the selection data message includes at least one selected one. The data data name and the date of the update of the data data, the central processing unit 11 reads the data data 154 corresponding to the data material name and the update date of the storage unit 15 according to the content of the selected data message, and It is judged that the update date of the data data 154 corresponding thereto is later than the update date of the data data 154 corresponding to the other device, and if the update date of the data data 154 corresponding thereto is later, the content of the data data 154 is represented. If it is newer, the central processing unit 11 will transmit its corresponding data data 154 to the other device; if the update date of the data data 154 of the other device is later, the data data 154 representing itself is older. The central processing unit 11 transmits a request information message to the other device through the network unit 13 to receive the other The data 154 transmitted from the device is stored in the storage unit 15 so that the data 154 of the terminal device 1 and the data 154 of the other device can be maintained and maintained in the latest state. in this way, After the user returns home, the user can activate the data program 154 in the terminal device 1 and other devices in the home (eg, a personal computer) by starting the first synchronization program of the terminal device 1 (eg, a smart phone) in the hand. The data file 154 of the notebook computer is synchronized so that the data material 154 in the terminal device 1 can be shared with other devices. After that, the user can directly use the updated data data of the other device by directly using the other device. To carry out follow-up work, greatly improving the convenience of use.

為能明確揭露前述之實施例的資料分享與數據同步之方法,以下茲僅就本發明之中央處理單元11已判斷出係處於區域網路中,且啟動該第一同步程序151的處理流程,進行說明,請參閱第1及2圖所示:(201)判斷自身是否具有該區域網路內的一伺服器之標籤,若是,進入步驟(202),否則,進入步驟(208);(202)判斷是否收到該網路單元13傳來之其它裝置的連結請求訊息,若是,進入步驟(203),否則,返回步驟(202);(203)與該其它裝置建立連結,並判斷是否連結成功,若是,進入步驟(204),否則,返回步驟(202);(204)讀取該其它裝置傳來的一選擇資料訊息,進入步驟(205);(205)根據該選擇資料訊息的內容,判斷自身對應的數據資料154之更新日期是否較該其它裝置對應的數據資料154之更新日期晚,若是,進入步驟(206),否則,進入步驟(207);(206)將自身對應的數據資料154透過該網路單元13傳送至該其它裝置;(207)傳送一要求資料訊息予該其它裝置,且接收該其它裝置傳來的數據資料154,並儲存至該儲存單元15中;(208)透過該網路單元13傳送連結請求訊息,並判斷是否與該區域網路中的伺服器建立連結,若是,進入步驟(209),否則,返回步驟(208);(209)傳送一選擇資料訊息至該伺服器,進入步驟(210);(210)判斷是否收到該伺服器傳來之數據資料154或要求資料訊息,若是數據資料154,進入步驟(211),若是要求資料訊息,進入步驟(212);(211)將該數據資料154儲存至該儲存單元15;(212)將自身的數據資料154傳送至該伺服器。 In order to clearly disclose the method of data sharing and data synchronization of the foregoing embodiments, only the central processing unit 11 of the present invention has determined that the processing is in the local area network and the processing procedure of the first synchronization procedure 151 is started. For description, please refer to Figures 1 and 2: (201) determine whether it has a server tag in the local area network, and if so, proceed to step (202), otherwise, proceed to step (208); (202) Determining whether a connection request message of another device transmitted from the network unit 13 is received, and if yes, proceeding to step (203), otherwise, returning to step (202); (203) establishing a connection with the other device and determining whether to link Success, if yes, proceed to step (204), otherwise, return to step (202); (204) read a selected material message from the other device, proceed to step (205); (205) according to the content of the selected data message Determining whether the update date of the data data 154 corresponding to itself is later than the update date of the data material 154 corresponding to the other device, and if yes, proceeding to step (206), otherwise, proceeding to step (207); (206) data corresponding to itself Information 154 Passing the network unit 13 to the other device; (207) transmitting a request data message to the other device, and receiving the data data 154 sent from the other device, and storing the data data 154 in the storage unit 15; The network unit 13 transmits a connection request message and determines whether a connection is established with a server in the local area network, and if so, proceeds to step (209), otherwise, returns to step (208); (209) transmits a selection data message to The server proceeds to step (210); (210) determines whether the data data 154 or the request data message sent by the server is received, and if it is the data data 154, the process proceeds to step (211). If the data message is requested, the process proceeds to the step ( 212); (211) storing the data 154 to the storage unit 15; (212) transmitting its own data 154 to the server.

如此,藉由前述的流程,當該終端裝置1處於家中的區域網路時,便能夠與複數台其它裝置中的數據資料154進行分享與同步,令使用者無論使用哪一個裝置,都能夠取得最新的數據資料154,以在該區域網路中能形成一個「私有雲」的形態,同時,由於該終端裝置1的數據資料154是在該「私有雲」中進行分享與同步,而非位在網路供應商的伺服器中,故,能大幅提高數據資料154的隱密性,降低數據資料154外洩的風險。 此外,在前述實施例中,使用者能使該終端裝置1或其它裝置,每隔一預定期間,即主動地啟動該第一同步程序151,以隨時保持數據資料154的新穎性。 Thus, by the foregoing process, when the terminal device 1 is in the local area network of the home, it can share and synchronize with the data materials 154 in the plurality of other devices, so that the user can obtain the device regardless of which device is used. The latest data 154 can form a "private cloud" in the local area network, and at the same time, because the data 154 of the terminal device 1 is shared and synchronized in the "private cloud", In the server of the network provider, the confidentiality of the data 154 can be greatly improved, and the risk of leakage of the data 154 can be reduced. Further, in the foregoing embodiment, the user can enable the terminal device 1 or other device to actively activate the first synchronization program 151 every predetermined period of time to maintain the novelty of the data material 154 at any time.

另,除了前述的使用方式之外,復請參閱第1圖所示,當使用者帶著終端裝置1外出,但欲與家中之區域網路中的其它裝置進行數據資料154的分享與同步時,該中央處理單元11在判斷出非處於該區域網路之情形下,會啟動另一同步功能(即,執行該第二同步程序152),又,其會搜索自身是否已設置位在區域網路內之伺服器的位置,若是,該中央處理單元11會啟動一網頁瀏覽器,並透過該網頁瀏覽器與該伺服器建立連結,嗣,該中央處理單元11會傳送一選擇資料訊息予該伺服器,之後,若該中央處理單元11接收到該伺服器傳來的數據資料154,則表示自身的數據資料154內容較舊(即,自身的數據資料154之更新日期早於伺服器內的數據資料154),其會將接收到的數據資料154儲存至儲存單元15中;若該中央處理單元11接收到該伺服器傳來之要求資料訊息,則表示自身的數據資料154內容較新(即,自身的數據資料154之更新日期晚於伺服器內的數據資料154),其會將自身的數據資料154傳送至該伺服器,進而使得該終端裝置1與該伺服器中的數據資料154保持於最佳狀態,同時,該伺服器亦能夠將最新的數據資料154同步至該區域網路中的其它裝置,令使用者在回到家中後便能夠直接在其它裝置上處理最新的數據資料154。 In addition, in addition to the foregoing usage modes, as shown in FIG. 1, when the user goes out with the terminal device 1, but wants to share and synchronize the data data 154 with other devices in the home network in the home. The central processing unit 11 initiates another synchronization function (ie, executes the second synchronization procedure 152) when it is determined that the network is not in the area, and further searches for whether it has set the bit in the area network. The location of the server in the road, if so, the central processing unit 11 activates a web browser and establishes a connection with the server through the web browser, and the central processing unit 11 transmits a selection data message to the server. The server, if the central processing unit 11 receives the data 154 sent by the server, indicates that the data data 154 of the server is older (ie, the update date of the data data 154 is earlier than the server. Data data 154), which stores the received data 154 in the storage unit 15; if the central processing unit 11 receives the request information message from the server, it indicates its own According to the new content of the data 154 (i.e., the update date of the data data 154 is later than the data data 154 in the server), it transmits its own data 154 to the server, thereby causing the terminal device 1 to The data 154 in the server is kept in an optimal state, and the server can also synchronize the latest data 154 to other devices in the local area network, so that the user can directly go to other places after returning home. The latest data 154 is processed on the device.

為能明確揭露前述之實施例的資料分享與數據同步之方法,以下茲僅就本發明之中央處理單元11在判斷出非處於該區域網路,且啟動該第二同步程序152的處理流程,進行說明,請參閱第1及3圖所示:(301)判斷是否已設置欲連結之該區域網路內的伺服器之位置,若是,進 入步驟(302),否則,結束該流程;(302)透過一網頁瀏覽器與該伺服器建立連結,並判斷是否連結成功,若是,進入步驟(303),否則,返回步驟(301);(303)傳送一選擇資料訊息予該伺服器,進入步驟(304);(304)判斷是否收到該伺服器傳來之數據資料154或要求資料訊息,若是數據資料154,進入步驟(305),若是要求資料訊息,進入步驟(306);(305)將該數據資料154儲存至該儲存單元15;(306)將自身的數據資料154傳送至該伺服器。 In order to clearly disclose the method of data sharing and data synchronization of the foregoing embodiments, the following is only the processing flow of the central processing unit 11 of the present invention that determines that the network is not in the area and starts the second synchronization procedure 152. For the description, please refer to the first and third figures: (301) to determine whether the location of the server in the local area network to be connected is set, and if so, Going to step (302), otherwise, ending the process; (302) establishing a connection with the server through a web browser, and determining whether the connection is successful, and if yes, proceeding to step (303), otherwise, returning to step (301); 303) transmitting a selection data message to the server, proceeding to step (304); (304) determining whether the data data 154 or the request data message sent by the server is received, and if the data data is 154, proceeding to step (305). If the data message is requested, proceed to step (306); (305) store the data data 154 to the storage unit 15; (306) transmit its own data data 154 to the server.

如此,當使用者不在家中時,仍能夠利用終端裝置1中的網頁瀏覽器,與家中之區域網路中的伺服器建立連結,以進行數據資料154的分享與同步,而不需一定要等到回家後才能進行數據資料154的分享與同步,以提供使用者更良好的使用經驗。 In this way, when the user is not at home, the web browser in the terminal device 1 can still be used to establish a connection with the server in the local area network of the home to share and synchronize the data data 154 without having to wait until the user After returning home, data data 154 can be shared and synchronized to provide users with better experience.

在此特別一提者,雖然前述實施例中,係以第一同步程序及第二同步程序代表不同的同步功能,但在本發明之其它實施例中,只要該終端裝置所啟動之同步功能的步驟及功效符合前述技術特徵,即屬本發明所稱之同步功能,合先陳明。按,以上所述,僅係本發明之較佳實施例,惟,本發明所主張之權利範圍,並不侷限於此,按凡熟悉該項技藝人士,依據本發明所揭露之技術內容,可輕易思及之等效變化,均應屬不脫離本發明之保護範疇。 In particular, although the foregoing embodiment uses the first synchronization procedure and the second synchronization procedure to represent different synchronization functions, in other embodiments of the present invention, as long as the synchronization function initiated by the terminal device is The steps and functions are in accordance with the aforementioned technical features, that is, the synchronous function referred to in the present invention, and the first is Chen Ming. The above is only the preferred embodiment of the present invention, but the scope of the claims of the present invention is not limited thereto, and according to those skilled in the art, according to the technical content disclosed in the present invention, Equivalent changes that are easily considered are within the scope of protection of the invention.

Claims (5)

一種在區域網路中進行資料分享與數據同步的方法,係應用於具有連網功能及同步功能之至少一終端裝置上,該終端裝置包括一中央處理單元、一網路單元及一儲存單元,其中該中央處理單元分別電氣連接該網路單元及該儲存單元,該網路單元能接收外界網路中傳來的網路訊息,或傳送網路訊息至外界網路中,該儲存單元儲存有複數筆數據資料,該方法係使該終端裝置能執行下列步驟:在判斷出係處於一區域網路之情形下,會啟動該同步功能;判斷自身是否具有該區域網路內之一伺服器標籤;在自身具有該伺服器標籤的情況下,則判斷是否收到該網路單元傳來之其它終端裝置的連結請求訊息,並連結其它終端裝置以讀取該其它終端裝置傳來的一選擇資料訊息;根據該選擇資料訊息的內容,比較該終端裝置及其他終端裝置所對應之該數據資料之更新日期;及在該終端裝置所對應之該數據資料更新日期較晚時,將該終端裝置所對應之數據資料傳送至其它終端裝置,或在其它終端裝置對應之數據資料之更新日期較晚時,該終端裝置接收其它終端裝置傳來的數據資料,並儲存至該儲存單元。 A method for data sharing and data synchronization in a local area network is applied to at least one terminal device having a networking function and a synchronization function, the terminal device comprising a central processing unit, a network unit and a storage unit. The central processing unit is electrically connected to the network unit and the storage unit respectively, and the network unit can receive network information transmitted from the external network or transmit network information to the external network, where the storage unit stores Multiple data data, the method enables the terminal device to perform the following steps: when it is determined that the system is in a regional network, the synchronization function is activated; and whether it has a server label in the local area network In the case that the server has the server tag, it is determined whether the connection request message of the other terminal device transmitted from the network unit is received, and the other terminal device is connected to read a selected data transmitted by the other terminal device. a message; comparing the update of the data corresponding to the terminal device and other terminal devices according to the content of the selected data message And when the data data update date corresponding to the terminal device is later, the data data corresponding to the terminal device is transmitted to another terminal device, or when the update date of the data data corresponding to the other terminal device is later, The terminal device receives data data transmitted by other terminal devices and stores the data to the storage unit. 如請求項1所述之資料分享與數據同步的方法,其中在自身不具有該伺服器標籤的情況下,該中央處理單元係會執行下列步驟: 透過該網路單元傳送連結請求訊息;與該區域網路中的伺服器連結,並傳送一選擇資料訊息至該伺服器;判斷是否接收到該伺服器傳來之該數據資料或一要求資料訊息;及在接收到該數據資料的情況下,將該數據資料儲存至該儲存單元,或在接收到該要求資料訊息的情況下,將自身的數據資料傳送至該伺服器。 The method for synchronizing data sharing and data according to claim 1, wherein the central processing unit performs the following steps if the server does not have the server tag: Transmitting a connection request message through the network unit; connecting with a server in the local area network, and transmitting a selection data message to the server; determining whether the data data or a request data message transmitted by the server is received And when the data data is received, the data data is stored in the storage unit, or when the request data message is received, the data data is transmitted to the server. 如請求項1所述之資料分享與數據同步的方法,其中該終端裝置尚具有另一同步功能,且該終端裝置尚能執行下列步驟:在判斷出非處於該區域網路之情形下,會啟動該另一同步功能;判斷是否已設置欲連結之該區域網路內之該伺服器的位置;在已設置該伺服器之位置的情況下,透過一網頁瀏覽器與該伺服器建立連結;在與該伺服器建立連結成功的情況下,傳送一選擇資料訊息予該伺服器;判斷是否接收到該伺服器傳來之該數據資料或一要求資料訊息;及在接收到該數據資料的情況下,將該數據資料儲存至該儲存單元,或在接收到該要求資料訊息的情況下,將自身的數據資料傳送至該伺服器。 The method for synchronizing data sharing and data according to claim 1, wherein the terminal device still has another synchronization function, and the terminal device can still perform the following steps: in the case that it is determined that the network is not in the area, Initiating the another synchronization function; determining whether the location of the server in the local area network to be connected has been set; and setting the location of the server, establishing a connection with the server through a web browser; Transmitting a selection data message to the server when the connection with the server is successful; determining whether the data data or a request data message transmitted by the server is received; and receiving the data data The data data is stored in the storage unit, or the data data is transmitted to the server when the request data message is received. 如請求項2或3所述之資料分享與數據同步的方法,其中該選擇資料訊息內包括了至少一個被選定的數據資料名稱及對應該數據資料的更新日期。 The method for synchronizing data sharing and data according to claim 2 or 3, wherein the selection data message includes at least one selected data material name and an update date corresponding to the data data. 如請求項4所述之資料分享與數據同步的方法,其中該中央處理單元尚會每隔一預定期間,主動地啟動該同步功能。 The method for synchronizing data sharing and data according to claim 4, wherein the central processing unit actively initiates the synchronization function every predetermined period of time.
TW102135891A 2013-06-21 2013-10-03 Method for sharing and synchronizing data in local area network TWI505100B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310250458.8A CN104243533B (en) 2013-06-21 2013-06-21 The method that data sharing and data syn-chronization are carried out in LAN

Publications (2)

Publication Number Publication Date
TW201500933A true TW201500933A (en) 2015-01-01
TWI505100B TWI505100B (en) 2015-10-21

Family

ID=52230873

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102135891A TWI505100B (en) 2013-06-21 2013-10-03 Method for sharing and synchronizing data in local area network

Country Status (2)

Country Link
CN (1) CN104243533B (en)
TW (1) TWI505100B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686131A (en) * 2017-02-06 2017-05-17 上海斐讯数据通信技术有限公司 Method for automatically filing mobile terminal data and mobile terminal
CN107888629A (en) * 2017-12-29 2018-04-06 优鸿网络科技有限公司 Scattered cloud and system
CN110674157B (en) * 2019-09-29 2022-04-19 成都吉胜科技有限责任公司 Data caching method based on local area network
CN111046104B (en) * 2019-12-11 2023-05-19 北京中网易企秀科技有限公司 Method and device for synchronizing data and method and device for retrieving synchronous data

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1271812C (en) * 2002-07-31 2006-08-23 鸿富锦精密工业(深圳)有限公司 Wireless facility synchronizing system and method
US20050138211A1 (en) * 2003-12-19 2005-06-23 Mobile Action Technology Inc. Data synchronization system with data security and proxy capabilities
US7395446B2 (en) * 2004-05-03 2008-07-01 Microsoft Corporation Systems and methods for the implementation of a peer-to-peer rule-based pull autonomous synchronization system
CN100407623C (en) * 2005-02-23 2008-07-30 腾讯科技(深圳)有限公司 Method and system for user data transaction in communication system
CN101155022A (en) * 2006-09-30 2008-04-02 华为技术有限公司 Data synchronization method, system and device
CN102404354A (en) * 2010-09-10 2012-04-04 北京创新方舟科技有限公司 Method and device for achieving synchronism of data between updating devices based on internet device
CN102455952B (en) * 2011-07-26 2014-07-30 北京壹人壹本信息科技有限公司 Data backup and recovery method, device and system
CN103164422A (en) * 2011-12-09 2013-06-19 百度在线网络技术(北京)有限公司 Method, equipment and system for conducting data synchronism by adopting general data storage format

Also Published As

Publication number Publication date
CN104243533A (en) 2014-12-24
CN104243533B (en) 2018-03-30
TWI505100B (en) 2015-10-21

Similar Documents

Publication Publication Date Title
JP5423668B2 (en) Information processing system, information processing apparatus, portable communication device, and user information management method used therefor
AU2013325007B2 (en) Systems and methods for sharing files among multiple terminals
US9720665B2 (en) Utilizing user devices for backing up and retrieving data in a distributed backup system
KR101138491B1 (en) Synchronizat10n methods and systems
KR102107708B1 (en) Automatic application updates
JP6515207B2 (en) Internet access authentication method and client, and computer storage medium
US8965958B2 (en) File fetch from a remote client device
WO2018050040A1 (en) Method and apparatus for realizing communication between web page and native application, and electronic device
KR101212858B1 (en) Synchronizati0n methods and systems
US9917915B2 (en) Information processing system, information processing apparatus, terminal apparatus and information transmission method for ordered transmission of stored information to be synchronously displayed at terminal apparatuses
TWI505100B (en) Method for sharing and synchronizing data in local area network
US10623499B2 (en) Method and system for operating and controlling data, and user terminal
JP6482204B2 (en) Information processing terminal, control method thereof, and program
US10616328B2 (en) Updating files between computing devices via a wireless connection
US9444872B2 (en) Method, server and system for data sharing
WO2015165034A1 (en) Webpage loading method and device
US9602562B2 (en) Terminal apparatus, information processing system and information processing method
US9882956B1 (en) Network-backed mass storage device
US20150149596A1 (en) Sending mobile applications to mobile devices from personal computers
Moss et al. Integrating cloud computing and mobile applications: a comparative study based on icloud and sanscode
JP5504452B1 (en) Sales information synchronization system
CN113885975A (en) Information processing apparatus, storage medium, and control method
WO2015072169A1 (en) Access control apparatus, access control system, access control method, and program
JP2016057789A (en) Network system, communication method and application program
JP2004139279A (en) Information provision method, information provision system, information provision device and computer program