CN103929450A - Data synchronization method and data synchronization device - Google Patents

Data synchronization method and data synchronization device Download PDF

Info

Publication number
CN103929450A
CN103929450A CN201310012928.7A CN201310012928A CN103929450A CN 103929450 A CN103929450 A CN 103929450A CN 201310012928 A CN201310012928 A CN 201310012928A CN 103929450 A CN103929450 A CN 103929450A
Authority
CN
China
Prior art keywords
data
synchronization
server
terminal equipment
cloud server
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.)
Granted
Application number
CN201310012928.7A
Other languages
Chinese (zh)
Other versions
CN103929450B (en
Inventor
邓宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310012928.7A priority Critical patent/CN103929450B/en
Publication of CN103929450A publication Critical patent/CN103929450A/en
Application granted granted Critical
Publication of CN103929450B publication Critical patent/CN103929450B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a data synchronization method and a data synchronization device, and the method and device are used for terminal equipment and a synchronization server. The data synchronization method for the synchronization server comprises the steps that TCP/IP long connection between the synchronization server and at least one cloud end server is kept; through the TCP/IP long connection, data synchronization between the synchronization server and at least one cloud end server is kept; a synchronization request is received from the terminal equipment; data synchronization is carried out between the terminal equipment and the synchronization server. The data synchronization method for the terminal equipment comprises the steps that a data synchronization request is sent to the synchronization server through a first file system interface arranged on the terminal equipment, the data synchronization request is used for indicating data synchronization between the terminal equipment and the synchronization server, and TCP/IP long connection between the synchronization server and at least one cloud end server is kept; the first file system interface is used for carrying out data synchronization between the terminal equipment and the synchronization server.

Description

Method of data synchronization and data synchronization unit
Technical field
The present invention relates to terminal equipment and synchronize with the data between cloud server, and relate more specifically to a kind of method of data synchronization for terminal equipment and data synchronization unit and a kind of method of data synchronization for synchronization server and data synchronization unit.
Background technology
Although terminal equipment performance significantly promotes, yet it is still limited by the limited memory space of terminal equipment itself and computing capability, cannot and calculate all data and all be deployed in terminal.Increasing terminal equipment performance relies on the wireless interconnected module (as 2G/3G, WiFi etc.) of self and cloud server to carry out alternately, to realize the expansion of memory space and computational resource, and this is also considered to be the effective way that terminal equipment is expanded performance, reduced system power dissipation.
On the other hand, it is to affect the key factor that user experiences that the battery of terminal equipment is used duration, be limited by the method for synchronization of current terminal and cloud server, that is: at present by safeguard the long mode connecting of TCP/IP at terminal, carrying out terminal synchronizes with the data between cloud server, this will bring a lot of meaningless energy expense, and the battery that seriously reduces terminal equipment is used duration.
Therefore, need a kind ofly between terminal and cloud server, to carry out the method and apparatus that data are synchronizeed, it generally only safeguards at synchronization server end that TCP/IP is long and connects, and only has when terminal equipment need to carry out data and just starts terminal when synchronous and synchronize with the data between synchronization server end.
Summary of the invention
Consider the problems referred to above and proposed the present invention.The invention provides a kind of method of data synchronization and data synchronization unit, its by synchronization server safeguard with at least one cloud server between long connection of TCP/IP, keep described synchronization server to synchronize with the data between described at least one cloud server, only at terminal equipment, need to carry out data when synchronous, just set up terminal equipment and synchronize with the data between synchronization server.Thus, without utilize user account number to sign in to described at least one cloud server on described terminal equipment in the situation that, by utilizing unified application programming interfaces to set up described terminal equipment, synchronize with the data between described synchronization server, described synchronization server has utilized user account number to sign in to described at least one cloud server and maintenance is connected with the TCP/IP length between at least one cloud server.
According to an aspect of the present invention, provide a kind of method of data synchronization, be applied in synchronization server, described method comprises: keep described synchronization server to be connected with the TCP/IP length between at least one cloud server; Utilize the long connection of described TCP/IP, keep described synchronization server to synchronize with the data between described at least one cloud server; From terminal equipment, receive synchronization request; Between described terminal equipment and described synchronization server, carry out data synchronous, realize described terminal equipment and synchronize with the data between described at least one cloud server.
Preferably, in described method of data synchronization, describedly from terminal equipment, receive synchronization request and comprise: by the first file system interface in described synchronization server deploy, from described terminal equipment, receive described synchronization request, described synchronization request has been indicated the data synchronization request to described at least one cloud server; And resolve described synchronization request, in described synchronization server, sign is recently from the synchronous data of described at least one cloud server.
Preferably, in described method of data synchronization, describedly between described terminal equipment and described synchronization server, carry out data and synchronously comprise: in the data of described terminal equipment being synchronized to described synchronization server by described the first file system interface recently from the synchronous data of described at least one cloud server; Or from described terminal equipment, receive the data that will upload at least a portion described at least one cloud server by described the first file system interface.
Preferably, in described method of data synchronization, the described synchronization server of described maintenance comprised with long connection of TCP/IP between at least one cloud server: on described synchronization server, utilize user account number to sign in to described at least one cloud server, wherein, each cloud server has corresponding user account number; For each cloud server, based on corresponding user account number, set up this cloud server and be connected with the TCP/IP length between described synchronization server.
According to a further aspect of the invention, a kind of method of data synchronization is provided, be applied to terminal equipment, described method comprises: by the first file system interface in described terminal equipment deploy, to synchronization server, send data synchronization request, described data synchronization request is used to indicate carries out described terminal equipment and synchronizes with the data of synchronization server, wherein, between described synchronization server and at least one cloud server, keep that TCP/IP is long to be connected; By described the first file system interface, between described terminal equipment and described synchronization server, carry out data synchronous.
Preferably, in described method of data synchronization, describedly by described the first file system interface, between described terminal equipment and described synchronization server, carry out data and synchronously comprise: described terminal equipment receives recently from the synchronous data of described at least one cloud server from described synchronization server by described the first file system interface; Or described terminal equipment sends the data that will upload at least a portion in described at least one cloud server to described synchronization server by described the first file system interface.
According to another aspect of the invention, a kind of data synchronization unit is provided, be applied in synchronization server, described device comprises: TCP/IP link, for keeping described synchronization server to be connected with the TCP/IP length between at least one cloud server; The first data synchronizer unit, for utilizing long connection of described TCP/IP to keep described synchronization server to synchronize with the data between described at least one cloud server; Request receiving parts, for receiving synchronization request from terminal equipment; The second data synchronizer unit, synchronous for carry out data between described terminal equipment and described synchronization server.
Preferably, in described data synchronization unit, the data synchronization request of described synchronization request indication to described at least one cloud server, described request receiving-member is supported the first file system interface, resolve described synchronization request, and sign is recently from the synchronous data of described at least one cloud server.
Preferably, in described data synchronization unit, described the second data synchronizer unit is supported described the first file system interface, and the data of described terminal equipment are synchronized in described synchronization server recently from the synchronous data of described at least one cloud server; Or receive the data that will upload at least a portion described at least one cloud server from described terminal equipment.
Preferably, in described data synchronization unit, described TCP/IP link utilizes user account number to sign in to described at least one cloud server, and wherein, each cloud server has corresponding user account number; For each cloud server, described TCP/IP link is connected with the TCP/IP length between described cloud server based on corresponding user account number foundation.
Preferably, described data synchronization unit also comprises: wireless communication unit, and for setting up wireless connections according to wireless communication protocol and described terminal equipment.
According to a further aspect of the present invention, a kind of data synchronization unit is provided, be applied to terminal equipment, described device comprises: synchronization request transmit block, support the first file system interface, and to synchronization server, send data synchronization request by this first file system interface, described data synchronization request is used to indicate carries out described terminal equipment and synchronizes with the data of synchronization server, wherein, between described synchronization server and at least one cloud server, keep that TCP/IP is long to be connected; Data synchronizer unit, supports this first file system interface, and it is synchronous by this first file system interface, between described terminal equipment and described synchronization server, to carry out data.
Preferably, described data synchronization unit also comprises: wireless communication unit, and for setting up wireless connections according to wireless communication protocol and described synchronization server.
According to the method for data synchronization of the embodiment of the present invention and data synchronization unit, its by synchronization server safeguard with at least one cloud server between long connection of TCP/IP, keep described synchronization server to synchronize with the data between described at least one cloud server, only at terminal equipment, need to carry out data when synchronous, just set up terminal equipment and synchronize with the data between synchronization server.
Accompanying drawing explanation
Embodiments of the present invention is described in detail in conjunction with the drawings, and above and other objects of the present invention, feature, advantage will become apparent, wherein:
Fig. 1 illustrates terminal equipment in existing communication mode directly to carry out with cloud server the schematic diagram that data are synchronizeed;
Fig. 2 illustrates according to the synchronization server that passes through of the embodiment of the present invention to carry out with cloud server the schematic diagram that data are synchronizeed;
Fig. 3 is the indicative flowchart illustrating according to the method for data synchronization for synchronization server of the embodiment of the present invention;
Fig. 4 is the schematic diagram illustrating according to the data allocations of carrying out in synchronization server of the embodiment of the present invention;
Fig. 5 is the indicative flowchart illustrating according to the method for data synchronization for terminal equipment of the embodiment of the present invention;
Fig. 6 is the schematic block diagram illustrating according to the data synchronization unit for synchronization server of the embodiment of the present invention; And
Fig. 7 is the schematic block diagram illustrating according to the data synchronization unit for terminal equipment of the embodiment of the present invention.
Embodiment
As shown in Figure 1, in existing communication mode, terminal equipment is often accepted the service that a plurality of cloud storage service provider provides simultaneously, terminal equipment need keep with at least one cloud server between long connection of TCP/IP, to carry out terminal equipment, synchronize with the data between at least one cloud server, this uses duration by the battery that reduces terminal equipment.
Consider the problems referred to above, the inventor has proposed a kind of novel synchronization scenario, between terminal equipment and described at least one cloud server, arrange synchronization server, terminal equipment is synchronizeed two stages that are divided into the data between described at least one cloud server: the data of the data between terminal equipment and synchronization server synchronously and between synchronization server and at least one cloud server are synchronous.This synchronization server maintenance is connected with the TCP/IP length between at least one cloud server, to carry out data with described at least one cloud server in real time, synchronizes.It is synchronous to carry out between this terminal equipment and this synchronization server that this terminal equipment is only just connected to this synchronization server when needs are synchronous.
As shown in Figure 2, show the novel synchronization scenario that the present invention proposes, between synchronization server and at least one cloud server, keep that TCP/IP is long to be connected, between terminal equipment and described at least one cloud server, no longer keep that TCP/IP is long to be connected, this terminal equipment is only just connected to this synchronization server when needs are synchronous.
Next, with reference to Fig. 3-Fig. 7, describe according to the method for data synchronization of illustrated embodiments of the invention and data synchronization unit.
Fig. 3 is the indicative flowchart illustrating according to the method for data synchronization 300 for synchronization server of the embodiment of the present invention.
As shown in Figure 3, according to the method for data synchronization 300 for synchronization server of the embodiment of the present invention, at step S301, start.
In step S310, synchronization server maintenance is connected with the TCP/IP length between at least one cloud server.
At step S320, utilize the long connection of described TCP/IP, keep described synchronization server to synchronize with the data between described at least one cloud server.
At step S330, synchronization server receives synchronization request from terminal equipment.
As example, described synchronization server receives synchronization request from terminal equipment can be by with the realization of getting off: by the first file system interface in described synchronization server deploy, from described terminal equipment, receive described synchronization request, described synchronization request has been indicated the data synchronization request to described at least one cloud server; And resolve described synchronization request, in described synchronization server, sign is recently from the synchronous data of described at least one cloud server.
At step S340, between terminal equipment and synchronization server, carry out data synchronous, realize described terminal equipment and synchronize with the data between described at least one cloud server.
Finally, according to the method for data synchronization 300 for synchronization server of the embodiment of the present invention, at step S399, finish.
Data synchronously can be divided into that downloading data is synchronous and uploading data is synchronous conventionally.According to the method for data synchronization 300 for synchronization server of the embodiment of the present invention, both can be synchronous for downloading data, also can be synchronous for uploading data.
Below will be for downloading data synchronous and uploading data be synchronously introduced respectively.
In the situation that downloading data is synchronous, after having carried out as described above step S310-S330, particularly in step S340, described synchronization server can be determined need to be to the synchronous data of described terminal equipment, and then by described the first file system interface, the data of described terminal equipment are synchronized in described synchronization server recently from the synchronous data of described at least one cloud server.
Preferably, described data can be file, and described file can be various forms.
As the first example, described synchronization server can be preserved described terminal equipment for the last time from the All Files data of synchronous (download) file of described synchronization server (below be called the first file data), and after described synchronization server is synchronizeed with described at least one cloud server, in described synchronization server, can preserve the All Files data that are associated with user described terminal equipment that store (being called the second file data below) in described at least one cloud server.
At described synchronization server after described terminal equipment receives synchronization request, described synchronization server compares described the first file data and described the second file data, at described the first file data from described the second file data when different, described synchronization server can send to described terminal equipment by described the second file data, or described synchronization server can calculate the differential data of described the second file data and described the first file data, and the differential data of described the second file data and described the first file data is sent to described terminal equipment, thereby the downloading data of realizing described terminal equipment is synchronous.
Alternatively, described synchronization server can be preserved described terminal equipment for the last time from the cryptographic Hash of the All Files data of synchronous (download) file of described synchronization server (below be called the first file data).At described synchronization server after described terminal equipment receives synchronization request, described synchronization server compares the cryptographic Hash of the cryptographic Hash of described the first file data and described the second file data, when the cryptographic Hash of described the first file data is different with the cryptographic Hash of described the second file data, described synchronization server can send to described terminal equipment by described the second file data, or described synchronization server can calculate the differential data of described the second file data and described the first file data, and the differential data of described the second file data and described the first file data is sent to described terminal equipment, thereby the downloading data of realizing described terminal equipment is synchronous.
As the second example, described synchronization server can be preserved described terminal equipment for the last time from the cryptographic Hash of the All Files data of synchronous (download) file of described synchronization server (below be called the first file data), and after described synchronization server is synchronizeed with described at least one cloud server, in described synchronization server, can preserve the cryptographic Hash of the All Files data that are associated with user described terminal equipment that store (being called the second file data below) in described at least one cloud server, and without directly preserving described the second file data.
At described synchronization server after described terminal equipment receives synchronization request, described synchronization server compares the cryptographic Hash of the cryptographic Hash of described the first file data and described the second file data, when the cryptographic Hash of described the first file data is different with the cryptographic Hash of described the second file data, described synchronization server can be downloaded described the second file data by the corresponding cloud server from described at least one cloud server, and then the second downloaded file data is sent to described terminal equipment.
Alternatively, at described synchronization server after described terminal equipment receives synchronization request, described synchronization server can send to the cryptographic Hash of described the first file data the corresponding cloud server in described at least one cloud server, by described corresponding cloud server, calculated the differential data of described the second file data and described the first file data, and described synchronization server only receives the differential data of described the second file data and described the first file data from described corresponding cloud server, then described synchronization server can send to described terminal equipment by described differential data, thereby the downloading data of realizing described terminal equipment is synchronous.
Although having described described synchronization server above can preserve the cryptographic Hash of the file in described terminal equipment or can preserve described terminal equipment from the historical data of synchronous (download) file of described synchronization server, yet the invention is not restricted to this, described synchronization server can be known the current file data in described terminal equipment in a suitable manner.In other words, described synchronization server can know the file in described terminal equipment version, size etc.
In the situation that uploading data is synchronous, after having carried out as described above step S310-S330, particularly in step S340, described synchronization server can be determined need to be to the synchronous data of described at least one cloud server, and then by described the first file system interface, from described terminal equipment, receive the data that will upload at least a portion cloud server described at least one cloud server.
Preferably, described data can be file, and described file can be various forms.
As example, in described synchronization request, the All Files data that described terminal equipment request uploads (below be called the 3rd file data) have been comprised, described synchronization server can be preserved described the 3rd file data, and after described synchronization server is synchronizeed with described at least one cloud server, in described synchronization server, can preserve the All Files data that are associated with user described terminal equipment that store (being called the 4th file data below) in described at least one cloud server.
Then, described synchronization server compares described the 3rd file data and described the 4th file data, at described the 3rd file data from described the 4th file data when different, described synchronization server can send to described the 3rd file data the corresponding cloud server in described at least one cloud server, or described synchronization server can calculate the differential data of described the 3rd file data and described the 4th file data, and the differential data of described the 3rd file data and described the 4th file data is sent to described corresponding cloud server, thereby the uploading data of realizing described terminal equipment is synchronous.
Alternatively, in described synchronization request, comprised the cryptographic Hash of the All Files data that described terminal equipment request uploads (below be called the 3rd file data), described synchronization server can be preserved the cryptographic Hash of described the 3rd file data, and after described synchronization server is synchronizeed with described at least one cloud server, in described synchronization server, can preserve the cryptographic Hash of the All Files data that are associated with user described terminal equipment that store (being called the 4th file data below) in described at least one cloud server.Described synchronization server compares the cryptographic Hash of the cryptographic Hash of described the 3rd file data and described the 4th file data, when the cryptographic Hash of described the 3rd file data is different with the cryptographic Hash of described the 4th file data, described synchronization server can receive described the 3rd file data from described terminal equipment, and described the 3rd file data is uploaded to the corresponding cloud server in described at least one cloud server, or can be based on described the 3rd data file, the cryptographic Hash of described the 3rd data file, the cryptographic Hash of described the 4th data file is calculated the differential data of described the 3rd data file and described the 4th data file, and described differential data is uploaded to the corresponding cloud server in described at least one cloud server.
Alternatively, when described synchronization server determines that the cryptographic Hash of described the 3rd file data is different with the cryptographic Hash of described the 4th file data, described synchronization server sends to described terminal document by the cryptographic Hash of described the 4th file data, then described terminal installation can be based on described the 3rd data file, the cryptographic Hash of described the 3rd data file, the cryptographic Hash of described the 4th data file is calculated the differential data of described the 3rd data file and described the 4th data file and described differential data is sent to described synchronization server, then described synchronization server uploads to described differential data the corresponding cloud server at least one cloud server again.
Preferably, described the first file system interface is the interface of supporting http protocol.
As mentioned above, in the situation that a user has used at least one cloud server simultaneously, described synchronization server need to keep with described at least one cloud server between long connection of TCP/IP.Each cloud server has its exclusive login authentication mechanism separately, and therefore, described user need to use the exclusive user account number of each cloud server to sign in to corresponding cloud server.The corresponding user account number of each cloud server can be set to identical name on account by user, can be different names on account conventionally certainly.
At described synchronization server, only for a user, (it can have a plurality of terminal equipments, for example at least one smart mobile phone, at least one personal digital assistant PDA, at least one panel computer etc.) situation under, described synchronization server need to utilize the relative users account number of each cloud server to sign in to corresponding cloud server, and based on relative users account number maintain with corresponding cloud server between long connection of TCP/IP.
A plurality of terminal equipments that belong to this user can be connected to described synchronization server with wireless mode, and it is synchronous by described synchronization server, to complete data, and to carry out data synchronous without signing in to successively each cloud server again.Thus, the single application programming interfaces that only need unify at terminal, by completing data between these single application programming interfaces and described synchronization server, synchronize, and described terminal can specify the corresponding relation of specific file and corresponding cloud server by these single application programming interfaces, for example which cloud server specific file will be uploaded to.In described synchronization server, carry out high in the clouds otherness coupling, according to the synchronization request receiving from terminal equipment, to corresponding cloud server uploading data or from corresponding cloud server downloading data.As shown in Figure 4, show the cloud server of three examples: Cloud1, Cloud2 and Cloud3.
As shown in Figure 6, show according to the schematic block diagram of the data synchronization unit 600 for synchronization server of the embodiment of the present invention.
According to the data synchronization unit 600 for synchronization server of the embodiment of the present invention, comprise TCP/IP link 610, the first data synchronizer unit 620, request receiving parts 630 and the second data synchronizer unit 640.
Described TCP/IP link 610 keeps described synchronization server to be connected with the TCP/IP length between at least one cloud server.
Described the first data synchronizer unit 620 utilizes long connection of described TCP/IP to keep described synchronization server to synchronize with the data between described at least one cloud server.
Described request receiving-member 630 receives synchronization request from terminal equipment; The data synchronization request of described synchronization request indication to described at least one cloud server; Described request receiving-member is supported the first file system interface, resolves described synchronization request, and sign is recently from the synchronous data of described at least one cloud server.
It is synchronous that described the second data synchronizer unit 640 carries out data between described terminal equipment and described synchronization server; Described the second data synchronizer unit 640 is supported described the first file system interface.
As previously mentioned, in the situation that downloading data is synchronous, described the second data synchronizer unit 640 can be determined need to be to the synchronous data of described terminal equipment, and then by described the first file system interface, the data of described terminal equipment are synchronized in described synchronization server recently from the synchronous data of described at least one cloud server.
Preferably, described data can be file, and described file can be various forms.
The in the situation that of the first example as above, described the second data synchronizer unit 640 can be preserved described first file data of described terminal equipment, and after described synchronization server is synchronizeed with described at least one cloud server, in described the first data synchronizer unit 620, can preserve described second file data of described at least one cloud server.
At described request receiving-member 630 after described terminal equipment receives synchronization request, described the second data synchronizer unit 640 compares described the first file data and described the second file data, at described the first file data from described the second file data when different, described the second file data can be sent to described terminal equipment, or described the second data synchronizer unit 640 can calculate the differential data of described the second file data and described the first file data, and described differential data is sent to described terminal equipment.
Alternatively, the cryptographic Hash that described the second data synchronizer unit 640 can be preserved described the first file data.At described request receiving-member 630 after described terminal equipment receives synchronization request, described the second data synchronizer unit 640 compares the cryptographic Hash of the cryptographic Hash of described the first file data and described the second file data, when the cryptographic Hash of described the first file data is different with the cryptographic Hash of described the second file data, described the second file data can be sent to described terminal equipment, or described the second data synchronizer unit 640 can calculate the differential data of described the second file data and described the first file data, and described differential data is sent to described terminal equipment.
The in the situation that of the second example as above, the cryptographic Hash that described the second data synchronizer unit 640 can be preserved described the first file data, and after described synchronization server is synchronizeed with described at least one cloud server, the cryptographic Hash that can preserve described the second file data in described the first data synchronizer unit 620, and without directly preserving described the second file data.
At described request receiving-member 630 after described terminal equipment receives synchronization request, described the second data synchronizer unit 640 compares the cryptographic Hash of the cryptographic Hash of described the first file data and described the second file data, when the cryptographic Hash of described the first file data is different with the cryptographic Hash of described the second file data, described the first data synchronizer unit 620 can be downloaded described the second file data by the corresponding cloud server from described at least one cloud server, then described the second data synchronizer unit 640 sends to described terminal equipment by the second downloaded file data.
Alternatively, at described request receiving-member 630 after described terminal equipment receives synchronization request, described the first data synchronizer unit 620 can send to the cryptographic Hash of described the first file data the corresponding cloud server in described at least one cloud server, by described corresponding cloud server, calculated the differential data of described the second file data and described the first file data, and described the first data synchronizer unit 620 only receives described differential data from described corresponding cloud server, then described the second data synchronizer unit 640 can send to described terminal equipment by described differential data.
As mentioned above, in the situation that uploading data is synchronous, described the second data synchronizer unit 640 can be determined need to be to the synchronous data of described at least one cloud server, and then by described the first file system interface, from described terminal equipment, receive the data that will upload at least a portion cloud server described at least one cloud server.
Preferably, described data can be file, and described file can be various forms.
As example, in described synchronization request, the All Files data that described terminal equipment request uploads (below be called the 3rd file data) have been comprised, described synchronization server can be preserved described the 3rd file data, and after described synchronization server is synchronizeed with described at least one cloud server, in described synchronization server, can preserve the All Files data that are associated with user described terminal equipment that store (being called the 4th file data below) in described at least one cloud server.
Then, described the first data synchronizer unit 620 compares described the 3rd file data and described the 4th file data, at described the 3rd file data from described the 4th file data when different, described synchronization server can send to described the 3rd file data the corresponding cloud server in described at least one cloud server, or described the first data synchronizer unit 620 can calculate the differential data of described the 3rd file data and described the 4th file data, and the differential data of described the 3rd file data and described the 4th file data is sent to described corresponding cloud server.
As another example, in described synchronization request, comprised the cryptographic Hash of described the 3rd file data, the cryptographic Hash that described the second data synchronizer unit 640 can be preserved described the 3rd file data, and after described synchronization server is synchronizeed with described at least one cloud server, the cryptographic Hash that described the first data synchronizer unit 620 can be preserved described the 4th file data.Described the first data synchronizer unit 620 compares the cryptographic Hash of the cryptographic Hash of described the 3rd file data and described the 4th file data, when the cryptographic Hash of described the 3rd file data is different with the cryptographic Hash of described the 4th file data, described the second data synchronizer unit 640 can receive described the 3rd file data from described terminal equipment, described the first data synchronizer unit 620 uploads to the corresponding cloud server in described at least one cloud server by described the 3rd file data, or described the first data synchronizer unit 620 can be based on described the 3rd data file, the cryptographic Hash of described the 3rd data file, the cryptographic Hash of described the 4th data file is calculated the differential data of described the 3rd data file and described the 4th data file, and described differential data is uploaded to the corresponding cloud server in described at least one cloud server.
Alternatively, when described the first data synchronizer unit 620 determines that the cryptographic Hash of described the 3rd file data is different with the cryptographic Hash of described the 4th file data, described the second data synchronizer unit 640 sends to described terminal document by the cryptographic Hash of described the 4th file data, then described terminal installation can be based on described the 3rd data file, the cryptographic Hash of described the 3rd data file, the cryptographic Hash of described the 4th data file is calculated the differential data of described the 3rd data file and described the 4th data file and described differential data is sent to described the second data synchronizer unit 640, then described the first data synchronizer unit 620 uploads to described differential data the corresponding cloud server at least one cloud server again.
Preferably, described the first file system interface is the interface of supporting http protocol.
As previously mentioned, each cloud server has its exclusive login authentication mechanism separately, and therefore, user need to use the exclusive user account number of each cloud server to sign in to corresponding cloud server.The corresponding user account number of each cloud server can be set to identical name on account by user, certainly, can be different names on account conventionally.The corresponding user account number of described TCP/IP link utilization signs in to described at least one cloud server, and, based on corresponding user account number, set up with the TCP/IP between cloud server is long accordingly and be connected.
Preferably, described data synchronization unit 600 also comprises wireless communication unit 650, and it sets up wireless connections according to wireless communication protocol and described terminal equipment.
Described synchronization server can be supported a user, and this user can have a plurality of terminal equipments, for example at least one smart mobile phone, at least one personal digital assistant PDA, at least one panel computer etc.Alternatively, described synchronization server can be supported a plurality of users, and each user can have a plurality of terminal equipments, for example at least one smart mobile phone, at least one personal digital assistant PDA, at least one panel computer etc.
For each user, a plurality of terminal equipments that belong to this user can be connected to described synchronization server with wireless mode, and it is synchronous by described synchronization server, to complete data, and to carry out data synchronous without signing in to successively each cloud server again.Thus, the single application programming interfaces that only need unify at terminal, by completing data between these single application programming interfaces and described synchronization server, synchronize, and described terminal can specify the corresponding relation of specific file and corresponding cloud server by these single application programming interfaces, for example which cloud server specific file will be uploaded to.In described synchronization server, carry out high in the clouds otherness coupling, according to the synchronization request receiving from terminal equipment, to corresponding cloud server uploading data or from corresponding cloud server downloading data.
Next, with reference to Fig. 5 and Fig. 7, describe according to the method for data synchronization for terminal equipment of the embodiment of the present invention and data synchronization unit.
As shown in Figure 5, show according to the flow chart of the method for data synchronization 500 for terminal equipment of the embodiment of the present invention, in described terminal equipment deploy the first file system interface.
First, according to the method for data synchronization for terminal equipment of the embodiment of the present invention, at step S501, start.
At step S510, by the first file system interface, to synchronization server, send data synchronization request, described data synchronization request is used to indicate carries out described terminal equipment and synchronizes with the data of synchronization server, wherein, between described synchronization server and at least one cloud server, keep that TCP/IP is long to be connected.
Then, at step S520, by described the first file system interface, between described terminal equipment and described synchronization server, carry out data synchronous.
For example, described terminal equipment receives recently from the synchronous data of described at least one cloud server from described synchronization server by described the first file system interface; Or described terminal equipment sends the data that will upload at least a portion cloud server in described at least one cloud server to described synchronization server by described the first file system interface.
Finally, according to the method for data synchronization for terminal equipment of the embodiment of the present invention, at step S599, finish.
Still and uploading data synchronous with downloading data synchronously describes.
First, for the synchronous situation of downloading data, as previously mentioned, described synchronization server can be preserved described terminal equipment for the last time from the All Files data of synchronous (download) file of described synchronization server (below be called the first file data), and after described synchronization server is synchronizeed with described at least one cloud server, in described synchronization server, can preserve the All Files data that are associated with user described terminal equipment that store (being called the second file data below) in described at least one cloud server.
At described the first file data from described the second file data when different, described terminal equipment receives described the second file data from described synchronization server, or from described synchronization server, receives the differential data of described the second file data and described the first file data.
Alternatively, described synchronization server can be preserved the cryptographic Hash of described the first file data, and can preserve described the second file data.When the cryptographic Hash of described the first file data is different with the cryptographic Hash of described the second file data, described terminal equipment receives described the second file data from described synchronization server, or from described synchronization server, receives the differential data of described the second file data and described the first file data.
Alternatively, described synchronization server can be preserved the cryptographic Hash of described the first file data, and in described synchronization server, can preserve the cryptographic Hash of described the second file data, and without directly preserving described the second file data.When the cryptographic Hash of described the first file data is different with the cryptographic Hash of described the second file data, described synchronization server can be downloaded described the second file data by the corresponding cloud server from described at least one cloud server, described terminal equipment receives described the second file data from described synchronization server, or from described synchronization server, receives the differential data of described the second file data and described the first file data.
Alternatively, when the cryptographic Hash of described the first file data is different with the cryptographic Hash of described the second file data, described synchronization server only receives the differential data of described the second file data and described the first file data from described corresponding cloud server, and described terminal equipment also only receives the differential data of described the second file data and described the first file data from described synchronization server.
On the other hand, in the situation that uploading data is synchronous, as mentioned above, described terminal equipment can comprise the All Files data that described terminal equipment request uploads (below be called the 3rd file data) in described synchronization request, and described synchronization server can be preserved described the 3rd file data.Then, described synchronization server utilizes described the 3rd file data to carry out the corresponding cloud server in synchronous described at least one cloud server.
Alternatively, described terminal equipment can comprise the cryptographic Hash of the All Files data that described terminal equipment request uploads (below be called the 3rd file data) in described synchronization request, described synchronization server can be preserved the cryptographic Hash of described the 3rd file data.And, after described synchronization server is synchronizeed with described at least one cloud server, in described synchronization server, can preserve the cryptographic Hash of the All Files data that are associated with user described terminal equipment that store (being called the 4th file data below) in described at least one cloud server.When the cryptographic Hash of described the 3rd file data is different with the cryptographic Hash of described the 4th file data, described terminal equipment can send to described synchronization server by described the 3rd file data.Then, described synchronization server utilizes described the 3rd file data to carry out the corresponding cloud server in synchronous described at least one cloud server.
Alternatively, when described synchronization server determines that the cryptographic Hash of described the 3rd file data is different with the cryptographic Hash of described the 4th file data, described synchronization server sends to described terminal document by the cryptographic Hash of described the 4th file data, then described terminal installation can be based on described the 3rd data file, the cryptographic Hash of described the 3rd data file, the cryptographic Hash of described the 4th data file is calculated the differential data of described the 3rd data file and described the 4th data file and described differential data is sent to described synchronization server, then described synchronization server uploads to described differential data the corresponding cloud server at least one cloud server again.
On described terminal equipment, only need unified single application programming interfaces, by completing data between these single application programming interfaces and described synchronization server, synchronize, and described terminal can specify the corresponding relation of specific file and corresponding cloud server by these single application programming interfaces, for example which cloud server specific file will be uploaded to.Correspondingly, on described terminal equipment, without utilizing described user account number to sign in to described at least one cloud server, also realized described terminal equipment and synchronizeed with the data between described at least one cloud server.
Preferably, described synchronization server is connected with described terminal equipment by wireless mode, and described the first file system interface is the interface of supporting http protocol.
As shown in Figure 7, show according to the schematic block diagram of the data synchronization unit 700 for terminal equipment of the embodiment of the present invention.
According to the data synchronization unit 700 for terminal equipment of the embodiment of the present invention, comprise synchronization request transmit block 710 and data synchronizer unit 720.
Described synchronization request transmit block 710 is supported the first file system interface, and by this first file system interface, to synchronization server, send data synchronization request, described data synchronization request is used to indicate carries out described terminal equipment and synchronizes with the data of synchronization server.Between described synchronization server and at least one cloud server, keep that TCP/IP is long to be connected.
Described data synchronizer unit 720 is supported these first file system interfaces, and it is synchronous by this first file system interface, between described terminal equipment and described synchronization server, to carry out data.
First, for the synchronous situation of downloading data, as previously mentioned, described terminal equipment is called as the first file data from the All Files data of synchronous (download) file of described synchronization server for the last time, and in described at least one cloud server, the All Files data that are associated with user described terminal equipment that store are called as the second file data.Described synchronization server can be preserved the cryptographic Hash of described the first file data and/or described the first file data, and can preserve the cryptographic Hash of described the second file data and/or described the second file data.
Described synchronization request transmit block 710 sends data synchronization request by this first file system interface to synchronization server, when described synchronization server determines that described the first file data and the cryptographic Hash of described the second file data or described the first file data are different with the cryptographic Hash of described the second file data, described data synchronizer unit 720 receives described the second file data from described synchronization server, or from described synchronization server, receives the differential data of described the second file data and described the first file data.
On the other hand, in the situation that uploading data is synchronous, as mentioned above, the All Files data that described terminal equipment request is uploaded are called as the 3rd file data, and in described at least one cloud server, the All Files data that are associated with user described terminal equipment that store are called as the 4th file data.
Described synchronization request transmit block 710 sends data synchronization request by this first file system interface to synchronization server, and this data synchronization request can comprise described the 3rd file data.Alternatively, described synchronization request transmit block 710 sends data synchronization request by this first file system interface to synchronization server, and described data synchronizer unit 720 sends described the 3rd file data to described synchronization server simultaneously.
Alternatively, described synchronization request transmit block 710 sends data synchronization request by this first file system interface to synchronization server, and this data synchronization request can comprise the cryptographic Hash of described the 3rd file data.When described synchronization server determines that the cryptographic Hash of described the 3rd file data is different with the cryptographic Hash of described the 4th file data, described data synchronizer unit 720 can receive this cryptographic Hash comparative result (being that cryptographic Hash is different) from described synchronization server, and described data synchronizer unit 720 just sends described the 3rd file data to described synchronization server.Alternatively, when described synchronization server determines that the cryptographic Hash of described the 3rd file data is different with the cryptographic Hash of described the 4th file data, described data synchronizer unit 720 can receive from described synchronization server the cryptographic Hash of described the 4th file data, and described data synchronizer unit 720 calculates the differential data of described the 3rd data file and described the 4th data file and described differential data is sent to described synchronization server based on described the 3rd data file, the cryptographic Hash of described the 3rd data file, the cryptographic Hash of described the 4th data file.
On described terminal equipment, only need unified single application programming interfaces, by completing data between these single application programming interfaces and described synchronization server, synchronize, and described terminal can specify the corresponding relation of specific file and corresponding cloud server by these single application programming interfaces, for example which cloud server specific file will be uploaded to.Correspondingly, on described terminal equipment, without utilizing described user account number to sign in to described at least one cloud server, also realized described terminal equipment and synchronizeed with the data between described at least one cloud server.
Preferably, described terminal equipment is connected with described synchronization server by wireless mode, and described the first file system interface is the interface of supporting http protocol.
Preferably, described data synchronization unit 700 also comprises wireless communication unit 730, for setting up wireless connections according to wireless communication protocol and described synchronization server.
According to the method for data synchronization of the embodiment of the present invention and data synchronization unit, by synchronization server safeguard with at least one cloud server between long connection of TCP/IP, keep described synchronization server to synchronize with the data between described at least one cloud server, only at terminal equipment, need to carry out data when synchronous, just set up terminal equipment and synchronize with the data between synchronization server.Thus, without utilize user account number to sign in to described at least one cloud server on described terminal equipment in the situation that, by utilizing unified application programming interfaces to set up described terminal equipment, synchronize with the data between described synchronization server.
Although example embodiment has been described with reference to the drawings here, it is only exemplary should understanding above-mentioned example embodiment, and is not intended to limit the scope of the invention to this.Those of ordinary skills can make various changes and modifications therein, and do not depart from scope and spirit of the present invention.Within all such changes and modifications are intended to be included in the desired scope of the present invention of claims.

Claims (17)

1. a method of data synchronization, is applied in synchronization server, and described method comprises:
Keep described synchronization server to be connected with the TCP/IP length between at least one cloud server;
Utilize the long connection of described TCP/IP, keep described synchronization server to synchronize with the data between described at least one cloud server;
From terminal equipment, receive synchronization request;
Between described terminal equipment and described synchronization server, carry out data synchronous.
2. method of data synchronization as claimed in claim 1, is characterized in that, describedly from terminal equipment, receives synchronization request and comprises:
By the first file system interface in described synchronization server deploy, from described terminal equipment, receive described synchronization request, described synchronization request has been indicated the data synchronization request to described at least one cloud server; And
Resolve described synchronization request, in described synchronization server, sign is recently from the synchronous data of described at least one cloud server.
3. method of data synchronization as claimed in claim 2, is characterized in that, describedly between described terminal equipment and described synchronization server, carries out data and synchronously comprises:
By described the first file system interface, the data of described terminal equipment are synchronized in described synchronization server recently from the synchronous data of described at least one cloud server; Or
By described the first file system interface, from described terminal equipment, receive the data that will upload at least a portion described at least one cloud server.
4. method of data synchronization as claimed in claim 1, is characterized in that,
Described the first file system interface is the interface of supporting http protocol.
5. method of data synchronization as claimed in claim 1, is characterized in that, the described synchronization server of described maintenance comprised with long connection of TCP/IP between at least one cloud server:
On described synchronization server, utilize user account number to sign in to described at least one cloud server, wherein, each cloud server has corresponding user account number;
For each cloud server, based on corresponding user account number, set up this cloud server and be connected with the TCP/IP length between described synchronization server.
6. a method of data synchronization, is applied to terminal equipment, and described method comprises:
By the first file system interface in described terminal equipment deploy, to synchronization server, send data synchronization request, described data synchronization request is used to indicate carries out described terminal equipment and synchronizes with the data of synchronization server, wherein, between described synchronization server and at least one cloud server, keep that TCP/IP is long to be connected;
By described the first file system interface, between described terminal equipment and described synchronization server, carry out data synchronous.
7. method of data synchronization as claimed in claim 6, is characterized in that, describedly by described the first file system interface, between described terminal equipment and described synchronization server, carries out data and synchronously comprises:
Described terminal equipment receives recently from the synchronous data of described at least one cloud server from described synchronization server by described the first file system interface; Or
Described terminal equipment sends the data that will upload at least a portion in described at least one cloud server to described synchronization server by described the first file system interface.
8. method of data synchronization as claimed in claim 6, is characterized in that,
Described the first file system interface is the interface of supporting http protocol.
9. a data synchronization unit, is applied in synchronization server, and described device comprises:
TCP/IP link, for keeping described synchronization server to be connected with the TCP/IP length between at least one cloud server;
The first data synchronizer unit, for utilizing long connection of described TCP/IP to keep described synchronization server to synchronize with the data between described at least one cloud server;
Request receiving parts, for receiving synchronization request from terminal equipment;
The second data synchronizer unit, synchronous for carry out data between described terminal equipment and described synchronization server.
10. data synchronization unit as claimed in claim 9, is characterized in that, the data synchronization request of described synchronization request indication to described at least one cloud server,
Described request receiving-member is supported the first file system interface, resolves described synchronization request, and sign is recently from the synchronous data of described at least one cloud server.
11. data synchronization units as claimed in claim 10, it is characterized in that, described the second data synchronizer unit is supported described the first file system interface, and the data of described terminal equipment are synchronized in described synchronization server recently from the synchronous data of described at least one cloud server; Or receive the data that will upload at least a portion described at least one cloud server from described terminal equipment.
12. data synchronization units as claimed in claim 9, is characterized in that,
Described the first file system interface is the interface of supporting http protocol.
13. data synchronization units as claimed in claim 9, is characterized in that,
Described TCP/IP link, utilizes user account number to sign in to described at least one cloud server, and wherein, each cloud server has corresponding user account number;
For each cloud server, described TCP/IP link is connected with the TCP/IP length between described cloud server based on corresponding user account number foundation.
14. data synchronization units as claimed in claim 13, is characterized in that, described device also comprises: wireless communication unit, and for setting up wireless connections according to wireless communication protocol and described terminal equipment.
15. 1 kinds of data synchronization units, are applied to terminal equipment, and described device comprises:
Synchronization request transmit block, support the first file system interface, and to synchronization server, send data synchronization request by this first file system interface, described data synchronization request is used to indicate carries out described terminal equipment and synchronizes with the data of synchronization server, wherein, between described synchronization server and at least one cloud server, keep that TCP/IP is long to be connected;
Data synchronizer unit, supports this first file system interface, and it is synchronous by this first file system interface, between described terminal equipment and described synchronization server, to carry out data.
16. data synchronization units as claimed in claim 15, is characterized in that, described device also comprises:
Wireless communication unit, for setting up wireless connections according to wireless communication protocol and described synchronization server.
17. data synchronization units as claimed in claim 15, is characterized in that,
Described the first file system interface is the interface of supporting http protocol.
CN201310012928.7A 2013-01-14 2013-01-14 Method of data synchronization and data synchronization unit Active CN103929450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310012928.7A CN103929450B (en) 2013-01-14 2013-01-14 Method of data synchronization and data synchronization unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310012928.7A CN103929450B (en) 2013-01-14 2013-01-14 Method of data synchronization and data synchronization unit

Publications (2)

Publication Number Publication Date
CN103929450A true CN103929450A (en) 2014-07-16
CN103929450B CN103929450B (en) 2017-11-03

Family

ID=51147527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310012928.7A Active CN103929450B (en) 2013-01-14 2013-01-14 Method of data synchronization and data synchronization unit

Country Status (1)

Country Link
CN (1) CN103929450B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391747A (en) * 2014-09-03 2016-03-09 苏州派尔网络科技有限公司 Cloud intelligent equipment management method
CN105577829A (en) * 2016-02-02 2016-05-11 深圳市指点信息科技有限公司 Method and system for synchronizing data in cloud platform
CN108076081A (en) * 2016-11-09 2018-05-25 菜鸟智能物流控股有限公司 Method, device and system for synchronizing service data
CN110602168A (en) * 2019-08-13 2019-12-20 平安科技(深圳)有限公司 Data synchronization method and device, computer equipment and storage medium
CN111935656A (en) * 2020-07-24 2020-11-13 深圳市沃特沃德股份有限公司 Method and device for long connection of IP data and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007080167A (en) * 2005-09-16 2007-03-29 Hitachi Information Systems Ltd Software resource distribution system and method, and program
CN1976275A (en) * 2006-12-15 2007-06-06 深圳市戴文科技有限公司 Data synchronizing system and method
CN102368737A (en) * 2011-11-25 2012-03-07 裘嘉 Cloud storage system and data access method thereof
CN102387167A (en) * 2010-09-02 2012-03-21 国基电子(上海)有限公司 Terminal equipment and data synchronization method thereof
CN102801783A (en) * 2012-06-29 2012-11-28 张建忠 Local cloud storing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007080167A (en) * 2005-09-16 2007-03-29 Hitachi Information Systems Ltd Software resource distribution system and method, and program
CN1976275A (en) * 2006-12-15 2007-06-06 深圳市戴文科技有限公司 Data synchronizing system and method
CN102387167A (en) * 2010-09-02 2012-03-21 国基电子(上海)有限公司 Terminal equipment and data synchronization method thereof
CN102368737A (en) * 2011-11-25 2012-03-07 裘嘉 Cloud storage system and data access method thereof
CN102801783A (en) * 2012-06-29 2012-11-28 张建忠 Local cloud storing method and system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391747A (en) * 2014-09-03 2016-03-09 苏州派尔网络科技有限公司 Cloud intelligent equipment management method
CN105577829A (en) * 2016-02-02 2016-05-11 深圳市指点信息科技有限公司 Method and system for synchronizing data in cloud platform
CN105577829B (en) * 2016-02-02 2019-04-30 深圳市指点信息科技有限公司 A kind of method and system for realizing that data are synchronous in cloud platform
CN108076081A (en) * 2016-11-09 2018-05-25 菜鸟智能物流控股有限公司 Method, device and system for synchronizing service data
CN108076081B (en) * 2016-11-09 2021-02-26 菜鸟智能物流控股有限公司 Method, device and system for synchronizing service data
CN110602168A (en) * 2019-08-13 2019-12-20 平安科技(深圳)有限公司 Data synchronization method and device, computer equipment and storage medium
CN110602168B (en) * 2019-08-13 2022-03-01 平安科技(深圳)有限公司 Data synchronization method and device, computer equipment and storage medium
CN111935656A (en) * 2020-07-24 2020-11-13 深圳市沃特沃德股份有限公司 Method and device for long connection of IP data and computer equipment
CN111935656B (en) * 2020-07-24 2021-12-14 深圳市沃特沃德软件技术有限公司 Method and device for long connection of IP data and computer equipment

Also Published As

Publication number Publication date
CN103929450B (en) 2017-11-03

Similar Documents

Publication Publication Date Title
CN103929450A (en) Data synchronization method and data synchronization device
US8943173B1 (en) System and method for using a computer as a bridge for data synchronization between a cellular device and a computer network
CN103023988B (en) File synchronisation method, server, client and terminal device
CN106021023B (en) Application program recovery method and device and terminal
CN108536729B (en) Cross-partition mirror image file synchronization method and device
CN103200366A (en) Long-distance shooting control method, network server and terminal equipment
CN104065676A (en) File synchronization method and file synchronization equipment
CN102843425A (en) Method based on cloud storage instead of local storage, and communication terminal
CN103986738A (en) Inter-multi-terminal synchronization method and system
CN102708192A (en) Method, system and device for sharing documents
CN103581698A (en) Terminal device and video data releasing method
CN103561281A (en) Multimedia data sharing method and device
CN102255964B (en) Internet application software testing method and system
CN103780695A (en) Data sharing system and method
CN107251529B (en) Method and apparatus for transmitting and receiving information between servers in content transmission network system
CN111263220B (en) Video processing method and device, electronic equipment and computer readable storage medium
CN103763380A (en) Method and system for demonstrating data synchronously
CN104184834A (en) File transmission method and device and terminal
CN102638789A (en) Method for establishing point-to-point transmission and mobile communication system
CN102647470A (en) Cloud download method in on-line application platform and on-line application platform system
CN104243089A (en) System and method for dynamically adjusting data transmission rate
CN104079638A (en) Browser extension setting method and device, browser device and electronic equipment
CN104079610A (en) Cloud server, and method and system for cloud synchronization of application software
CN103729440A (en) Method and device for having access to website
CN204089866U (en) LAN router and cloud storage system

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