The content of the invention
It is an object of the invention to provide a kind of file synchronisation method and a kind of cloud platform, efficiently solve many in the prior art
The technical problem of file synchronization can not be realized between individual wireless routing device.
The technical scheme that the present invention is provided is as follows, a kind of file synchronisation method, including:
At least two wireless routing devices, at least two wireless routing device and same cloud platform communication link are provided
Connect, and at least two wireless routing device includes at least one wireless routing device to be synchronized, it is described to be synchronized wireless
Be stored with file to be synchronized in routing device;
A wireless routing device to be connected and a wireless routing device to be synchronized are selected in the wireless routing device;Institute
State the cloud account information establishment that wireless routing device to be connected is registered according to the wireless routing device to be synchronized in cloud platform
One wireless network;
In the cloud platform:
Obtain the link information of the wireless network;
Judged whether to need to carry out file synchronization according to the link information of the wireless network of acquisition;If so,
By the file synchronization to be synchronized in wireless routing device to be synchronized to the terminal device being connected with the wireless network.
In the technical program, wireless routing device to be connected is registered according to wireless routing device to be synchronized in cloud platform
Cloud account information create a new wireless network, with this, cloud platform is being detected in the wireless routing device to be connected
The cloud account information of wireless network to be synchronized has been used, has judged to need the text to be synchronized in wireless routing device to be synchronized immediately
Part is synchronized to wireless routing device to be connected, is further synchronized in the terminal device for being connected to wireless network, simply and easily
File synchronization is realized between two wireless routing devices, especially when two wireless routing devices are distant, for
Family provides facility.
It is further preferred that the link information in the acquisition wireless network includes:
Terminal device connects the wireless network;
Terminal device sends synchronization request to wireless routing device to be connected, and the synchronization request includes:
The SSID (Service Set Identifier, service set) of wireless network, connection password and wireless routing device
Identification information;
Synchronization request is forwarded to cloud platform by the wireless routing device to be connected.
In this equipment, when needing to carry out file synchronization, terminal device actively sends synchronization request to cloud platform,
Judged whether to need to carry out file synchronization according to the synchronization request received with this cloud platform.
It is further preferred that the link information in the acquisition wireless network includes:
The link information for the wireless network that each wireless routing device of cloud platform periodic detection is created, the link information includes
SSID and connection password.
In the technical program, the connection of each wireless routing device wireless network of wireless routing device periodic detection to be connected
Information, judges whether to need to carry out file synchronization with this.
It is further preferred that the link information in the wireless network according to acquisition judges whether to need progress file same
In step, including:
Judge whether the SSID and connection password of wireless network match with the cloud account information of a certain wireless routing device;If
It is,
Determine whether the wireless routing device identification information whether the identification information match with acquisition;If it is not,
Judgement needs to carry out file synchronization, and the wireless routing device is wireless routing device to be synchronized.
In the technical program, cloud platform first judges the company of wireless network when determining a need for carrying out file synchronization
Whether identical with the cloud account information of a certain Wireless Communication Equipment connect information, determine whether whether identification information is identical afterwards,
The wireless routing device different as two using this determination wireless routing device to be connected and wireless routing device to be synchronized, and need
File synchronization is carried out, it is simple and convenient, provide the user to facility.
It is further preferred that the cloud account information includes the cloud that wireless routing device to be synchronized is registered in cloud platform
SSID and password;The wireless routing device to be connected is created newly according to the cloud SSID and password of the routing device to be synchronized
Wireless network.
Present invention also offers a kind of cloud platform, the cloud platform is communicated to connect with least two wireless routing devices, institute
Stating cloud platform includes:
Memory, for storing a plurality of instruction, and a plurality of instruction is loaded and performed suitable for processor;
Processor, the instruction and execution stored for reading in memory, a plurality of instruction includes:
Obtain the wireless network that wireless routing device is created and broadcasted according to the cloud account information of wireless routing device to be synchronized
The link information of network;
Judged whether to need to carry out file synchronization according to the link information of the wireless network of acquisition;If so,
By the file synchronization to be synchronized in wireless routing device to be synchronized to the terminal device being connected with wireless network.
In the technical program, wireless routing device to be connected is registered according to wireless routing device to be synchronized in cloud platform
Cloud account information create a new wireless network, with this, cloud platform is being detected in the wireless routing device to be connected
The cloud account information of wireless network to be synchronized has been used, has judged to need the text to be synchronized in wireless routing device to be synchronized immediately
Part is synchronized to wireless routing device to be connected, is further synchronized in the terminal device for being connected to wireless network, simply and easily
File synchronization is realized between two wireless routing devices, especially when two wireless routing devices are distant, for
Family provides facility.
It is further preferred that in the link information that instruction obtains the wireless network that wireless routing device is broadcasted, including:
The synchronization request that wireless routing device is sent is received, the synchronization request includes:Wireless network
SSID, connection password and wireless routing device identification information;
In this equipment, when needing to carry out file synchronization, terminal device actively sends synchronization request to cloud platform,
Judged whether to need to carry out file synchronization according to the synchronization request received with this cloud platform.
It is further preferred that in the link information that instruction obtains the wireless network that wireless routing device is broadcasted, including:
The link information for the wireless network that each wireless routing device of periodic detection is created, the link information include SSID and
Connect password.
In the technical program, the connection of each wireless routing device wireless network of wireless routing device periodic detection to be connected
Information, judges whether to need to carry out file synchronization with this.
It is further preferred that being judged whether to need progress file same according to the link information of the wireless network of acquisition in instruction
In step, including:
Judge wireless routing device broadcast wireless network SSID and connect password whether with a certain wireless routing device
Cloud account information matching;If so,
Determine whether the wireless routing device identification information whether the identification information match with acquisition;If it is not,
Judgement needs to carry out file synchronization, and the wireless routing device is wireless routing device to be synchronized.
In the technical program, cloud platform first judges the company of wireless network when determining a need for carrying out file synchronization
Whether identical with the cloud account information of a certain Wireless Communication Equipment connect information, determine whether whether identification information is identical afterwards,
The wireless routing device different as two using this determination wireless routing device to be connected and wireless routing device to be synchronized, and need
File synchronization is carried out, it is simple and convenient, provide the user to facility.
It is further preferred that also including in a plurality of instruction:The registration request of reception wireless routing device is simultaneously automatic
Unique cloud account information is distributed, while by the cloud account information of distribution and the identification information associated storage of the wireless routing device,
The cloud account information includes cloud SSID and password;
Be stored with the cloud account information and identification information of each wireless routing device in the memory, and cloud account information and
The incidence relation of identification information.
In the technical program, wireless router creates newly wireless with the cloud account information of wireless routing device to be synchronized
Network (using cloud account information as wireless network link information), be easy to cloud platform judge create synchronous transmission network it is wireless
The network equipment, file synchronization between different radio routing device is realized with this, provides the user facility, lifts Consumer's Experience.
Embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control is illustrated below
The embodiment of the present invention.It should be evident that drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing, and obtain other embodiments.
To make only to schematically show part related to the present invention in simplified form, each figure, their not generations
Table its as product practical structures.
The invention provides a kind of file synchronisation method, including:
At least two wireless routing devices, at least two wireless routing devices and same cloud platform (high in the clouds) communication link are provided
Connect, and at least two wireless routing devices include at least one wireless routing device to be synchronized, wireless routing device to be synchronized
In be stored with file to be synchronized.Specifically, here we the wireless routing device that terminal device is connected is referred to as it is to be connected without circuit
By equipment, the wireless routing device for being synchronized to the terminal device is needed to be referred to as storage inside file to be synchronized to be synchronized without circuit
By equipment, wireless routing device to be connected can mutually replace with wireless routing device to be synchronized according to the function to be realized is different
Put.In addition, the efficiency in order to improve file synchronization, each wireless routing device by way of wired connection with cloud platform communication link
Connect.
Before file synchronization is carried out, each wireless routing device is configured, it is supported cloud network service function, and
Each wireless routing device can register an exclusive cloud account information (including cloud SSID and password) in cloud platform, and
Stored in cloud platform.In registration process, user by terminal device send wireless routing device registration request (including
It is capable of the identification information of unique mark wireless routing device, such as MAC Address) to cloud platform;Cloud platform receives registration request
Afterwards, it is that it distributes a cloud account, including cloud SSID and password, and carries out associated storage.
When needing to carry out file synchronization, user selectes the company for the treatment of according to actual conditions in above-mentioned wireless routing device
Connect wireless routing device and a wireless routing device to be synchronized;And on wireless routing device to be connected according to be synchronized without circuit
The cloud account information registered in cloud platform by equipment create the SSID of a wireless network, the i.e. wireless network and connect password and
The cloud SSID of wireless routing device to be synchronized is identical with password.
Based on this, as shown in figure 1, to judge whether a kind of embodiment flow for needing to carry out file synchronization in cloud platform
Schematic diagram, it can be seen that including in the determination methods:
S10 obtains the link information of the wireless network, and the link information includes the SSID and connection password of wireless network;
S20 judges whether to need to carry out file synchronization according to the link information of the wireless network of acquisition;If so,
The terminal device that file synchronization to be synchronized in wireless routing device to be synchronized is extremely connected by S30 with wireless network.
In the present embodiment, if cloud platform judges to use in the wireless network of the wireless routing device broadcast to be connected
The cloud account information of wireless network to be synchronized, judges to need the file synchronization to be synchronized in wireless routing device to be synchronized immediately
To the wireless routing device to be connected, with this further by file synchronization to be synchronized to the terminal device for being connected to the wireless network
In, file synchronization simply and easily is realized between two wireless routing devices, facility is provided the user.
Above-mentioned embodiment is improved and obtains present embodiment, as shown in Fig. 2 in the present embodiment, sentencing at this
Disconnected method includes:
S11 terminal devices connect wireless network;
S12 terminal devices send synchronization request to wireless routing device to be connected, and synchronization request includes:Nothing
The SSID of gauze network, the identification information for connecting password and wireless routing device;
Synchronization request is forwarded to cloud platform by S13 wireless routing devices to be connected.
S20 judges whether to need to carry out file synchronization according to the link information of the wireless network of acquisition;If so,
The terminal device that file synchronization to be synchronized in wireless routing device to be synchronized is extremely connected by S30 with wireless network.
Specifically included in step S20:
S21 judge wireless network SSID and connection password whether the cloud account information with a certain wireless routing device
Match somebody with somebody;If so,
S22 determine whether the wireless routing device identification information whether the identification information match with acquisition;If it is not,
S23 judges to need to carry out file synchronization, and the wireless routing device is wireless routing device to be synchronized.
In the present embodiment, when in wireless routing device to be connected according to the cloud account of wireless routing device to be synchronized believe
Breath has been created after wireless network, and terminal device connects the wireless network immediately, and is sent out by wireless routing device to be connected
Synchronization request is sent to cloud platform.
Cloud platform receive this document synchronization request (including the SSID of wireless network and connection password, and it is to be connected) it
Afterwards, according to internal storage information, first determine whether whether the link information of its wireless network used is already registered for a certain
Wireless routing device cloud account information it is identical, specifically, according in the SSID of wireless network internally storage information search with
The corresponding cloud account informations of identical cloud SSID, if being not present, without subsequent treatment;If in the presence of determining whether wireless
Whether the connection password of network password corresponding with cloud SSID is identical, if it is different, without subsequent treatment;If identical, judge
In the presence of the link information identical cloud account with wireless network.
Afterwards, the identification information and wireless routing device to be synchronized (cloud account of wireless routing device to be connected are determined whether
Number corresponding wireless routing device of information) identification information it is whether identical, if identical, illustrate wireless routing device to be connected and treat
Synchronous radio routing device is that same equipment, the i.e. wireless routing device to be synchronized create wireless network with the cloud account information of oneself
Network, and synchronization request is sent by terminal device, now cloud platform is not processed;If on the contrary, judging to be connected wireless
The mark letter of the identification information of routing device and wireless routing device to be synchronized (the corresponding wireless routing device of cloud account information)
Breath is different, and it is two different equipment with wireless routing device to be synchronized to illustrate wireless routing device to be connected, judges to need immediately
File synchronization is carried out, the synchronous transmission network set up between wireless routing device to be connected and wireless routing device to be synchronized,
The file to be synchronized treated in wireless routing device is synchronized in terminal device by wireless routing device to be connected.
Above-mentioned embodiment is improved and obtains present embodiment, as shown in figure 3, in the present embodiment, sentencing at this
Disconnected method includes:
The link information for the wireless network that each wireless routing device of S14 cloud platform periodic detections is created, link information includes
SSID and connection password.
S20 judges whether to need to carry out file synchronization according to the link information of the wireless network of acquisition;If so,
The terminal device that file synchronization to be synchronized in wireless routing device to be synchronized is extremely connected by S30 with wireless network.
Specifically included in step S20:
S21 judge wireless network SSID and connection password whether the cloud account information with a certain wireless routing device
Match somebody with somebody;If so,
S22 determine whether the wireless routing device identification information whether the identification information match with acquisition;If it is not,
S23 judges to need to carry out file synchronization, and the wireless routing device is wireless routing device to be synchronized.
In the present embodiment, when in wireless routing device to be connected according to the cloud account of wireless routing device to be synchronized believe
Breath has been created after wireless network, and cloud platform (is being carried out according to the link information of each wireless network of predeterminated frequency periodic detection
Cloud platform is configured before file synchronization, including predeterminated frequency, detect once within such as every 1 minute, detect once within every 5 minutes
Deng).Specifically, periodic detection here is by the company of the wireless network created at present according to the request wireless routing device of cloud platform
Information is connect to send to cloud platform.In other embodiments or, each wireless routing device newly creates wireless network
Network, actively sends to cloud platform with the link information for the wireless network that will be created.
Cloud platform is detected after the link information of wireless network, according to internal storage information, first determines whether to detect
Wireless network link information it is whether identical with the cloud account information of a certain wireless routing device being already registered for, specifically,
According to the corresponding cloud account informations of same cloud SSID are searched in the SSID of wireless network internally storage information, if depositing
Determining whether whether the connection password password corresponding with cloud SSID of wireless network is identical;If identical, judge exist with
The link information identical cloud account of wireless network;Otherwise, without subsequent treatment.
Afterwards, the identification information and wireless routing device to be synchronized (cloud account of wireless routing device to be connected are determined whether
Number corresponding wireless routing device of information) identification information it is whether identical, if identical, illustrate wireless routing device to be connected and treat
Synchronous radio routing device is that same equipment, the i.e. wireless routing device to be synchronized create wireless network with the cloud account information of oneself
Network, and synchronization request is sent by terminal device, now cloud platform is not processed;If on the contrary, judging to be connected wireless
The mark letter of the identification information of routing device and wireless routing device to be synchronized (the corresponding wireless routing device of cloud account information)
Breath is different, and it is two different equipment with wireless routing device to be synchronized to illustrate wireless routing device to be connected, judges to need immediately
File synchronization is carried out, the synchronous transmission network set up between wireless routing device to be connected and wireless routing device to be synchronized,
The file to be synchronized treated in wireless routing device is synchronized in terminal device by wireless routing device to be connected.
In one example, be stored with file to be synchronized in the wireless router 1 in user family, and before synchronizing,
User carries out application for registration cloud account in cloud platform by mobile phone for the wireless router 1, and cloud platform receives mobile phone transmission
Registration request (MAC Address for including the wireless router 1), be that it distributes cloud SSID (abc) and password (def), and by its
With the MAC Address associated storage of wireless router 1.
When user is outgoing, wireless router 2 has been used, it is necessary to file to be synchronized in synchronous radio router 1, now,
Wireless router 2 is above-mentioned wireless router to be connected, and wireless router 1 is above-mentioned wireless router to be synchronized.Now, exist
New wireless network is created in the wireless router 2 with the cloud account information of wireless router 1, i.e. the SSID of the wireless network is
Abc, connection password is def.
Afterwards, mobile phone accesses the wireless network according to the SSID and connection password, and send synchronization request (including this
The SSID of wireless network, connection password and wireless router MAC Address) to cloud platform.
Cloud platform is received after this document synchronization request, first determines whether whether be stored with and wireless network inside it
SSID identical cloud SSID, if judging the promising abc of storage inside cloud SSID, determine whether that the connection of the wireless network is close
Code it is whether identical with cloud SSID password, if judge all be def, determine whether wireless routing device 2 MAC Address and
Whether the MAC Address of wireless router 1 (cloud SSID correspondences wireless routing device 1) is identical, if it is different, explanation wireless routing device
2 be two different equipment with wireless routing device 1, the synchronous transmission network set up immediately between two wireless routing devices,
File synchronization to be synchronized in wireless routing device 1 is synchronized into wireless routing device 2, further and has accessed wireless network
Mobile phone in.
The cloud platform 100 that the present invention is provided is illustrated in figure 4, it is communicated to connect with least two wireless routing devices, from
It can be seen from the figure that, includes in the cloud platform:Memory 110, for storing a plurality of instruction, and a plurality of instruction is applied to processing
Device is loaded and performed;Processor 120, the instruction and execution stored for reading in memory, a plurality of instruction includes:
Obtain the wireless network that wireless routing device is created and broadcasted according to the cloud account information of wireless routing device to be synchronized
The link information of network;
Judged whether to need to carry out file synchronization according to the link information of the wireless network of acquisition;If so,
By the file synchronization to be synchronized in wireless routing device to be synchronized to the terminal device being connected with wireless network.
In the present embodiment, it is at least to be synchronized including one for the wireless routing device being connected with cloud platform
Be stored with file to be synchronized in wireless routing device, wireless routing device to be synchronized.And before file synchronization is carried out, to each nothing
Line routing device is configured, and it is supported cloud network service function, in addition, each wireless routing device can be in cloud platform
An exclusive cloud account information (including cloud SSID and password) is registered, and is stored in cloud platform.
When needing to carry out file synchronization, user selectes the company for the treatment of according to actual conditions in above-mentioned wireless routing device
Connect wireless routing device and a wireless routing device to be synchronized;And on wireless routing device to be connected according to be synchronized without circuit
The cloud account information registered in cloud platform by equipment create the SSID of a wireless network, the i.e. wireless network and connect password and
The cloud SSID of wireless routing device to be synchronized is identical with password.
Based on this, in cloud platform, after the link information for getting the wireless network that each wireless routing device is created, if
The cloud account information of wireless network to be synchronized has been used in the wireless network for judging wireless routing device broadcast to be connected, has judged to need
By the file synchronization to be synchronized in wireless routing device to be synchronized to the wireless routing device to be connected, it will further be treated with this
Synchronous documents are synchronized in the terminal device for being connected to the wireless network, simply and easily real between two wireless routing devices
Show file synchronization, provide the user facility.
Above-mentioned embodiment is improved and obtains present embodiment, in the present embodiment, is obtained in instruction without circuit
In the link information of the wireless network of device broadcasts, including:
The synchronization request that wireless routing device is sent is received, synchronization request includes:The SSID of wireless network,
Connect the identification information of password and wireless routing device;
In the present embodiment, when in wireless routing device to be connected according to the cloud account of wireless routing device to be synchronized believe
Breath has been created after wireless network, and terminal device connects the wireless network immediately, and is sent out by wireless routing device to be connected
Synchronization request (including the SSID of wireless network and connection password, and to be connected) is sent to cloud platform.
Cloud platform is received after this document synchronization request, first determine whether its wireless network used link information whether
It is identical with the cloud account information of a certain wireless routing device being already registered for, if in the presence of determining whether to be connected without circuit
By the identification information of equipment and the identification information of wireless routing device to be synchronized (the corresponding wireless routing device of cloud account information)
It is whether identical, if it is different, illustrate that wireless routing device to be connected is two different equipment with wireless routing device to be synchronized, with
Judge to need to carry out file synchronization, the synchronous biography set up between wireless routing device to be connected and wireless routing device to be synchronized
Defeated network, the file to be synchronized treated in wireless routing device is synchronized in terminal device by wireless routing device to be connected.
Above-mentioned embodiment is improved and obtains present embodiment, in the present embodiment, is obtained in instruction without circuit
In the link information of the wireless network of device broadcasts, including:
The link information for the wireless network that each wireless routing device of periodic detection is created, link information includes SSID and connection
Password.
In the present embodiment, when in wireless routing device to be connected according to the cloud account of wireless routing device to be synchronized believe
Breath has been created after wireless network, and cloud platform (is being carried out according to the link information of each wireless network of predeterminated frequency periodic detection
Cloud platform is configured before file synchronization, including predeterminated frequency, detect once within such as every 1 minute, detect once within every 5 minutes
Deng).Specifically, periodic detection here is by the company of the wireless network created at present according to the request wireless routing device of cloud platform
Information is connect to send to cloud platform.In other embodiments or, each wireless routing device newly creates wireless network
Network, actively sends to cloud platform with the link information for the wireless network that will be created.
Cloud platform is detected after the link information of wireless network, first determines whether the link information of its wireless network used
It is whether identical with the cloud account information of a certain wireless routing device being already registered for, if in the presence of determining whether nothing to be connected
The mark of the identification information of line routing device and wireless routing device to be synchronized (the corresponding wireless routing device of cloud account information)
Whether information is identical, if it is different, illustrating that wireless routing device to be connected and wireless routing device to be synchronized are two and different set
It is standby, judge to need to carry out file synchronization immediately, set up between wireless routing device to be connected and wireless routing device to be synchronized
Synchronous transmission network, is synchronized to terminal by wireless routing device to be connected by the file to be synchronized treated in wireless routing device and sets
In standby.
In one example, be stored with file to be synchronized in the wireless router 1 in user family, and before synchronizing,
User carries out application for registration cloud account in cloud platform by mobile phone for the wireless router 1, and cloud platform receives mobile phone transmission
Registration request (MAC Address for including wireless router 1), be that it distributes cloud SSID (abc) and password (def), and by its with
The MAC Address associated storage of wireless router 1.
When user is outgoing, wireless router 2 has been used, it is necessary to file to be synchronized in synchronous radio router 1, now,
Wireless router 2 is above-mentioned wireless router to be connected, and wireless router 1 is above-mentioned wireless router to be synchronized.Now, exist
New wireless network is created in the wireless router 2 with the cloud account information of wireless router 1, i.e. the SSID of the wireless network is
Abc, connection password is def, and wireless router 2 sends the link information of the wireless network to cloud platform.
Cloud platform is received after the link information of the wireless router 2 transmission, first determines whether whether be stored with inside it
With the SSID identical cloud SSID of wireless network, if judging the promising abc of storage inside cloud SSID, determine whether that this is wireless
Whether the connection password of network is identical with cloud SSID password, if it is all def to judge, determines whether wireless routing device
Whether the MAC Address of 2 MAC Address and wireless router 1 (cloud SSID corresponding wireless routing device 1) is identical, if it is different, explanation
Wireless routing device 2 and wireless routing device 1 are two different equipment, set up same between two wireless routing devices immediately
Transmission network is walked, the file synchronization to be synchronized in wireless routing device 1 is synchronized into wireless routing device 2, further and connect
In the mobile phone for having entered wireless network.
It should be noted that above-described embodiment can independent assortment as needed.Described above is only the preferred of the present invention
Embodiment, it is noted that for those skilled in the art, is not departing from the premise of the principle of the invention
Under, some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.