CN113613251A - Information synchronization method and system, storage medium and electronic device - Google Patents
Information synchronization method and system, storage medium and electronic device Download PDFInfo
- Publication number
- CN113613251A CN113613251A CN202110867178.6A CN202110867178A CN113613251A CN 113613251 A CN113613251 A CN 113613251A CN 202110867178 A CN202110867178 A CN 202110867178A CN 113613251 A CN113613251 A CN 113613251A
- Authority
- CN
- China
- Prior art keywords
- handshake
- information
- networked
- handshake frame
- frame
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 83
- 230000003993 interaction Effects 0.000 claims abstract description 73
- 230000006855 networking Effects 0.000 claims description 44
- 230000008569 process Effects 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 18
- 238000012795 verification Methods 0.000 claims description 18
- 230000002452 interceptive effect Effects 0.000 claims description 14
- 230000001360 synchronised effect Effects 0.000 claims description 11
- 238000004806 packaging method and process Methods 0.000 claims description 5
- 238000004891 communication Methods 0.000 description 20
- 230000007246 mechanism Effects 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/08—Access security
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/10—Integrity
- H04W12/106—Packet or message integrity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/001—Synchronization between nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides an information synchronization method and system, a storage medium and an electronic device, wherein the method comprises the following steps: under the condition that a target area has connected equipment, broadcasting data information containing network identification stored in the unconnected equipment to the target area, wherein the connected equipment is used for indicating the equipment which is connected again after the target object changes the connection information; receiving a first handshake frame for unicast interaction fed back by the connected equipment according to the data information; and under the condition that the first handshake frame meets the preset condition, sending a second handshake frame containing a preset network key to the networked device to acquire target connection information determined by the networked device according to the second handshake frame, wherein the target connection information is used for indicating the encrypted current connection information of the networked device, and the problems that in the prior art, the synchronization of WIFI information depends on a router, the self-synchronization of the WIFI information between the devices cannot be realized, and the like are solved.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to an information synchronization method and system, a storage medium, and an electronic device.
Background
In an intelligent home, an intelligent home device is connected to a home network through WIFI, and generally, a Service Set Identifier (SSID) name and a password of a router in the home are sent to the intelligent home device through a distribution network. When a user changes the SSID name of the router or the password of the router, the network distribution operation needs to be performed on each intelligent household appliance again, which is time-consuming and labor-consuming work, especially when the number of the intelligent household appliances in a home is large.
In the related art, a WIFI information self-synchronization scheme based on a router is provided: the method mainly comprises the steps that when the SSID name or the password of the router changes, a synchronization mechanism is established between the router and equipment, so that the equipment can automatically obtain new WIFI information from the router without re-distribution of a network, but because participation of the router in the synchronization mechanism is indispensable, and router root equipment among different manufacturers cannot be well compatible, interconnection and intercommunication are difficult to achieve.
Aiming at the problems that in the related technology, the synchronization of WIFI information depends on a router, the self-synchronization of the WIFI information between devices cannot be realized, and the like, an effective technical scheme is not provided.
Disclosure of Invention
The embodiment of the invention provides an information synchronization method and system, a storage medium and an electronic device, and aims to at least solve the problems that in the related technology, WIFI information synchronization depends on a router, self-synchronization of WIFI information among devices cannot be realized, and the like.
According to an embodiment of the present invention, there is provided an information synchronization method including: under the condition that a target area has a connected device, broadcasting data information containing a network identifier stored in the unconnected device to the target area, wherein the connected device is used for indicating a target object to replace the connection information and then to re-connect the device; receiving a first handshake frame for unicast interaction fed back by the networked equipment according to the data information; and sending a second handshake frame containing a preset network key to the networked device to acquire target connection information determined by the networked device according to the second handshake frame under the condition that the first handshake frame meets a preset condition, wherein the target connection information is used for indicating the encrypted current connection information of the networked device.
In an exemplary embodiment, in the case that the first handshake frame meets a preset condition, sending a second handshake frame containing a preset network key to the connected device includes: determining authentication information carried by a first handshake frame, wherein the authentication information comprises: the network access method comprises the following steps of indicating a serial number of times of a handshake frame, identifying a first random number value of uniqueness of a current handshake frame, a working channel of connected equipment and a router, and a network identification corresponding to the connected equipment; under the condition that the network identifier corresponding to the connected device in the authentication information is consistent with the network identifier stored in the unconnected device, determining a first key for encrypting connection information to be synchronized according to a preset network key and the first random value, wherein the connection information comprises at least one of the following: information of a router service set identifier, information of a router password; and performing data packaging on the authentication information and the first secret key, and adding an integrity check identifier and a second random number of a message to determine to send a second handshake frame containing a preset network secret key to the networked equipment.
In an exemplary embodiment, after determining the authentication information carried in the first handshake frame, the method further includes: under the condition that the authentication information further comprises a sequence number used for indicating the number of times of the interaction process corresponding to the current first handshake frame, determining whether a plurality of target sequence numbers corresponding to a plurality of received first handshake frames are matched with the sequence number or not; determining that the current first handshake frame is not a repeated first handshake frame under the condition that the plurality of target sequence numbers do not match the sequence numbers; and under the condition that the target sequence numbers are matched with the sequence numbers, determining that the current first handshake frame is a repeated first handshake frame, and finishing a handshake flow corresponding to the first handshake frame.
In an exemplary embodiment, in the case that a target area has a connected device, data information including a network identification stored in a non-connected device is broadcasted to the target area, and the method further includes: determining a channel list to be polled by an unconnected device, wherein the channel list is used for indicating channels for the unconnected device to communicate and the number of the channels; determining a time period for broadcasting to the target area according to the channel list; and under the condition that indication information of successful channel verification is acquired in the time period, stopping broadcasting to the target area, wherein the successful channel verification is used for indicating that a channel receives interactive information sent by networked equipment, and the interactive information comprises a first handshake frame.
In an exemplary embodiment, before broadcasting data information containing network identifications stored in non-networked devices to a target area in the presence of a networked device in the target area, the method further comprises: determining a preset filter list, wherein the filter list is used for indicating that connection information currently used by the networked equipment cannot be synchronously used; and under the condition that the network-accessed equipment in the filter list sends the first handshake frame, forbidding to execute the operation of generating a second handshake frame.
In one exemplary embodiment, after receiving a first handshake frame for unicast interaction fed back by the networked device according to the data information, the method further includes: determining a timing list according to a time point when each of the networked devices feeds back a first handshake frame, in a case where the plurality of networked devices exist and each of the networked devices feeds back the first handshake frame; and selecting and verifying whether the first handshake frame meets preset conditions according to the sequence of the time sequence table.
According to an embodiment of the present invention, there is provided another information synchronization method including: acquiring data information which is sent by non-networking equipment and contains a network identifier stored in the non-networking equipment, wherein the non-networking equipment is used for indicating a target object to interrupt networking equipment after connection information is replaced; under the condition that the network identification stored in the non-networking equipment and contained in the data information is determined to be the same as the network identification of the non-networking equipment, sending a first handshake frame for unicast interaction to the non-networking equipment; receiving a second handshake frame which is sent by the non-networking device after the first handshake frame is determined to meet the preset condition and is used for indicating synchronization; and encrypting the current connection information according to the second handshake frame to obtain target connection information for synchronization.
In an exemplary embodiment, in a case where it is determined that a network identifier stored in an unconnected device included in the data information is the same as an own network identifier, sending a first handshake frame for unicast interaction to the unconnected device includes: determining that the non-networked device exists in a target area and the non-networked device is allowed to perform unicast interaction under the condition that the network identification stored in the non-networked device is the same as the network identification of the non-networked device; determining authentication information to be carried according to preset conditions corresponding to the unicast interaction so as to determine a corresponding first handshake frame, wherein the authentication information comprises: the device comprises a first random value for identifying the uniqueness of a current handshake frame, a network identifier corresponding to a connected device, and a serial number of the number of interactive processes corresponding to the current first handshake frame.
According to another embodiment of the present invention, there is provided an information synchronization system including: the device comprises a networked device and a target object, wherein the networked device is used for acquiring data information which is sent by the non-networked device and contains a network identifier stored in the non-networked device, and the non-networked device is used for indicating the target object to interrupt the networked device after the connection information is replaced; under the condition that the network identification stored in the non-networking equipment and contained in the data information is determined to be the same as the network identification of the non-networking equipment, sending a first handshake frame for unicast interaction to the non-networking equipment; receiving a second handshake frame which is sent by the non-networking equipment and used for indicating synchronization, and encrypting current connection information according to the second handshake frame to obtain target connection information used for synchronization; the device comprises an unconnected device and a target area, wherein the unconnected device is used for broadcasting data information containing network identification stored in the unconnected device to the target area under the condition that the connected device exists in the target area, and the connected device is used for indicating a target object to be connected again after the connection information is replaced; and receiving a first handshake frame sent by the networked equipment, and sending a second handshake frame containing a preset network key to the networked equipment under the condition that the first handshake frame meets a preset condition.
In an exemplary embodiment, the system further includes: a router to provide a network for both networked and non-networked devices.
In an exemplary embodiment, the non-networked device is further configured to determine authentication information carried in the first handshake frame, where the authentication information includes: a first random value for identifying the uniqueness of the current handshake frame and a network identifier corresponding to the connected equipment; under the condition that the network identifier corresponding to the connected device in the authentication information is consistent with the network identifier stored in the unconnected device, determining a first key for encrypting connection information to be synchronized according to a preset network key and the first random value, wherein the connection information comprises at least one of the following: information of a router service set identifier, information of a router password; and performing data packaging on the authentication information and the first secret key, and adding an integrity check identifier and a second random number of a message to determine to send a second handshake frame containing a preset network secret key to the networked equipment.
In an exemplary embodiment, the non-networked device is further configured to determine a channel list to be polled by the non-networked device, where the channel list is used to indicate channels for the non-networked device to communicate and the number of the channels; determining a time period for broadcasting to the target area according to the channel list; and under the condition that indication information of successful channel verification is acquired in the time period, stopping broadcasting to the target area, wherein the successful channel verification is used for indicating that a channel receives interactive information sent by networked equipment, and the interactive information comprises a first handshake frame.
In an exemplary embodiment, the non-networked device is further configured to determine a preset filter list, where the filter list is used to indicate that connection information currently used by the networked device cannot be used synchronously; and under the condition that the network-accessed equipment in the filter list sends the first handshake frame, forbidding to execute the operation of generating a second handshake frame.
In an exemplary embodiment, the non-networked device is further configured to determine the timing list according to a time point when each of the connected devices feeds back the first handshake frame, when a plurality of connected devices exist and each of the connected devices feeds back the first handshake frame; and selecting and verifying whether the first handshake frame meets preset conditions according to the sequence of the time sequence table.
In an exemplary embodiment, the connected device is further configured to determine that the unconnected device exists in the target area and the unconnected device is allowed to perform unicast interaction if the network identifier stored in the unconnected device is the same as the network identifier of the connected device; determining authentication information to be carried according to preset conditions corresponding to the unicast interaction so as to determine a corresponding first handshake frame, wherein the authentication information comprises: the first random value for identifying the uniqueness of the current handshake frame, a working channel for connecting the networked equipment and the router, and a serial number of the number of corresponding interactive processes of the current first handshake frame.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
By the method, under the condition that the networked equipment exists in the target area, the data information containing the network identification stored in the non-networked equipment is broadcasted to the target area, wherein the networked equipment is used for indicating the equipment which is re-networked after the target object changes the connection information; receiving a first handshake frame for unicast interaction fed back by the connected equipment according to the data information; in case that the first handshake frame meets the preset condition, sending a second handshake frame containing a preset network key to the connected device to acquire target connection information determined by the connected device according to the second handshake frame, wherein the target connection information is used to indicate current connection information of the encrypted connected device, that is, autonomous synchronization of the change connection information is performed through handshake frame interaction between the connected and non-connected devices, and then synchronous interaction of connection information between the devices is achieved, and thus, the method can solve the problem that in the prior art, the WIFI information synchronization depends on the router, the WIFI information self-synchronization between the devices cannot be realized, the synchronization that the connection information of the devices is changed through other connected devices after the connection information corresponding to the router is changed is ensured, the flexibility of the devices in the router connection is improved, and the legality of the unconnected devices is verified.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a device terminal of an information synchronization method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of information synchronization according to an embodiment of the present invention;
FIG. 3 is a flow chart of an information synchronization method according to an embodiment of the present invention (two);
FIG. 4 is an interaction diagram of a method of synchronizing information according to an alternative embodiment of the present invention;
fig. 5 is a block diagram of the structure of an information synchronization system according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the embodiment of the application can be executed in a computer terminal or a similar operation device of an equipment terminal. Taking the operation on the device terminal as an example, fig. 1 is a hardware structure block diagram of the device terminal of the information synchronization method according to the embodiment of the present invention. As shown in fig. 1, the device terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the terminal of the above-described device. For example, the device terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used for storing computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the information synchronization method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the device terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the device terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the present embodiment, an information synchronization method is provided, and fig. 2 is a flowchart (a) of the information synchronization method according to the embodiment of the present invention, where the flowchart includes the following steps:
step S202, under the condition that a target area has a networked device, broadcasting data information containing a network identifier stored in the non-networked device to the target area, wherein the networked device is used for indicating a target object to replace the connection information and then to re-network the device;
it should be noted that the network identifier usually indicates a network identifier corresponding to the network to which the non-networking device is connected last time, and may also be another network identifier stored in the non-networking device.
Step S204, receiving a first handshake frame for unicast interaction fed back by the networked device according to the data information;
step S206, sending a second handshake frame containing a preset network key to the networked device when the first handshake frame meets a preset condition, so as to obtain target connection information determined by the networked device according to the second handshake frame, where the target connection information is used to indicate current connection information of the encrypted networked device.
Through the steps, under the condition that the connected equipment exists in the target area, the data information containing the network identification stored in the unconnected equipment is broadcasted to the target area, wherein the connected equipment is used for indicating the equipment which is connected again after the target object changes the connection information; receiving a first handshake frame for unicast interaction fed back by the connected equipment according to the data information; in case that the first handshake frame meets the preset condition, sending a second handshake frame containing a preset network key to the connected device to acquire target connection information determined by the connected device according to the second handshake frame, wherein the target connection information is used to indicate current connection information of the encrypted connected device, that is, autonomous synchronization of the change connection information is performed through handshake frame interaction between the connected and non-connected devices, and then synchronous interaction of connection information between the devices is achieved, and thus, the method can solve the problem that in the prior art, the WIFI information synchronization depends on the router, the WIFI information self-synchronization between the devices cannot be realized, the synchronization that the connection information of the devices is changed through other connected devices after the connection information corresponding to the router is changed is ensured, the flexibility of the devices in the router connection is improved, and the legality of the unconnected devices is verified.
It should be noted that the handshake frame is a data frame used for carrying data indication information, and may carry different data information according to actual situations.
There are various implementations of the step S206, and in an alternative embodiment, the implementation may be implemented by the following scheme: determining authentication information carried by a first handshake frame, wherein the authentication information comprises: a first random value for identifying the uniqueness of the current handshake frame and a network identifier corresponding to the connected equipment; under the condition that the network identifier corresponding to the connected device in the authentication information is consistent with the network identifier stored in the unconnected device, determining a first key for encrypting connection information to be synchronized according to a preset network key and the first random value, wherein the connection information comprises at least one of the following: information of a router service set identifier, information of a router password; and performing data packaging on the authentication information and the first secret key, and adding an integrity check identifier and a second random number of a message to determine to send a second handshake frame containing a preset network secret key to the networked equipment.
That is to say, after the unconnected device searches for the connected device, the connected device sends, after passing the verification, a first handshake frame carrying authentication information and used for indicating synchronization of subsequent connection authentication to the unconnected device, and then stops channel polling operation of the unconnected device through the first handshake frame, and fixes a channel, and a subsequent interaction channel is determined, and further, the unconnected device determines, based on the received first handshake frame, a second random value used for indicating uniqueness of a second handshake frame to be sent according to a preset network key corresponding to the unconnected device and the received second random value, and adds an integrity check identifier used for verifying a message of a sender (that is, the unconnected device) of a data packet, and then determines the second handshake frame used for handshake interaction.
In an exemplary embodiment, after determining the authentication information carried by the first handshake frame, the method further includes: under the condition that the authentication information further comprises a sequence number used for indicating the number of times of the interaction process corresponding to the current first handshake frame, determining whether a plurality of target sequence numbers corresponding to a plurality of received first handshake frames are matched with the sequence number or not; determining that the current first handshake frame is not a repeated first handshake frame under the condition that the plurality of target sequence numbers do not match the sequence numbers; and under the condition that the target sequence numbers are matched with the sequence numbers, determining that the current first handshake frame is a repeated first handshake frame, and finishing a handshake flow corresponding to the first handshake frame.
In short, the first handshake frame in the interaction between the non-networking device and the networking device identifies the current interaction process through the serial number, and if the serial numbers are the same, it is proved that the interaction process corresponding to the current first handshake frame is repeatedly executed, and if the serial numbers are different, it is proved that the repeated interaction process does not occur in the interaction process corresponding to the current first handshake frame.
Optionally, in a case where a networked device exists in a target area, after broadcasting data information containing a network identifier stored in an unconnected device to the target area, the method further includes: determining a channel list to be polled by an unconnected device, wherein the channel list is used for indicating channels for the unconnected device to communicate and the number of the channels; determining a time period for broadcasting to the target area according to the channel list; and under the condition that indication information of successful channel verification is acquired in the time period, stopping broadcasting to the target area, wherein the successful channel verification is used for indicating that a channel receives interactive information sent by networked equipment, and the interactive information comprises a first handshake frame.
For example, after the SSID name or password is changed by the target object, the channel may be different from the original one, and since the router and the home device usually use the 2.4G frequency band for wireless interaction, the non-connected device needs to poll on 13 channels to discover the connected device. Initially starting on channel 1 and subsequently starting on the next channel on which polling ceased. Each channel stays for 3 seconds and transmits 5 frames with an interval of 512 milliseconds. And when the unconnected equipment receives the handshake frame passing the verification for the first time, stopping channel polling, fixing the channel carried in the handshake step1 frame, and analyzing the data transmitted in the channel to determine the content corresponding to the handshake frame.
In an exemplary embodiment, before broadcasting data information containing network identifications stored in non-networked devices to a target area in the presence of a networked device in the target area, the method further comprises: determining a preset filter list, wherein the filter list is used for indicating that connection information currently used by the networked equipment cannot be synchronously used; and under the condition that the network-accessed equipment in the filter list sends the first handshake frame, forbidding to execute the operation of generating a second handshake frame.
For example, if the networked device is on the filtered list, the networked device is ignored. The channel polling continues after the communication with all the network-accessed devices fails. And for a plurality of networked devices, selecting according to the sequence of the received handshake frames, and after receiving a first handshake frame for interaction sent by the networked devices added to the filter list, prohibiting the unconnected devices from generating corresponding second handshake frames under the condition of successful verification, and ending the interaction flow between the unconnected devices and the networked devices added to the filter list.
In one exemplary embodiment, after receiving a first handshake frame for unicast interaction fed back by the networked device according to the data information, the method further includes: determining a timing list according to a time point when each of the networked devices feeds back a first handshake frame, in a case where the plurality of networked devices exist and each of the networked devices feeds back the first handshake frame; and selecting and verifying whether the first handshake frame meets preset conditions according to the sequence of the time sequence table.
For example, an unconnected device may receive a first handshake frame for a number of connected devices. According to the condition of system resources, communication of one to a plurality of networked devices can be maintained, but communication with each networked device is tried for 3 times at most, so that the order of selecting authentication needs to be determined according to the feedback time point corresponding to the first handshake frame.
In this embodiment, another information synchronization method is provided, and fig. 3 is a flowchart (ii) of an information synchronization method according to an embodiment of the present invention, where the flowchart includes the following steps:
step S302, data information which is sent by non-networking equipment and contains a network identifier stored in the non-networking equipment is obtained, wherein the non-networking equipment is used for indicating a target object to interrupt the networking equipment after the connection information is replaced;
step S304, under the condition that the network identification stored in the non-networking equipment contained in the data information is determined to be the same as the self network identification, a first handshake frame for unicast interaction is sent to the non-networking equipment;
step S306, receiving a second handshake frame which is sent by the non-networking device after the first handshake frame is determined to meet the preset condition and is used for indicating synchronization;
and step S308, encrypting the current connection information according to the second handshake frame to obtain the target connection information for synchronization.
Through the steps, data information which is sent by the equipment which is not connected with the network and contains the network identification stored in the equipment which is not connected with the network is obtained, wherein the equipment which is not connected with the network is used for indicating the target object to interrupt the equipment which is connected with the network after the connection information is changed; under the condition that the network identification stored in the non-networking equipment and contained in the data information is determined to be the same as the network identification of the non-networking equipment, sending a first handshake frame for unicast interaction to the non-networking equipment; receiving a second handshake frame which is sent by the non-network equipment after the first handshake frame is determined to meet the preset condition and is used for indicating synchronization; the current connection information is encrypted according to the second handshake frame to obtain target connection information for synchronization, that is, independent synchronization of connection information replacement is performed through handshake frame interaction between networked equipment and non-networked equipment, and then synchronous interaction of the connection information between the equipment is realized.
In an exemplary embodiment, in a case where it is determined that a network identifier stored in an unconnected device included in the data information is the same as an own network identifier, sending a first handshake frame for unicast interaction to the unconnected device includes: determining that the non-networked device exists in a target area and the non-networked device is allowed to perform unicast interaction under the condition that the network identification stored in the non-networked device is the same as the network identification of the non-networked device; determining authentication information to be carried according to preset conditions corresponding to the unicast interaction so as to determine a corresponding first handshake frame, wherein the authentication information comprises: the network access method comprises a first random value for identifying the uniqueness of a current handshake frame, a working channel for connecting a networked device and a router, a network identification corresponding to the networked device, and a serial number of the number of interaction processes corresponding to the current first handshake frame.
In order to better understand the process of the information synchronization method, the following describes the flow of the information synchronization method with reference to two alternative embodiments.
In an optional embodiment of the invention, a WIFI information self-synchronization method is mainly provided, when a user changes the SSID name of a router or the password of the router, only one intelligent household appliance needs to be subjected to network distribution operation again, and other intelligent household appliances can perform WIFI information self-synchronization through a synchronization mechanism among the intelligent household appliances.
In order to better understand the technical solutions of the embodiments and the alternative embodiments of the present invention, the following description is made on possible terms in the embodiments and the alternative embodiments of the present invention, but is not intended to limit the application of the following scenarios.
A networked device: and after the user changes the SSID name of the router or the password of the router, the user reconnects the intelligent household electrical appliance equipment of the home network. Ways of re-networking include, but are not limited to, device distribution, ways described in alternative embodiments of the invention, and the like.
Non-networked devices: after the user changes the SSID name of the router or the password of the router, the user can originally access the home network, and the intelligent household appliance cannot be normally connected with the network at present.
Network address Network ID: identification of the home network. The Network ID is the same in the same home Network which is usually set in the equipment at the equipment distribution Network binding stage.
Network Key: in a home Network, intelligent household electrical appliances bound through a user distribution Network can share a Network Key.
As an optional implementation manner, multiple handshaking determinations are performed between the networked device and the non-networked device, and then WIFI information self-synchronization is achieved, as shown in fig. 4, an interaction diagram of the information synchronization method according to the optional embodiment of the present invention includes the following steps:
step1, searching the networked equipment frame.
And (3) sending: non-networked devices transmit, in broadcast form.
The content is as follows: the Network ID.
Receiving: the connected device receives and sends a handshake step1 frame (data frame) if the Network ID is the same as that of itself.
Step 2: handshake step1 frame;
and (3) sending: a connected device, in unicast form, sends directly an unconnected device.
The content is as follows: the Network ID, an increasing serial number, different frames of each handshake step1, a random number Nonce-A, different frames of each handshake step1, a working channel, and a working channel connected with the router.
Receiving: the non-networked device receives and sends a handshake step2 frame if the Network ID is the same as that of itself.
And step 3: 3) handshake step2 frame;
and (3) sending: the non-networked device, in unicast form, sends the networked device directly.
The content is as follows: network ID, serial number in handshake step1 frame, a random number Nonce-B, each handshake step2 frame is different, MIC, SHA256(Network Key, Nonce-A);
that is to say, when the unconnected device sends a handshake step2 frame to the connected device, in order to ensure the integrity of the message, the random number a in the received handshake step1 frame and the network key stored in the unconnected device are operated by a preset hash algorithm to determine the hash value corresponding to the MIC, and then the connected device may parse the received MIC to determine that the handshake step2 frame is sent by the unconnected device that receives the handshake step1 frame, thereby ensuring the consistency and security of the flow.
Receiving: the connected device receives and sends a handshake step3 frame if the Network ID is the same as itself, checking the sequence number and MIC.
And 4, step 4: handshake step3 frame
And (3) sending: a connected device, in unicast form, sends directly an unconnected device.
The content is as follows: a Network ID; sequence number, the sequence number in the handshake step1 frame; encrypted SSID and password, the Key using SHA256(Network Key, Nonce-a, Nonce-B); MIC (Messages Integrity Check, MIC for short), SHA256(Network Key, Nonce-B);
briefly, the handshake step3 frame is sent on the basis of the received handshake step2 frame, and to ensure the consistency of the whole interaction flow, a hash value corresponding to the MIC (i.e., SHA256(Network Key, Nonce-B)) is determined by performing an operation according to the random number B in the handshake step2 frame and the Network Key stored in the handshake step, and further, the unconnected device may parse the received MIC to determine that the handshake step3 frame is sent by the connected device that received the handshake step2 frame, and in order to make the SSID and password of the router more secure, a distribution Key (i.e., SHA256(Network Key, Nonce-a, Nonce-B)) for encrypting the connection information is generated by combining the random values carried in all the handshake frames interacted before the handshake step3 frame with the Network Key stored in the unconnected device.
Receiving: and the equipment which is not connected with the Network receives the information, if the Network ID is the same as the equipment itself, the serial number and the MIC are verified, the SSID and the password are decrypted, and the WIFI information synchronization is completed.
In an optional embodiment of the present invention, an operation method of an unconnected device is further provided, including the following:
step S502: and determining a starting time, and after the router fails to be connected by using the original SSID and the password each time. The non-networked device starts the self-synchronization interaction function with the networked device.
Step S504: when the user changes the SSID name or password, the channel may be different from the original, so the non-networked devices need to poll on 13 channels to find the networked devices. Initially starting on channel 1 and subsequently starting on the next channel on which polling ceased. Each channel stays for 3 seconds and transmits 5 frames with an interval of 512 milliseconds.
Step S506: and discovering the networked equipment through the interactive process and sending the operation information of the synchronous WIFI information.
Optionally, when the non-networked device receives the handshake step1 frame that passes the check for the first time, the channel polling is stopped, and the channel carried in the handshake step1 frame is fixed. And it should be noted that each communication time is up to 5 seconds, starting from the receipt of a handshake step1 frame. An unconnected device may receive a handshake step1 frame for multiple devices that have been connected. Depending on the system resources, one to many networked devices may be maintained, but communication with each networked device is attempted a maximum of 3 times.
Optionally, if the already-networked device is on the filtered list, the already-networked device is ignored. The channel polling continues after the communication with all the network-accessed devices fails. For a plurality of networked devices, the selection can be performed according to the sequence of the received handshake step1 frames.
Step S508: after the WIFI information is obtained, if the WIFI information is inconsistent with the stored WIFI information, recording Media Access Control Address (MAC) of the accessed device which sends the WIFI information, closing all communication with the accessed device, exiting WIFI information synchronization operation, and starting to try to connect a router.
Step S600: if the router is successfully connected, the WIFI information is stored; otherwise, discarding the WIFI information, placing the corresponding accessed network equipment in a filtering list (overtime for 10 minutes), connecting the router by using the original SSID and the original password, and re-triggering the WIFI information synchronization operation.
As an alternative implementation, the operation mode of the networked device includes the following:
1) the frames of the networked equipment are monitored and searched on a channel connected with the router, so that the connection with the router is not influenced, and the normal communication is not influenced.
2) And finishing WIFI information synchronization through an interaction process.
3) Communication with one or more non-networked devices may be maintained simultaneously.
4) Each communication time is up to 5 seconds, starting with the first transmission of a handshake step1 frame.
It should be noted that, the WIFI information synchronization described in the optional embodiment of the present invention does not depend on a router, and only one intelligent household electrical appliance needs to be newly configured, and other intelligent household electrical appliances automatically complete the WIFI information synchronization. The WIFI information synchronization mechanism realizes the verification of the connected equipment to the unconnected equipment through a Network Key mechanism without the participation of a cloud end; meanwhile, the WIFI information is encrypted and transmitted through the Network Key. The WIFI information synchronization mechanism starts from searching networked equipment from non-networked equipment, and realizes WIFI information synchronization through two interactions. Normal communication of the accessed equipment is not influenced in the interaction process, and the WIFI information of the equipment which is not accessed to the network is quickly synchronized; meanwhile, the equipment which does not access the network is also provided with a filtering mechanism, so that the equipment which accesses the network is prevented from transmitting wrong WIFI information. The WIFI information synchronization mechanism realizes one-to-one, one-to-many, many-to-one and many-to-many WIFI information self-synchronization. WIFI information synchronization in the whole home network can be completed quickly.
Further, the WIFI information synchronization scheme based on the router mainly depends on the limitation of a synchronization mechanism between the router and the equipment, so that one-to-one, one-to-many, many-to-one and many-to-many WIFI information self-synchronization can be carried out between the intelligent household electrical appliances. WIFI information synchronization does not depend on a router or a cloud, equipment which is not networked can automatically discover equipment which is networked, equipment which is not networked can automatically filter the equipment which is networked, the equipment which is networked can automatically verify the equipment which is not networked, and the WIFI information synchronization does not influence the normal communication of the equipment which is networked.
In summary, according to the optional embodiments of the present invention, an unconnected device can be automatically discovered by using a connected device, the connected device needs to verify the unconnected device, so that the unconnected device that cannot pass the verification cannot perform WIFI information self-synchronization, and the WIFI information self-synchronization process does not need cloud participation, and the WIFI information self-synchronization does not affect the normal communication of the connected device, and encryption is required in the WIFI information (SSID and password) synchronization, so that one-to-one, one-to-many, many-to-one, and many-to-many WIFI information self-synchronization can be performed, and excessive network traffic is not generated.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, an information synchronization system is further provided, and the system is used to implement the foregoing embodiments and preferred embodiments, and the description already made is omitted for brevity. Fig. 5 is a block diagram of a structure of an information synchronization system according to an embodiment of the present invention, as shown in fig. 5, the system including:
the connected device 52 is configured to obtain data information that is sent by an unconnected device and includes a network identifier stored in the unconnected device, where the unconnected device is configured to instruct a target object to change connection information and then to interrupt a connected device; under the condition that the network identification stored in the non-networking equipment and contained in the data information is determined to be the same as the network identification of the non-networking equipment, sending a first handshake frame for unicast interaction to the non-networking equipment; receiving a second handshake frame which is sent by the non-networking equipment and used for indicating synchronization, and encrypting current connection information according to the second handshake frame to obtain target connection information used for synchronization;
an unconnected device 54, configured to broadcast, to a target area, data information including a network identifier stored in the unconnected device, in a case where a target area has a connected device, where the connected device is used to instruct a target object to replace the connection information and then to re-connect to the connected device; and receiving a first handshake frame sent by the networked equipment, and sending a second handshake frame containing a preset network key to the networked equipment under the condition that the first handshake frame meets a preset condition.
Through the system, under the condition that the networked equipment exists in the target area, the data information containing the network identification stored in the non-networked equipment is broadcasted to the target area, wherein the networked equipment is used for indicating the equipment which is re-networked after the target object changes the connection information; receiving a first handshake frame for unicast interaction fed back by the connected equipment according to the data information; in case that the first handshake frame meets the preset condition, sending a second handshake frame containing a preset network key to the connected device to acquire target connection information determined by the connected device according to the second handshake frame, wherein the target connection information is used to indicate current connection information of the encrypted connected device, that is, autonomous synchronization of the change connection information is performed through handshake frame interaction between the connected and non-connected devices, and then synchronous interaction of connection information between the devices is achieved, and thus, the method can solve the problem that in the prior art, the WIFI information synchronization depends on the router, the WIFI information self-synchronization between the devices cannot be realized, the synchronization that the connection information of the devices is changed through other connected devices after the connection information corresponding to the router is changed is ensured, the flexibility of the devices in the router connection is improved, and the legality of the unconnected devices is verified.
It should be noted that the handshake frame is a data frame used for carrying data indication information, and may carry different data information according to actual situations. And the networked equipment is monitored and searched on a channel connected with the router, so that the connection with the router is not influenced, and the normal communication is not influenced.
In an exemplary embodiment, the system further includes: a router to provide a network for both networked and non-networked devices.
In an exemplary embodiment, the non-networked device is further configured to determine authentication information carried in the first handshake frame, where the authentication information includes: the network access method comprises the following steps of indicating a serial number of times of a handshake frame, identifying a first random number value of uniqueness of a current handshake frame, a working channel of connected equipment and a router, and a network identification corresponding to the connected equipment; under the condition that the network identifier corresponding to the connected device in the authentication information is consistent with the network identifier stored in the unconnected device, determining a first key for encrypting connection information to be synchronized according to a preset network key and the first random value, wherein the connection information comprises at least one of the following: information of a router service set identifier, information of a router password; and performing data packaging on the authentication information and the first secret key, and adding an integrity check identifier and a second random number of a message to determine to send a second handshake frame containing a preset network secret key to the networked equipment.
That is to say, after the unconnected device searches for the connected device, the connected device sends, after passing the verification, a first handshake frame carrying authentication information and used for indicating synchronization of subsequent connection authentication to the unconnected device, and then stops channel polling operation of the unconnected device through the first handshake frame, and fixes a channel, and a subsequent interaction channel is determined, and further, the unconnected device determines, based on the received first handshake frame, a second random value used for indicating uniqueness of a second handshake frame to be sent according to a preset network key corresponding to the unconnected device and the received second random value, and adds an integrity check identifier used for verifying a message of a sender (that is, the unconnected device) of a data packet, and then determines the second handshake frame used for handshake interaction.
In an exemplary embodiment, the non-networked device is further configured to, in a case that a sequence number indicating a number of times of an interaction procedure corresponding to the current first handshake frame is further included in the authentication information, determine whether there is a match between a plurality of target sequence numbers corresponding to a plurality of received first handshake frames and the sequence number; determining that the current first handshake frame is not a repeated first handshake frame under the condition that the plurality of target sequence numbers do not match the sequence numbers; and under the condition that the target sequence numbers are matched with the sequence numbers, determining that the current first handshake frame is a repeated first handshake frame, and finishing a handshake flow corresponding to the first handshake frame.
In short, the first handshake frame in the interaction between the non-networking device and the networking device identifies the current interaction process through the serial number, and if the serial numbers are the same, it is proved that the interaction process corresponding to the current first handshake frame is repeatedly executed, and if the serial numbers are different, it is proved that the repeated interaction process does not occur in the interaction process corresponding to the current first handshake frame.
In an exemplary embodiment, the non-networked device is further configured to determine a channel list to be polled by the non-networked device, where the channel list is used to indicate channels for the non-networked device to communicate and the number of the channels; determining a time period for broadcasting to the target area according to the channel list; and under the condition that indication information of successful channel verification is acquired in the time period, stopping broadcasting to the target area, wherein the successful channel verification is used for indicating that a channel receives interactive information sent by networked equipment, and the interactive information comprises a first handshake frame.
For example, after the SSID name or password is changed by the target object, the channel may be different from the original one, and since the router and the home device usually use the 2.4G frequency band for wireless interaction, the non-connected device needs to poll on 13 channels to discover the connected device. Initially starting on channel 1 and subsequently starting on the next channel on which polling ceased. Each channel stays for 3 seconds and transmits 5 frames with an interval of 512 milliseconds. And when the unconnected equipment receives the handshake frame passing the verification for the first time, stopping channel polling, fixing the channel carried in the handshake step1 frame, and analyzing the data transmitted in the channel to determine the content corresponding to the handshake frame.
In an exemplary embodiment, the non-networked device is further configured to determine a preset filter list, where the filter list is used to indicate that connection information currently used by the networked device cannot be used synchronously; and under the condition that the network-accessed equipment in the filter list sends the first handshake frame, forbidding to execute the operation of generating a second handshake frame.
For example, if the networked device is on the filtered list, the networked device is ignored. The channel polling continues after the communication with all the network-accessed devices fails. And for a plurality of networked devices, selecting according to the sequence of the received handshake frames, and after receiving a first handshake frame for interaction sent by the networked devices added to the filter list, prohibiting the unconnected devices from generating corresponding second handshake frames under the condition of successful verification, and ending the interaction flow between the unconnected devices and the networked devices added to the filter list.
In an exemplary embodiment, the non-networked device is further configured to determine the timing list according to a time point when each of the connected devices feeds back the first handshake frame, when a plurality of connected devices exist and each of the connected devices feeds back the first handshake frame; and selecting and verifying whether the first handshake frame meets preset conditions according to the sequence of the time sequence table.
For example, an unconnected device may receive a first handshake frame for a number of connected devices. According to the condition of system resources, communication of one to a plurality of networked devices can be maintained, but communication with each networked device is tried for 3 times at most, so that the order of selecting authentication needs to be determined according to the feedback time point corresponding to the first handshake frame.
In an exemplary embodiment, the connected device is further configured to determine that the unconnected device exists in the target area and the unconnected device is allowed to perform unicast interaction if the network identifier stored in the unconnected device is the same as the network identifier of the connected device; determining authentication information to be carried according to preset conditions corresponding to the unicast interaction so as to determine a corresponding first handshake frame, wherein the authentication information comprises: the first random value for identifying the uniqueness of the current handshake frame, a working channel for connecting the networked equipment and the router, and a serial number of the number of corresponding interactive processes of the current first handshake frame.
In the description of the present invention, it is to be understood that the terms "center", "upper", "lower", "front", "rear", "left", "right", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the device or assembly referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two components can be directly connected or indirectly connected through an intermediate medium, and the two components can be communicated with each other. When an element is referred to as being "secured to" or "disposed on" another element, it can be directly on the other element or intervening elements may also be present. When a component is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The specific meaning of the above terms in the present invention can be understood in specific cases to those skilled in the art.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
In an exemplary embodiment, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, in case of a target area having a connected device, broadcasting data information containing network identification stored in the unconnected device to the target area, wherein the connected device is used for indicating a target object to replace the connection information and then to re-connect the device;
s2, receiving a first handshake frame for unicast interaction fed back by the networked device according to the data information;
s3, sending a second handshake frame containing a preset network key to the networked device when the first handshake frame meets a preset condition, so as to obtain target connection information determined by the networked device according to the second handshake frame, where the target connection information is used to indicate current connection information of the encrypted networked device.
In an exemplary embodiment, in the present embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, in the present embodiment, the processor may be configured to execute the following steps by a computer program:
s1, in case of a target area having a connected device, broadcasting data information containing network identification stored in the unconnected device to the target area, wherein the connected device is used for indicating a target object to replace the connection information and then to re-connect the device;
s2, receiving a first handshake frame for unicast interaction fed back by the networked device according to the data information;
s3, sending a second handshake frame containing a preset network key to the networked device when the first handshake frame meets a preset condition, so as to obtain target connection information determined by the networked device according to the second handshake frame, where the target connection information is used to indicate current connection information of the encrypted networked device.
In an exemplary embodiment, for specific examples in this embodiment, reference may be made to the examples described in the above embodiments and optional implementation manners, and details of this embodiment are not described herein again.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, which may be centralized on a single computing device or distributed across a network of computing devices, and in one exemplary embodiment may be implemented using program code executable by a computing device, such that the steps shown and described may be executed by a computing device stored in a memory device and, in some cases, executed in a sequence different from that shown and described herein, or separately fabricated into individual integrated circuit modules, or multiple ones of them fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.
Claims (11)
1. An information synchronization method, comprising:
under the condition that a target area has a connected device, broadcasting data information containing a network identifier stored in the unconnected device to the target area, wherein the connected device is used for indicating a target object to replace the connection information and then to re-connect the device;
receiving a first handshake frame for unicast interaction fed back by the networked equipment according to the data information;
and sending a second handshake frame containing a preset network key to the networked device to acquire target connection information determined by the networked device according to the second handshake frame under the condition that the first handshake frame meets a preset condition, wherein the target connection information is used for indicating the encrypted current connection information of the networked device.
2. The method of claim 1, wherein sending a second handshake frame containing a preset network key to the connected device if the first handshake frame meets a preset condition comprises:
determining authentication information carried by a first handshake frame, wherein the authentication information includes: a first random value for identifying the uniqueness of the current handshake frame and a network identifier corresponding to the connected equipment;
under the condition that the network identifier corresponding to the connected device in the authentication information is consistent with the network identifier stored in the unconnected device, determining a first key for encrypting connection information to be synchronized according to a preset network key and the first random value, wherein the connection information comprises at least one of the following: information of a router service set identifier, information of a router password;
and performing data packaging on the authentication information and the first secret key, and adding an integrity check identifier and a second random number of a message to determine to send a second handshake frame containing a preset network secret key to the networked equipment.
3. The method of claim 2, wherein after determining the authentication information carried by the first handshake frame, the method further comprises:
under the condition that the authentication information further comprises a sequence number used for indicating the number of times of the interaction process corresponding to the current first handshake frame, determining whether a plurality of target sequence numbers corresponding to a plurality of received first handshake frames are matched with the sequence number or not;
determining that the current first handshake frame is not a repeated first handshake frame under the condition that the plurality of target sequence numbers do not match the sequence numbers;
and under the condition that the target sequence numbers are matched with the sequence numbers, determining that the current first handshake frame is a repeated first handshake frame, and finishing a handshake flow corresponding to the first handshake frame.
4. The method of claim 1, wherein broadcasting data information containing historical network identifications to a target area in the presence of a networked device in the target area comprises:
determining a channel list to be polled by an unconnected device, wherein the channel list is used for indicating channels for the unconnected device to communicate and the number of the channels;
determining a time period for broadcasting to the target area according to the channel list;
and under the condition that indication information of successful channel verification is acquired in the time period, stopping broadcasting to the target area, wherein the successful channel verification is used for indicating that a channel receives interactive information sent by networked equipment, and the interactive information comprises a first handshake frame.
5. The method of claim 1, wherein prior to broadcasting data information containing historical network identifications to a target area in the presence of a networked device in the target area, the method further comprises:
determining a preset filter list, wherein the filter list is used for indicating that connection information currently used by the networked equipment cannot be synchronously used;
and under the condition that the network-accessed equipment in the filter list sends the first handshake frame, forbidding to execute the operation of generating a second handshake frame.
6. The method of claim 1, wherein after receiving a first handshake frame for unicast interaction fed back by the networked device according to the data information, the method further comprises:
determining a timing list according to a time point when each of the networked devices feeds back a first handshake frame, in a case where the plurality of networked devices exist and each of the networked devices feeds back the first handshake frame;
and selecting and verifying whether the first handshake frame meets preset conditions according to the sequence of the time sequence table.
7. An information synchronization method, comprising:
acquiring data information which is sent by non-networking equipment and contains a network identifier stored in the non-networking equipment, wherein the non-networking equipment is used for indicating a target object to interrupt networking equipment after connection information is replaced;
under the condition that the network identification stored in the non-networking equipment and contained in the data information is determined to be the same as the network identification of the non-networking equipment, sending a first handshake frame for unicast interaction to the non-networking equipment;
receiving a second handshake frame which is sent by the non-networking device after the first handshake frame is determined to meet the preset condition and is used for indicating synchronization;
and encrypting the current connection information according to the second handshake frame to obtain target connection information for synchronization.
8. The method of claim 7, wherein in the case that it is determined that the network identifier stored in the non-connected device included in the data information is the same as the self network identifier, sending a first handshake frame for unicast interaction to the non-connected device comprises:
determining that the non-networked device exists in a target area and the non-networked device is allowed to perform unicast interaction under the condition that the network identification stored in the non-networked device is the same as the network identification of the non-networked device;
determining authentication information to be carried according to preset conditions corresponding to the unicast interaction, and determining a corresponding first handshake frame according to the authentication information, wherein the authentication information comprises: the method comprises the steps of identifying a first random value of uniqueness of a current handshake frame, identifying a network identification corresponding to a connected device, and identifying a serial number of interaction process times corresponding to the current first handshake frame.
9. An information synchronization system, comprising:
the device comprises a networked device and a target object, wherein the networked device is used for acquiring data information which is sent by the non-networked device and contains a network identifier stored in the non-networked device, and the non-networked device is used for indicating the target object to interrupt the networked device after the connection information is replaced; under the condition that the network identification stored in the non-networking equipment and contained in the data information is determined to be the same as the network identification of the non-networking equipment, sending a first handshake frame for unicast interaction to the non-networking equipment; receiving a second handshake frame which is sent by the non-networking equipment and used for indicating synchronization, and encrypting current connection information according to the second handshake frame to obtain target connection information used for synchronization;
the device comprises an unconnected device and a target area, wherein the unconnected device is used for broadcasting data information containing network identification stored in the unconnected device to the target area under the condition that the connected device exists in the target area, and the connected device is used for indicating a target object to be connected again after the connection information is replaced; and receiving a first handshake frame sent by the networked equipment, and sending a second handshake frame containing a preset network key to the networked equipment under the condition that the first handshake frame meets a preset condition.
10. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 8 when executed.
11. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 8.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110867178.6A CN113613251B (en) | 2021-07-29 | 2021-07-29 | Information synchronization method and system, storage medium and electronic device |
PCT/CN2022/096410 WO2023005410A1 (en) | 2021-07-29 | 2022-05-31 | Information synchronization method and system, storage medium, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110867178.6A CN113613251B (en) | 2021-07-29 | 2021-07-29 | Information synchronization method and system, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113613251A true CN113613251A (en) | 2021-11-05 |
CN113613251B CN113613251B (en) | 2024-05-24 |
Family
ID=78306053
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110867178.6A Active CN113613251B (en) | 2021-07-29 | 2021-07-29 | Information synchronization method and system, storage medium and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113613251B (en) |
WO (1) | WO2023005410A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114339591A (en) * | 2021-12-09 | 2022-04-12 | 青岛海信移动通信技术股份有限公司 | Method for positioning based on ultra-wideband chip and related device |
WO2023005410A1 (en) * | 2021-07-29 | 2023-02-02 | 青岛海尔科技有限公司 | Information synchronization method and system, storage medium, and electronic device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109451502A (en) * | 2018-12-27 | 2019-03-08 | 广东美的厨房电器制造有限公司 | Household appliance matches network method, network distribution device and computer readable storage medium |
CN110971495A (en) * | 2019-10-24 | 2020-04-07 | 青岛海尔科技有限公司 | Equipment binding method and device of intelligent household system and storage medium |
CN111741509A (en) * | 2019-03-25 | 2020-10-02 | 珠海格力电器股份有限公司 | Network distribution method and device, storage medium and processor |
CN111757356A (en) * | 2020-06-23 | 2020-10-09 | 四川虹美智能科技有限公司 | Equipment distribution network system and distribution network method thereof |
CN112187831A (en) * | 2020-10-30 | 2021-01-05 | 腾讯科技(深圳)有限公司 | Equipment network access method and device, storage medium and electronic equipment |
CN112202652A (en) * | 2020-09-17 | 2021-01-08 | 海尔优家智能科技(北京)有限公司 | Method and device for displaying information of equipment to be networked, storage medium and electronic device |
CN112566220A (en) * | 2020-11-25 | 2021-03-26 | 中移(杭州)信息技术有限公司 | Distribution network information synchronization method and device and computer equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9843929B2 (en) * | 2015-08-21 | 2017-12-12 | Afero, Inc. | Apparatus and method for sharing WiFi security data in an internet of things (IoT) system |
CN106211264B (en) * | 2016-07-11 | 2018-07-31 | 九阳股份有限公司 | A kind of household electrical appliances distribution method and device |
CN112929908B (en) * | 2021-03-17 | 2023-03-24 | 北京小米移动软件有限公司 | Mesh networking method and device, gateway equipment and storage medium |
CN113613251B (en) * | 2021-07-29 | 2024-05-24 | 青岛海尔科技有限公司 | Information synchronization method and system, storage medium and electronic device |
-
2021
- 2021-07-29 CN CN202110867178.6A patent/CN113613251B/en active Active
-
2022
- 2022-05-31 WO PCT/CN2022/096410 patent/WO2023005410A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109451502A (en) * | 2018-12-27 | 2019-03-08 | 广东美的厨房电器制造有限公司 | Household appliance matches network method, network distribution device and computer readable storage medium |
CN111741509A (en) * | 2019-03-25 | 2020-10-02 | 珠海格力电器股份有限公司 | Network distribution method and device, storage medium and processor |
CN110971495A (en) * | 2019-10-24 | 2020-04-07 | 青岛海尔科技有限公司 | Equipment binding method and device of intelligent household system and storage medium |
CN111757356A (en) * | 2020-06-23 | 2020-10-09 | 四川虹美智能科技有限公司 | Equipment distribution network system and distribution network method thereof |
CN112202652A (en) * | 2020-09-17 | 2021-01-08 | 海尔优家智能科技(北京)有限公司 | Method and device for displaying information of equipment to be networked, storage medium and electronic device |
CN112187831A (en) * | 2020-10-30 | 2021-01-05 | 腾讯科技(深圳)有限公司 | Equipment network access method and device, storage medium and electronic equipment |
CN112566220A (en) * | 2020-11-25 | 2021-03-26 | 中移(杭州)信息技术有限公司 | Distribution network information synchronization method and device and computer equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023005410A1 (en) * | 2021-07-29 | 2023-02-02 | 青岛海尔科技有限公司 | Information synchronization method and system, storage medium, and electronic device |
CN114339591A (en) * | 2021-12-09 | 2022-04-12 | 青岛海信移动通信技术股份有限公司 | Method for positioning based on ultra-wideband chip and related device |
CN114339591B (en) * | 2021-12-09 | 2024-03-08 | 青岛海信移动通信技术有限公司 | Method and related device for positioning based on ultra-wideband chip |
Also Published As
Publication number | Publication date |
---|---|
WO2023005410A1 (en) | 2023-02-02 |
CN113613251B (en) | 2024-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106332224B (en) | Equipment network distribution method, device and system | |
CN110692280B (en) | Network access method, device and system | |
CN110708688B (en) | Intelligent equipment network distribution method and device, controller and medium | |
CN113423105B (en) | Network connection method and device | |
CN101621800B (en) | Method for exchanging authentication information between wireless terminal and wireless router | |
CN106254147B (en) | It is a kind of for the configuration method of Wi-Fi network, internet-of-things terminal and control terminal | |
CN113613251B (en) | Information synchronization method and system, storage medium and electronic device | |
CN112997447B (en) | Timestamp-based access processing for wireless devices | |
WO2006071741A2 (en) | Systems and methods for the connection and remote configuration of wireless clients | |
CN113132983B (en) | Network disconnection reconnection method for intelligent terminal | |
CN112671904B (en) | Method and device for transmitting equipment state information, storage medium and electronic device | |
CN108541077B (en) | WPS-based rapid network distribution method and system for intelligent hardware equipment | |
US20230379799A1 (en) | Device network configuration method and first device | |
CN112637931A (en) | Method and device for establishing network connection | |
CN113965916A (en) | Equipment network distribution method, device, equipment and computer readable storage medium | |
CN106255177A (en) | The transmission method of a kind of equipment state and device | |
CN112040484A (en) | Password updating method and device, storage medium and electronic device | |
CN113068181B (en) | Multi-type intelligent terminal safety network access method | |
CN114205378B (en) | Network distribution method and device of Internet of things equipment, storage medium and electronic device | |
US10212021B2 (en) | Network protocol configuration method and apparatus | |
CN112738785B (en) | Device connection method and apparatus, storage medium, and electronic apparatus | |
US20190261436A1 (en) | Device networking method, apparatus and system | |
CN113472763A (en) | Control instruction sending method and device, storage medium and electronic device | |
CN112637221A (en) | Equipment control method and device | |
CN113132966A (en) | Intelligent terminal fast network access method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |