CN104243533B - The method that data sharing and data syn-chronization are carried out in LAN - Google Patents
The method that data sharing and data syn-chronization are carried out in LAN Download PDFInfo
- Publication number
- CN104243533B CN104243533B CN201310250458.8A CN201310250458A CN104243533B CN 104243533 B CN104243533 B CN 104243533B CN 201310250458 A CN201310250458 A CN 201310250458A CN 104243533 B CN104243533 B CN 104243533B
- Authority
- CN
- China
- Prior art keywords
- data
- server
- terminal installation
- lan
- itself
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The present invention relates to a kind of method that data sharing and data syn-chronization are carried out in LAN, applied on a terminal installation, one first synchronization program is installed in the terminal installation, and store more pen data data, this method is when the terminal installation starts the first synchronization program, first judge whether itself has a server ticket, if, then after the linking request information that other devices transmit is received, established the link with other devices, and read the selection data message that other devices transmit, and according to the content of selection data message, judge evening update date of data information corresponding to update date whether more other devices of data information corresponding to itself, if, the data information of itself is then sent to other devices, otherwise, just the data information that other devices transmit is received.So, user just can go out a private clound by framework in LAN, enable the data information in more table apparatus promptly share each other with it is synchronous, greatly improve using upper convenience.
Description
Technical field
The present invention relates to the method for data sharing and data syn-chronization, more particularly to one kind to be applied in LAN, and uses
Family can be according to the upper demand of use, the method that any terminal device is set to the data sharing and data syn-chronization of server.
Background technology
In existing computer science, we are often with the pattern of " cloud ", the service large number of on internet as expression
The signal figure of device and underlying infrastructure, and " end " is referred to by various communication interfaces(Such as:Browser)In connection
The terminal installation of internet(Such as:Intelligent mobile phone, computer), therefore, user need not have gained some understanding to the infrastructure of " cloud ",
Also need not possess the professional knowledge of height, as long as by owned terminal installation, just promptly can be obtained from " cloud "
Service and resource needed for itself, so, cloud service turns into one of computer technology being most widely used now.
In general, existing cloud service is provided by Internet service provider mostly, wherein high in the clouds backup services are even more
Deep to be favored by people, for example, user can utilize personal computer, and file is transferred into the net that Internet service provider provided
Network space is stored, also, when user is outgoing or handles official business, arrives aforementioned document if need to use, user can utilize intelligence
Energy type mobile phone or notebook computer download this document, i.e. user is not required to file repeating storage into multiple equipment, just can
It is enough promptly to obtain required file.However, in foregoing occupation mode, the file of user is stored in Internet service provider
Server in, for extremely paying attention to the user of itself privacy right, if important data are placed on into network service
In the server of business, the doubt that concern of data leaks is had unavoidably, causes user in the upper misgivings of use.Therefore, still have all
Multi-user dare not use the high in the clouds provided by Internet service provider easily under the high data cases of some confidentialities
Backup services, cause user repeatedly to replicate same data between different device, cause using upper not convenient
Property.
Understand in summary, by data are deposited in " public cloud " that Internet service provider provided, can cause to use
The psychology worry of person, causes user can not enjoy the benefit of high in the clouds backup services, so, how for foregoing problems,
A kind of more preferably cloud service is designed, becomes the important topic of network of relation dealer.
The content of the invention
In view of user when carrying out cloud service, for the privacy concern of " public cloud ", still there is all scrupulous, institute
So that inventor makes great efforts research and experiment by permanent, and one kind that the present invention is designed in exploitation finally enters line number in LAN
According to the method shared with data syn-chronization, to which user's cloud service of " private cloud " can be provided by the present invention, and make industry
Person can occupy a tiny space in the existing network market.
The purpose of the present invention, there is provided a kind of method that data sharing and data syn-chronization are carried out in LAN, mainly
Be for user can in oneself LAN framework one " private cloud ", and can be between promptly synchronous multiple terminal installations
Data, without as existing way, repeatedly by same data duplication to multiple terminal installations, this method application
In a terminal installation(Such as:Intelligent mobile phone, tablet PC)On, the terminal installation includes a CPU, a network
Unit and a storage element, the wherein CPU are electrically connected the NE and the storage element respectively, that can pass
Breath deliver letters to the NE and storage element, or receives the information from the NE and storage element, the NE
The network information transmitted in extraneous LAN can be received, or transmits the network information into extraneous LAN, the storage element
One first synchronization program is inside installed, and stores more pen data data, when the terminal installation starts first synchronization program
(That is, synchronizing function is started)When, it can first judge whether itself has a server ticket, itself be set if so, then representing
For server, it can build after the linking request information for other devices that the NE transmits is received with other devices
Vertical link, and read the selection data message that other devices transmit, also, its can according to the content of the selection data message,
The update date of data information corresponding to acquirement, to compare number corresponding to the data information and other devices of storage in itself
According to the update date of data, and when the update date of data information corresponding to itself is later, by data money corresponding to itself
Material is sent to other devices, otherwise, just receives the data information that other devices transmit, and store to the storage element.
So, required terminal installation can be arranged to server according to use demand by user, and can be at home LAN
In, the terminal installation entrained by itself and the data information in other devices are synchronized, need to be by same number to exempt user
The behavior being repeatedly stored into according to data on different device, user is effectively improved in the upper convenience of use.
Another object of the present invention, in the storage element of the terminal installation, to be also equipped with one second synchronization program, so that
The terminal installation can by extraneous Internet connections into family LAN, the synchronized update of data information is carried out, when the terminal fills
Put and start second synchronization program(That is, another synchronizing function is started)When, it itself can set the server to be linked
In the case of position, established the link by a web browser and the server, also, it can select to be intended to synchronous Data Data,
And transmit a selection data message to the server, with wait the server judge whichever data information update date
It is later, and then the data information that the server transmits can be received, or one transmitted according to the server require data message by itself
Data information be sent to the server.So, although user by the terminal installation carry go out, still be able to in family
Server sync data information in LAN, subsequently repeat to store the puzzlement of data to reduce user.
For ease of juror further insight can be done with understanding, hereby to the object of the invention, technical characteristic and its effect
Coordinate schema for embodiment, describe in detail as follows:
Brief description of the drawings
Fig. 1 is the hardware architecture diagram of the terminal installation of the present invention;
Fig. 2 is the flow chart of the first synchronization program of the present invention;And
Fig. 3 is the flow chart of the second synchronization program of the present invention.
Symbol description
Terminal installation ... 1
CPU ... 11
NE ... 13
Storage element ... 15
First synchronization program ... 151
Second synchronization program ... 152
Data information ... 154
Embodiment
The present invention is a kind of method that data sharing and data syn-chronization are carried out in LAN, is referred to shown in Fig. 1,
In one embodiment, this method is by networking function and at least on a terminal installation 1 of synchronizing function, the terminal installation applied to tool
1 can be intelligent mobile phone(Smartphone), tablet PC(tablet pc), personal digital aid (PDA)(PDA)... etc.,
Wherein the terminal installation 1 includes a CPU 11, a NE 13 and a storage element 15, the CPU
11 are electrically connected the NE 13 and the storage element 15 respectively, and it can convey information to the NE 13 and storage element
15, to control the NE 13 and storage element 15 to perform corresponding program behavior, also, the CPU 11 also can
The information transmitted from the NE 13 and storage element 15 is received, and performs corresponding program behavior.
Referring again to shown in Fig. 1, the NE 13 can receive the network information transmitted in extraneous network, or transmission network
Information is into extraneous network, in addition, one first synchronization program 151 and one second synchronization program 152 are installed in the storage element 15,
And more pen data data 154 are stored in it, when the terminal installation 1 is judged to be in a LAN(That is, using private ip
The LAN that address institute framework forms)In, synchronizing function can be started(That is, first synchronization program 151 is performed), the centre
Reason unit 11 can judge whether terminal installation 1 itself has the server ticket in the LAN, in no server
In the case of label, represent that the terminal installation 1 is not set as the server in the LAN by user, now, the center
Processing unit 11 can by the NE 13 transmit a linking request information into LAN, with can with the LAN
Server establish the link;Conversely, in the case of the label with the server, then the terminal installation 1 is represented by user
The server being set as in the LAN, also, the CPU 11 determines whether to receive the institute of NE 13
The linking request information transmitted, if so, then indicate that other devices are intended to establish the link with itself, now, the CPU
11 will establish the link with other devices.
Referring again to shown in Fig. 1, when the terminal installation 1 and other devices establish the link successfully, other device meetings
The selection data message of transmission one includes at least one chosen data money to the terminal installation 1 in the selection data message
Expect title and to should data information update date, also, the CPU 11 can according to the selection data message
Content, the data information 154 in the storage element 15 corresponding to the data information title and update date are read, and judged
The update date whichever of the update date of data information 154 corresponding to itself data information 154 corresponding with the other devices
Update date it is later, if itself corresponding to data information 154 update date it is later, represent the data information of itself
154 contents are newer, then data information 154 corresponding to itself will be sent to other devices by the CPU 11;If
The update date of the data information 154 of other devices is later, then it is older to represent the content of data information 154 of itself, in this
Central Processing Unit 11 can transmit one by the NE 13 and require data message to other devices, can receive other dresses
The data information 154 transmitted is put, and is stored into the storage element 15, makes the data information 154 of terminal installation 1 and other dresses
The data information 154 put can maintain unanimously, and be held in last state.So, user is after in going back home, as long as starting
Terminal installation 1 in hand(Such as:Intelligent mobile phone)The first synchronization program, just can make the Data Data in the terminal installation 1
154 with family in other devices(Such as:Personal computer, notebook computer)Data Data 154 synchronize so that the terminal
Data information 154 in device 1 can be shared with other devices, afterwards, just being capable of profit as long as user directly makes other devices
Follow-up work is carried out with updated data information in other devices, greatly improves and uses upper convenience.
Clearly to disclose the method for the data sharing and data syn-chronization of foregoing embodiment, below hereby only with regard to the present invention's
CPU 11 starts the handling process of first synchronization program 151 it has been determined that in the LAN, is said
It is bright, refer to shown in the 1st and 2 figures:
(201)Judge whether itself has the label of the server in the LAN, if so, into step(202),
Otherwise, into step(208);
(202)Judge whether to receive the linking request information for other devices that the NE 13 transmits, if so, entering step
Suddenly(203), otherwise, return to step(202);
(203)Established the link with other devices, and judge whether to link successfully, if so, into step(204), otherwise,
Return to step(202);
(204)The selection data message that other devices transmit is read, into step(205);
(205)According to the content of the selection data message, judging the update date of data information 154 corresponding to itself is
No evening update date compared with data information 154 corresponding to other devices, if so, into step(206), otherwise, into step
(207);
(206)Data information 154 corresponding to itself is sent to other devices by the NE 13;
(207)Transmission one requires data message to other devices, and receives the Data Data that other devices transmit
154, and store into the storage element 15;
(208)Link solicited message is transmitted by the NE 13, and judged whether and the service in the LAN
Device establishes the link, if so, into step(209), otherwise, return to step(208);
(209)The selection data message of transmission one is to the server, into step(210);
(210)Judge whether to receive the data information 154 or require data message that the server transmits, if data provide
Material 154, into step(211)If requiring data message, into step(212);
(211)The data information 154 is stored to the storage element 15;
(212)The data information 154 of itself is sent to the server.
So, by foregoing flow, at the terminal installation 1 during LAN at home, just can with more its
Data information 154 in its device share with it is synchronous, make which device no matter user use, can obtain most
New data information 154, in the form of one " private clound " can be formed in the LAN, simultaneously as the terminal installation
1 data information 154 is to carry out sharing in " private clound " with synchronous, rather than position is in the server of network supplier, institute
Can greatly improve the confidentiality of data information 154, reduce the risk that data information 154 leaks.In addition, in foregoing implementation
In example, user can make the terminal installation 1 or other devices, every a scheduled period, i.e., start the first synchronous journey on one's own initiative
Sequence 151, to keep the novelty of data information 154 at any time.
In addition, in addition to foregoing occupation mode, referring again to shown in Fig. 1, when user is outgoing with terminal installation 1, but
Be intended to in the LAN in family other devices progress data information 154 share with it is synchronous when, the CPU
11 judge it is non-be in the LAN in the case of, another synchronizing function can be started(That is, second synchronization program is performed
152), also, it can search for the position whether itself has set server of the position in LAN, if so, the central processing list
Member 11 can start a web browser, and be established the link by the web browser and the server, also, the CPU
11 can transmit a selection data message to the server, afterwards, if the CPU 11 receives what the server transmitted
Data information 154, then it represents that the content of data information 154 of itself is older(That is, the update date of the data information 154 of itself
Earlier than the data information 154 in server), it can store the data information 154 received into storage element 15;If
The CPU 11 receives the requirement data message that the server transmits, then it represents that the content of data information 154 of itself
It is newer(That is, the update date of the data information 154 of itself is later than the data information 154 in server), it can be by itself
Data information 154 is sent to the server, and then the terminal installation 1 is kept with the data information 154 in the server
In optimum state, meanwhile, newest data information 154 can also be synchronized to other dresses in the LAN by the server
Put, make user just can directly handle newest data information 154 on other devices after in going back home.
Clearly to disclose the method for the data sharing and data syn-chronization of foregoing embodiment, below hereby only with regard to the present invention's
CPU 11 judge it is non-be in the LAN, and start the handling process of second synchronization program 152, carry out
Illustrate, referring again to shown in Fig. 1 and Fig. 3:
(301)Judge whether to have set the position of the server in this to be linked LAN, if so, into step
(302), otherwise, terminate the flow;
(302)Established the link by a web browser and the server, and judge whether to link successfully, if so, into
Step(303), otherwise, return to step(301);
(303)The selection data message of transmission one is to the server, into step(304);
(304)Judge whether to receive the data information or require data message that the server transmits, if Data Data,
Into step(305)If requiring data message, into step(306);
(305)The data information is stored to the storage element 15;
(306)The data information of itself is sent to the server.
So, when user stays out it is middle when, still be able to utilize terminal installation 1 in web browser, with the office in family
Server in the network of domain establishes the link, to carry out the sharing with synchronous of data information 154, without that must wait until to go home
Sharing with synchronous for data information 154 could be carried out afterwards, to provide the better use experience of user.
The special person of carrying herein, although in previous embodiment, difference is represented with the first synchronization program and the second synchronization program
Synchronizing function, but in other embodiments of the invention, as long as the terminal installation started synchronizing function the step of and work(
Effect meets foregoing features, i.e. the category present invention is referred to as synchronizing function.It is described above, only presently preferred embodiments of the present invention,
The interest field advocated of the present invention, it is not limited to this, be familiar with this those skilled in the art by all, foundation disclosed herein skill
Art content, can think easily and equivalence changes, all should belong to do not depart from the present invention protection category.
Claims (4)
- A kind of 1. method that data sharing and data syn-chronization are carried out in LAN, it is characterised in that applied to positioned at same Having at least two terminal installations of networking function and synchronizing function in LAN, each terminal installation is included in one Central Processing Unit, a NE and a storage element, the wherein CPU be electrically connected respectively the NE and The storage element, the NE can receive the network information transmitted in extraneous network, or transmit the network information to extraneous network In, the storage element stores more pen datas, and any one terminal installation at least two terminal installation has a service Device label,This method enables the terminal installation to perform the following steps:In the case of judging to be in a LAN, the synchronizing function can be started;Judge whether itself has the server ticket in the LAN;In the case where itself has the server ticket, then:Judge whether to receive the linking request information for other terminal installations that the NE transmits, and link other terminal installations To read the selection data message that other terminal installations transmit;According to the content of the selection data message, compare the renewal of the terminal installation and the corresponding data of other terminal installations Date;AndWhen the data update date corresponding to the terminal installation is later, the data corresponding to the terminal installation are sent to it Its terminal installation, or when the update date of data corresponding to other terminal installations is later, the terminal installation receives other terminals The data that device transmits, and store to the storage element;Wherein, the terminal installation also has another synchronizing function, and the terminal installation can also perform the following steps:Judge it is non-be in the LAN in the case of, another synchronizing function can be started;Judge whether to have set the position of the server in this to be linked LAN;In the case where having set the position of the server, established the link by a web browser and the server;In the case of being established the link successfully with the server, the selection data message of transmission one to the server;Judge whether to receive the data that the server transmits or one require data message;AndIn the case where receiving the data, by the data storage to the storage element, or receiving this data message is required In the case of, the data of itself are sent to the server.
- 2. the method for data sharing as claimed in claim 1 and data syn-chronization, it is characterised in that not having at itself wherein should In the case of server ticket, the CPU can perform the following steps:Link solicited message is transmitted by the NE;Linked with the server in the LAN, and transmit a selection data message to the server;Judge whether to receive the data that the server transmits or one require data message;And receiving the situation of the data Under, by the data storage to the storage element, or in the case where receiving this and requiring data message, the data of itself are transmitted To the server.
- 3. the method for data sharing as claimed in claim 1 and data syn-chronization, it is characterised in that the wherein selection data message Inside include at least one chosen data name and to should data update date.
- 4. the method for data sharing as claimed in claim 3 and data syn-chronization, it is characterised in that the wherein CPU The synchronizing function can also be started on one's own initiative every a scheduled period.
Priority Applications (2)
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 |
TW102135891A TWI505100B (en) | 2013-06-21 | 2013-10-03 | Method for sharing and synchronizing data in local area network |
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 |
---|---|
CN104243533A CN104243533A (en) | 2014-12-24 |
CN104243533B true CN104243533B (en) | 2018-03-30 |
Family
ID=52230873
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310250458.8A Active CN104243533B (en) | 2013-06-21 | 2013-06-21 | The method that data sharing and data syn-chronization are carried out in LAN |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104243533B (en) |
TW (1) | TWI505100B (en) |
Families Citing this family (4)
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 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1825797A (en) * | 2005-02-23 | 2006-08-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 |
CN103164422A (en) * | 2011-12-09 | 2013-06-19 | 百度在线网络技术(北京)有限公司 | Method, equipment and system for conducting data synchronism by adopting general data storage format |
Family Cites Families (4)
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 |
CN102455952B (en) * | 2011-07-26 | 2014-07-30 | 北京壹人壹本信息科技有限公司 | Data backup and recovery method, device and system |
-
2013
- 2013-06-21 CN CN201310250458.8A patent/CN104243533B/en active Active
- 2013-10-03 TW TW102135891A patent/TWI505100B/en active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1825797A (en) * | 2005-02-23 | 2006-08-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 |
EP2073429A1 (en) * | 2006-09-30 | 2009-06-24 | Huawei Technologies Co., Ltd. | Data synchronous method, system and apparatus |
CN102404354A (en) * | 2010-09-10 | 2012-04-04 | 北京创新方舟科技有限公司 | Method and device for achieving synchronism of data between updating devices based on internet device |
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 |
TW201500933A (en) | 2015-01-01 |
TWI505100B (en) | 2015-10-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Want et al. | Enabling the internet of things | |
CN105338011B (en) | A kind of ' In System Reconfiguration Method based on cloud service, device and Cloud Server | |
CN104702406B (en) | Auth method and device | |
CN104283926B (en) | A kind of method of data synchronization, device and server | |
EP3103023B1 (en) | Private cloud connected device cluster architecture | |
EP2615746A2 (en) | Method and system for bluetooth communication | |
CN106462597A (en) | Performing searches and accessing search results using different devices | |
JP6268824B2 (en) | Communication system, communication method, and information processing apparatus | |
CN102665114A (en) | Method, apparatus and system for intelligent device interaction | |
CN104243533B (en) | The method that data sharing and data syn-chronization are carried out in LAN | |
CN103841004B (en) | Method for information display and information server | |
CN101924779A (en) | Method equipment and system for sharing resources by browser clients | |
TWI656768B (en) | Method, system, client device and server for providing internet application service | |
CN103200224A (en) | Method and device and terminal of information sharing | |
CN102917061A (en) | Resource synchronization method and system | |
CN103812900A (en) | Data synchronization method, device and system | |
CN106293765A (en) | A kind of layout updates method and device | |
CN108028768A (en) | The method and system of application version is installed by short-range communication | |
CN103139157A (en) | Network communication method based on socket, device and system | |
CN104965637A (en) | Interface operation implementing method and device | |
CN102904960A (en) | Information synchronizing system and method based on really simple syndication (RSS) | |
JP2013150150A (en) | Information providing apparatus, information providing method, and program | |
CN105635215B (en) | Synchronous method, device and the Cloud Server of contact information | |
CN101980504B (en) | Data sharing method, mobile terminal and server | |
US9935989B2 (en) | System and apparatus for user communications |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |