CN113613251B - Information synchronization method and system, storage medium and electronic device - Google Patents

Information synchronization method and system, storage medium and electronic device Download PDF

Info

Publication number
CN113613251B
CN113613251B CN202110867178.6A CN202110867178A CN113613251B CN 113613251 B CN113613251 B CN 113613251B CN 202110867178 A CN202110867178 A CN 202110867178A CN 113613251 B CN113613251 B CN 113613251B
Authority
CN
China
Prior art keywords
networked
handshake
network
information
handshake 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.)
Active
Application number
CN202110867178.6A
Other languages
Chinese (zh)
Other versions
CN113613251A (en
Inventor
樊明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110867178.6A priority Critical patent/CN113613251B/en
Publication of CN113613251A publication Critical patent/CN113613251A/en
Priority to PCT/CN2022/096410 priority patent/WO2023005410A1/en
Application granted granted Critical
Publication of CN113613251B publication Critical patent/CN113613251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/10Integrity
    • H04W12/106Packet or message integrity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization 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: broadcasting data information containing network identifications stored in non-networked devices to a target area in the case that the networked devices exist in the target area, wherein the networked devices are used for indicating the devices which are re-networked after the target object changes the connection information; receiving a first handshake frame fed back by the connected network equipment according to the data information and used for unicast interaction; under the condition that the first handshake frame accords with a preset condition, a second handshake frame containing a preset network key is sent to the networked equipment to acquire target connection information determined by the networked equipment according to the second handshake frame, wherein the target connection information is used for indicating current connection information of the encrypted networked equipment, and the problems that the WIFI information synchronization in the prior art depends on a router and the WIFI information self-synchronization between the equipment cannot be realized are solved.

Description

Information synchronization method and system, storage medium and electronic device
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 smart home, an intelligent home device accesses to a home network through WIFI, and generally, an SSID (SERVICE SET IDENTIFIER, service set identifier, abbreviated to SSID) name and a password of a router in the home are sent to the intelligent home device through network allocation operation. When the user changes the router SSID name or the router password, the network allocation operation needs to be performed again on each intelligent household appliance, which is a time-consuming and labor-consuming task, especially when more intelligent household appliances are in the home.
In the related art, a router-based WIFI information self-synchronization scheme is provided: the main step is that when SSID name or password of the router changes, a synchronization mechanism is established between the router and the equipment, so that the equipment can automatically obtain new WIFI information from the router without re-distributing network, but because the participation of the router in the synchronization mechanism is indispensable, router root equipment among different factories cannot be well compatible, and therefore interconnection and interworking are difficult to realize.
Aiming at the problems that the synchronization of WIFI information depends on a router, the self-synchronization of the WIFI information between devices cannot be realized and the like in the related technology, no effective technical scheme has been proposed yet.
Disclosure of Invention
The embodiment of the invention provides an information synchronization method and system, a storage medium and an electronic device, which at least solve the problems that in the related technology, WIFI information synchronization depends on a router and the self-synchronization of the WIFI information between devices cannot be realized.
According to an embodiment of the present invention, there is provided an information synchronization method including: broadcasting data information containing network identifications stored in non-networked devices to a target area in the case that the networked devices exist in the target area, wherein the networked devices are used for indicating the devices which are re-networked after the target object changes the connection information; receiving a first handshake frame for unicast interaction fed back by the networked device 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 equipment to acquire target connection information determined by the networked equipment according to the second handshake frame, wherein the target connection information is used for indicating the encrypted current connection information of the networked equipment.
In an exemplary embodiment, in a case that the first handshake frame meets a preset condition, sending a second handshake frame including a preset network key to the networked device includes: determining authentication information carried by the first handshake frame, wherein the authentication information comprises: a serial number representing the number of handshaking frames, a first random number identifying the uniqueness of the current handshaking frame, a working channel for connecting the networked device with the router, and a network identifier corresponding to the networked device; determining a first key for encrypting connection information to be synchronized according to a preset network key in combination with the first random value under the condition that a network identifier corresponding to the networked device in the authentication information is consistent with a network identifier stored in the non-networked device, wherein the connection information comprises at least one of the following components: information of router service set identification and information of router password; and packaging the authentication information and the first key, and adding an integrity check identification of a message and a second random value to determine to send a second handshake frame containing a preset network key to the networked device.
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 also comprises a serial number used for indicating the number of times of interaction corresponding to the current first handshake frame, determining whether a plurality of target serial numbers corresponding to the received plurality of first handshake frames are matched with the serial number or not; determining that the current first handshake frame is not a repeated first handshake frame if the 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 ending the handshake flow corresponding to the first handshake frame.
In one exemplary embodiment, in the event that a networked device is present in a target area, broadcasting data information containing network identifications stored in non-networked devices to the target area, the method further comprises: determining a list of channels to be polled by an non-networked device, wherein the list of channels is used for indicating channels communicated by the non-networked device and the number of the channels; determining a time period for broadcasting to the target area according to the channel list; and stopping broadcasting to the target area under the condition that the indication information of successful channel verification is obtained in the time period, wherein the successful channel verification is used for indicating that the channel receives the interaction information sent by the networked equipment, and the interaction information comprises a first handshake frame.
In an exemplary embodiment, in case that a networked device is present in a target area, before broadcasting data information containing a network identity stored in an non-networked device to the target area, the method further comprises: determining a preset filtering list, wherein the filtering list is used for indicating that the connection information currently used by the networked equipment cannot be synchronously used; and prohibiting the operation of generating a second handshake frame under the condition that the network-accessed device existing in the filtering list transmits the first handshake frame.
In one exemplary embodiment, after receiving the first handshake frame for unicast interactions fed back by the networked device according to the data information, the method further comprises: determining a timing list according to a point of time when each of the networked devices feeds back a first handshake frame in a case where there are a plurality of the networked devices and each of the networked devices feeds back the first handshake frame; and carrying out selection verification on whether the first handshake frame accords with a preset condition according to the sequence of the time sequence list.
According to an embodiment of the present invention, there is provided another information synchronization method including: acquiring data information which is sent by an unclogged device and contains a network identifier stored in the unclogged device, wherein the unclogged device is used for indicating a device which interrupts networking after a target object changes connection information; transmitting a first handshake frame for unicast interactions to an non-networked device included in the data information if it is determined that a network identification stored in the non-networked device is the same as a network identification of the non-networked device; receiving a second handshake frame which is sent by the non-networking equipment and used for indicating synchronization after the first handshake frame meets a preset condition; and encrypting the current connection information according to the second handshake frame to obtain target connection information for synchronization.
In one exemplary embodiment, in a case where it is determined that the network identity stored in the non-networked device included in the data information is the same as the own network identity, transmitting a first handshake frame for unicast interaction to the non-networked device includes: in the case that the network identity stored in the non-networked device is the same as the own network identity, determining that the non-networked device exists with a target area, and the non-networked device is allowed to perform unicast interactions; determining authentication information to be carried according to preset conditions corresponding to the unicast interaction to determine a corresponding first handshake frame, wherein the authentication information comprises: the method comprises the steps of identifying a first random value unique to a current handshake frame, a network identifier corresponding to a connected network device, and a serial number of the interaction flow corresponding to the current first handshake frame.
According to another embodiment of the present invention, there is provided an information synchronization system including: the networking device is used for acquiring data information which is sent by the non-networking device and contains network identifications stored in the non-networking device, wherein the non-networking device is used for indicating the device which interrupts networking after the target object changes the connection information; transmitting a first handshake frame for unicast interactions to an non-networked device included in the data information if it is determined that a network identification stored in the non-networked device is the same as a network identification of the non-networked device; receiving a second handshake frame 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 non-networked device for broadcasting data information including a network identification stored in the non-networked device to a target area in the case that the networked device exists in the target area, wherein the networked device is used for indicating a device that is re-networked after the target object changes the connection information; 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 above system further comprises: a router for providing a network for both networked and non-networked devices.
In an exemplary embodiment, the above-mentioned non-networking device is further configured to determine authentication information carried by the first handshake frame, where the authentication information includes: identifying a first random value of the uniqueness of the current handshake frame and a network identifier corresponding to the networked equipment; determining a first key for encrypting connection information to be synchronized according to a preset network key in combination with the first random value under the condition that a network identifier corresponding to the networked device in the authentication information is consistent with a network identifier stored in the non-networked device, wherein the connection information comprises at least one of the following components: information of router service set identification and information of router password; and packaging the authentication information and the first key, and adding an integrity check identification of a message and a second random value to determine to send a second handshake frame containing a preset network key to the networked device.
In an exemplary embodiment, the foregoing non-networking device is further configured to determine a channel list to be polled by the non-networking device, where the channel list is used to indicate a channel that the non-networking device communicates with and a number of the channels; determining a time period for broadcasting to the target area according to the channel list; and stopping broadcasting to the target area under the condition that the indication information of successful channel verification is obtained in the time period, wherein the successful channel verification is used for indicating that the channel receives the interaction information sent by the networked equipment, and the interaction information comprises a first handshake frame.
In an exemplary embodiment, the above-mentioned 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 prohibiting the operation of generating a second handshake frame under the condition that the network-accessed device existing in the filtering list transmits the first handshake frame.
In an exemplary embodiment, the above-mentioned non-networked device is further configured to, in a case where there are a plurality of the networked devices and each of the networked devices feeds back the first handshake frame, determine a timing list according to a point in time at which each of the networked devices feeds back the first handshake frame; and carrying out selection verification on whether the first handshake frame accords with a preset condition according to the sequence of the time sequence list.
In an exemplary embodiment, the above-mentioned networked device is further configured to determine that the non-networked device exists with a target area and that the non-networked device is allowed to perform unicast interaction, in a case where a network identifier stored in the non-networked device is the same as a self network identifier; determining authentication information to be carried according to preset conditions corresponding to the unicast interaction to determine a corresponding first handshake frame, wherein the authentication information comprises: the method comprises the steps of identifying a first random value unique to a current handshake frame, a working channel of a connected device and a router, and a serial number of the corresponding interaction flow number of the current first handshake frame.
According to a further embodiment of the invention, there is also provided a storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the invention, when the networked equipment exists in the target area, broadcasting data information containing the network identification stored in the non-networked equipment 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 fed back by the connected network equipment according to the data information and used for unicast interaction; under the condition that the first handshake frame accords with a preset condition, a second handshake frame containing a preset network key is sent to the networked equipment to acquire target connection information determined by the networked equipment according to the second handshake frame, wherein the target connection information is used for indicating current connection information of the encrypted networked equipment, namely, the connection information replacement autonomous synchronization is carried out through handshake frame interaction between the networked equipment and the non-networked equipment, and then the connection information synchronization interaction between the equipment is realized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
fig. 1 is a block diagram of a hardware structure of an equipment terminal of an information synchronization method according to an embodiment of the present invention;
FIG. 2 is a flow chart (one) of an information synchronization method according to an embodiment of the present invention;
FIG. 3 is a flow chart (II) of an information synchronization method according to an embodiment of the present invention;
FIG. 4 is an interactive schematic diagram of an information synchronization method according to an alternative embodiment of the invention;
Fig. 5 is a block diagram of an information synchronization system according to an embodiment of the present invention.
Detailed Description
The application will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiment provided by the embodiment of the application can be executed in a computer terminal or a similar computing device of a device terminal. Taking the operation on the device terminal as an example, fig. 1 is a block diagram of a hardware structure of the device terminal of an information synchronization method according to an embodiment of the present application. As shown in fig. 1, the device terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and in one exemplary embodiment, the device terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the device terminals described above. For example, the device terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than the equivalent functions shown in fig. 1 or more than the functions shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to an information synchronization method in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. 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 remotely located with respect to the processor 102, which may be connected to the device terminal through 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 means 106 is arranged to receive or transmit data via a network. The specific example 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 (Network Interface Controller, simply referred to as a NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, an information synchronization method is provided, and fig. 2 is a flowchart (a) of the information synchronization method according to an embodiment of the present invention, where the flowchart includes the following steps:
Step S202, broadcasting data information containing network identifications stored in non-networked devices to a target area in the case that the networked devices exist in the target area, wherein the networked devices are used for indicating the devices which are re-networked after the target object changes the connection information;
It should be noted that, the network identifier generally indicates a network identifier corresponding to a network that is connected to the device that is not connected to the network last time, and may also be other network identifiers stored in the device that is not connected to the network.
Step S204, receiving a first handshake frame for unicast interaction fed back by the networked device according to the data information;
Step S206, if the first handshake frame meets the preset condition, a second handshake frame containing a preset network key is sent 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.
By the above steps, in the case that the networked device exists in the target area, broadcasting data information including the network identification stored in the non-networked device to the target area, wherein the networked device is used for indicating the device that is re-networked after the target object changes the connection information; receiving a first handshake frame fed back by the connected network equipment according to the data information and used for unicast interaction; under the condition that the first handshake frame accords with a preset condition, a second handshake frame containing a preset network key is sent to the networked equipment to acquire target connection information determined by the networked equipment according to the second handshake frame, wherein the target connection information is used for indicating current connection information of the encrypted networked equipment, namely, the connection information replacement autonomous synchronization is carried out through handshake frame interaction between the networked equipment and the non-networked equipment, and then the connection information synchronization interaction between the equipment is realized.
It should be noted that, the handshake frame is a data frame for carrying data indication information, and may carry different data information according to actual situations.
The implementation manner of the step S206 is various, and in an alternative embodiment, the implementation manner may be as follows: determining authentication information carried by the first handshake frame, wherein the authentication information comprises: identifying a first random value of the uniqueness of the current handshake frame and a network identifier corresponding to the networked equipment; determining a first key for encrypting connection information to be synchronized according to a preset network key in combination with the first random value under the condition that a network identifier corresponding to the networked device in the authentication information is consistent with a network identifier stored in the non-networked device, wherein the connection information comprises at least one of the following components: information of router service set identification and information of router password; and packaging the authentication information and the first key, and adding an integrity check identification of a message and a second random value to determine to send a second handshake frame containing a preset network key to the networked device.
That is, after the unconnected device searches for the connected device, the connected device sends a first handshake frame carrying authentication information and used for indicating the subsequent connection authentication synchronization to the unconnected device after verification is passed, and further, the channel polling operation of the unconnected device is stopped through the first handshake frame and fixed, so that the subsequent interaction channel is determined, further, the unconnected device determines a second handshake frame used for handshake interaction based on the received first handshake frame, according to a preset network key corresponding to the unconnected device and a determined second random value used for indicating the uniqueness of the second handshake frame to be sent, and adds an integrity verification identifier used for verifying a message of a sender (namely the unconnected device) of the data packet.
In an exemplary embodiment, after determining the authentication information carried by the first handshake frame, the method further comprises: under the condition that the authentication information also comprises a serial number used for indicating the number of times of interaction corresponding to the current first handshake frame, determining whether a plurality of target serial numbers corresponding to the received plurality of first handshake frames are matched with the serial number or not; determining that the current first handshake frame is not a repeated first handshake frame if the 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 ending the handshake flow corresponding to the first handshake frame.
In short, the first handshake frame in the interaction between the non-networked device and the networked device carries out the identification of the current interaction flow through the serial numbers, and when the serial numbers are the same, the corresponding interaction flow is repeatedly executed, and when the serial numbers are different, the fact that the repeated interaction process does not occur in the interaction flow corresponding to the current first handshake frame is proved.
Optionally, in the case that the networked device exists in the target area, after broadcasting data information including the network identifier stored in the non-networked device to the target area, the method further includes: determining a list of channels to be polled by an non-networked device, wherein the list of channels is used for indicating channels communicated by the non-networked device and the number of the channels; determining a time period for broadcasting to the target area according to the channel list; and stopping broadcasting to the target area under the condition that the indication information of successful channel verification is obtained in the time period, wherein the successful channel verification is used for indicating that the channel receives the interaction information sent by the networked equipment, and the interaction information comprises a first handshake frame.
For example, after the target object changes SSID names or passwords, the channels may be different from the original ones, and since routers and home devices typically use the 2.4G frequency band for wireless interaction, the non-networked devices need to poll on 13 channels to discover the networked devices. Initially starting with channel 1 and subsequently starting from the next channel where polling stopped. Each channel stays for 3 seconds, 5 frames are sent, 512 milliseconds apart. When the unconnected equipment receives the handshake frame passing the verification for the first time, stopping channel polling, fixing a channel carried in the handshake step1 frame, analyzing data transmitted in the channel, and further determining the content corresponding to the handshake frame.
In an exemplary embodiment, in case that a networked device is present in a target area, before broadcasting data information containing a network identity stored in an non-networked device to the target area, the method further comprises: determining a preset filtering list, wherein the filtering list is used for indicating that the connection information currently used by the networked equipment cannot be synchronously used; and prohibiting the operation of generating a second handshake frame under the condition that the network-accessed device existing in the filtering list transmits the first handshake frame.
For example, if a networked device is on a filter list, the networked device is ignored. And continuing channel polling after communication with all the network-connected devices fails. For a plurality of network-connected devices, selection can be performed according to the sequence of the received handshake frames, connection information of the network-connected devices added with the filter list cannot be synchronized to the unconnected device, after the first handshake frames for interaction sent by the network-connected devices added with the filter list are received, the unconnected device is forbidden to generate corresponding second handshake frames under the condition of successful verification, and the interaction flow of the unconnected device and the network-connected devices added with the filter list is ended.
In one exemplary embodiment, after receiving the first handshake frame for unicast interactions fed back by the networked device according to the data information, the method further comprises: determining a timing list according to a point of time when each of the networked devices feeds back a first handshake frame in a case where there are a plurality of the networked devices and each of the networked devices feeds back the first handshake frame; and carrying out selection verification on whether the first handshake frame accords with a preset condition according to the sequence of the time sequence list.
For example, an uncloned device may receive a first handshake frame for a plurality of networked devices. Depending on the system resources, one to multiple networked devices may be maintained but communication with each networked device is attempted up to 3 times, thus requiring the order of selection authentication to be determined based on 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 the 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 an unclogged device and contains network identifications stored in the unclogged device is obtained, wherein the unclogged device is used for indicating a device which interrupts networking after a target object changes connection information;
Step S304, in the case that the network identification stored in the non-networking equipment contained in the data information is determined to be the same as the network identification of the non-networking equipment, 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 meets the preset condition and used for indicating synchronization;
Step S308, encrypting the current connection information according to the second handshake frame to obtain the target connection information for synchronization.
The data information which is sent by the non-networking equipment and contains the network identifier stored in the non-networking equipment is obtained through the steps, wherein the non-networking equipment is used for indicating the equipment which interrupts networking after the target object changes the connection information; in the case that the network identification stored in the non-networked device contained in the data information is determined to be the same as the own network identification, sending a first handshake frame for unicast interaction to the non-networked device; receiving a second handshake frame which is sent by the non-networking equipment and used for indicating synchronization after the first handshake frame is determined to meet a preset condition; according to the second handshake frame, the current connection information is encrypted to obtain target connection information for synchronization, that is, the connection information is exchanged automatically through handshake frame interaction between the networked devices and the non-networked devices, and then the connection information synchronization interaction between the devices is realized, so that the problem that WIFI information synchronization in the prior art depends on a router and WIFI information self-synchronization between the devices cannot be realized is solved, synchronization of the devices for exchanging the connection information through other connected devices after corresponding connection information of the router is changed is ensured, flexibility of connection of the devices in the router is improved, and validity of the non-connected devices is verified.
In one exemplary embodiment, in a case where it is determined that the network identity stored in the non-networked device included in the data information is the same as the own network identity, transmitting a first handshake frame for unicast interaction to the non-networked device includes: in the case that the network identity stored in the non-networked device is the same as the own network identity, determining that the non-networked device exists with a target area, and the non-networked device is allowed to perform unicast interactions; determining authentication information to be carried according to preset conditions corresponding to the unicast interaction to determine a corresponding first handshake frame, wherein the authentication information comprises: the method comprises the steps of identifying a first random value unique to a current handshake frame, a working channel connected with a router by a networked device, a network identifier corresponding to the networked device, and a serial number of the interaction flow number corresponding to the current first handshake frame.
In order to better understand the procedure of the information synchronization method, the following describes the flow of the information synchronization method in conjunction with two alternative embodiments.
In an alternative embodiment of the present invention, a method for WIFI information self-synchronization is mainly provided, where when a user changes the SSID name of a router or changes the password of the router, only one intelligent home appliance needs to be newly configured with a network, and other intelligent home appliances can perform WIFI information self-synchronization through a synchronization mechanism between intelligent home appliances.
In order to better understand the technical solutions of the embodiments and optional embodiments of the present invention, the following description describes terms that may appear in the embodiments and optional embodiments of the present invention, but is not used to limit the application of the following scenario.
The networked device: and after the SSID name of the router is changed or the password of the router is changed, the user is reconnected to the intelligent household appliance of the home network. The manner of re-networking includes, but is not limited to, device networking, the manner described by alternative embodiments of the present invention, and the like.
An non-networked device: after the SSID name of the router or the password of the router is changed by a user, the user can access the home network originally, and the intelligent home appliance can not normally access the network.
Network address Network ID: identification of the home network. The Network ID is generally the same as the Network ID set in the device-to-Network binding phase.
Network Key: in a home Network, intelligent home devices bound through a user distribution Network can share a Network Key.
As an alternative implementation manner, the multiple handshaking determination of the networked device and the non-networked device is performed, so as to realize the WIFI information self-synchronization, as shown in fig. 4, which is an interaction schematic diagram of the information synchronization method according to an alternative embodiment of the present invention, including the following steps:
Step1, searching for a networked device frame.
And (3) transmitting: the non-networked devices transmit, broadcast.
The content is as follows: network ID.
And (3) receiving: the networked device receives and if the Network ID is the same as itself, sends a handshake step1 frame (data frame).
Step 2: handshaking step1 frames;
and (3) transmitting: the networked devices, in unicast form, send the non-networked devices directly.
The content is as follows: network ID, an incremented sequence number, each handshake step1 frame is different, a random number Nonce-a, each handshake step1 frame is different, working channel connected to router.
And (3) receiving: the non-networked device receives, if the Network ID is the same as itself, a handshake step2 frame is sent.
Step 3: 3) Handshaking step2 frames;
and (3) transmitting: the networking device is not connected, unicast form, and the networking device is directly sent.
The content is as follows: network ID, sequence number in handshake step1 frame, a random number Nonce-B, each handshake step2 frame being different, MIC, SHA256 (Network Key, nonce-a);
that is, when the unconnected device sends a handshake step2 frame to the connected device, in order to ensure that the integrity of the message is ensured, the corresponding hash value of the corresponding MIC is determined by performing operation on the random number a in the received handshake step1 frame and the network key stored by the unconnected device through a preset hash algorithm, so that the connected device can analyze the received MIC to determine that the handshake step2 frame is sent by the unconnected device receiving the handshake step1 frame, thereby ensuring the consistency and the safety of the flow.
And (3) receiving: the networked device receives and if the Network ID is the same as itself, verifies the sequence number and MIC, sends a handshake step3 frame.
Step 4: handshaking step3 frame
And (3) transmitting: the networked devices, in unicast form, send the non-networked devices directly.
The content is as follows: network ID; sequence number, sequence number in handshake step1 frame; encrypted SSID and password, key using SHA256 (Network Key, nonce-a, nonce-B); MIC (MESSAGES INTEGRITY CHECK, message integrity check, MIC for short), SHA256 (Network Key, nonce-B);
briefly, the handshake step3 frame is sent on the basis of receiving the handshake step2 frame, and to ensure consistency of the whole interaction flow, a hash value (namely SHA256 (Nonce-B)) corresponding to the corresponding MIC is determined by performing an operation according to a random number B in the handshake step2 frame and a Network Key stored by the random number B and the random number B through a preset hash algorithm, so that the unconnected device can parse the received MIC to determine that the handshake step3 frame is sent by the connected device receiving the handshake step2 frame, and in order to make the SSID and the password of the router higher, a sending Key (namely SHA256 (Nonce-a, nonce-B)) for encrypting the connection information is generated by combining random numbers carried in all the handshake frames interacted before the handshake step3 frame with the Network Key stored by the random number B.
And (3) receiving: and if the Network ID is the same as the Network ID, checking the serial number and the MIC, decrypting the SSID and the password to finish WIFI information synchronization.
In an alternative embodiment of the present invention, there is also provided an operation method of an unconnected device, including the following:
step S502: and determining a starting time, and after each failure of using the original SSID and the password to connect the router. The non-networked device turns on the self-synchronizing 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 that an unclogged device needs to poll on 13 channels to discover the networked device. Initially starting with channel 1 and subsequently starting from the next channel where polling stopped. Each channel stays for 3 seconds, 5 frames are sent, 512 milliseconds apart.
Step S506: and discovering the networked equipment through the interactive flow and sending out the operation information of the synchronous WIFI information.
Optionally, when the non-networked device receives the handshake step1 frame passing the check for the first time, 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 the handshake step1 frame. An uncloned device may receive handshake step1 frames for multiple networked devices. Depending on the system resources, one may maintain communication to multiple networked devices, but attempt at most 3 times to communicate with each networked device.
Optionally, if the network-connected device is on the filter list, the network-connected device is ignored. And continuing channel polling after communication with all the network-connected devices fails. For multiple network-entered devices, the selection may be based on the order in which the handshake step1 frames are received.
Step S508: after the WIFI information is obtained, if the WIFI information is inconsistent with the stored WIFI information, recording the MAC (MEDIA ACCESS Control Address, MAC for short) of the network-entered device that sends the WIFI information, closing all communications with the network-entered device, exiting the WIFI information synchronization operation, and starting to attempt to connect to the router.
Step S600: if the router is connected successfully, the WIFI information is stored; otherwise, the WIFI information is discarded, the corresponding network-accessed equipment is placed in a filtering list (overtime for 10 minutes), and the router is connected by using the original SSID and the password to trigger the WIFI information synchronization operation again.
As an alternative embodiment, the operation of the networked device comprises the following:
1) The frame of the network connected 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.
2) And finishing WIFI information synchronization through the interaction flow.
3) Communications with one to more non-networked devices may be maintained simultaneously.
4) Each communication time is up to 5 seconds, starting with the first transmission 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 the router, only needs to perform the network configuration operation on one intelligent home appliance again, and other intelligent home appliances automatically complete the WIFI information synchronization. The WIFI information synchronization mechanism realizes verification of the networking equipment on the non-networking equipment through the Network Key mechanism, and cloud participation is not needed; meanwhile, the encryption transmission of the WIFI information is realized through the Network Key. The WIFI information synchronization mechanism starts from the networking equipment searching the networking equipment, and the WIFI information synchronization is realized through two interactions. The normal communication of the network-connected equipment is not influenced in the interaction flow, and the WIFI information of the network-disconnected equipment is rapidly synchronized; meanwhile, the network-connected equipment is not provided with a filtering mechanism, so that the network-connected equipment 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. The WIFI information synchronization in the whole home network can be completed rapidly.
The WIFI information synchronization scheme based on the router is further avoided, and mainly relies on the limitation of a synchronization mechanism between the router and the device, so that the intelligent household appliances can perform one-to-one, one-to-many, many-to-one and many-to-many WIFI information self-synchronization. The WIFI information synchronization does not depend on a router or a cloud, the networking-free device can automatically find the networking device, the networking-free device can automatically filter the networking device, the networking device can automatically verify the networking-free device, and the WIFI information synchronization does not affect normal communication of the networking device.
In summary, according to the alternative embodiment of the present invention, an unclogged device may be automatically discovered by using a networked device, where the networked device needs to verify the unclogged device, so that the unclogged device that cannot pass the verification cannot perform WIFI information self-synchronization, and the WIFI information self-synchronization flow does not need cloud participation, and the WIFI information self-synchronization does not affect normal communications of the networked device, and encryption is required for 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 may be performed, without generating excessive network traffic.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiment also provides an information synchronization system, which is used for implementing the above embodiment and the preferred implementation manner, and is not described in detail. Fig. 5 is a block diagram of an information synchronization system according to an embodiment of the present invention, as shown in fig. 5, the system including:
connected device 52, unconnected device 54;
The connected device 52 is configured to obtain data information sent by an unconnected device and including a network identifier stored in the unconnected device, where the unconnected device is configured to instruct a target object to change connection information and interrupt a device connected to the network; transmitting a first handshake frame for unicast interactions to an non-networked device included in the data information if it is determined that a network identification stored in the non-networked device is the same as a network identification of the non-networked device; receiving a second handshake frame 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 non-networked device 54 for broadcasting data information including a network identification stored in the non-networked device to a target area in the case where the networked device exists in the target area, wherein the networked device is used to instruct a device that is re-networked after the target object changes the connection information; 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.
With the system, in the case that the networked device exists in the target area, broadcasting data information containing the network identifier stored in the non-networked device to the target area, wherein the networked device is used for indicating the device which is re-networked after the target object changes the connection information; receiving a first handshake frame fed back by the connected network equipment according to the data information and used for unicast interaction; under the condition that the first handshake frame accords with a preset condition, a second handshake frame containing a preset network key is sent to the networked equipment to acquire target connection information determined by the networked equipment according to the second handshake frame, wherein the target connection information is used for indicating current connection information of the encrypted networked equipment, namely, the connection information replacement autonomous synchronization is carried out through handshake frame interaction between the networked equipment and the non-networked equipment, and then the connection information synchronization interaction between the equipment is realized.
It should be noted that, the handshake frame is a data frame for carrying data indication information, and may carry different data information according to actual situations. The connected equipment is monitored and searched on a channel connected with the router, so that the connection with the router is not affected, and normal communication is not affected.
In an exemplary embodiment, the above system further comprises: a router for providing a network for both networked and non-networked devices.
In an exemplary embodiment, the above-mentioned non-networking device is further configured to determine authentication information carried by the first handshake frame, where the authentication information includes: a serial number representing the number of handshaking frames, a first random number identifying the uniqueness of the current handshaking frame, a working channel for connecting the networked device with the router, and a network identifier corresponding to the networked device; determining a first key for encrypting connection information to be synchronized according to a preset network key in combination with the first random value under the condition that a network identifier corresponding to the networked device in the authentication information is consistent with a network identifier stored in the non-networked device, wherein the connection information comprises at least one of the following components: information of router service set identification and information of router password; and packaging the authentication information and the first key, and adding an integrity check identification of a message and a second random value to determine to send a second handshake frame containing a preset network key to the networked device.
That is, after the unconnected device searches for the connected device, the connected device sends a first handshake frame carrying authentication information and used for indicating the subsequent connection authentication synchronization to the unconnected device after verification is passed, and further, the channel polling operation of the unconnected device is stopped through the first handshake frame and fixed, so that the subsequent interaction channel is determined, further, the unconnected device determines a second handshake frame used for handshake interaction based on the received first handshake frame, according to a preset network key corresponding to the unconnected device and a determined second random value used for indicating the uniqueness of the second handshake frame to be sent, and adds an integrity verification identifier used for verifying a message of a sender (namely the unconnected device) of the data packet.
In an exemplary embodiment, the above-mentioned non-networking device is further configured to determine whether a plurality of target sequence numbers corresponding to the received plurality of first handshake frames matches the sequence number if the authentication information further includes a sequence number indicating a number of interactions corresponding to the current first handshake frame; determining that the current first handshake frame is not a repeated first handshake frame if the 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 ending the handshake flow corresponding to the first handshake frame.
In short, the first handshake frame in the interaction between the non-networked device and the networked device carries out the identification of the current interaction flow through the serial numbers, and when the serial numbers are the same, the corresponding interaction flow is repeatedly executed, and when the serial numbers are different, the fact that the repeated interaction process does not occur in the interaction flow corresponding to the current first handshake frame is proved.
In an exemplary embodiment, the foregoing non-networking device is further configured to determine a channel list to be polled by the non-networking device, where the channel list is used to indicate a channel that the non-networking device communicates with and a number of the channels; determining a time period for broadcasting to the target area according to the channel list; and stopping broadcasting to the target area under the condition that the indication information of successful channel verification is obtained in the time period, wherein the successful channel verification is used for indicating that the channel receives the interaction information sent by the networked equipment, and the interaction information comprises a first handshake frame.
For example, after the target object changes SSID names or passwords, the channels may be different from the original ones, and since routers and home devices typically use the 2.4G frequency band for wireless interaction, the non-networked devices need to poll on 13 channels to discover the networked devices. Initially starting with channel 1 and subsequently starting from the next channel where polling stopped. Each channel stays for 3 seconds, 5 frames are sent, 512 milliseconds apart. When the unconnected equipment receives the handshake frame passing the verification for the first time, stopping channel polling, fixing a channel carried in the handshake step1 frame, analyzing data transmitted in the channel, and further determining the content corresponding to the handshake frame.
In an exemplary embodiment, the above-mentioned 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 prohibiting the operation of generating a second handshake frame under the condition that the network-accessed device existing in the filtering list transmits the first handshake frame.
For example, if a networked device is on a filter list, the networked device is ignored. And continuing channel polling after communication with all the network-connected devices fails. For a plurality of network-connected devices, selection can be performed according to the sequence of the received handshake frames, connection information of the network-connected devices added with the filter list cannot be synchronized to the unconnected device, after the first handshake frames for interaction sent by the network-connected devices added with the filter list are received, the unconnected device is forbidden to generate corresponding second handshake frames under the condition of successful verification, and the interaction flow of the unconnected device and the network-connected devices added with the filter list is ended.
In an exemplary embodiment, the above-mentioned non-networked device is further configured to, in a case where there are a plurality of the networked devices and each of the networked devices feeds back the first handshake frame, determine a timing list according to a point in time at which each of the networked devices feeds back the first handshake frame; and carrying out selection verification on whether the first handshake frame accords with a preset condition according to the sequence of the time sequence list.
For example, an uncloned device may receive a first handshake frame for a plurality of networked devices. Depending on the system resources, one to multiple networked devices may be maintained but communication with each networked device is attempted up to 3 times, thus requiring the order of selection authentication to be determined based on the feedback time point corresponding to the first handshake frame.
In an exemplary embodiment, the above-mentioned networked device is further configured to determine that the non-networked device exists with a target area and that the non-networked device is allowed to perform unicast interaction, in a case where a network identifier stored in the non-networked device is the same as a self network identifier; determining authentication information to be carried according to preset conditions corresponding to the unicast interaction to determine a corresponding first handshake frame, wherein the authentication information comprises: the method comprises the steps of identifying a first random value unique to a current handshake frame, a working channel of a connected device and a router, and a serial number of the corresponding interaction flow number of the current first handshake frame.
In the description of the present invention, it should be understood that the directions or positional relationships indicated by the terms "center", "upper", "lower", "front", "rear", "left", "right", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the apparatus or component to be 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," "second," and the like, 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 explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of the two components. When an element is referred to as being "mounted" or "disposed" on another element, it can be directly on the other element or intervening elements may also be present. When an element 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. It will be understood by those of ordinary skill in the art that the terms described above are in the specific sense of the present invention.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; or the above modules may be located in different processors in any combination.
An embodiment of the invention also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In an exemplary embodiment, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
S1, broadcasting data information containing network identifications stored in non-networked devices to a target area when the networked devices exist in the target area, wherein the networked devices are used for indicating the devices which are re-networked after the target object changes the connection information;
S2, receiving a first handshake frame for unicast interaction fed back by the networked equipment according to the data information;
and S3, 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 equipment to acquire target connection information determined by the networked equipment according to the second handshake frame, wherein the target connection information is used for indicating the encrypted current connection information of the networked equipment.
In an exemplary embodiment, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
In an exemplary embodiment, in this embodiment, the above-mentioned processor may be configured to execute the following steps by a computer program:
S1, broadcasting data information containing network identifications stored in non-networked devices to a target area when the networked devices exist in the target area, wherein the networked devices are used for indicating the devices which are re-networked after the target object changes the connection information;
S2, receiving a first handshake frame for unicast interaction fed back by the networked equipment according to the data information;
and S3, 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 equipment to acquire target connection information determined by the networked equipment according to the second handshake frame, wherein the target connection information is used for indicating the encrypted current connection information of the networked equipment.
In an exemplary embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementations, and this embodiment is not repeated herein.
It will be apparent to those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, and in one exemplary embodiment they may be implemented in program code executable by a computing device, so that they may be stored in a memory device for execution by a computing device, and in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps in them may be 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 of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. 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, applied to an uncloned device, comprising:
In the case that a networked device exists in a target area, broadcasting data information containing network identifications stored in the networked device to the target area by the networked device, wherein the networked device is used for indicating a device which is re-networked after a target object changes connection information, and the target object is a user for changing the identifier names or router passwords of a router service set corresponding to the networked device and the networked device;
The non-networked device receives a first handshake frame for unicast interaction fed back by the networked device according to the data information;
And under the condition that the first handshake frame meets the preset condition, the non-networking equipment sends a second handshake frame containing a preset network key to the networking equipment so as to acquire target connection information determined by the networking equipment according to the second handshake frame, wherein the target connection information is used for indicating the current connection information of the encrypted networking equipment.
2. The method of claim 1, wherein transmitting a second handshake frame containing a preset network key to the networked device if the first handshake frame meets a preset condition comprises:
Determining authentication information carried by a first handshake frame, wherein the authentication information comprises: identifying a first random value of the uniqueness of the current handshake frame and a network identifier corresponding to the networked equipment;
Determining a first key for encrypting connection information to be synchronized according to a preset network key in combination with the first random value under the condition that a network identifier corresponding to the networked device in the authentication information is consistent with a network identifier stored in the non-networked device, wherein the connection information comprises at least one of the following components: a router service set identification name, a router password;
And packaging the authentication information and the first key, and adding an integrity check identification of a message and a second random value to determine to send a second handshake frame containing a preset network key to the networked device.
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 also comprises a serial number used for indicating the number of times of interaction corresponding to the current first handshake frame, determining whether a plurality of target serial numbers corresponding to the received plurality of first handshake frames are matched with the serial number or not;
Determining that the current first handshake frame is not a repeated first handshake frame if the 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 ending the handshake flow corresponding to the first handshake frame.
4. The method of claim 1, wherein broadcasting data information including historical network identifications to a target area in the presence of networked devices in the target area comprises:
Determining a list of channels to be polled by an non-networked device, wherein the list of channels is used for indicating channels communicated by the non-networked device and the number of the channels;
determining a time period for broadcasting to the target area according to the channel list;
and stopping broadcasting to the target area under the condition that the indication information of successful channel verification is obtained in the time period, wherein the successful channel verification is used for indicating that the channel receives the interaction information sent by the networked equipment, and the interaction information comprises a first handshake frame.
5. The method of claim 1, wherein, in the event that a networked device is present in a target area, prior to broadcasting data information including historical network identifications to the target area, the method further comprises:
Determining a preset filtering list, wherein the filtering list is used for indicating that the connection information currently used by the networked equipment cannot be synchronously used;
and prohibiting the operation of generating a second handshake frame under the condition that the network-accessed device existing in the filtering list transmits the first handshake frame.
6. The method of claim 1, wherein after receiving a first handshake frame for unicast interactions fed back by the networked device according to the data information, the method further comprises:
Determining a timing list according to a point of time when each of the networked devices feeds back a first handshake frame in a case where there are a plurality of the networked devices and each of the networked devices feeds back the first handshake frame;
and carrying out selection verification on whether the first handshake frame accords with a preset condition according to the sequence of the time sequence list.
7. An information synchronization method, applied to a networked device, comprising:
The networked equipment acquires data information which is sent by the non-networked equipment and contains network identifications stored in the non-networked equipment, wherein the non-networked equipment is used for indicating a target object to interrupt the networked equipment after replacing connection information, and the target object is a user for replacing the router service set identification names or router passwords corresponding to the networked equipment and the non-networked equipment;
In the case that the network identification stored in the non-networked device contained in the data information is determined to be the same as the own network identification, the networked device transmits a first handshake frame for unicast interaction to the non-networked device;
the networked device receives a second handshake frame which is sent by the non-networked device after the first handshake frame meets 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, wherein the target connection information is used for indicating the encrypted current connection information of the networked equipment.
8. The method according to claim 7, wherein, in case it is determined that the network identity stored in the non-networked device contained in the data information is identical to the own network identity, transmitting a first handshake frame for unicast interactions to the non-networked device comprises:
In the case that the network identity stored in the non-networked device is the same as the own network identity, determining that the non-networked device exists with a target area, and the non-networked device is allowed to perform unicast interactions;
determining authentication information to be carried according to preset conditions corresponding to 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 unique to a current handshake frame and a network identifier corresponding to a connected network device, wherein the first handshake frame corresponds to a serial number of interaction flow times currently.
9. An information synchronization system, comprising:
The networking device is used for acquiring data information which is sent by the non-networking device and contains network identifications stored in the non-networking device, wherein the non-networking device is used for indicating the device which interrupts networking after the target object changes the connection information; transmitting a first handshake frame for unicast interactions to an non-networked device included in the data information if it is determined that a network identification stored in the non-networked device is the same as a network identification of the non-networked device; receiving a second handshake frame 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, wherein the target object is a user for replacing the identifier names or router passwords of the router service sets corresponding to the networking equipment and the non-networking equipment;
An non-networked device for broadcasting data information including a network identification stored in the non-networked device to a target area in the case that the networked device exists in the target area, wherein the networked device is used for indicating a device that is re-networked after the target object changes the connection information; and receiving a first handshake frame sent by the networked device, and sending a second handshake frame containing a preset network key to the networked device 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.
10. A computer-readable storage medium, characterized in that the storage medium has stored therein a computer program, wherein the computer program is arranged to execute the method of any of the claims 1 to 8 when run.
11. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of the claims 1 to 8.
CN202110867178.6A 2021-07-29 2021-07-29 Information synchronization method and system, storage medium and electronic device Active CN113613251B (en)

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 CN113613251A (en) 2021-11-05
CN113613251B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113613251B (en) * 2021-07-29 2024-05-24 青岛海尔科技有限公司 Information synchronization method and system, storage medium and electronic device
CN114339591B (en) * 2021-12-09 2024-03-08 青岛海信移动通信技术有限公司 Method and related device for positioning based on ultra-wideband chip

Citations (7)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
WO2023005410A1 (en) 2023-02-02
CN113613251A (en) 2021-11-05

Similar Documents

Publication Publication Date Title
CN106332224B (en) Equipment network distribution 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
CN113613251B (en) Information synchronization method and system, storage medium and electronic device
CN112671904B (en) Method and device for transmitting equipment state information, storage medium and electronic device
CN109890029B (en) Automatic network distribution method of intelligent wireless equipment
CN106464556B (en) Node network access method, device and system
CN108541077B (en) WPS-based rapid network distribution method and system for intelligent hardware equipment
CN112637931A (en) Method and device for establishing network connection
CN112040484A (en) Password updating method and device, storage medium and electronic device
CN106255177A (en) The transmission method of a kind of equipment state and device
CN114189863B (en) Binding method and device of intelligent door lock, storage medium and electronic device
CN112738785B (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN113595992B (en) Secure binding method and system, storage medium and electronic device
US20190261436A1 (en) Device networking method, apparatus and system
CN113259918A (en) Equipment binding method and system
CN112637221A (en) Equipment control method and device
CN106453400B (en) A kind of authentication method and system
CN111787514A (en) Method and device for acquiring equipment control data, storage medium and electronic device
CN114205378B (en) Network distribution method and device of Internet of things equipment, storage medium and electronic device
CN111741514B (en) Network access information configuration method and device
CN114125052B (en) Target operation execution method and device, storage medium and electronic device
CN113873505B (en) Method and system for automatically discovering distribution network by intelligent terminal
CN115720192A (en) Network distribution method and system of equipment, storage medium and electronic device

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