WO2023005410A1 - 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
WO2023005410A1
WO2023005410A1 PCT/CN2022/096410 CN2022096410W WO2023005410A1 WO 2023005410 A1 WO2023005410 A1 WO 2023005410A1 CN 2022096410 W CN2022096410 W CN 2022096410W WO 2023005410 A1 WO2023005410 A1 WO 2023005410A1
Authority
WO
WIPO (PCT)
Prior art keywords
handshake
information
handshake frame
frame
network
Prior art date
Application number
PCT/CN2022/096410
Other languages
French (fr)
Chinese (zh)
Inventor
樊明
Original Assignee
青岛海尔科技有限公司
海尔智家股份有限公司
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 青岛海尔科技有限公司, 海尔智家股份有限公司 filed Critical 青岛海尔科技有限公司
Publication of WO2023005410A1 publication Critical patent/WO2023005410A1/en

Links

Images

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

Definitions

  • the present disclosure relates to the communication field, and in particular, to an information synchronization method and system, a storage medium, and an electronic device.
  • smart home appliances are connected to the home network through WIFI, and the SSID (Service set Identifier, SSID for short) name and password of the router in the home are usually sent to the smart home appliances through network distribution operations.
  • SSID Service set Identifier
  • the user changes the SSID name of the router or the password of the router, it is necessary to re-distribute the network for each smart home appliance, which will be a time-consuming and laborious task, especially when there are many smart home appliances in the home.
  • a router-based WIFI information self-synchronization scheme is provided: the main step is to establish a synchronization mechanism between the router and the device when the SSID name or password of the router changes, so that the device can automatically synchronize from the router without reconfiguring the network.
  • the main step is to establish a synchronization mechanism between the router and the device when the SSID name or password of the router changes, so that the device can automatically synchronize from the router without reconfiguring the network.
  • Embodiments of the present disclosure provide an information synchronization method and system, a storage medium, and an electronic device, so as to at least solve the problems in the related art that the synchronization of WIFI information depends on routers, and the self-synchronization of WIFI information between devices cannot be realized.
  • an information synchronization method including: broadcasting data information including network identifiers stored in unconnected devices to the target area when there are network-connected devices in the target area, Wherein, the network-connected device is used to instruct the target object to re-connect to the network after changing the connection information; receive the first handshake frame for unicast interaction fed back by the network-connected device according to the data information; When the first handshake frame meets the preset condition, send the second handshake frame containing the preset network key to the networked device, so as to obtain the network key determined by the networked device according to the second handshake frame
  • the target connection information wherein the target connection information is used to indicate the encrypted current connection information of the connected device.
  • another method for synchronizing information including: obtaining data information sent by an unconnected device and including a network identifier stored in the unconnected device, wherein the unconnected device is used to Instructing the target object to interrupt the network-connected device after changing the connection information; when it is determined that the network identifier stored in the unconnected device contained in the data information is the same as its own network identifier, send a message to the unconnected device to The first handshake frame of unicast interaction; receiving the second handshake frame for indicating synchronization sent by the unconnected device after determining that the first handshake frame meets the preset condition; according to the second handshake frame to the current
  • the connection information is encrypted to obtain the target connection information for synchronization.
  • an information synchronization system including: a network-connected device, configured to obtain data information including a network identifier stored in the non-networked device sent by the non-networked device, wherein the The non-networked device is used to instruct the target object to interrupt the networked device after changing the connection information; when it is determined that the network identifier stored in the non-networked device contained in the data information is the same as its own network identifier, send the The non-networked device sends a first handshake frame for unicast interaction; receives the second handshake frame sent by the non-networked device for indicating synchronization, and encrypts the current connection information according to the second handshake frame, to Obtain the target connection information for synchronization; the unconnected device is set to broadcast to the target area the data information containing the network identification stored in the unconnected device when there is a connected device in the target area, wherein, The network-connected device is used to instruct the
  • a storage medium is further provided, and a computer program is stored in the storage medium, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
  • an electronic device including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to perform any of the above Steps in the method examples.
  • the data information including the network identifier stored in the unconnected device is broadcast to the target area, wherein the networked device is set to instruct the target object to change the connection information and restart
  • the device connected to the network receives the first handshake frame for unicast interaction fed back by the connected device according to the data information; when the first handshake frame meets the preset conditions, sends a message containing the preset network password to the connected device
  • the second handshake frame of the key to obtain the target connection information determined by the networked device according to the second handshake frame, wherein the target connection information is used to indicate the encrypted current connection information of the networked device, that is, through the
  • the handshake frame interaction between connected devices and unconnected devices performs autonomous synchronization of replacement connection information, and then realizes the synchronization and interaction of connection information between devices.
  • FIG. 1 is a hardware structural block diagram of a device terminal of an information synchronization method according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart (1) of an information synchronization method according to an embodiment of the present disclosure
  • FIG. 3 is a flowchart (2) of an information synchronization method according to an embodiment of the present disclosure
  • Fig. 4 is an interactive schematic diagram of an information synchronization method according to an optional embodiment of the present disclosure
  • Fig. 5 is a structural block diagram of an information synchronization system according to an embodiment of the disclosure.
  • FIG. 1 is a block diagram of a hardware structure of a device terminal according to an information synchronization method according to an embodiment of the present disclosure.
  • the device terminal may include one or more (only one is shown in Figure 1) processors 102 (processors 102 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA) and a memory 104 for storing data.
  • processors 102 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA
  • memory 104 for storing data.
  • the above-mentioned device terminal may also include a transmission device 106 and an input and output device 108 for communication functions.
  • the structure shown in FIG. 1 is only for illustration, and it does not limit the structure of the above-mentioned device terminal.
  • the device terminal may also include more or less components than those shown in FIG. 1 , or have a different configuration with functions equivalent to those shown in FIG. 1 or more functions than those shown in FIG. 1 .
  • the memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the information synchronization method in the embodiments of the present disclosure, and the processor 102 executes various functions by running the computer programs stored in the memory 104 A functional application and data processing, that is, to realize 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.
  • the memory 104 may further include a memory that is remotely located relative to the processor 102, and these remote memories may be connected to the device terminal through a network. Examples of the aforementioned 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 to receive or transmit data via a network.
  • the specific example of the above network may include a wireless network provided by the communication provider of the device terminal.
  • the transmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.
  • RF Radio Frequency
  • FIG. 2 is a flowchart (1) of an information synchronization method according to an embodiment of the present disclosure. The process includes the following steps:
  • Step S202 if there is a networked device in the target area, broadcast to the target area data information including the network identification stored in the unconnected device, wherein the networked device is used to instruct the target object to change the connection Devices that reconnect to the Internet after the message;
  • the above-mentioned network identifier usually indicates the network identifier corresponding to the last connected network of the unconnected device, or other network identifiers stored in the unconnected device.
  • Step S204 receiving the first handshake frame for unicast interaction fed back by the connected device according to the data information
  • Step S206 when the first handshake frame meets a preset condition, send a second handshake frame including a preset network key to the connected device, so as to obtain the network-connected device according to the first handshake frame.
  • the data information containing the network identification stored in the unconnected device is broadcast to the target area, wherein the networked device is used to instruct the target object to change the connection information and restart
  • the device connected to the network receives the first handshake frame for unicast interaction fed back by the connected device according to the data information; when the first handshake frame meets the preset conditions, sends a message containing the preset network password to the connected device
  • the second handshake frame of the key to obtain the target connection information determined by the networked device according to the second handshake frame, wherein the target connection information is used to indicate the encrypted current connection information of the networked device, that is, through the
  • the handshake frame interaction between connected devices and unconnected devices performs autonomous synchronization of replacement connection information, and then realizes the synchronization and interaction of connection information between devices.
  • handshake frame is a data frame used to carry data indication information, and may carry different data information according to actual conditions.
  • step S206 there are many ways to realize the above step S206.
  • the authentication information includes: identifying the uniqueness of the current handshake frame The first random value, the network identifier corresponding to the connected device; if the network identifier corresponding to the connected device in the authentication information is consistent with the network identifier stored in the unconnected device, according to the preset It is assumed that the network key is combined with the first random value to determine a first key for encrypting the connection information to be synchronized, wherein the connection information includes at least one of the following: information of router service set identification, information of router password; Packing the authentication information and the first key into data, and adding the message integrity verification identifier and the second random value, so as to determine to send the second message containing the preset network key to the networked device.
  • the authentication information includes: identifying the uniqueness of the current handshake frame The first random value, the network identifier corresponding to the connected device; if the network identifier corresponding to the connected device in the authentication information is consistent with the network
  • the connected device when the unconnected device searches for the connected device, the connected device will send the first handshake frame carrying authentication information to the unconnected device after the verification is passed to indicate the synchronization of the subsequent connection authentication, and then pass the first handshake frame.
  • a handshake frame stops the channel polling operation of the unconnected device, and the channel is fixed, and the subsequent interactive channel has been determined.
  • the unconnected device based on the received first handshake frame, according to its corresponding preset network key , and the determined second random value used to indicate the uniqueness of the second handshake frame to be sent, and increase the integrity check identifier of the message used to verify the sender of the data packet (that is, the unconnected device), and then determine the The second handshake frame used for handshake interactions.
  • the method further includes: the authentication information also includes a sequence number used to indicate the number of interaction processes corresponding to the first handshake frame In the case of , determine whether there is a match between the multiple target sequence numbers corresponding to the multiple first handshake frames that have been received and the sequence number; in the case that the multiple target sequence numbers do not match the sequence number, Determine that the current first handshake frame is not a repeated first handshake frame; in the case where the multiple target sequence numbers match the sequence numbers, determine that the current first handshake frame is a repeated first handshake frame frame, the handshake process corresponding to the first handshake frame ends.
  • the first handshake frame in the interaction between the unconnected device and the connected device uses the serial number to identify the interaction process.
  • the serial number is the same, it proves that the corresponding interaction process is repeated. It is proved that there is no repeated interaction process in the interaction process corresponding to the current first handshake frame.
  • the method further includes: determining that the unconnected device is waiting for a turn Inquiry channel list, wherein, the channel list is used to indicate the communication channel of the non-networked device and the number of the channel; determine the time period for broadcasting to the target area according to the channel list; in the When the information indicating that the channel verification is successful is obtained within the time period, stop broadcasting to the target area, wherein the successful channel verification is used to indicate that the channel has received the interaction information sent by the networked device, and the interaction information includes First handshake frame.
  • the channel may be different from the original one, and because routers and home appliances usually use the 2.4G frequency band for wireless interaction, unconnected devices need to poll on 13 channels to Discover devices connected to the network. Initially starts with channel 1, subsequent starts with the next channel where polling stops. Stay on each channel for 3 seconds and send 5 frames with an interval of 512 milliseconds.
  • the unconnected device receives the handshake frame that passed the verification for the first time, it stops channel polling, fixes the channel carried in the handshake step1 frame, and analyzes the data transmitted in the channel to determine the corresponding content of the handshake frame .
  • the method when there is a networked device in the target area, before broadcasting to the target area the data information including the network identifier stored in the unconnected device, the method further includes: determining a preset A filtering list, wherein the filtering list is used to indicate that the connection information currently used by the networked device cannot be used synchronously; in the case that the networked device existing in the filtering list sends the first handshake frame, prohibit Execute the operation of generating the second handshake frame.
  • the network-connected device is ignored.
  • the connection information of network-connected devices that have been added to the filter list will not be synchronized to unconnected devices.
  • the unconnected device is prohibited from generating the corresponding second handshake frame if the verification is successful, and the interaction process between the unconnected device and the network-connected device that has been added to the filter list is ended.
  • the method further includes: when there are multiple And when each of the networked devices feeds back the first handshake frame, determine the timing list according to the time point when each of the networked devices feeds back the first handshake frame; perform the sequence according to the sequence of the timing list Selective verification of whether the first handshake frame meets the preset conditions.
  • an unconnected device may receive first handshake frames from multiple connected devices.
  • the communication of one or more networked devices can be maintained, but the communication with each networked device can be tried up to 3 times. Therefore, the order of selecting authentication needs to be determined according to the feedback time point corresponding to the first handshake frame .
  • FIG. 3 is a flow chart (2) of an information synchronization method according to an embodiment of the present disclosure. The process includes the following steps:
  • Step S302 obtaining the data information including the network identification stored in the unconnected device sent by the unconnected device, wherein the unconnected device is used to instruct the target object to change the connection information and interrupt the connected device;
  • Step S304 when it is determined that the network identifier stored in the unconnected device contained in the data information is the same as its own network identifier, sending a first handshake frame for unicast interaction to the unconnected device;
  • Step S306 receiving a second handshake frame for indicating synchronization sent by the unconnected device after determining that the first handshake frame meets a preset condition
  • Step S308 encrypting the current connection information according to the second handshake frame to obtain target connection information for synchronization.
  • the data information containing the network identifier stored in the unconnected device sent by the unconnected device is obtained, wherein the unconnected device is used to instruct the target object to change the connection information after the device that interrupts the network connection; after determining the data information
  • the first handshake frame for unicast interaction is sent to the unconnected device;
  • the receiving unconnected device determines that the first handshake frame conforms to The second handshake frame used to indicate synchronization is sent after the preset conditions;
  • the current connection information is encrypted according to the second handshake frame to obtain the target connection information for synchronization, that is, the connection between the connected device and the unconnected Handshake frame interaction between network devices, automatic synchronization of replacement connection information, and then realization of synchronous interaction of connection information between devices.
  • the self-synchronization of WIFI information ensures the synchronization of the connection information of the device through other connected devices after the connection information corresponding to the router changes, improves the flexibility of
  • a handshake frame including: when the network identifier stored in the unconnected device is the same as its own network identifier, it is determined that the unconnected device exists in the target area, and the unconnected device is allowed to execute a single broadcast interaction; determine the authentication information to be carried according to the preset conditions corresponding to the unicast interaction, so as to determine the corresponding first handshake frame, wherein the authentication information includes: a first random value identifying the uniqueness of the current handshake frame , the working channel connecting the networked device to the router, the network identifier corresponding to the networked device, and the serial number of the number of interaction processes corresponding to the current first handshake frame.
  • a method for self-synchronization of WIFI information is mainly provided.
  • the user changes the SSID name of the router or the password of the router, it only needs to re-distribute the network for one smart home appliance, and other smart home appliances
  • the device can perform self-synchronization of WIFI information through the synchronization mechanism between smart home appliances.
  • Network-connected devices smart home appliances that reconnect to the home network after the user changes the router SSID name or changes the router password. Ways of reconnecting to the network include but are not limited to device network configuration, the ways described in optional embodiments of the present disclosure, and the like.
  • Unconnected devices After the user changes the SSID name of the router or the password of the router, it can be connected to the home network, but now the smart home appliance cannot be connected to the network normally.
  • Network address Network ID ID of the home network. It is usually set to the device during the device network configuration and binding stage. The same home network has the same Network ID.
  • Network Key Network Key In a home network, smart home appliances bound by the user's distribution network can share a Network Key.
  • Step 1 Search for frames of connected devices.
  • Sending Sending from devices not connected to the Internet, in the form of broadcasting.
  • Step 2 handshake step1 frame
  • Network ID an increasing serial number, which is different for each handshake step1 frame, a random number Nonce-A, which is different for each handshake step1 frame, working channel, and the working channel connected to the router.
  • Receiving Received by an unconnected device, if the Network ID is the same as its own, it will send a handshake step2 frame.
  • Step 3 3) Handshake step2 frame
  • Network ID Network ID
  • serial number serial number in handshake step1 frame
  • a random number Nonce-B each handshake step2 frame is different
  • MIC Network Key network key
  • Nonce-A Network Key network key
  • the unconnected device when the unconnected device sends the handshake step2 frame to the connected device, in order to ensure the integrity of the message, it uses the random number A in the received handshake step1 frame and the network key stored by itself through the preset hash algorithm. The calculation determines the hash value corresponding to the corresponding MIC, and then the connected device can analyze the received MIC to determine that the handshake step2 frame is sent by the unconnected device that received the handshake step1 frame, ensuring the consistency of the process and security.
  • Receiving Received by the connected device, if the Network ID is the same as its own, verify the serial number and MIC, then send the handshake step3 frame.
  • Step 4 handshake step3 frame
  • Network ID Network ID
  • serial number the serial number in the handshake step1 frame
  • encrypted SSID and password the key uses SHA256 (Network Key, Nonce-A, Nonce-B); MIC (Messages Integrity Check, message integrity check, MIC for short), SHA256 (Network Key, Nonce-B);
  • the handshake step3 frame is sent on the basis of receiving the handshake step2 frame.
  • the hash algorithm is used to determine the corresponding hash value of the corresponding MIC (that is, SHA256 (Network Key, Nonce-B)), and then the unconnected device can analyze the received MIC to determine that the handshake step3 frame was received by
  • the handshake step2 frame is sent by the connected device, and in order to make the SSID and password of the router more secure, the random value carried in the handshake frame of all interactions before the handshake step3 frame is combined with the network key stored by itself to generate for encryption
  • the delivery key of the connection information that is, SHA256 (Network Key, Nonce-A, Nonce-B)).
  • Unconnected devices receive, if the Network ID is the same as its own, verify the serial number and MIC, decrypt the SSID and password, and complete WIFI information synchronization.
  • an operation mode of an unconnected device including the following content:
  • Step S502 Determine the start time, when each time the original SSID and password fail to connect to the router. Unconnected devices enable the self-synchronization interaction function with connected devices.
  • Step S504 After the user changes the SSID name or password, the channel may be different from the original one, so the unconnected device needs to poll on 13 channels to find the connected device. Initially starts with channel 1, subsequent starts with the next channel where polling stops. Stay on each channel for 3 seconds and send 5 frames with an interval of 512 milliseconds.
  • Step S506 Discover the connected devices through the interaction process and send out the operation information for synchronizing WIFI information.
  • the non-networked device when the non-networked device receives the handshake step1 frame that passes the verification for the first time, it stops channel polling and fixes the channel carried in the handshake step1 frame. And it should be noted that each communication takes up to 5 seconds, starting from receiving the handshake step1 frame.
  • a device not connected to the network may receive handshake step1 frames from multiple devices connected to the network. According to the situation of system resources, the communication of one or more networked devices can be maintained, but the communication with each networked device can be tried up to 3 times.
  • the network-connected device is ignored.
  • selection can be made according to the order in which the handshake step1 frames are received.
  • Step S508 After obtaining the WIFI information, if the WIFI information is inconsistent with the saved one, record the MAC (Media Access Control Address, Media Access Control Address, MAC for short) of the networked device that sent the WIFI information, and close all Device communication, and quit the WIFI information synchronization operation, and start trying to connect to the router.
  • MAC Media Access Control Address, Media Access Control Address, MAC for short
  • Step S600 If the connection to the router is successful, save the WIFI information; otherwise, discard the WIFI information, put the corresponding network-connected device in the filter list (timeout of 10 minutes), use the original SSID and password to connect to the router, and re-trigger WIFI information synchronization operate.
  • the operation mode of the connected device includes the following content:
  • Each communication takes up to 5 seconds, starting from the first handshake step1 frame.
  • the WIFI information synchronization described in the optional embodiments of the present disclosure does not depend on the router, and only one smart home appliance needs to be re-distributed to the network, and other smart home appliances automatically complete the WIFI information synchronization.
  • the WIFI information synchronization mechanism realizes the verification of connected devices to non-connected devices through the Network Key mechanism, without the participation of the cloud; at the same time, the encrypted transmission of WIFI information is realized through the Network Key.
  • the WIFI information synchronization mechanism starts from searching for connected devices from unconnected devices, and realizes WIFI information synchronization after two interactions.
  • the normal communication of the connected devices is not affected, and the WIFI information of the non-connected devices is quickly synchronized; at the same time, the non-connected devices also set up a filtering mechanism to prevent the connected devices from transmitting wrong WIFI information.
  • the WIFI information synchronization mechanism realizes self-synchronization of one-to-one, one-to-many, many-to-one and many-to-many WIFI information. It can quickly complete the synchronization of WIFI information in the entire home network.
  • the router-based WIFI information synchronization scheme mainly depends on the limitation of the synchronization mechanism between the router and the device, so that the smart home appliances can simultaneously perform one-to-one, one-to-many, many-to-one and many-to-many
  • the WIFI information is self-synchronized.
  • WIFI information synchronization does not depend on the router or the cloud. Unconnected devices can automatically discover connected devices, unconnected devices can automatically filter connected devices, and connected devices can automatically verify unconnected devices. WIFI information synchronization does not affect the normal communication of connected devices.
  • connected devices can be used to automatically discover unconnected devices, and connected devices need to verify unconnected devices, so that unconnected devices that cannot pass the verification cannot perform WIFI information self-synchronization , and the WIFI information self-synchronization process does not require the cloud to participate, and the WIFI information self-synchronization does not affect the normal communication of connected devices, and the WIFI information (SSID and password) synchronization needs to be encrypted, which can be one-to-one, one-to-many, Many-to-one and many-to-many WIFI information is self-synchronized and does not generate too much network traffic.
  • the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation.
  • the technical solution of the present disclosure can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present disclosure.
  • FIG. 5 is a structural block diagram of an information synchronization system according to an embodiment of the present disclosure. As shown in Fig. 5, the system includes:
  • the network-connected device 52 is set to obtain the data information containing the network identification stored in the non-networked device sent by the non-networked device, wherein the non-networked device is used to instruct the target object to terminate the connection after changing the connection information.
  • network device in the case of determining that the network identifier stored in the unconnected device contained in the data information is the same as its own network identifier, sending a first handshake frame for unicast interaction to the unconnected device; receiving a second handshake frame for indicating synchronization sent by the unconnected device, and encrypting the current connection information according to the second handshake frame to obtain target connection information for synchronization;
  • the non-networked device 54 is configured to broadcast to the target area the data information containing the network identification stored in the non-networked device when there is a networked device in the target area, wherein the networked device is used for Instruct the target object to re-connect to the network after changing the connection information; receive the first handshake frame sent by the network-connected device, and send it to the network-connected device if the first handshake frame meets the preset conditions A second handshake frame containing a preset network key.
  • the data information containing the network identification stored in the unconnected device is broadcast to the target area, wherein the networked device is used to instruct the target object to change the connection information and restart
  • the device connected to the network receives the first handshake frame for unicast interaction fed back by the connected device according to the data information; when the first handshake frame meets the preset conditions, sends a message containing the preset network password to the connected device
  • the second handshake frame of the key to obtain the target connection information determined by the networked device according to the second handshake frame, wherein the target connection information is used to indicate the encrypted current connection information of the networked device, that is, through the
  • the handshake frame interaction between connected devices and unconnected devices performs autonomous synchronization of replacement connection information, and then realizes the synchronization and interaction of connection information between devices.
  • the above handshake frame is a data frame used to carry data indication information, and may carry different data information according to actual conditions. Monitor and search for connected devices on the channel connected to the router, without affecting the connection with the router or normal communication.
  • the above system further includes: a router configured to provide a network for connected devices and non-connected devices.
  • the above-mentioned non-networked device is further configured to determine the authentication information carried in the first handshake frame, wherein the authentication information includes: a serial number indicating the number of handshake frames, identifying the uniqueness of the current handshake frame
  • the first random value of the networked device, the working channel connected to the router, and the network ID corresponding to the networked device; the network ID corresponding to the networked device in the authentication information is the same as the unconnected device
  • the first key used to encrypt the connection information to be synchronized is determined according to the preset network key combined with the first random value, wherein the connection information includes at least one of the following: The information of the router service set identification, the information of the router password; data packaging of the authentication information and the first key, and adding the message integrity verification identification and the second random value, so as to determine the information sent to the connected
  • the network device sends the second handshake frame containing the preset network key.
  • the connected device when the unconnected device searches for the connected device, the connected device will send the first handshake frame carrying authentication information to the unconnected device after the verification is passed to indicate the synchronization of the subsequent connection authentication, and then pass the first handshake frame.
  • a handshake frame stops the channel polling operation of the unconnected device, and the channel is fixed, and the subsequent interactive channel has been determined.
  • the unconnected device based on the received first handshake frame, according to its corresponding preset network key , and the determined second random value used to indicate the uniqueness of the second handshake frame to be sent, and increase the integrity check identifier of the message used to verify the sender of the data packet (that is, the unconnected device), and then determine the The second handshake frame used for handshake interactions.
  • the above-mentioned non-networked device is further configured to determine that the received Whether there is a match between the multiple target sequence numbers corresponding to the multiple first handshake frames and the sequence number; if there is no match between the multiple target sequence numbers and the sequence number, determine the current first handshake frame It is not a repeated first handshake frame; in the case where the multiple target sequence numbers match the sequence number, determine that the current first handshake frame is a repeated first handshake frame, and the first handshake frame The corresponding handshake process ends.
  • the first handshake frame in the interaction between the unconnected device and the connected device uses the serial number to identify the interaction process.
  • the serial number is the same, it proves that the corresponding interaction process is repeated. It is proved that there is no repeated interaction process in the interaction process corresponding to the current first handshake frame.
  • the aforementioned unconnected device is further configured to determine a channel list to be polled by the unconnected device, wherein the channel list is used to indicate the communication channel of the unconnected device and the The number of channels; determine the time period for broadcasting to the target area according to the channel list; and stop broadcasting to the target area when the indication information indicating that the channel verification is successful is obtained within the time period, wherein, The successful channel verification is used to indicate that the channel has received the interaction information sent by the networked device, and the interaction information includes the first handshake frame.
  • the channel may be different from the original one, and because routers and home appliances usually use the 2.4G frequency band for wireless interaction, unconnected devices need to poll on 13 channels to Discover devices connected to the network. Initially starts with channel 1, subsequent starts with the next channel where polling stops. Stay on each channel for 3 seconds and send 5 frames with an interval of 512 milliseconds.
  • the unconnected device receives the handshake frame that passed the verification for the first time, it stops channel polling, fixes the channel carried in the handshake step1 frame, and analyzes the data transmitted in the channel to determine the corresponding content of the handshake frame .
  • the aforementioned unconnected device is further configured to determine a preset filtering list, wherein the filtering list is used to indicate that the connection information currently used by the connected device cannot be used synchronously; When the network-connected device in the filtering list sends the first handshake frame, the operation of generating the second handshake frame is prohibited.
  • the network-connected device is ignored.
  • the connection information of network-connected devices that have been added to the filter list will not be synchronized to unconnected devices.
  • the unconnected device is prohibited from generating the corresponding second handshake frame if the verification is successful, and the interaction process between the unconnected device and the network-connected device that has been added to the filter list is ended.
  • the above-mentioned non-networked device is further configured to, if there are multiple connected devices and each of the connected devices feeds back the first handshake frame, according to each The timing list is determined at the time point when the networked device feeds back the first handshake frame; and the selection verification of whether the first handshake frame meets the preset condition is performed according to the order of the timing list.
  • an unconnected device may receive first handshake frames from multiple connected devices.
  • the communication of one or more networked devices can be maintained, but the communication with each networked device can be tried up to 3 times. Therefore, the order of selecting authentication needs to be determined according to the feedback time point corresponding to the first handshake frame .
  • the aforementioned network-connected device is further configured to determine that the non-networked device exists in the target area when the network identifier stored in the unconnected device is the same as its own network identifier, And the unconnected device is allowed to perform unicast interaction; determine the authentication information to be carried according to the preset conditions corresponding to the unicast interaction, so as to determine the corresponding first handshake frame, wherein the authentication information includes: The first random value identifying the uniqueness of the current handshake frame, the working channel connected to the router by the networked device, and the serial number of the number of interaction processes corresponding to the current first handshake frame.
  • orientations or positional relationships indicated by the terms “center”, “upper”, “lower”, “front”, “rear”, “left”, “right” etc. are based on The orientations or positional relationships shown in the drawings are only for the convenience of describing the present disclosure and simplifying the description, and do not indicate or imply that the referred devices or components must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as Limitations on this Disclosure.
  • first and second are used for descriptive purposes only, and should not be understood as indicating or implying relative importance.
  • connection should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection , or integrally connected; may be mechanically connected, may also be electrically connected; may be directly connected, may also be indirectly connected through an intermediary, and may be internal communication between two components.
  • an element is referred to as being “fixed on” or “disposed on” another element, it can be directly on the other element or intervening elements may also be present.
  • a component is said to be “connected” to another element, it may be directly connected to the other element or intervening elements may also be present.
  • the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.
  • Embodiments of the present disclosure also provide a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
  • the above-mentioned storage medium may be configured to store a computer program for performing the following steps:
  • the above-mentioned storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as Various media that can store computer programs such as RAM), mobile hard disk, magnetic disk or optical disk.
  • Embodiments of the present disclosure also provide an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
  • the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
  • the above-mentioned processor may be configured to execute the following steps through a computer program:
  • each module or each step of the above-mentioned disclosure can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices above, in an exemplary embodiment, they may be implemented in program code executable by a computing device, thus, they may be stored in a storage device to be executed by a computing device, and in some cases, may be different from The steps shown or described here are performed sequentially, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module. As such, the present disclosure is not limited to any specific combination of hardware and software.

Abstract

The present disclosure provides an information synchronization method and system, a storage medium, and an electronic device. The method comprises: when a networked device is present in a target region, broadcasting data information containing a network identifier stored in a non-networked device to the target region, wherein the networked device is used to indicate a re-networked device once a target object replaces connection information; receiving a first handshake frame that is used for a unicast interaction and that is fed back by the networked device according to the data information; when the first handshake frame meets a preset condition, sending a second handshake frame containing a preset network key to the networked device so as to obtain target connection information determined by the networked device according to the second handshake frame, wherein the target connection information is used to indicate current connection information of an encrypted networked device.

Description

信息同步方法及系统、存储介质、电子装置Information synchronization method and system, storage medium, electronic device
本公开要求于2021年7月29日提交中国专利局、申请号为202110867178.6、发明名称“信息同步方法及系统、存储介质、电子装置”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of the Chinese patent application with the application number 202110867178.6 and the title of the invention "information synchronization method and system, storage medium, electronic device" submitted to the China Patent Office on July 29, 2021, the entire contents of which are incorporated by reference in In this disclosure.
技术领域technical field
本公开涉及通信领域,具体而言,涉及一种信息同步方法及系统、存储介质、电子装置。The present disclosure relates to the communication field, and in particular, to an information synchronization method and system, a storage medium, and an electronic device.
背景技术Background technique
在智慧家庭中,智能家电设备通过WIFI接入到家庭网络中,通常是通过配网操作将家庭内路由器的SSID(Service set Identifier,服务集标识,简称SSID)名称和密码发送给智能家电设备。当用户更换路由器SSID名称或者更换路由器的密码时,就需要重新对每一台智能家电设备重新进行配网操作,这将是一个费时费力的工作,特别是家庭内的智能家电设备比较多时。In a smart home, smart home appliances are connected to the home network through WIFI, and the SSID (Service set Identifier, SSID for short) name and password of the router in the home are usually sent to the smart home appliances through network distribution operations. When the user changes the SSID name of the router or the password of the router, it is necessary to re-distribute the network for each smart home appliance, which will be a time-consuming and laborious task, especially when there are many smart home appliances in the home.
相关技术中,提供了一种基于路由器的WIFI信息自同步方案:主要步骤是当路由器的SSID名称或者密码发生变化,路由器和设备之间建立同步机制,使设备无需重新配网就可以自动从路由器获得新的WIFI信息,但是由于上述同步机制中路由器的参与是不可或缺的,不同厂家之间的路由器根设备不能很好的兼容,因此,难以实现互联互通。In the related technology, a router-based WIFI information self-synchronization scheme is provided: the main step is to establish a synchronization mechanism between the router and the device when the SSID name or password of the router changes, so that the device can automatically synchronize from the router without reconfiguring the network. Obtain new WIFI information, but because the participation of routers in the above synchronization mechanism is indispensable, router root devices from different manufacturers cannot be well compatible, so it is difficult to achieve interconnection.
针对相关技术中,WIFI信息的同步依赖于路由器,无法实现设备之间的WIFI信息自同步等问题,尚未提出有效的技术方案。In the related technology, the synchronization of WIFI information depends on routers, and the self-synchronization of WIFI information between devices cannot be realized, and no effective technical solution has been proposed.
发明内容Contents of the invention
本公开实施例提供了一种信息同步方法及系统、存储介质、电子装置,以至少解决相关技术中,WIFI信息的同步依赖于路由器,无法实现设备之间的WIFI信息自同步等问题。Embodiments of the present disclosure provide an information synchronization method and system, a storage medium, and an electronic device, so as to at least solve the problems in the related art that the synchronization of WIFI information depends on routers, and the self-synchronization of WIFI information between devices cannot be realized.
根据本公开的一个实施例,提供了一种信息同步方法,包括:在目标区域存在已连网设备的情况下,向所述目标区域广播包含未连网设备中存储的网络标识的数据信息,其中,所述已连网设备用于指示目标对象更换连接信息后重新连网的设备;接收所述已连网设备根据所述数据信息反馈的用于单播交互的第一握手帧;在所述第一握手帧符合预设条件的情况下,向所述已连网设备发送包含预设网络密钥的第二握手帧,以获取所述已连网设备根据所述第二握手帧确定的目标连接信息,其中,所述目标连接信息用于指示已加密的所述已连网设备的当前连接信息。According to an embodiment of the present disclosure, an information synchronization method is provided, including: broadcasting data information including network identifiers stored in unconnected devices to the target area when there are network-connected devices in the target area, Wherein, the network-connected device is used to instruct the target object to re-connect to the network after changing the connection information; receive the first handshake frame for unicast interaction fed back by the network-connected device according to the data information; When the first handshake frame meets the preset condition, send the second handshake frame containing the preset network key to the networked device, so as to obtain the network key determined by the networked device according to the second handshake frame The target connection information, wherein the target connection information is used to indicate the encrypted current connection information of the connected device.
根据本公开的一个实施例,提供了另一种信息同步方法,包括:获取未连网设备发送的包含未连网设备中存储的网络标识的数据信息,其中,所述未连网设备用于指示目标对象更换连接信息后中断连网的设备;在确定所述数据信息中包含的未连网设备中存储的网络标识与自身网络标识相同的情况下,向所述未连网设备发送用于单播交互的第一握手帧;接收所述未连网设备在确定所述第一握手帧符合预设条件之后发送的用于指示同步的第二握手帧;根据所述第二握手帧对当前连接信息进行加密,以得到用于同步的目标连接信息。According to an embodiment of the present disclosure, another method for synchronizing information is provided, including: obtaining data information sent by an unconnected device and including a network identifier stored in the unconnected device, wherein the unconnected device is used to Instructing the target object to interrupt the network-connected device after changing the connection information; when it is determined that the network identifier stored in the unconnected device contained in the data information is the same as its own network identifier, send a message to the unconnected device to The first handshake frame of unicast interaction; receiving the second handshake frame for indicating synchronization sent by the unconnected device after determining that the first handshake frame meets the preset condition; according to the second handshake frame to the current The connection information is encrypted to obtain the target connection information for synchronization.
根据本公开的另一个实施例,提供了一种信息同步系统,包括:已连网设备,设置为获取未连网设备发送的包含未连网设备中存储的网络标识的数据信息,其中,所述未连网设备用于指示目标对象更换连接信息后中断连网的设备;在确定所述数据信息中包含的未连网设备中存储的网络标识与自身网络标识相同的情况下,向所述未连网设备发送用于单播交互的第一握手帧;接收所述未连网设备发送的用于指示同步的第二握手帧,根据所述第二握手帧对当前连接信息进行加密,以得到用于同步的目标连接信息;未连网设备,设置为在目标区域存在已连网设备的情况下,向所述目标区域广播包含未连网设备中存储的网络标识的数据信息,其中,所述已连网设备用于指示目标对象更换连接信息后重新连网的设备;接收所述已连网设备发送的第一握手帧,在所述第一握手帧符合预设条件的情况下,向所述已连网设备发送包含预设网络密钥的第二握手帧。According to another embodiment of the present disclosure, an information synchronization system is provided, including: a network-connected device, configured to obtain data information including a network identifier stored in the non-networked device sent by the non-networked device, wherein the The non-networked device is used to instruct the target object to interrupt the networked device after changing the connection information; when it is determined that the network identifier stored in the non-networked device contained in the data information is the same as its own network identifier, send the The non-networked device sends a first handshake frame for unicast interaction; receives the second handshake frame sent by the non-networked device for indicating synchronization, and encrypts the current connection information according to the second handshake frame, to Obtain the target connection information for synchronization; the unconnected device is set to broadcast to the target area the data information containing the network identification stored in the unconnected device when there is a connected device in the target area, wherein, The network-connected device is used to instruct the target object to re-connect to the network after changing the connection information; receiving the first handshake frame sent by the network-connected device, and if the first handshake frame meets the preset condition, Sending a second handshake frame containing a preset network key to the networked device.
根据本公开的又一个实施例,还提供了一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present disclosure, a storage medium is further provided, and a computer program is stored in the storage medium, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
根据本公开的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present disclosure, there is also provided an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to perform any of the above Steps in the method examples.
通过本公开,在目标区域存在已连网设备的情况下,向目标区域广播包含未连网设备中存储的网络标识的数据信息,其中,已连网设备设置为指示目标对象更换连接信息后重新连网的设备;接收已连网设备根据数据信息反馈的用于单播交互的第一握手帧;在第一握手帧符合预设条件的情况下,向已连网设备发送包含预设网络密钥的第二握手帧,以获取已连网设备根据第二握手帧确定的目标连接信息,其中,目标连接信息用于指示已加密的已连网设备的当前连接信息,也就是说,通过已连网设备与未连网设备之间的握手帧交互,进行更换连接信息的自主同步,继而实现设备之间的连接信息的同步交互,因此,可以解决现有技术中WIFI信息的同步依赖于路由器,无法实现设备之间的WIFI信息自同步,确保了设备在路由器对应的连接信息变更后通过其他已连接设备的进行更换连接信息的同步,提升了设备在路由器连接的灵活性,并验证了未连接设备的合法性。Through the present disclosure, when there is a networked device in the target area, the data information including the network identifier stored in the unconnected device is broadcast to the target area, wherein the networked device is set to instruct the target object to change the connection information and restart The device connected to the network; receives the first handshake frame for unicast interaction fed back by the connected device according to the data information; when the first handshake frame meets the preset conditions, sends a message containing the preset network password to the connected device The second handshake frame of the key to obtain the target connection information determined by the networked device according to the second handshake frame, wherein the target connection information is used to indicate the encrypted current connection information of the networked device, that is, through the The handshake frame interaction between connected devices and unconnected devices performs autonomous synchronization of replacement connection information, and then realizes the synchronization and interaction of connection information between devices. Therefore, it can solve the problem that the synchronization of WIFI information in the prior art depends on routers , the self-synchronization of WIFI information between devices cannot be realized, which ensures that the device can be replaced by other connected devices after the connection information corresponding to the router is changed, which improves the flexibility of the device's connection to the router and verifies that Legality of Connected Devices.
附图说明Description of drawings
此处所说明的附图用来提供对本公开的进一步理解,构成本申请的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present disclosure, and constitute a part of the present application. The schematic embodiments of the present disclosure and their descriptions are used to explain the present disclosure, and do not constitute improper limitations to the present disclosure. In the attached picture:
图1是本公开实施例的一种信息同步方法的设备终端的硬件结构框图;FIG. 1 is a hardware structural block diagram of a device terminal of an information synchronization method according to an embodiment of the present disclosure;
图2是根据本公开实施例的信息同步方法的流程图(一);FIG. 2 is a flowchart (1) of an information synchronization method according to an embodiment of the present disclosure;
图3是根据本公开实施例的信息同步方法的流程图(二);FIG. 3 is a flowchart (2) of an information synchronization method according to an embodiment of the present disclosure;
图4是根据本公开可选实施例的信息同步方法的交互示意图;Fig. 4 is an interactive schematic diagram of an information synchronization method according to an optional embodiment of the present disclosure;
图5是根据本公开实施例的信息同步系统的结构框图。Fig. 5 is a structural block diagram of an information synchronization system according to an embodiment of the disclosure.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本公开。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present disclosure will be described in detail with reference to the accompanying drawings and embodiments. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the specification and claims of the present disclosure and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.
本申请实施例所提供的方法实施例可以在计算机终端或者设备终端类似的运算装置中执行。以运行在设备终端上为例,图1是本公开实施例的一种信息同步方法的设备终端的硬件结构框图。如图1所示,设备终端可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,在一个示例性实施例中,上述设备终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述设备终端的结构造成限定。例如,设备终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示等同功能或比图1所示功能更多的不同的配置。The method embodiments provided in the embodiments of the present application may be executed in a computing device similar to a computer terminal or a device terminal. Taking running on a device terminal as an example, FIG. 1 is a block diagram of a hardware structure of a device terminal according to an information synchronization method according to an embodiment of the present disclosure. As shown in Figure 1, the device terminal may include one or more (only one is shown in Figure 1) processors 102 (processors 102 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA) and a memory 104 for storing data. In an exemplary embodiment, the above-mentioned device terminal may also include a transmission device 106 and an input and output device 108 for communication functions. Those of ordinary skill in the art may understand that the structure shown in FIG. 1 is only for illustration, and it does not limit the structure of the above-mentioned device terminal. For example, the device terminal may also include more or less components than those shown in FIG. 1 , or have a different configuration with functions equivalent to those shown in FIG. 1 or more functions than those shown in FIG. 1 .
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本公开实施例中的信息同步方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至设备终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网 及其组合。The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the information synchronization method in the embodiments of the present disclosure, and the processor 102 executes various functions by running the computer programs stored in the memory 104 A functional application and data processing, that is, to realize 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 a memory that is remotely located relative to the processor 102, and these remote memories may be connected to the device terminal through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括设备终端的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。The transmission device 106 is used to receive or transmit data via a network. The specific example of the above network may include a wireless network provided by the communication provider of the device terminal. In one example, the transmission device 106 includes a network interface controller (NIC for short), 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 (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.
在本实施例中提供了一种信息同步方法,图2是根据本公开实施例的信息同步方法的流程图(一),该流程包括如下步骤:In this embodiment, an information synchronization method is provided. FIG. 2 is a flowchart (1) of an information synchronization method according to an embodiment of the present disclosure. The process includes the following steps:
步骤S202,在目标区域存在已连网设备的情况下,向所述目标区域广播包含未连网设备中存储的网络标识的数据信息,其中,所述已连网设备用于指示目标对象更换连接信息后重新连网的设备;Step S202, if there is a networked device in the target area, broadcast to the target area data information including the network identification stored in the unconnected device, wherein the networked device is used to instruct the target object to change the connection Devices that reconnect to the Internet after the message;
需要说明的是,上述网络标识通常指示未连网设备在最近一次连接的网络所对应的网络标识,也以是未连网设备中存储的其他网络标识。It should be noted that the above-mentioned network identifier usually indicates the network identifier corresponding to the last connected network of the unconnected device, or other network identifiers stored in the unconnected device.
步骤S204,接收所述已连网设备根据所述数据信息反馈的用于单播交互的第一握手帧;Step S204, receiving the first handshake frame for unicast interaction fed back by the connected device according to the data information;
步骤S206,在所述第一握手帧符合预设条件的情况下,向所述已连网设备发送包含预设网络密钥的第二握手帧,以获取所述已连网设备根据所述第二握手帧确定的目标连接信息,其中,所述目标连接信息用于指示已加密的所述已连网设备的当前连接信息。Step S206, when the first handshake frame meets a preset condition, send a second handshake frame including a preset network key to the connected device, so as to obtain the network-connected device according to the first handshake frame. The target connection information determined by the second handshake frame, wherein the target connection information is used to indicate the encrypted current connection information of the networked device.
通过上述步骤,在目标区域存在已连网设备的情况下,向目标区域广播包含未连网设备中存储的网络标识的数据信息,其中,已连网设备用于指示目标对象更换连接信息后重新连网的设备;接收已连网设备根据数据信息反馈的用于单播交互的第一握手帧;在第一握手帧符合预设条件的情况下,向已连网设备发送包含预设网络密钥的第二握手帧,以获取已连网设备根据第二握手帧确定的目标连接信息,其中,目标连接信息用于指示已加密的已连网设备的当前连接信息,也就是说,通过已连网设备与未连 网设备之间的握手帧交互,进行更换连接信息的自主同步,继而实现设备之间的连接信息的同步交互,因此,可以解决现有技术中WIFI信息的同步依赖于路由器,无法实现设备之间的WIFI信息自同步,确保了设备在路由器对应的连接信息变更后通过其他已连接设备的进行更换连接信息的同步,提升了设备在路由器连接的灵活性,并验证了未连接设备的合法性。Through the above steps, if there is a networked device in the target area, the data information containing the network identification stored in the unconnected device is broadcast to the target area, wherein the networked device is used to instruct the target object to change the connection information and restart The device connected to the network; receives the first handshake frame for unicast interaction fed back by the connected device according to the data information; when the first handshake frame meets the preset conditions, sends a message containing the preset network password to the connected device The second handshake frame of the key to obtain the target connection information determined by the networked device according to the second handshake frame, wherein the target connection information is used to indicate the encrypted current connection information of the networked device, that is, through the The handshake frame interaction between connected devices and unconnected devices performs autonomous synchronization of replacement connection information, and then realizes the synchronization and interaction of connection information between devices. Therefore, it can solve the problem that the synchronization of WIFI information in the prior art depends on routers , the self-synchronization of WIFI information between devices cannot be realized, which ensures that the device can be replaced by other connected devices after the connection information corresponding to the router is changed, which improves the flexibility of the device's connection to the router and verifies that Legality of Connected Devices.
需要说明的是,上述握手帧是一种用于携带数据指示信息的数据帧,可以根据实际情况携带不同的数据信息。It should be noted that the above handshake frame is a data frame used to carry data indication information, and may carry different data information according to actual conditions.
上述步骤S206的实现方式有多种,在一个可选实施例中,可以通过以下方案实现:确定第一握手帧携带的认证信息,其中,所述认证信息中包括:标识当前握手帧唯一性的第一随机数值、已连网设备对应的网络标识;在所述认证信息中的所述已连网设备对应的网络标识与所述未连网设备中存储的网络标识一致的情况下,根据预设网络密钥结合所述第一随机数值确定用于加密待同步的连接信息的第一密钥,其中,所述连接信息包括以下至少之一:路由器服务集标识的信息,路由器密码的信息;将所述认证信息和所述第一密钥进行数据打包,并添加消息的完整性校验标识以及第二随机数值,以确定向所述已连网设备发送包含预设网络密钥的第二握手帧。There are many ways to realize the above step S206. In an optional embodiment, it can be realized through the following scheme: determine the authentication information carried in the first handshake frame, wherein the authentication information includes: identifying the uniqueness of the current handshake frame The first random value, the network identifier corresponding to the connected device; if the network identifier corresponding to the connected device in the authentication information is consistent with the network identifier stored in the unconnected device, according to the preset It is assumed that the network key is combined with the first random value to determine a first key for encrypting the connection information to be synchronized, wherein the connection information includes at least one of the following: information of router service set identification, information of router password; Packing the authentication information and the first key into data, and adding the message integrity verification identifier and the second random value, so as to determine to send the second message containing the preset network key to the networked device. Handshake frame.
也就是说,当未连接设备搜索到已连接设备后,已连接设备会在校验通过后,向未连接设备发送携带认证信息的用于指示后续连接认证同步的第一握手帧,进而通过第一握手帧对未连接设备的信道轮询操作进行停止,并固定信道,已确定后续的交互信道,进一步的,未连接设备基于接收到的第一握手帧,根据自身对应的预设网络密钥,以及确定出的用于指示待发送第二握手帧唯一性的第二随机数值,并增加用于验证数据包的发送者(即未连接设备)的消息的完整性校验标识,进而确定出用于握手交互的第二握手帧。That is to say, when the unconnected device searches for the connected device, the connected device will send the first handshake frame carrying authentication information to the unconnected device after the verification is passed to indicate the synchronization of the subsequent connection authentication, and then pass the first handshake frame. A handshake frame stops the channel polling operation of the unconnected device, and the channel is fixed, and the subsequent interactive channel has been determined. Further, the unconnected device based on the received first handshake frame, according to its corresponding preset network key , and the determined second random value used to indicate the uniqueness of the second handshake frame to be sent, and increase the integrity check identifier of the message used to verify the sender of the data packet (that is, the unconnected device), and then determine the The second handshake frame used for handshake interactions.
在一个示例性实施例中,确定第一握手帧携带的认证信息之后,所述 方法还包括:在所述认证信息中还包括有用于指示当前所述第一握手帧对应交互流程次数的序列号的情况下,确定已接收的多个第一握手帧对应的多个目标序列号与所述序列号是否存在匹配;在所述多个目标序列号与所述序列号不存在匹配的情况下,确定当前所述第一握手帧不为重复的第一握手帧;在所述多个目标序列号与所述序列号存在匹配的情况下,确定当前所述第一握手帧为重复的第一握手帧,所述第一握手帧对应的握手流程结束。In an exemplary embodiment, after determining the authentication information carried in the first handshake frame, the method further includes: the authentication information also includes a sequence number used to indicate the number of interaction processes corresponding to the first handshake frame In the case of , determine whether there is a match between the multiple target sequence numbers corresponding to the multiple first handshake frames that have been received and the sequence number; in the case that the multiple target sequence numbers do not match the sequence number, Determine that the current first handshake frame is not a repeated first handshake frame; in the case where the multiple target sequence numbers match the sequence numbers, determine that the current first handshake frame is a repeated first handshake frame frame, the handshake process corresponding to the first handshake frame ends.
简而言之,未连网设备与已连网设备的进行交互中的第一握手帧通过序列号进行本次交互流程的标识,当序列号相同证明对应的交互流程被重复执行,不相同则证明当前第一握手帧对应的交互流程未出现重复交互过程。In short, the first handshake frame in the interaction between the unconnected device and the connected device uses the serial number to identify the interaction process. When the serial number is the same, it proves that the corresponding interaction process is repeated. It is proved that there is no repeated interaction process in the interaction process corresponding to the current first handshake frame.
可选地,在目标区域存在已连网设备的情况下,向所述目标区域广播包含未连网设备中存储的网络标识的数据信息之后,所述方法还包括:确定未连网设备待轮询的信道列表,其中,所述信道列表用于指示所述未连网设备通信的信道以及所述信道的数量;根据所述信道列表确定向所述目标区域进行广播的时间周期;在所述时间周期内获取到信道验证成功的指示信息的情况下,停止向所述目标区域进行广播,其中,所述信道验证成功用于指示信道接收到已联网设备发送的交互信息,所述交互信息包括第一握手帧。Optionally, when there is a networked device in the target area, after broadcasting to the target area the data information including the network identifier stored in the unconnected device, the method further includes: determining that the unconnected device is waiting for a turn Inquiry channel list, wherein, the channel list is used to indicate the communication channel of the non-networked device and the number of the channel; determine the time period for broadcasting to the target area according to the channel list; in the When the information indicating that the channel verification is successful is obtained within the time period, stop broadcasting to the target area, wherein the successful channel verification is used to indicate that the channel has received the interaction information sent by the networked device, and the interaction information includes First handshake frame.
例如,目标对象更改了SSID名称或者密码后,信道可能与原来的不同,并且由于路由器以及家电设备通常使用2.4G频段进行无线交互,因此未连网设备需要在13个信道上进行轮询,以发现已入网设备。初始从信道1开始,后续从轮询停止的下一个信道开始。每个信道上停留3秒钟,发送5帧,间隔512毫秒。当未连接设备第一次收到校验通过的握手帧,停止信道轮询,固定在握手step1帧中携带的信道,并对信道中传输过来的数据进行解析,进而确定出握手帧对应的内容。For example, after the target object changes the SSID name or password, the channel may be different from the original one, and because routers and home appliances usually use the 2.4G frequency band for wireless interaction, unconnected devices need to poll on 13 channels to Discover devices connected to the network. Initially starts with channel 1, subsequent starts with the next channel where polling stops. Stay on each channel for 3 seconds and send 5 frames with an interval of 512 milliseconds. When the unconnected device receives the handshake frame that passed the verification for the first time, it stops channel polling, fixes the channel carried in the handshake step1 frame, and analyzes the data transmitted in the channel to determine the corresponding content of the handshake frame .
在一个示例性实施例中,在目标区域存在已连网设备的情况下,向所 述目标区域广播包含未连网设备中存储的网络标识的数据信息之前,所述方法还包括:确定预设的过滤名单,其中,所述过滤名单用于指示已连网设备当前使用的连接信息无法被同步使用;在存在于所述过滤名单的已入网设备发送所述第一握手帧的情况下,禁止执行生成第二握手帧的操作。In an exemplary embodiment, when there is a networked device in the target area, before broadcasting to the target area the data information including the network identifier stored in the unconnected device, the method further includes: determining a preset A filtering list, wherein the filtering list is used to indicate that the connection information currently used by the networked device cannot be used synchronously; in the case that the networked device existing in the filtering list sends the first handshake frame, prohibit Execute the operation of generating the second handshake frame.
例如,如果已入网设备在过滤名单,则忽略该已入网设备。与所有已入网设备的通信均失败后继续信道轮询。对于多个已入网设备,可以根据收到握手帧的先后顺序进行选择,并且已加入过滤名单的已入网设备的连接信息将无法同步到未连接设备上,在接收到已加入过滤名单的已入网设备发送的用于交互的第一握手帧之后,禁止未连接设备在验证成功的情况下生成对应的第二握手帧,并结束未连接设备与已加入过滤名单的已入网设备的交互流程。For example, if a network-connected device is on the filtering list, the network-connected device is ignored. Continue channel polling after communication with all networked devices fails. For multiple network-connected devices, you can select according to the order in which the handshake frames are received, and the connection information of network-connected devices that have been added to the filter list will not be synchronized to unconnected devices. After the first handshake frame sent by the device for interaction, the unconnected device is prohibited from generating the corresponding second handshake frame if the verification is successful, and the interaction process between the unconnected device and the network-connected device that has been added to the filter list is ended.
在一个示例性实施例中,接收所述已连网设备根据所述数据信息反馈的用于单播交互的第一握手帧之后,所述方法还包括:在所述已连网设备存在多个且每一个所述已连网设备都反馈第一握手帧的情况下,根据每一个所述已连网设备反馈第一握手帧的时间点确定时序列表;根据所述时序列表的先后顺序进行所述第一握手帧是否符合预设条件的选择验证。In an exemplary embodiment, after receiving the first handshake frame for unicast interaction fed back by the networked device according to the data information, the method further includes: when there are multiple And when each of the networked devices feeds back the first handshake frame, determine the timing list according to the time point when each of the networked devices feeds back the first handshake frame; perform the sequence according to the sequence of the timing list Selective verification of whether the first handshake frame meets the preset conditions.
例如,未连网设备可能会收到多个已入网设备的第一握手帧。根据系统资源的情况,可以维护一到多个已入网设备的通信,但与每个已入网设备通信最多尝试3次,因此,需要根据第一握手帧对应的反馈时间点,确定选择认证的次序。For example, an unconnected device may receive first handshake frames from multiple connected devices. According to the situation of system resources, the communication of one or more networked devices can be maintained, but the communication with each networked device can be tried up to 3 times. Therefore, the order of selecting authentication needs to be determined according to the feedback time point corresponding to the first handshake frame .
在本实施例中提供了另一种信息同步方法,图3是根据本公开实施例的信息同步方法的流程图(二),该流程包括如下步骤:Another information synchronization method is provided in this embodiment. FIG. 3 is a flow chart (2) of an information synchronization method according to an embodiment of the present disclosure. The process includes the following steps:
步骤S302,获取未连网设备发送的包含未连网设备中存储的网络标识的数据信息,其中,所述未连网设备用于指示目标对象更换连接信息后中断连网的设备;Step S302, obtaining the data information including the network identification stored in the unconnected device sent by the unconnected device, wherein the unconnected device is used to instruct the target object to change the connection information and interrupt the connected device;
步骤S304,在确定所述数据信息中包含的未连网设备中存储的网络标识与自身网络标识相同的情况下,向所述未连网设备发送用于单播交互 的第一握手帧;Step S304, when it is determined that the network identifier stored in the unconnected device contained in the data information is the same as its own network identifier, sending a first handshake frame for unicast interaction to the unconnected device;
步骤S306,接收所述未连网设备在确定所述第一握手帧符合预设条件之后发送的用于指示同步的第二握手帧;Step S306, receiving a second handshake frame for indicating synchronization sent by the unconnected device after determining that the first handshake frame meets a preset condition;
步骤S308,根据所述第二握手帧对当前连接信息进行加密,以得到用于同步的目标连接信息。Step S308, encrypting the current connection information according to the second handshake frame to obtain target connection information for synchronization.
通过上述步骤,获取未连网设备发送的包含未连网设备中存储的网络标识的数据信息,其中,未连网设备用于指示目标对象更换连接信息后中断连网的设备;在确定数据信息中包含的未连网设备中存储的网络标识与自身网络标识相同的情况下,向未连网设备发送用于单播交互的第一握手帧;接收未连网设备在确定第一握手帧符合预设条件之后发送的用于指示同步的第二握手帧;根据第二握手帧对当前连接信息进行加密,以得到用于同步的目标连接信息,也就是说,通过已连网设备与未连网设备之间的握手帧交互,进行更换连接信息的自主同步,继而实现设备之间的连接信息的同步交互,因此,可以解决现有技术中WIFI信息的同步依赖于路由器,无法实现设备之间的WIFI信息自同步,确保了设备在路由器对应的连接信息变更后通过其他已连接设备的进行更换连接信息的同步,提升了设备在路由器连接的灵活性,并验证了未连接设备的合法性。Through the above steps, the data information containing the network identifier stored in the unconnected device sent by the unconnected device is obtained, wherein the unconnected device is used to instruct the target object to change the connection information after the device that interrupts the network connection; after determining the data information When the network identifier stored in the unconnected device contained in the id is the same as its own network identifier, the first handshake frame for unicast interaction is sent to the unconnected device; the receiving unconnected device determines that the first handshake frame conforms to The second handshake frame used to indicate synchronization is sent after the preset conditions; the current connection information is encrypted according to the second handshake frame to obtain the target connection information for synchronization, that is, the connection between the connected device and the unconnected Handshake frame interaction between network devices, automatic synchronization of replacement connection information, and then realization of synchronous interaction of connection information between devices. The self-synchronization of WIFI information ensures the synchronization of the connection information of the device through other connected devices after the connection information corresponding to the router changes, improves the flexibility of the device's connection to the router, and verifies the legitimacy of the unconnected device.
在一个示例性实施例中,在确定所述数据信息中包含的未连网设备中存储的网络标识与自身网络标识相同的情况下,向所述未连网设备发送用于单播交互的第一握手帧,包括:在所述未连网设备中存储的网络标识与自身网络标识相同的情况下,确定所述未连网设备存在与目标区域,且所述未连网设备被允许执行单播交互;根据所述单播交互对应的预设条件确定待携带的认证信息,以确定对应的第一握手帧,其中,所述认证信息中包括:标识当前握手帧唯一性的第一随机数值、已连网设备与路由器连接的工作信道、已连网设备对应的网络标识、当前所述第一握手帧对应交互流程次数的序列号。In an exemplary embodiment, when it is determined that the network identifier stored in the non-networked device contained in the data information is the same as its own network identifier, sending the first message for unicast interaction to the non-networked device A handshake frame, including: when the network identifier stored in the unconnected device is the same as its own network identifier, it is determined that the unconnected device exists in the target area, and the unconnected device is allowed to execute a single broadcast interaction; determine the authentication information to be carried according to the preset conditions corresponding to the unicast interaction, so as to determine the corresponding first handshake frame, wherein the authentication information includes: a first random value identifying the uniqueness of the current handshake frame , the working channel connecting the networked device to the router, the network identifier corresponding to the networked device, and the serial number of the number of interaction processes corresponding to the current first handshake frame.
为了更好的理解上述信息同步方法的过程,以下结合两个可选实施例 对上述信息同步方法流程进行说明。In order to better understand the process of the above information synchronization method, the flow of the above information synchronization method will be described below in conjunction with two optional embodiments.
本公开可选实施例中,主要提供了一种WIFI信息自同步的方法,当用户更换路由器SSID名称或者更换路由器的密码时,只需要重新对一台智能家电设备进行配网操作,其他智能家电设备通过智能家电设备间的同步机制可以进行WIFI信息自同步。In the optional embodiment of the present disclosure, a method for self-synchronization of WIFI information is mainly provided. When the user changes the SSID name of the router or the password of the router, it only needs to re-distribute the network for one smart home appliance, and other smart home appliances The device can perform self-synchronization of WIFI information through the synchronization mechanism between smart home appliances.
为了更好的理解本公开实施例以及可选实施例的技术方案,以下对本公开实施例以及可选实施例中可能出现的名词术语进行说明,但不用于限定以下场景的应用。In order to better understand the technical solutions of the embodiments of the present disclosure and the optional embodiments, terms and terms that may appear in the embodiments of the present disclosure and the optional embodiments are described below, but are not used to limit the application of the following scenarios.
已连网设备:用户更换路由器SSID名称或者更换路由器的密码后,重新连入家庭网络的智能家电设备。重新连网的方式包括但不限于设备配网、本公开可选实施例描述的方式等。Network-connected devices: smart home appliances that reconnect to the home network after the user changes the router SSID name or changes the router password. Ways of reconnecting to the network include but are not limited to device network configuration, the ways described in optional embodiments of the present disclosure, and the like.
未连网设备:用户更换路由器SSID名称或者更换路由器的密码后,原来可以接入家庭网络,现在不能正常连网的智能家电设备。Unconnected devices: After the user changes the SSID name of the router or the password of the router, it can be connected to the home network, but now the smart home appliance cannot be connected to the network normally.
网络地址Network ID:家庭网络的标识。通常在设备配网绑定阶段设置到设备中,同一个家庭网络,Network ID相同。Network address Network ID: ID of the home network. It is usually set to the device during the device network configuration and binding stage. The same home network has the same Network ID.
网络密钥Network Key:在一个家庭网络内,经过用户配网绑定的智能家电设备可以共享一个Network Key。Network Key Network Key: In a home network, smart home appliances bound by the user's distribution network can share a Network Key.
作为一种可选的实施方式,已连网设备与未连网设备的进行多次握手确定,继而实现WIFI信息自同步,如图4所示为本公开可选实施例的信息同步方法的交互示意图,包含以下步骤:As an optional implementation mode, multiple handshakes are performed between connected devices and unconnected devices, and then self-synchronization of WIFI information is realized. As shown in FIG. 4 , the interaction of the information synchronization method in an optional embodiment of the present disclosure Schematic diagram with the following steps:
步骤1、搜索已连网设备帧。Step 1. Search for frames of connected devices.
发送:未连网设备发送,广播形式。Sending: Sending from devices not connected to the Internet, in the form of broadcasting.
内容:Network ID。Content: Network ID.
接收:已连网设备接收,如果Network ID与自身的相同,则发送握手step1帧(数据帧)。Receiving: Received by the connected device, if the Network ID is the same as its own, it will send a handshake step1 frame (data frame).
步骤2:握手step1帧;Step 2: handshake step1 frame;
发送:已连网设备,单播形式,直接发送未连网设备。Send: Connected devices, unicast, directly send to non-networked devices.
内容:Network ID、一个递增的序列号,每个握手step1帧均不同、一个随机数Nonce-A,每个握手step1帧均不同、工作信道,与路由器连接的工作信道。Contents: Network ID, an increasing serial number, which is different for each handshake step1 frame, a random number Nonce-A, which is different for each handshake step1 frame, working channel, and the working channel connected to the router.
接收:未连网设备接收,如果Network ID与自身的相同,则发送握手step2帧。Receiving: Received by an unconnected device, if the Network ID is the same as its own, it will send a handshake step2 frame.
步骤3:3)握手step2帧;Step 3: 3) Handshake step2 frame;
发送:未连网设备,单播形式,直接发送已连网设备。Send: Unconnected devices, unicast, directly send to connected devices.
内容:Network ID、序列号,握手step1帧中的序列号、一个随机数Nonce-B,每个握手step2帧均不同、MIC,SHA256(Network Key网络密钥,Nonce-A);Content: Network ID, serial number, serial number in handshake step1 frame, a random number Nonce-B, each handshake step2 frame is different, MIC, SHA256 (Network Key network key, Nonce-A);
也就是说,未连接设备在向已连接设备发送握手step2帧时,为了保证消息的完整性通过接收的握手step1帧中的随机数A和自身存储的网络密钥通过预设的散列算法进行运算确定出对应的MIC对应的哈希值,进而已连接设备可以对收到的MIC进行解析,以确定握手step2帧是由接收到握手step1帧的未连接设备发送的,保证了流程的一致性和安全性。That is to say, when the unconnected device sends the handshake step2 frame to the connected device, in order to ensure the integrity of the message, it uses the random number A in the received handshake step1 frame and the network key stored by itself through the preset hash algorithm. The calculation determines the hash value corresponding to the corresponding MIC, and then the connected device can analyze the received MIC to determine that the handshake step2 frame is sent by the unconnected device that received the handshake step1 frame, ensuring the consistency of the process and security.
接收:已连网设备接收,如果Network ID与自身的相同,校验序列号和MIC,则发送握手step3帧。Receiving: Received by the connected device, if the Network ID is the same as its own, verify the serial number and MIC, then send the handshake step3 frame.
步骤4:握手step3帧Step 4: handshake step3 frame
发送:已连网设备,单播形式,直接发送未连网设备。Send: Connected devices, unicast, directly send to non-networked devices.
内容:Network ID;序列号,握手step1帧中的序列号;加密的SSID和密码,密钥使用SHA256(Network Key,Nonce-A,Nonce-B);MIC(Messages Integrity Check,消息完整性检查,简称MIC),SHA256(Network Key,Nonce-B);Content: Network ID; serial number, the serial number in the handshake step1 frame; encrypted SSID and password, the key uses SHA256 (Network Key, Nonce-A, Nonce-B); MIC (Messages Integrity Check, message integrity check, MIC for short), SHA256 (Network Key, Nonce-B);
简单来说,握手step3帧是在接收到握手step2帧的基础上发送的,并且为保证整个交互流程的一致性,根据握手step2帧中的随机数B和自身 存储的网络密钥通过预设的散列算法进行运算确定出对应的MIC对应的哈希值(即SHA256(Network Key,Nonce-B)),进而未连接设备可以对收到的MIC进行解析,以确定握手step3帧是由接收到握手step2帧的已连接设备发送的,并且为了使得路由器的SSID和密码的安全性更高,通过握手step3帧之前所有交互的握手帧中携带的随机数值结合自身存储的网络密钥生成用于加密连接信息的下发密钥(即SHA256(Network Key,Nonce-A,Nonce-B))。Simply put, the handshake step3 frame is sent on the basis of receiving the handshake step2 frame. The hash algorithm is used to determine the corresponding hash value of the corresponding MIC (that is, SHA256 (Network Key, Nonce-B)), and then the unconnected device can analyze the received MIC to determine that the handshake step3 frame was received by The handshake step2 frame is sent by the connected device, and in order to make the SSID and password of the router more secure, the random value carried in the handshake frame of all interactions before the handshake step3 frame is combined with the network key stored by itself to generate for encryption The delivery key of the connection information (that is, SHA256 (Network Key, Nonce-A, Nonce-B)).
接收:未连网设备接收,如果Network ID与自身的相同,校验序列号和MIC,则解密SSID和密码,完成WIFI信息同步。Receive: Unconnected devices receive, if the Network ID is the same as its own, verify the serial number and MIC, decrypt the SSID and password, and complete WIFI information synchronization.
本公开可选实施例中,还提供了一种未连网设备的操作方式,包含以下内容:In an optional embodiment of the present disclosure, an operation mode of an unconnected device is also provided, including the following content:
步骤S502:确定开始时机,当每次使用原有SSID和密码连接路由器失败后。未联网设备开启与已连网设备的自同步交互功能。Step S502: Determine the start time, when each time the original SSID and password fail to connect to the router. Unconnected devices enable the self-synchronization interaction function with connected devices.
步骤S504:当用户更改了SSID名称或者密码后,信道可能与原来的不同,因此未连网设备需要在13个信道上进行轮询,以发现已入网设备。初始从信道1开始,后续从轮询停止的下一个信道开始。每个信道上停留3秒钟,发送5帧,间隔512毫秒。Step S504: After the user changes the SSID name or password, the channel may be different from the original one, so the unconnected device needs to poll on 13 channels to find the connected device. Initially starts with channel 1, subsequent starts with the next channel where polling stops. Stay on each channel for 3 seconds and send 5 frames with an interval of 512 milliseconds.
步骤S506:通过交互流程发现已连网设备并发出同步WIFI信息的操作信息。Step S506: Discover the connected devices through the interaction process and send out the operation information for synchronizing WIFI information.
可选地,当未联网设备第一次收到校验通过的握手step1帧,停止信道轮询,固定在握手step1帧中携带的信道。并且需要说明的是每次通信时间最长5秒,从收到握手step1帧开始。未连网设备可能会收到多个已入网设备的握手step1帧。根据系统资源的情况,可以维护一到多个已入网设备的通信,但与每个已入网设备通信最多尝试3次。Optionally, when the non-networked device receives the handshake step1 frame that passes the verification for the first time, it stops channel polling and fixes the channel carried in the handshake step1 frame. And it should be noted that each communication takes up to 5 seconds, starting from receiving the handshake step1 frame. A device not connected to the network may receive handshake step1 frames from multiple devices connected to the network. According to the situation of system resources, the communication of one or more networked devices can be maintained, but the communication with each networked device can be tried up to 3 times.
可选地,如果已入网设备在过滤名单,则忽略该已入网设备。与所有已入网设备的通信均失败后继续信道轮询。对于多个已入网设备,可以根据收到握手step1帧的先后顺序进行选择。Optionally, if the network-connected device is in the filtering list, the network-connected device is ignored. Continue channel polling after communication with all networked devices fails. For multiple network-connected devices, selection can be made according to the order in which the handshake step1 frames are received.
步骤S508:获取到WIFI信息后,如果WIFI信息与保存的不一致,则记录发送WIFI信息的已入网设备的MAC(Media Access Control Address,媒体存取控制位址,简称MAC),关闭所有与已入网设备的通信,并退出WIFI信息同步操作,开始尝试连接路由器。Step S508: After obtaining the WIFI information, if the WIFI information is inconsistent with the saved one, record the MAC (Media Access Control Address, Media Access Control Address, MAC for short) of the networked device that sent the WIFI information, and close all Device communication, and quit the WIFI information synchronization operation, and start trying to connect to the router.
步骤S600:如果连接路由器成功,则保存WIFI信息;否则,丢弃WIFI信息,将对应的已入网设备置于过滤名单中(超时10分钟),使用原来的SSID和密码连接路由器,重新触发WIFI信息同步操作。Step S600: If the connection to the router is successful, save the WIFI information; otherwise, discard the WIFI information, put the corresponding network-connected device in the filter list (timeout of 10 minutes), use the original SSID and password to connect to the router, and re-trigger WIFI information synchronization operate.
作为一种可选的实施方式,已连网设备的操作方式包含以下内容:As an optional implementation mode, the operation mode of the connected device includes the following content:
1)在与路由器连接的信道上监听搜索已连网设备帧,不影响与路由器的连接,不影响正常的通信。1) Monitor and search for connected device frames on the channel connected to the router, without affecting the connection with the router or normal communication.
2)通过交互流程完成WIFI信息同步。2) WIFI information synchronization is completed through the interactive process.
3)可同时维护与一到多个未入网设备的通信。3) Communication with one or more non-networked devices can be maintained at the same time.
4)每次通信时间最长5秒,从第一次发送握手step1帧开始。4) Each communication takes up to 5 seconds, starting from the first handshake step1 frame.
需要说明的是,本公开可选实施例描述的WIFI信息同步不依赖于路由器,只需要重新对一台智能家电设备进行配网操作,其他智能家电设备自动完成WIFI信息同步。WIFI信息同步机制通过Network Key机制实现已连网设备对未连网设备的验证,不需要云端的参与;同时通过Network Key实现了WIFI信息的加密传输。WIFI信息同步机制从未连网设备搜索已连网设备开始,经过两次交互实现了WIFI信息同步。交互流程中既没有影响已入网设备的正常通信,又实现了未入网设备的WIFI信息快速同步;同时未入网设备还设置了过滤机制,防止已入网设备传递了错误的WIFI信息。WIFI信息同步机制实现一对一、一对多、多对一和多对多的WIFI信息自同步。可以快速完成整个家庭网络内的WIFI信息同步。It should be noted that the WIFI information synchronization described in the optional embodiments of the present disclosure does not depend on the router, and only one smart home appliance needs to be re-distributed to the network, and other smart home appliances automatically complete the WIFI information synchronization. The WIFI information synchronization mechanism realizes the verification of connected devices to non-connected devices through the Network Key mechanism, without the participation of the cloud; at the same time, the encrypted transmission of WIFI information is realized through the Network Key. The WIFI information synchronization mechanism starts from searching for connected devices from unconnected devices, and realizes WIFI information synchronization after two interactions. In the interaction process, the normal communication of the connected devices is not affected, and the WIFI information of the non-connected devices is quickly synchronized; at the same time, the non-connected devices also set up a filtering mechanism to prevent the connected devices from transmitting wrong WIFI information. The WIFI information synchronization mechanism realizes self-synchronization of one-to-one, one-to-many, many-to-one and many-to-many WIFI information. It can quickly complete the synchronization of WIFI information in the entire home network.
进一步避免了,基于路由器的WIFI信息同步方案主要依赖于路由器与设备之间的同步机制的限制性,进而使得智能家电设备间可同时进行一对一、一对多、多对一和多对多的WIFI信息自同步。WIFI信息同步不依赖于路由器,也不依赖于云端,未连网设备可自动发现已连网设备,未连 网设备可自动过滤已连网设备,已连网设备可自动验证未连网设备,WIFI信息同步不影响已连网设备的正常通信。It further avoids that the router-based WIFI information synchronization scheme mainly depends on the limitation of the synchronization mechanism between the router and the device, so that the smart home appliances can simultaneously perform one-to-one, one-to-many, many-to-one and many-to-many The WIFI information is self-synchronized. WIFI information synchronization does not depend on the router or the cloud. Unconnected devices can automatically discover connected devices, unconnected devices can automatically filter connected devices, and connected devices can automatically verify unconnected devices. WIFI information synchronization does not affect the normal communication of connected devices.
综上,通过本公开可选实施例,利用已连网设备可自动发现未连网设备,已连网设备需要验证未连网设备,使得不能通过验证的未连网设备不能进行WIFI信息自同步,并且该WIFI信息自同步流程不需要云端参与,而且WIFI信息自同步不影响已连网设备的正常通信,在WIFI信息(SSID和密码)同步需要加密,可进行一对一、一对多、多对一和多对多的WIFI信息自同步,不产生过多的网络流量。To sum up, through the optional embodiments of the present disclosure, connected devices can be used to automatically discover unconnected devices, and connected devices need to verify unconnected devices, so that unconnected devices that cannot pass the verification cannot perform WIFI information self-synchronization , and the WIFI information self-synchronization process does not require the cloud to participate, and the WIFI information self-synchronization does not affect the normal communication of connected devices, and the WIFI information (SSID and password) synchronization needs to be encrypted, which can be one-to-one, one-to-many, Many-to-one and many-to-many WIFI information is self-synchronized and does not generate too much network traffic.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present disclosure can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present disclosure.
在本实施例中还提供了一种信息同步系统,该系统用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。图5是根据本公开实施例的信息同步系统的结构框图,如图5所示,该系统包括:An information synchronization system is also provided in this embodiment, and the system is used to implement the above embodiments and preferred implementation modes, and what has been explained will not be repeated. Fig. 5 is a structural block diagram of an information synchronization system according to an embodiment of the present disclosure. As shown in Fig. 5, the system includes:
已连接设备52、未连接设备54; connected device 52, unconnected device 54;
其中,已连网设备52,设置为获取未连网设备发送的包含未连网设备中存储的网络标识的数据信息,其中,所述未连网设备用于指示目标对象更换连接信息后中断连网的设备;在确定所述数据信息中包含的未连网设备中存储的网络标识与自身网络标识相同的情况下,向所述未连网设备发送用于单播交互的第一握手帧;接收所述未连网设备发送的用于指示同步的第二握手帧,根据所述第二握手帧对当前连接信息进行加密,以得到用于同步的目标连接信息;Wherein, the network-connected device 52 is set to obtain the data information containing the network identification stored in the non-networked device sent by the non-networked device, wherein the non-networked device is used to instruct the target object to terminate the connection after changing the connection information. network device; in the case of determining that the network identifier stored in the unconnected device contained in the data information is the same as its own network identifier, sending a first handshake frame for unicast interaction to the unconnected device; receiving a second handshake frame for indicating synchronization sent by the unconnected device, and encrypting the current connection information according to the second handshake frame to obtain target connection information for synchronization;
未连网设备54,设置为在目标区域存在已连网设备的情况下,向所述目标区域广播包含未连网设备中存储的网络标识的数据信息,其中,所述已连网设备用于指示目标对象更换连接信息后重新连网的设备;接收所述已连网设备发送的第一握手帧,在所述第一握手帧符合预设条件的情况下,向所述已连网设备发送包含预设网络密钥的第二握手帧。The non-networked device 54 is configured to broadcast to the target area the data information containing the network identification stored in the non-networked device when there is a networked device in the target area, wherein the networked device is used for Instruct the target object to re-connect to the network after changing the connection information; receive the first handshake frame sent by the network-connected device, and send it to the network-connected device if the first handshake frame meets the preset conditions A second handshake frame containing a preset network key.
通过上述系统,在目标区域存在已连网设备的情况下,向目标区域广播包含未连网设备中存储的网络标识的数据信息,其中,已连网设备用于指示目标对象更换连接信息后重新连网的设备;接收已连网设备根据数据信息反馈的用于单播交互的第一握手帧;在第一握手帧符合预设条件的情况下,向已连网设备发送包含预设网络密钥的第二握手帧,以获取已连网设备根据第二握手帧确定的目标连接信息,其中,目标连接信息用于指示已加密的已连网设备的当前连接信息,也就是说,通过已连网设备与未连网设备之间的握手帧交互,进行更换连接信息的自主同步,继而实现设备之间的连接信息的同步交互,因此,可以解决现有技术中WIFI信息的同步依赖于路由器,无法实现设备之间的WIFI信息自同步,确保了设备在路由器对应的连接信息变更后通过其他已连接设备的进行更换连接信息的同步,提升了设备在路由器连接的灵活性,并验证了未连接设备的合法性。Through the above-mentioned system, when there is a networked device in the target area, the data information containing the network identification stored in the unconnected device is broadcast to the target area, wherein the networked device is used to instruct the target object to change the connection information and restart The device connected to the network; receives the first handshake frame for unicast interaction fed back by the connected device according to the data information; when the first handshake frame meets the preset conditions, sends a message containing the preset network password to the connected device The second handshake frame of the key to obtain the target connection information determined by the networked device according to the second handshake frame, wherein the target connection information is used to indicate the encrypted current connection information of the networked device, that is, through the The handshake frame interaction between connected devices and unconnected devices performs autonomous synchronization of replacement connection information, and then realizes the synchronization and interaction of connection information between devices. Therefore, it can solve the problem that the synchronization of WIFI information in the prior art depends on routers , the self-synchronization of WIFI information between devices cannot be realized, which ensures that the device can be replaced by other connected devices after the connection information corresponding to the router is changed, which improves the flexibility of the device's connection to the router and verifies that Legality of Connected Devices.
需要说明的是,上述握手帧是一种用于携带数据指示信息的数据帧,可以根据实际情况携带不同的数据信息。在与路由器连接的信道上监听搜索已连网设备,不影响与路由器的连接,不影响正常的通信。It should be noted that the above handshake frame is a data frame used to carry data indication information, and may carry different data information according to actual conditions. Monitor and search for connected devices on the channel connected to the router, without affecting the connection with the router or normal communication.
在一个示例性实施例中,上述系统还包括:路由器,设置为为已连网设备和未连网设备提供网络。In an exemplary embodiment, the above system further includes: a router configured to provide a network for connected devices and non-connected devices.
在一个示例性实施例中,上述未连网设备,还设置为确定第一握手帧携带的认证信息,其中,所述认证信息中包括:表示握手帧次数的序列号、标识当前握手帧唯一性的第一随机数值、已连网设备与路由器连接的工作信道、已连网设备对应的网络标识;在所述认证信息中的所述已连网设备 对应的网络标识与所述未连网设备中存储的网络标识一致的情况下,根据预设网络密钥结合所述第一随机数值确定用于加密待同步的连接信息的第一密钥,其中,所述连接信息包括以下至少之一:路由器服务集标识的信息,路由器密码的信息;将所述认证信息和所述第一密钥进行数据打包,并添加消息的完整性校验标识以及第二随机数值,以确定向所述已连网设备发送包含预设网络密钥的第二握手帧。In an exemplary embodiment, the above-mentioned non-networked device is further configured to determine the authentication information carried in the first handshake frame, wherein the authentication information includes: a serial number indicating the number of handshake frames, identifying the uniqueness of the current handshake frame The first random value of the networked device, the working channel connected to the router, and the network ID corresponding to the networked device; the network ID corresponding to the networked device in the authentication information is the same as the unconnected device In the case where the network identifiers stored in the network are consistent, the first key used to encrypt the connection information to be synchronized is determined according to the preset network key combined with the first random value, wherein the connection information includes at least one of the following: The information of the router service set identification, the information of the router password; data packaging of the authentication information and the first key, and adding the message integrity verification identification and the second random value, so as to determine the information sent to the connected The network device sends the second handshake frame containing the preset network key.
也就是说,当未连接设备搜索到已连接设备后,已连接设备会在校验通过后,向未连接设备发送携带认证信息的用于指示后续连接认证同步的第一握手帧,进而通过第一握手帧对未连接设备的信道轮询操作进行停止,并固定信道,已确定后续的交互信道,进一步的,未连接设备基于接收到的第一握手帧,根据自身对应的预设网络密钥,以及确定出的用于指示待发送第二握手帧唯一性的第二随机数值,并增加用于验证数据包的发送者(即未连接设备)的消息的完整性校验标识,进而确定出用于握手交互的第二握手帧。That is to say, when the unconnected device searches for the connected device, the connected device will send the first handshake frame carrying authentication information to the unconnected device after the verification is passed to indicate the synchronization of the subsequent connection authentication, and then pass the first handshake frame. A handshake frame stops the channel polling operation of the unconnected device, and the channel is fixed, and the subsequent interactive channel has been determined. Further, the unconnected device based on the received first handshake frame, according to its corresponding preset network key , and the determined second random value used to indicate the uniqueness of the second handshake frame to be sent, and increase the integrity check identifier of the message used to verify the sender of the data packet (that is, the unconnected device), and then determine the The second handshake frame used for handshake interactions.
在一个示例性实施例中,上述未连网设备,还设置为在所述认证信息中还包括有用于指示当前所述第一握手帧对应交互流程次数的序列号的情况下,确定已接收的多个第一握手帧对应的多个目标序列号与所述序列号是否存在匹配;在所述多个目标序列号与所述序列号不存在匹配的情况下,确定当前所述第一握手帧不为重复的第一握手帧;在所述多个目标序列号与所述序列号存在匹配的情况下,确定当前所述第一握手帧为重复的第一握手帧,所述第一握手帧对应的握手流程结束。In an exemplary embodiment, the above-mentioned non-networked device is further configured to determine that the received Whether there is a match between the multiple target sequence numbers corresponding to the multiple first handshake frames and the sequence number; if there is no match between the multiple target sequence numbers and the sequence number, determine the current first handshake frame It is not a repeated first handshake frame; in the case where the multiple target sequence numbers match the sequence number, determine that the current first handshake frame is a repeated first handshake frame, and the first handshake frame The corresponding handshake process ends.
简而言之,未连网设备与已连网设备的进行交互中的第一握手帧通过序列号进行本次交互流程的标识,当序列号相同证明对应的交互流程被重复执行,不相同则证明当前第一握手帧对应的交互流程未出现重复交互过程。In short, the first handshake frame in the interaction between the unconnected device and the connected device uses the serial number to identify the interaction process. When the serial number is the same, it proves that the corresponding interaction process is repeated. It is proved that there is no repeated interaction process in the interaction process corresponding to the current first handshake frame.
在一个示例性实施例中,上述未连网设备,还设置为确定未连网设备待轮询的信道列表,其中,所述信道列表用于指示所述未连网设备通信的 信道以及所述信道的数量;根据所述信道列表确定向所述目标区域进行广播的时间周期;在所述时间周期内获取到信道验证成功的指示信息的情况下,停止向所述目标区域进行广播,其中,所述信道验证成功用于指示信道接收到已联网设备发送的交互信息,所述交互信息包括第一握手帧。In an exemplary embodiment, the aforementioned unconnected device is further configured to determine a channel list to be polled by the unconnected device, wherein the channel list is used to indicate the communication channel of the unconnected device and the The number of channels; determine the time period for broadcasting to the target area according to the channel list; and stop broadcasting to the target area when the indication information indicating that the channel verification is successful is obtained within the time period, wherein, The successful channel verification is used to indicate that the channel has received the interaction information sent by the networked device, and the interaction information includes the first handshake frame.
例如,目标对象更改了SSID名称或者密码后,信道可能与原来的不同,并且由于路由器以及家电设备通常使用2.4G频段进行无线交互,因此未连网设备需要在13个信道上进行轮询,以发现已入网设备。初始从信道1开始,后续从轮询停止的下一个信道开始。每个信道上停留3秒钟,发送5帧,间隔512毫秒。当未连接设备第一次收到校验通过的握手帧,停止信道轮询,固定在握手step1帧中携带的信道,并对信道中传输过来的数据进行解析,进而确定出握手帧对应的内容。For example, after the target object changes the SSID name or password, the channel may be different from the original one, and because routers and home appliances usually use the 2.4G frequency band for wireless interaction, unconnected devices need to poll on 13 channels to Discover devices connected to the network. Initially starts with channel 1, subsequent starts with the next channel where polling stops. Stay on each channel for 3 seconds and send 5 frames with an interval of 512 milliseconds. When the unconnected device receives the handshake frame that passed the verification for the first time, it stops channel polling, fixes the channel carried in the handshake step1 frame, and analyzes the data transmitted in the channel to determine the corresponding content of the handshake frame .
在一个示例性实施例中,上述未连网设备,还设置为确定预设的过滤名单,其中,所述过滤名单用于指示已连网设备当前使用的连接信息无法被同步使用;在存在于所述过滤名单的已入网设备发送所述第一握手帧的情况下,禁止执行生成第二握手帧的操作。In an exemplary embodiment, the aforementioned unconnected device is further configured to determine a preset filtering list, wherein the filtering list is used to indicate that the connection information currently used by the connected device cannot be used synchronously; When the network-connected device in the filtering list sends the first handshake frame, the operation of generating the second handshake frame is prohibited.
例如,如果已入网设备在过滤名单,则忽略该已入网设备。与所有已入网设备的通信均失败后继续信道轮询。对于多个已入网设备,可以根据收到握手帧的先后顺序进行选择,并且已加入过滤名单的已入网设备的连接信息将无法同步到未连接设备上,在接收到已加入过滤名单的已入网设备发送的用于交互的第一握手帧之后,禁止未连接设备在验证成功的情况下生成对应的第二握手帧,并结束未连接设备与已加入过滤名单的已入网设备的交互流程。For example, if a network-connected device is on the filtering list, the network-connected device is ignored. Continue channel polling after communication with all networked devices fails. For multiple network-connected devices, you can select according to the order in which the handshake frames are received, and the connection information of network-connected devices that have been added to the filter list will not be synchronized to unconnected devices. After the first handshake frame sent by the device for interaction, the unconnected device is prohibited from generating the corresponding second handshake frame if the verification is successful, and the interaction process between the unconnected device and the network-connected device that has been added to the filter list is ended.
在一个示例性实施例中,上述未连网设备,还设置为在所述已连网设备存在多个且每一个所述已连网设备都反馈第一握手帧的情况下,根据每一个所述已连网设备反馈第一握手帧的时间点确定时序列表;根据所述时序列表的先后顺序进行所述第一握手帧是否符合预设条件的选择验证。In an exemplary embodiment, the above-mentioned non-networked device is further configured to, if there are multiple connected devices and each of the connected devices feeds back the first handshake frame, according to each The timing list is determined at the time point when the networked device feeds back the first handshake frame; and the selection verification of whether the first handshake frame meets the preset condition is performed according to the order of the timing list.
例如,未连网设备可能会收到多个已入网设备的第一握手帧。根据系 统资源的情况,可以维护一到多个已入网设备的通信,但与每个已入网设备通信最多尝试3次,因此,需要根据第一握手帧对应的反馈时间点,确定选择认证的次序。For example, an unconnected device may receive first handshake frames from multiple connected devices. According to the situation of system resources, the communication of one or more networked devices can be maintained, but the communication with each networked device can be tried up to 3 times. Therefore, 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 aforementioned network-connected device is further configured to determine that the non-networked device exists in the target area when the network identifier stored in the unconnected device is the same as its own network identifier, And the unconnected device is allowed to perform unicast interaction; determine the authentication information to be carried according to the preset conditions corresponding to the unicast interaction, so as to determine the corresponding first handshake frame, wherein the authentication information includes: The first random value identifying the uniqueness of the current handshake frame, the working channel connected to the router by the networked device, and the serial number of the number of interaction processes corresponding to the current first handshake frame.
在本公开的描述中,需要理解的是,术语中“中心”、“上”、“下”、“前”、“后”、“左”、“右”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本公开和简化描述,而不是指示或暗示所指的装置或组件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本公开的限制。此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present disclosure, it should be understood that the orientations or positional relationships indicated by the terms "center", "upper", "lower", "front", "rear", "left", "right" etc. are based on The orientations or positional relationships shown in the drawings are only for the convenience of describing the present disclosure and simplifying the description, and do not indicate or imply that the referred devices or components must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as Limitations on this Disclosure. In addition, the terms "first" and "second" are used for descriptive purposes only, and should not be understood as indicating or implying relative importance.
在本公开的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“连接”、“相连”应做广义理解,例如,可以是固定连接,也可以是拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以是通过中间媒介间接相连,可以是两个组件内部的连通。当组件被称为“固定于”或“设置于”另一个元件,它可以直接在另一个组件上或者也可以存在居中的组件。当一个组件被认为是“连接”另一个元件,它可以是直接连接到另一个元件或者可能同时存在居中元件。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本公开的具体含义。In the description of the present disclosure, it should be noted that, unless otherwise clearly specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection , or integrally connected; may be mechanically connected, may also be electrically connected; may be directly connected, may also be indirectly connected through an intermediary, and may be internal communication between two components. When an element is referred to as being "fixed on" or "disposed on" another element, it can be directly on the other element or intervening elements may also be present. When a component is said to be "connected" to another element, it may be directly connected to the other element or intervening elements may also be present. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present disclosure in specific situations.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器 中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.
本公开的实施例还提供了一种存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present disclosure also provide a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
在一个示例性实施例中,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:In an exemplary embodiment, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for performing the following steps:
S1,在目标区域存在已连网设备的情况下,向所述目标区域广播包含未连网设备中存储的网络标识的数据信息,其中,所述已连网设备用于指示目标对象更换连接信息后重新连网的设备;S1. When there is a networked device in the target area, broadcast to the target area data information including a network identifier stored in an unconnected device, wherein the networked device is used to instruct the target object to change the connection information Devices that reconnect to the Internet afterward;
S2,接收所述已连网设备根据所述数据信息反馈的用于单播交互的第一握手帧;S2. Receive a first handshake frame for unicast interaction fed back by the networked device according to the data information;
S3,在所述第一握手帧符合预设条件的情况下,向所述已连网设备发送包含预设网络密钥的第二握手帧,以获取所述已连网设备根据所述第二握手帧确定的目标连接信息,其中,所述目标连接信息用于指示已加密的所述已连网设备的当前连接信息。S3. When the first handshake frame meets the preset condition, send a second handshake frame including a preset network key to the networked device, so as to obtain the networked device according to the second handshake frame. The target connection information determined by the handshake frame, wherein the target connection information is used to indicate the encrypted current connection information of the networked device.
在一个示例性实施例中,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, in this embodiment, the above-mentioned storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as Various media that can store computer programs such as RAM), mobile hard disk, magnetic disk or optical disk.
本公开的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。Embodiments of the present disclosure also provide an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
在一个示例性实施例中,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:In an exemplary embodiment, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:
S1,在目标区域存在已连网设备的情况下,向所述目标区域广播包含未连网设备中存储的网络标识的数据信息,其中,所述已连网设备用于指示目标对象更换连接信息后重新连网的设备;S1. When there is a networked device in the target area, broadcast to the target area data information including a network identifier stored in an unconnected device, wherein the networked device is used to instruct the target object to change the connection information Devices that reconnect to the Internet afterward;
S2,接收所述已连网设备根据所述数据信息反馈的用于单播交互的第一握手帧;S2. Receive a first handshake frame for unicast interaction fed back by the networked device according to the data information;
S3,在所述第一握手帧符合预设条件的情况下,向所述已连网设备发送包含预设网络密钥的第二握手帧,以获取所述已连网设备根据所述第二握手帧确定的目标连接信息,其中,所述目标连接信息用于指示已加密的所述已连网设备的当前连接信息。S3. When the first handshake frame meets the preset condition, send a second handshake frame including a preset network key to the networked device, so as to obtain the networked device according to the second handshake frame. The target connection information determined by the handshake frame, wherein the target connection information is used to indicate the encrypted current connection information of the networked device.
在一个示例性实施例中,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。In an exemplary embodiment, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details will not be repeated in this embodiment.
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,在一个示例性实施例中,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned disclosure can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices above, in an exemplary embodiment, they may be implemented in program code executable by a computing device, thus, they may be stored in a storage device to be executed by a computing device, and in some cases, may be different from The steps shown or described here are performed sequentially, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module. As such, the present disclosure is not limited to any specific combination of hardware and software.
以上所述仅为本公开的优选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above descriptions are only preferred embodiments of the present disclosure, and are not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims (17)

  1. 一种信息同步方法,包括:A method for synchronizing information, comprising:
    在目标区域存在已连网设备的情况下,向所述目标区域广播包含未连网设备中存储的网络标识的数据信息,其中,所述已连网设备用于指示目标对象更换连接信息后重新连网的设备;If there is a networked device in the target area, broadcast to the target area the data information containing the network identifier stored in the non-networked device, wherein the networked device is used to instruct the target object to reconnect after changing the connection information Internet-connected devices;
    接收所述已连网设备根据所述数据信息反馈的用于单播交互的第一握手帧;receiving the first handshake frame for unicast interaction fed back by the networked device according to the data information;
    在所述第一握手帧符合预设条件的情况下,向所述已连网设备发送包含预设网络密钥的第二握手帧,以获取所述已连网设备根据所述第二握手帧确定的目标连接信息,其中,所述目标连接信息用于指示已加密的所述已连网设备的当前连接信息。When the first handshake frame meets the preset condition, send a second handshake frame including a preset network key to the networked device, so as to obtain the networked device according to the second handshake frame The determined target connection information, wherein the target connection information is used to indicate the encrypted current connection information of the networked device.
  2. 根据权利要求1所述的方法,其中,在所述第一握手帧符合预设条件的情况下,向所述已连网设备发送包含预设网络密钥的第二握手帧,包括:The method according to claim 1, wherein, when the first handshake frame meets a preset condition, sending a second handshake frame containing a preset network key to the networked device includes:
    确定第一握手帧携带的认证信息,其中,所述认证信息包括:标识当前握手帧唯一性的第一随机数值、已连网设备对应的网络标识;Determine the authentication information carried in the first handshake frame, where the authentication information includes: a first random value identifying the uniqueness of the current handshake frame, and a network identifier corresponding to the connected device;
    在所述认证信息中的所述已连网设备对应的网络标识与所述未连网设备中存储的网络标识一致的情况下,根据预设网络密钥结合所述第一随机数值确定用于加密待同步的连接信息的第一密钥,其中,所述连接信息包括以下至少之一:路由器服务集标识的信息,路由器密码的信息;In the case that the network identifier corresponding to the network-connected device in the authentication information is consistent with the network identifier stored in the non-network-connected device, according to the preset network key combined with the first random value to determine the A first key for encrypting the connection information to be synchronized, wherein the connection information includes at least one of the following: information of router service set identification, information of router password;
    将所述认证信息和所述第一密钥进行数据打包,并添加消息的完整性校验标识以及第二随机数值,以确定向所述已连网设备发送包含预设网络密钥的第二握手帧。Packing the authentication information and the first key into data, and adding the message integrity verification identifier and the second random value, so as to determine to send the second message containing the preset network key to the networked device. Handshake frame.
  3. 根据权利要求2所述的方法,其中,确定第一握手帧携带的 认证信息之后,所述方法还包括:The method according to claim 2, wherein, after determining the authentication information carried in the first handshake frame, the method further comprises:
    在所述认证信息中还包括有用于指示当前所述第一握手帧对应交互流程次数的序列号的情况下,确定已接收的多个第一握手帧对应的多个目标序列号与所述序列号是否存在匹配;In the case that the authentication information also includes a sequence number used to indicate the number of interaction processes corresponding to the current first handshake frame, determine that the multiple target sequence numbers corresponding to the received multiple first handshake frames are the same as the sequence number Whether there is a match for the number;
    在所述多个目标序列号与所述序列号不存在匹配的情况下,确定当前所述第一握手帧不为重复的第一握手帧;In the case where the plurality of target sequence numbers do not match the sequence number, determine that the current first handshake frame is not a repeated first handshake frame;
    在所述多个目标序列号与所述序列号存在匹配的情况下,确定当前所述第一握手帧为重复的第一握手帧,所述第一握手帧对应的握手流程结束。If the multiple target sequence numbers match the sequence number, it is determined that the current first handshake frame is a repeated first handshake frame, and the handshake process corresponding to the first handshake frame ends.
  4. 根据权利要求1所述的方法,其中,在目标区域存在已连网设备的情况下,向所述目标区域广播包含历史网络标识的数据信息,包括:The method according to claim 1, wherein, in the case that there is a networked device in the target area, broadcasting data information including historical network identifiers to the target area includes:
    确定未连网设备待轮询的信道列表,其中,所述信道列表用于指示所述未连网设备通信的信道以及所述信道的数量;determining a channel list to be polled by the unconnected device, wherein the channel list is used to indicate the communication channel of the unconnected device and the number of the channels;
    根据所述信道列表确定向所述目标区域进行广播的时间周期;determining a time period for broadcasting to the target area according to the channel list;
    在所述时间周期内获取到信道验证成功的指示信息的情况下,停止向所述目标区域进行广播,其中,所述信道验证成功用于指示信道接收到已联网设备发送的交互信息,所述交互信息包括第一握手帧。If the information indicating that the channel verification is successful is obtained within the time period, stop broadcasting to the target area, where the successful channel verification is used to indicate that the channel has received the interaction information sent by the networked device, the The interaction information includes the first handshake frame.
  5. 根据权利要求1所述的方法,其中,在目标区域存在已连网设备的情况下,向所述目标区域广播包含历史网络标识的数据信息之前,所述方法还包括:The method according to claim 1, wherein, in the case that there are networked devices in the target area, before broadcasting the data information including the historical network identification to the target area, the method further comprises:
    确定预设的过滤名单,其中,所述过滤名单用于指示已连网设备当前使用的连接信息无法被同步使用;determining a preset filtering list, wherein the filtering list is used to indicate that the connection information currently used by the connected device cannot be used synchronously;
    在存在于所述过滤名单的已入网设备发送所述第一握手帧的情况下,禁止执行生成第二握手帧的操作。When the network-connected device existing in the filtering list sends the first handshake frame, the operation of generating the second handshake frame is prohibited.
  6. 根据权利要求1所述的方法,其中,接收所述已连网设备根据所述数据信息反馈的用于单播交互的第一握手帧之后,所述方法还包括:The method according to claim 1, wherein, after receiving the first handshake frame for unicast interaction fed back by the connected device according to the data information, the method further comprises:
    在所述已连网设备存在多个且每一个所述已连网设备都反馈第一握手帧的情况下,根据每一个所述已连网设备反馈第一握手帧的时间点确定时序列表;In the case that there are multiple networked devices and each of the networked devices feeds back the first handshake frame, a timing list is determined according to the time point when each of the networked devices feeds back the first handshake frame;
    根据所述时序列表的先后顺序进行所述第一握手帧是否符合预设条件的选择验证。A selection verification of whether the first handshake frame meets a preset condition is performed according to the sequence of the time series list.
  7. 一种信息同步方法,包括:A method for synchronizing information, comprising:
    获取未连网设备发送的包含未连网设备中存储的网络标识的数据信息,其中,所述未连网设备用于指示目标对象更换连接信息后中断连网的设备;Obtaining the data information containing the network identifier stored in the unconnected device sent by the unconnected device, wherein the unconnected device is used to instruct the target object to interrupt the networked device after changing the connection information;
    在确定所述数据信息中包含的未连网设备中存储的网络标识与自身网络标识相同的情况下,向所述未连网设备发送用于单播交互的第一握手帧;In the case of determining that the network identifier stored in the unconnected device contained in the data information is the same as its own network identifier, sending a first handshake frame for unicast interaction to the unconnected device;
    接收所述未连网设备在确定所述第一握手帧符合预设条件之后发送的用于指示同步的第二握手帧;receiving a second handshake frame for indicating synchronization sent by the unconnected device after determining that the first handshake frame meets a preset condition;
    根据所述第二握手帧对当前连接信息进行加密,以得到用于同步的目标连接信息。The current connection information is encrypted according to the second handshake frame to obtain target connection information for synchronization.
  8. 根据权利要求7所述的方法,其中,在确定所述数据信息中包含的未连网设备中存储的网络标识与自身网络标识相同的情况下,向所述未连网设备发送用于单播交互的第一握手帧,包括:The method according to claim 7, wherein when it is determined that the network identifier stored in the unconnected device contained in the data information is the same as its own network identifier, sending a unicast message to the unconnected device The first handshake frame of interaction, including:
    在所述未连网设备中存储的网络标识与自身网络标识相同的情况下,确定所述未连网设备存在与目标区域,且所述未连网设备被允许执行单播交互;If the network identifier stored in the unconnected device is the same as its own network identifier, determine that the unconnected device exists in the target area, and the unconnected device is allowed to perform unicast interaction;
    根据所述单播交互对应的预设条件确定待携带的认证信息,根据所述认证信息确定对应的第一握手帧,其中,所述认证信息中包括:标识当前握手帧唯一性的第一随机数值、已连网设备对应的网络标识,当前所述第一握手帧对应交互流程次数的序列号。The authentication information to be carried is determined according to the preset conditions corresponding to the unicast interaction, and the corresponding first handshake frame is determined according to the authentication information, wherein the authentication information includes: a first random number identifying the uniqueness of the current handshake frame Value, the network identifier corresponding to the connected device, and the serial number of the number of interaction processes corresponding to the current first handshake frame.
  9. 一种信息同步系统,包括:An information synchronization system, comprising:
    已连网设备,设置为获取未连网设备发送的包含未连网设备中存储的网络标识的数据信息,其中,所述未连网设备用于指示目标对象更换连接信息后中断连网的设备;在确定所述数据信息中包含的未连网设备中存储的网络标识与自身网络标识相同的情况下,向所述未连网设备发送用于单播交互的第一握手帧;接收所述未连网设备发送的用于指示同步的第二握手帧,根据所述第二握手帧对当前连接信息进行加密,以得到用于同步的目标连接信息;The networked device is set to obtain the data information including the network identifier stored in the non-networked device sent by the non-networked device, wherein the non-networked device is used to instruct the target object to interrupt the networked device after changing the connection information ; In the case of determining that the network identifier stored in the unconnected device contained in the data information is the same as its own network identifier, sending a first handshake frame for unicast interaction to the unconnected device; receiving the The second handshake frame sent by the unconnected device for indicating synchronization, encrypting the current connection information according to the second handshake frame, so as to obtain the target connection information for synchronization;
    未连网设备,设置为在目标区域存在已连网设备的情况下,向所述目标区域广播包含未连网设备中存储的网络标识的数据信息,其中,所述已连网设备用于指示目标对象更换连接信息后重新连网的设备;接收所述已连网设备发送的第一握手帧,在所述第一握手帧符合预设条件的情况下,向所述已连网设备发送包含预设网络密钥的第二握手帧。The non-networked device is configured to broadcast to the target area data information containing the network identifier stored in the non-networked device when there is a networked device in the target area, wherein the networked device is used to indicate The target object reconnects to the network after changing the connection information; receives the first handshake frame sent by the networked device, and sends a message containing The second handshake frame of the preset network key.
  10. 根据权利要求9所述的系统,其中,所述未连接设备,设置为确定第一握手帧携带的认证信息,其中,所述认证信息包括:标识当前握手帧唯一性的第一随机数值、已连网设备对应的网络标识;在所述认证信息中的所述已连网设备对应的网络标识与所述未连网设备中存储的网络标识一致的情况下,根据预设网络密钥结合所述第一随机数值确定用于加密待同步的连接信息的第一密钥,其中,所述连接 信息包括以下至少之一:路由器服务集标识的信息,路由器密码的信息;将所述认证信息和所述第一密钥进行数据打包,并添加消息的完整性校验标识以及第二随机数值,以确定向所述已连网设备发送包含预设网络密钥的第二握手帧。The system according to claim 9, wherein the unconnected device is configured to determine the authentication information carried in the first handshake frame, wherein the authentication information includes: a first random value identifying the uniqueness of the current handshake frame, The network identifier corresponding to the network-connected device; if the network identifier corresponding to the network-connected device in the authentication information is consistent with the network identifier stored in the unconnected device, according to the preset network key combined with the The first random value determines a first key used to encrypt the connection information to be synchronized, wherein the connection information includes at least one of the following: information of a router service set identifier, information of a router password; combining the authentication information and The first key performs data packaging, and adds the message integrity verification identifier and the second random value, so as to determine to send the second handshake frame containing the preset network key to the networked device.
  11. 根据权利要求10所述的系统,其中,所述未连接设备,设置为在所述认证信息中还包括有用于指示当前所述第一握手帧对应交互流程次数的序列号的情况下,确定已接收的多个第一握手帧对应的多个目标序列号与所述序列号是否存在匹配;在所述多个目标序列号与所述序列号不存在匹配的情况下,确定当前所述第一握手帧不为重复的第一握手帧;在所述多个目标序列号与所述序列号存在匹配的情况下,确定当前所述第一握手帧为重复的第一握手帧,所述第一握手帧对应的握手流程结束。The system according to claim 10, wherein the unconnected device is configured to determine that it has Whether there is a match between the multiple target sequence numbers corresponding to the multiple received first handshake frames and the sequence number; if there is no match between the multiple target sequence numbers and the sequence number, determine that the current first The handshake frame is not a repeated first handshake frame; when the multiple target sequence numbers match the sequence number, it is determined that the current first handshake frame is a repeated first handshake frame, and the first The handshake process corresponding to the handshake frame ends.
  12. 根据权利要求9所述的系统,其中,所述未连接设备,设置为确定未连网设备待轮询的信道列表,其中,所述信道列表用于指示所述未连网设备通信的信道以及所述信道的数量;根据所述信道列表确定向所述目标区域进行广播的时间周期;在所述时间周期内获取到信道验证成功的指示信息的情况下,停止向所述目标区域进行广播,其中,所述信道验证成功用于指示信道接收到已联网设备发送的交互信息,所述交互信息包括第一握手帧。The system according to claim 9, wherein the unconnected device is configured to determine a channel list to be polled by the unconnected device, wherein the channel list is used to indicate the communication channel of the unconnected device and the number of the channels; determine the time period for broadcasting to the target area according to the channel list; and stop broadcasting to the target area when the indication information indicating that the channel verification is successful is obtained within the time period, Wherein, the successful verification of the channel is used to indicate that the channel has received the interaction information sent by the networked device, and the interaction information includes the first handshake frame.
  13. 根据权利要求9所述的系统,其中,所述未连接设备,设置为确定预设的过滤名单,其中,所述过滤名单用于指示已连网设备当前使用的连接信息无法被同步使用;在存在于所述过滤名单的已入网设备发送所述第一握手帧的情况下,禁止执行生成第二握手帧的操作。The system according to claim 9, wherein the unconnected device is configured to determine a preset filtering list, wherein the filtering list is used to indicate that the connection information currently used by the connected device cannot be used synchronously; When a network-connected device existing in the filtering list sends the first handshake frame, the operation of generating the second handshake frame is prohibited.
  14. 根据权利要求9所述的系统,其中,所述未连接设备,设置为在所述已连网设备存在多个且每一个所述已连网设备都反馈第一握手帧的情况下,根据每一个所述已连网设备反馈第一握手帧的时间点 确定时序列表;根据所述时序列表的先后顺序进行所述第一握手帧是否符合预设条件的选择验证。The system according to claim 9 , wherein the unconnected device is configured to be configured according to each A timing list is determined at a time point when a networked device feeds back the first handshake frame; and a selection verification of whether the first handshake frame meets a preset condition is performed according to the order of the timing list.
  15. 根据权利要求14所述的系统,其中,所述已连接设备,设置为在所述未连网设备中存储的网络标识与自身网络标识相同的情况下,确定所述未连网设备存在与目标区域,且所述未连网设备被允许执行单播交互;根据所述单播交互对应的预设条件确定待携带的认证信息,根据所述认证信息确定对应的第一握手帧,其中,所述认证信息中包括:标识当前握手帧唯一性的第一随机数值、已连网设备对应的网络标识,当前所述第一握手帧对应交互流程次数的序列号。The system according to claim 14, wherein the connected device is configured to determine that the non-networked device exists and the target if the network identifier stored in the unconnected device is the same as its own network identifier area, and the unconnected device is allowed to perform unicast interaction; determine the authentication information to be carried according to the preset conditions corresponding to the unicast interaction, and determine the corresponding first handshake frame according to the authentication information, wherein the The authentication information includes: a first random value identifying the uniqueness of the current handshake frame, a network identifier corresponding to the connected device, and a sequence number corresponding to the number of interaction processes of the current first handshake frame.
  16. 一种计算机可读的存储介质,其中,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至8任一项中所述的方法。A computer-readable storage medium, wherein a computer program is stored in the storage medium, wherein the computer program is configured to perform the method described in any one of claims 1 to 8 when running.
  17. 一种电子装置,包括存储器和处理器,其中,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至8任一项中所述的方法。An electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to perform the method described in any one of claims 1 to 8 method.
PCT/CN2022/096410 2021-07-29 2022-05-31 Information synchronization method and system, storage medium, and electronic device WO2023005410A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110867178.6A CN113613251A (en) 2021-07-29 2021-07-29 Information synchronization method and system, storage medium and electronic device
CN202110867178.6 2021-07-29

Publications (1)

Publication Number Publication Date
WO2023005410A1 true WO2023005410A1 (en) 2023-02-02

Family

ID=78306053

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/096410 WO2023005410A1 (en) 2021-07-29 2022-05-31 Information synchronization method and system, storage medium, and electronic device

Country Status (2)

Country Link
CN (1) CN113613251A (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
CN113613251A (en) * 2021-07-29 2021-11-05 青岛海尔科技有限公司 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106211264A (en) * 2016-07-11 2016-12-07 九阳股份有限公司 A kind of household electrical appliances distribution method and device
US20170055148A1 (en) * 2015-08-21 2017-02-23 Kiban Labs, Inc. Apparatus and method for sharing wifi security data in an internet of things (iot) system
CN111757356A (en) * 2020-06-23 2020-10-09 四川虹美智能科技有限公司 Equipment distribution network system and distribution network method thereof
CN112929908A (en) * 2021-03-17 2021-06-08 北京小米移动软件有限公司 Mesh networking method and device, gateway equipment and storage medium
CN113613251A (en) * 2021-07-29 2021-11-05 青岛海尔科技有限公司 Information synchronization method and system, storage medium and electronic device

Family Cites Families (6)

* 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
CN110971495B (en) * 2019-10-24 2021-12-24 青岛海尔科技有限公司 Equipment binding method and device of intelligent household system and storage medium
CN112202652A (en) * 2020-09-17 2021-01-08 海尔优家智能科技(北京)有限公司 Method and device for displaying information of equipment to be networked, storage medium and electronic device
CN112187831B (en) * 2020-10-30 2023-04-25 腾讯科技(深圳)有限公司 Equipment network access method and device, storage medium and electronic equipment
CN112566220B (en) * 2020-11-25 2022-10-18 中移(杭州)信息技术有限公司 Distribution network information synchronization method and device and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170055148A1 (en) * 2015-08-21 2017-02-23 Kiban Labs, Inc. Apparatus and method for sharing wifi security data in an internet of things (iot) system
CN106211264A (en) * 2016-07-11 2016-12-07 九阳股份有限公司 A kind of household electrical appliances distribution method and device
CN111757356A (en) * 2020-06-23 2020-10-09 四川虹美智能科技有限公司 Equipment distribution network system and distribution network method thereof
CN112929908A (en) * 2021-03-17 2021-06-08 北京小米移动软件有限公司 Mesh networking method and device, gateway equipment and storage medium
CN113613251A (en) * 2021-07-29 2021-11-05 青岛海尔科技有限公司 Information synchronization method and system, storage medium and electronic device

Also Published As

Publication number Publication date
CN113613251A (en) 2021-11-05

Similar Documents

Publication Publication Date Title
CN110708688B (en) Intelligent equipment network distribution method and device, controller and medium
WO2023005410A1 (en) Information synchronization method and system, storage medium, and electronic device
US20230254094A1 (en) METHOD AND APPARATUS FOR MoCA NETWORK WITH PROTECTED SET-UP
CN110636483A (en) Network distribution method and system
CN113423105B (en) Network connection method and device
WO2019128881A1 (en) Network configuration method and network system
US10693633B2 (en) Timestamp based onboarding process for wireless devices
US9510130B2 (en) Provisioning of multiple wireless devices by an access point
CN111490916B (en) Method, system, device and medium for binding ZigBee sub-devices of ZigBee
CN110602682A (en) Network management system and method based on Bluetooth BLE and mesh mixing
CN112671904B (en) Method and device for transmitting equipment state information, storage medium and electronic device
WO2023279897A1 (en) Secure binding method and system, storage medium, and electronic apparatus
CN112637931A (en) Method and device for establishing network connection
CN113132983B (en) Network disconnection reconnection method for intelligent terminal
CN112040484A (en) Password updating method and device, storage medium and electronic device
CN105246129B (en) The network-building method and device of a kind of intelligent terminal
WO2022105028A1 (en) Network configuration method and apparatus for internet of things device
US10104083B2 (en) Method and apparatus for MoCA network with protected set-up
WO2018196463A1 (en) Method and apparatus for network access, storage medium, and processor
CN111741514B (en) Network access information configuration method and device
CN113965916A (en) Equipment network distribution method, device, equipment and computer readable storage medium
CN114640691A (en) Equipment connection method and system and corresponding Internet of things equipment
CN112738785A (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN113132966A (en) Intelligent terminal fast network access method
CN116669026B (en) Password updating method, password updating system, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22848020

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE