CN112261708B - System and method for automatically configuring WiFi equipment in batches - Google Patents

System and method for automatically configuring WiFi equipment in batches Download PDF

Info

Publication number
CN112261708B
CN112261708B CN202011500509.4A CN202011500509A CN112261708B CN 112261708 B CN112261708 B CN 112261708B CN 202011500509 A CN202011500509 A CN 202011500509A CN 112261708 B CN112261708 B CN 112261708B
Authority
CN
China
Prior art keywords
network
information
intelligent
equipment
wifi equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011500509.4A
Other languages
Chinese (zh)
Other versions
CN112261708A (en
Inventor
杨尉
王昊翔
宋镭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jingxun Technology Co ltd
Original Assignee
Shenzhen Jingxun Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jingxun Technology Co ltd filed Critical Shenzhen Jingxun Technology Co ltd
Priority to CN202011500509.4A priority Critical patent/CN112261708B/en
Publication of CN112261708A publication Critical patent/CN112261708A/en
Application granted granted Critical
Publication of CN112261708B publication Critical patent/CN112261708B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/248Connectivity information update
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Automation & Control Theory (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a system and a method for automatically configuring WiFi (wireless fidelity) equipment in batches, which specifically comprise a server, at least two intelligent WiFi equipment and an intelligent mobile terminal, wherein the server is used for verifying the safety of the intelligent WiFi equipment, the intelligent mobile terminal is used for carrying out network distribution on the selected first WiFi equipment through an intelligent mobile application program, the intelligent mobile application program searches for an identifiable SSID head identifier, and the SSID information is decrypted and then connected with an AP hotspot; and after the WiFi equipment is connected with the network, applying for authentication again to the server, encrypting and storing authentication information, starting scanning a peripheral WiFi list, searching and connecting SSID head identifications of identifiable new WiFi equipment, and determining whether to transmit a new routing network information list or send a current routing network information list to the WiFi equipment. The invention utilizes the capability that each intelligent WiFi device can dynamically serve as a distribution network node, omits artificial and complex interactive operation, and has the advantages of long distance coverage, simple operation, safety, reliability and high distribution network speed.

Description

System and method for automatically configuring WiFi equipment in batches
Technical Field
The invention relates to the technical field of network configuration of an intelligent Internet of things, in particular to a system and a method for automatically configuring WiFi equipment in batches.
Background
Due to the rapid development of the internet of things, most of traditional devices need to integrate WiFi modules, and standard configuration of the internet of things is basically formed. However, this also brings certain operational complexity to the application of the internet of things, and a user needs to configure a WiFi network for the internet of things device in an actual operating environment. Most of the conventional devices are devices without visualization capability, such as devices of a refrigerator, an air conditioner, a socket, a switch, and the like, and a user generally needs to perform network configuration for the internet of things device by using a corresponding operation interaction interface (for example, through a mobile application of a smart phone).
There are many existing technologies for a WiFi device distribution network, including: the broadcast packet transmits WiFi identification information; starting WiFi hotspot direct connection transmission on the equipment; configuring a hot spot emitter product batch connection individually, etc. These techniques have certain limitations in practical use, for example, when broadcast packets are transmitted, the reliability of product networking cannot be guaranteed; the hot spot direct connection transmission needs to perform interface interaction for many times to complete the operation of the distribution network, and when the quantity of equipment in a family or a commercial occasion is large, a long time is needed to complete the networking operation of all the equipment, so that the use complexity of a user is increased; the problem can be solved by independently configuring a hot spot emitter, but a user is required to additionally purchase a product, so that the user cost is increased; the transmitter is limited by distance factors, power supply of all devices is not socket type, and the WiFi network can be uniformly configured in a range and a place in a unified mode.
Disclosure of Invention
The invention provides a system and a method for automatically configuring WiFi equipment in batches, and aims to solve at least one of the technical problems in the prior art to a certain extent.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows: a system for automatically configuring WiFi equipment in batches comprises a server, at least two intelligent WiFi equipment and an intelligent mobile terminal, wherein the server is used for verifying the safety of the intelligent WiFi equipment and verifying the credibility of the intelligent WiFi equipment, the intelligent mobile terminal is used for distributing a network to the selected first intelligent WiFi equipment through an intelligent mobile application program, and the intelligent mobile application program searches for a recognizable SSID head identifier and is connected with an AP hotspot after SSID information is decrypted; after the intelligent WiFi equipment is successfully connected with a network, applying for authentication from a server through user token information and equipment unique identification UUID, after the authentication is passed, encrypting and storing the authentication token information and router information into FLASH, starting peripheral WiFi list scanning by the successfully-distributed intelligent WiFi equipment, searching SSID head identification of new identifiable intelligent WiFi, decrypting SSID information, and if new identifiable intelligent WiFi equipment is searched, connecting the equipment to send a configured routing network information list: if the searched identifiable new intelligent WiFi equipment is configured with a network and the stored user token information is inconsistent with the user token information stored in the intelligent WiFi equipment which is currently configured with the network, stopping transmitting the new routing network information list; otherwise, sending the current routing network information list to the identifiable intelligent WiFi equipment.
The technical scheme adopted by the embodiment of the invention also comprises the following steps: the intelligent WiFi equipment comprises a WiFi module and a control unit I/O, and the control unit I/O performs peripheral control and key processing; after the intelligent WiFi equipment leaves the factory and is connected with a power supply, the intelligent WiFi equipment is in a state of not being distributed with a network by default, and the intelligent WiFi equipment works in a wireless access point mode.
The technical scheme adopted by the embodiment of the invention also comprises the following steps: after the configuration of the intelligent WiFi equipment for the first equipment is completed, the intelligent WiFi equipment works in an STA station working mode.
The technical scheme adopted by the embodiment of the invention also comprises the following steps: and the intelligent WiFi equipment is distributed with a network and then stores the encrypted router information in own FLASH.
The technical scheme adopted by the embodiment of the invention also comprises the following steps: the method for searching the peripheral credible AP hotspot information by the intelligent WiFi equipment with the distributed network comprises the following steps: and searching in a mode of 2 seconds at intervals of three times, and automatically stopping searching when credible AP hotspot information is not found after the three times of searching are finished.
The embodiment of the invention adopts another technical scheme that: a method for automatic batch configuration of WiFi equipment comprises the following steps: installing intelligent WiFi equipment in batches, selecting the intelligent WiFi equipment at a central point position to distribute a network to the equipment through an intelligent mobile application program, searching a recognizable SSID head identifier by the intelligent mobile application program, decrypting SSID information and connecting an AP hotspot;
step b: after the intelligent WiFi equipment is successfully connected with a network, applying for authentication from a server through user token information and equipment unique identification UUID, and encrypting and storing the authentication token information and router information in FLASH after the authentication is passed;
step c: the method comprises the following steps of starting peripheral WiFi list scanning by the intelligent WiFi equipment with successful distribution network, searching SSID head identification capable of identifying new intelligent WiFi, decrypting SSID information, and connecting the equipment to send a configured routing network information list if the identifiable new intelligent WiFi equipment is searched: if the searched identifiable new intelligent WiFi equipment is configured with a network and the stored user token information is inconsistent with the user token information stored in the intelligent WiFi equipment which is currently configured with the network, stopping transmitting the new routing network information list; otherwise, sending the current routing network information list to the identifiable intelligent WiFi equipment.
The technical scheme adopted by the embodiment of the invention also comprises the following steps: in the step a: the method comprises the steps that the intelligent WiFi equipment is installed in batches and is in a state of not being distributed with a network, the intelligent WiFi equipment works in an AP mode, the name and the security password of an AP hotspot enable each product to have unique SSID information according to a negotiated protocol, and unique identification information is applied to a cloud server and written into FLASH of the product when the product leaves a factory.
The technical scheme adopted by the embodiment of the invention also comprises the following steps: in the step b: after the intelligent WiFi device that has successfully distributed a network is successfully connected to the AP hotspot of the intelligent WiFi device that has not distributed a network, the intelligent WiFi device that has not distributed a network needs to be subjected to effective user token acquisition to judge whether the device is in a state of not connecting the distributed network or not distributing the network: if the device is in the distribution network unsuccessful connection state, applying authentication request confirmation to a server by acquiring the user token stored in the device, the unique identification code of the device and the effective user token of the current user, so as to judge whether the device is the device of the same user.
The technical scheme adopted by the embodiment of the invention also comprises the following steps: in the step b: if the devices are not the devices under the same user, the distribution network information is not sent, the current connection is disconnected, the AP hotspot information of the devices is recorded in a blacklist of the distributed devices, and the blacklist is cleared in the scanning of the peripheral non-distributed devices at a random time point every day of the devices; if the device which is not equipped with the network, the current router information list is sent to the device in a data encryption mode.
The technical scheme adopted by the embodiment of the invention also comprises the following steps: the step c further comprises the following steps: after the SSID information is updated, the equipment connected to the router network is disconnected; if the SSID is found to exist but the connection password is not correct or the SSID does not exist after continuously scanning for three times at intervals of 2 seconds, the mode cannot be automatically switched to the AP mode, and a user needs to actively configure new router network information or restore the SSID information through a mobile terminal application program; when the multi-router information stored in the equipment exists and is within the effective distance range of a plurality of routers, a memory identifier is needed, and when the information of successful equipment distribution network verification under the current user and pushed by a server is received, the AP mode is switched to automatically acquire the modified SSID information; and after the new SSID information is obtained, automatically switching the connection of other effective routers, and transmitting the SSID information updated by other distribution network equipment in the network through data encryption UDP.
Compared with the prior art, the invention has the beneficial effects that: 1) The distribution network of any first equipment adopts intelligent interactive operation; 2) The intelligent WiFi equipment is used for safely storing the information of the effective router, so that each piece of equipment can memorize the information of the effective router at one time through authorization of a user; 3) the wide-range WiFi equipment is automatically distributed with a network: the distance of the router is limited, and particularly, the effective distance is not too far under the condition that the indoor space is blocked, so that if the same user has large family area or commercial use (such as unified management of intelligent products in enterprises and markets), the automatic multi-WiFi router self-adaptive optimal network connection of all equipment can be completed at one time; 4) the intelligent WiFi equipment can be dynamically used as a distribution network node, manual complex interactive operation is omitted, and the intelligent WiFi equipment has the advantages of long distance coverage, simplicity in operation, safety, reliability and high distribution network speed.
Drawings
Fig. 1 is a schematic structural diagram of a system for automated batch configuration of WiFi devices according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for automated batch configuration of WiFi devices in accordance with an embodiment of the present invention;
fig. 3 is a flowchart of an automatic multi-routing distribution network of a method for automatically configuring WiFi devices in batch according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a schematic structural diagram of a system for automatically configuring WiFi devices in batch according to an embodiment of the present invention. Specifically, in the specific implementation manner of the present invention, the intelligent WiFi devices include an intelligent WiFi device 1, an intelligent WiFi device 2, an intelligent WiFi device 3, an intelligent WiFi device 4, an intelligent WiFi device 5 through an intelligent WiFi device N. The server is mainly used for verifying the safety of the intelligent WiFi equipment and verifying the credibility of the intelligent WiFi equipment, and if the verified intelligent WiFi equipment cannot be safely identified, the intelligent WiFi equipment is not allowed to acquire network information so as to prevent private information of a route from being leaked; the intelligent WiFi equipment is provided with a WiFi module and a control unit I/O, and the control unit I/O performs peripheral control and key processing; the intelligent mobile terminal mainly comprises a mobile phone and a visual flat mobile terminal device,
the working principle of the system for automatically configuring the WiFi equipment in batches in the embodiment of the invention is as follows:
after the intelligent WiFi equipment of a factory-leaving product is connected with a power supply, the intelligent WiFi equipment is in a state of not being distributed with a network by default, the product is in an AP mode (wireless access point mode) to work, the name and the security password of an AP hotspot enable each product to have unique SSID (service Set identifier) information according to a negotiated protocol, the unique identification information is applied to a server and written into a FLASH of the product when the product leaves the factory, and the intelligent WiFi equipment is in a passive connection state after being started for the first time; when a user owns a batch of intelligent WiFi equipment and installs the intelligent WiFi equipment for the first time, the intelligent WiFi equipment at a central point position can be selected to distribute the network to the equipment through an intelligent mobile application program, and the encrypted router information is stored in the FLASH after the intelligent WiFi equipment distributes the network; after the configuration of the first device is completed, the first device works in an STA mode, and starts peripheral WiFi information scanning after self data is initialized, when fixed identification head (such as SMART) data with protocol negotiation is scanned, AES128 is adopted for decryption according to the negotiated encryption mode, and then the server acquires corresponding password information according to the decrypted data; and after decryption, connecting a corresponding device AP hotspot, transmitting SSID network information to be connected by adopting a data encryption mode, scanning peripheral WiFi information, if scanning is continuously carried out for three times and the scanning interval time is 2 seconds, a recognizable AP hotspot identifier is not found, the intelligent WiFi device which has accessed to the network stops scanning so as to avoid reducing the working performance of the device, if the peripheral WiFi list scanning is stopped, the accessed device needs to be triggered to wake up to actively scan a peripheral trusted WiFi list, and in addition, the accessed device needs to scan the peripheral trusted WiFi device for three times at a random time within 24 hours after the current effective network connection time or the automatic search is finished. The random time scanning aims to relieve the pressure of uniform security authentication of the server after the same time point scans peripheral trusted equipment. The AP hotspot information security encryption description in the embodiment of the invention is as follows: 1) the AP security encryption content mainly comprises: SSID name, SSID password and encryption mode; 2) SSID name adopts two parts of fixed identification head and encryption body agreed, the encryption body is encrypted and obtained by AES128 by MAC address; the SSID password is stored in the server and is bound with the MAC address; the encryption mode adopts WPA/WPA2 encryption; 3) After the WiFi equipment of the distribution network scans the identifiable identification head, the identification head is transmitted to the server by https + security authentication, and SSID password information is acquired in a data encryption mode.
The distribution network information storage mechanism of the distributed WiFi equipment comprises the following steps: 1) after the first or any one of the WiFi devices completes the network configuration, it needs to support a plurality of effective router information storage functions (for other 2-N WiFi devices connected to the network, it also needs to store the received effective router information, in order to ensure that the devices within the effective distance range of the plurality of routers can obtain the same information, and the devices perform preferred connection); 2) When a commercial intelligent market needs to dynamically and quickly configure information of a plurality of routers, the configured router equipment can be uniformly deployed in the effective range of the periphery of the first distribution network equipment; 3) the distribution network connection is carried out on each routing device which can be used, and the SSID information of the router is encrypted and stored after the WiFi intelligent device is successfully connected with the network; 4) The distribution network information storage mechanism for the same product series comprises the following steps: the routing information list needs to be periodically stored along with the user valid token. When the equipment loses connection, a token server is required to be authenticated to verify that the equipment is trusted equipment under the same user when a new network connection request is automatically received, and automatic connection of routing information of other users is ensured under the condition that the routing information of other users is not authorized; 5) and when the WiFi equipment which is not accessed to the network receives the multi-route list information and the equipment is positioned in the range of a plurality of effective routers, automatically and preferentially connecting according to the RSSI (received signal strength indicator) strength of the scanned surrounding WiFi list.
In the embodiment, the information updating process of the router after the distribution network is completed: 1) when the password of the router information is changed, a certain device connected with the router needs to be newly distributed with a network and the storage information connected with the network needs to be updated; 2) when the routes connected with the equipment of the distributed network can not be connected, firstly searching an effective router list of the cache FLASH to connect, and when all the cache lists can not be connected, automatically switching back to the AP mode to change the original working state mode of the user (because of various possible reasons, the router of the user can only be temporarily and normally used, and software can not automatically destroy the possible changes of the user, such as self recovery known by the user, for example, power-off router, temporary router information modification test, and the like); 3) as described above, when the cache routing list has only one router information and the router information is changed, all devices need to be manually reset, so as to complete the initial network configuration method in the present invention; 4) as described above, when the cache routing list has a plurality of router information and a certain router information is changed, the non-networked device needs to be manually reset, so as to complete the initial network configuration method in the present invention; meanwhile, equipment in the effective range of a plurality of routers needs to have a memory function, and when verification information of a distribution network of a server user is received, the mode is automatically switched to an AP mode to acquire new router information; 5) as described above, when the cache router information list is updated, in order to ensure that the user routing information is not obtained by any way, the cloud server channel should not be used for updating, but the update of the cache valid routing list should be automatically completed locally: when a plurality of effective routing lists exist in the area range, each intelligent WiFi equipment node automatically scans peripheral effective WiFi lists, successfully connects the peripheral effective WiFi lists one by one, and notifies and updates the current effective routing information needing to be updated through UDP broadcast.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for automated batch configuration of WiFi devices according to an embodiment of the present invention. The method for automatically configuring the WiFi equipment in batches comprises the following steps:
step 100: installing intelligent WiFi equipment in batches, selecting the intelligent WiFi equipment at a central point position to distribute a network to the equipment through an intelligent mobile application program, searching a recognizable SSID head identifier by the intelligent mobile application program, decrypting SSID information and connecting an AP hotspot;
in step 100, the intelligent WiFi devices installed in batch are all in a state of not being in a network distribution, the intelligent WiFi devices operate in an AP mode, the name and the security password of the AP hotspot enable each product to have unique SSID information according to a negotiated protocol, and the unique identification information is applied to the cloud server and written into a FLASH of the product when the product leaves a factory. The AP hotspot information of the intelligent WiFi equipment consists of fixed SSID head information and encrypted identification information which are defined according to negotiation, and the password connected with the SSID needs to be applied to a server through data decrypted by an agreed AES128 decryption key.
Step 200: after the intelligent WiFi equipment is successfully connected with a network, applying for authentication from a server through user token information and equipment unique identification UUID, and encrypting and storing the authentication token information and router information in FLASH after the authentication is passed;
in step 200, the credibility of the intelligent WiFi device needs to be authenticated and confirmed through the server platform, and after the intelligent WiFi device that has successfully distributed the network successfully connects to the AP hotspot of the intelligent WiFi device that has not distributed the network, the intelligent WiFi device that has not distributed the network needs to be subjected to effective user token acquisition to determine whether the device is in a state of not connected to the distributed network or in a state of not distributing the network: if the device is in the distribution network unsuccessful connection state, applying authentication request confirmation to a server by acquiring the user token stored in the device, the unique identification code of the device and the effective user token of the current user, so as to judge whether the device is the device of the same user. If the devices are not the devices under the same user, the distribution network information is not sent, the current connection is disconnected, and the AP hotspot information of the devices is recorded in a blacklist of the distributed devices, so that the distributed devices are prevented from being repeatedly connected. And the blacklist list is cleared in the process of scanning the peripheral equipment which is not distributed at a random time point every day, and the steps are repeated. If the equipment without the network is not configured with the network, the current router information list is sent to the equipment in a data encryption mode, so that the equipment without the network is connected through the router information list selection router network, the intelligent WiFi equipment at a central point position is supposed to be selected to be the intelligent WiFi equipment 1, and after the first intelligent WiFi equipment 1 is configured, the intelligent WiFi equipment 1 automatically searches for the peripheral credible intelligent WiFi equipment 2 and the peripheral credible intelligent WiFi equipment 3. The topology shown in fig. 1 indicates that any intelligent WiFi device may become a distribution network node for distributing networks for WiFi intelligent devices around the intelligent WiFi device. The system components shown in fig. 1 only need to first configure effective router information, so that the effective range of all intelligent WiFi equipment distribution networks can be expanded without limitation, and the limitation constraint of WiFi effective distances is greatly solved. In this embodiment, the intelligent WiFi devices in the first network distribution listed in the system module block diagram may select the central point range of all the devices in the network distribution, and the relative signal strength is stronger, so that the network distribution speed can be accelerated more quickly. In this embodiment, it is not restricted that a central point device is necessarily selected for distribution, but it is only recommended that any intelligent WiFi device capable of connecting to a router below a user can be used as a first distribution device, and all the intelligent WiFi devices are used as a part of the embodiments of the present invention.
Step 300: the method comprises the following steps of starting peripheral WiFi list scanning by the intelligent WiFi equipment with successful distribution network, searching SSID head identification capable of identifying new intelligent WiFi, decrypting SSID information, and connecting the equipment to send a configured routing network information list if the identifiable new intelligent WiFi equipment is searched: if the searched identifiable new intelligent WiFi equipment is configured with a network and the stored user token information is inconsistent with the user token information stored in the intelligent WiFi equipment which is currently configured with the network, stopping transmitting the new routing network information list; otherwise, sending the current routing network information list to the identifiable intelligent WiFi equipment.
The step 300 specifically includes steps 310 to 3N0, and in steps 310 to 3N0, the state processing mechanisms of the first or nth successfully-configured intelligent WiFi devices are consistent, and the first or nth successfully-configured intelligent WiFi devices serve as the intelligent WiFi devices themselves, and do not distinguish that the current nodes are successfully configured. And automatically searching the surrounding credible AP hotspot information as long as the current WiFi equipment router is successfully connected. The method for searching peripheral credible AP hotspot information by the intelligent WiFi equipment with the distributed network comprises the following steps: in order to ensure the reliability of the search, the search is carried out in a mode of 2 seconds at intervals of three times, and the search is automatically stopped when credible AP hotspot information is not found after the three times of continuous search are finished. The order of magnitude definition of the search pattern in the described embodiment of the present invention is only a recommendation, and any order of magnitude adjustment will still be part of the present invention. After the peripheral credible AP hotspot searching is stopped in the embodiment, each device randomly generates a time point within 24 hours in the future to automatically search the peripheral credible AP hotspots so as to facilitate automatic discovery of newly added devices which are not accessed to the network. The purpose of the random time point described in this embodiment is to prevent the server from being over stressed due to the fact that a lot of devices send a large number of device authentications to the server at the same time point. After the intelligent WiFi device in this embodiment successfully joins in a network, the obtained router network list information needs to be encrypted and stored, so as to prevent the FLASH of the device from being read by someone from revealing the router information of the user. The intelligent WiFi equipment needs to have a shortcut to trigger peripheral credible AP hotspot scanning under the condition of network connection, so that when a user newly adds intelligent WiFi equipment without a distribution network, the intelligent WiFi equipment can be quickly connected to a router network. The shortcut for triggering the peripheral credible AP hotspot scanning can be set according to the characteristics of the product, and is not particularly defined in the embodiment of the present invention, and any definition in the present implementation principle shall belong to the content of the present invention.
Referring to fig. 3, fig. 3 is a flowchart illustrating an automatic multi-routing distribution network according to a method for automatically configuring WiFi devices in batch according to an embodiment of the present invention. The intelligent WiFi devices in the distributed network shown in fig. 3 only list some two intelligent WiFi devices in the distributed network, and it is assumed that the intelligent WiFi device 1 is connected to the router 1, and the intelligent WiFi device 2 is connected to some router N, where the router name is merely defined for describing the present embodiment, the router 1 and the router N may also be the same router, and the same is also applicable to the present flowchart, where two different routers are used to illustrate the distance range expandability of the automatic distribution network of the intelligent WiFi device and the networking competition optimization processing method under the multiplexer).
Assuming that the intelligent WiFi devices not connected to the network are located in the effective distance range of the intelligent WiFi devices connected to the network under two routers or in the effective distance range of the intelligent WiFi devices connected to the network under the same router, both the two intelligent WiFi devices connected to the network can search for AP hotspot information of the intelligent WiFi devices (for the intelligent WiFi devices not connected to the network within the effective distance range of the intelligent WiFi devices connected to the network, the process is performed according to the flow shown in fig. 2).
The method comprises the steps that two or more intelligent WiFi devices which are already distributed with networks search AP hotspots of intelligent WiFi devices which are not already distributed with networks, if the devices are credible AP hotspot information, the devices take the first intelligent WiFi device which is connected with the devices and is already distributed with networks as effective connection, other devices reply to the devices which are currently distributed with networks according to a negotiated protocol after connection of the other devices is successful, the other devices automatically release the connection after receiving the information, and automatically process the devices which are not distributed with networks within a short certain time. The purpose of maintaining an active connection is not to handle too much information interaction because the active router information stored in the devices of the distributed network is consistent. After the credible intelligent WiFi equipment which is not provided with the network receives the connectable network router list information, the credible intelligent WiFi equipment starts to scan the peripheral WiFi hotspot information list. The distance of the automatic distribution network of the equipment is wide, and the network connection is stable. The user only needs to match the router needing the distribution network with a certain device once, and then the router information list is stored in the device. The router information list may then be obtained by the authenticated new device. Any equipment which is distributed with the network can select a router network to connect according to the distance between the equipment and different routers, and the stability of equipment connection is guaranteed. The method for scanning the information of each router in the peripheral router information list by the equipment mainly comprises the following steps: the name of the SSID of the router, the RSSI network signal strength of the router, the encryption mode of the router, the channel of the router, the BSSID and other information. The device compares the BSSID in the scanned router information list with the BSSID information in the router SSID information list stored in the FLASH, extracts the matched SSID routers, and selects the router with the maximum RSSI network signal intensity of the scanned router to connect according to the encryption mode of the router through the stored router password if a plurality of routers exist.
The embodiment of the present application further provides a mechanism for dynamically updating and storing router information, and users may change their router information at any time, including updating SSID names or SSID passwords. After the SSID information is updated, the device previously connected to the router network is disconnected. After the device configured with the network is disconnected, the following processes are respectively processed according to the situation: if the SSID is found to exist but the connection password is not correct or the SSID does not exist after 2 seconds every time of continuous scanning for three times, the equipment cannot be automatically switched to the AP mode because the equipment cannot judge the reasons of artificial test modification or artificial power-off operation and the like, and a user needs to actively configure new router network information or restore the SSID information through a mobile terminal application program; when the SSID password modification causes a connection failure condition, when the multi-router information exists in the equipment and is within the effective distance range of a plurality of routers, a memory identifier is needed, and the equipment is switched to an AP mode for 5 to 10 seconds when the information which is pushed by the server and is successfully verified by the equipment distribution network of the current user is received so as to ensure that the modified SSID information is automatically obtained; after the new SSID information is obtained, other effective routers need to be automatically switched to be connected, and the SSID information updated by other network-distributed equipment in the network is transmitted through the data encryption UDP. The update of the SSID password information ensures that the router information of all nodes under the user is uniformly updated to ensure consistency.
In the embodiment of the present invention, the intelligent WiFi device refers to any device with WiFi connection capability, including a single WiFi module product, a gateway device with WiFi connection capability, and the like.
According to the embodiment of the invention, any intelligent WiFi equipment is adopted as the dynamic distribution network node, so that the limitation of the distribution network is solved from the aspects of rapidness, safety, simplicity, reliability, wide range and automation processing of multiple dimensions of the distribution network. Although the embodiments described above have been described in some detail, it should be understood by those skilled in the art that various changes and modifications may be made without departing from the basic concept of the invention, and these changes and modifications are also considered as the protection scope of the invention.
The invention has the following beneficial effects: 1) The distribution network of any first equipment adopts intelligent interactive operation; 2) The intelligent WiFi equipment is used for safely storing the information of the effective router, so that each piece of equipment can memorize the information of the effective router at one time through authorization of a user; 3) the wide-range WiFi equipment is automatically distributed with a network: the distance of the router is limited after all, and particularly the effective distance is not too far under the condition that the indoor barrier exists, so that if the same user has large family area or commercial use (such as unified management of intelligent products in enterprises and shopping malls), the automatic multi-WiFi router self-adaptive optimal network connection of all equipment can be completed at one time; 4) the intelligent WiFi equipment can be dynamically used as a distribution network node, manual complex interactive operation is omitted, and the intelligent WiFi equipment has the advantages of long distance coverage, simplicity in operation, safety, reliability and high distribution network speed.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. The system for automatically configuring the WiFi equipment in batches is characterized by comprising a server, at least two intelligent WiFi equipment and an intelligent mobile terminal, wherein the server is used for verifying the safety of the intelligent WiFi equipment and verifying the credibility of the intelligent WiFi equipment, the intelligent WiFi equipment is in a non-distribution network state by default after leaving a factory and accessing a power supply, the intelligent WiFi equipment works in a wireless access point mode, the intelligent mobile terminal performs distribution on the selected first intelligent WiFi equipment through an intelligent mobile application program, the intelligent mobile application program searches for an identifiable SSID head identifier and is connected with an AP hotspot after SSID information is decrypted; after the intelligent WiFi equipment is successfully connected with a network, applying for authentication to a server through user token information and equipment unique identification UUID, after the authentication is passed, encrypting and storing the authentication token information and router information into FLASH, starting peripheral WiFi list scanning by the intelligent WiFi equipment which has successfully distributed the network, searching SSID head identification of new identifiable intelligent WiFi, decrypting the SSID information, and if new identifiable intelligent WiFi equipment is searched, connecting the equipment to send a configured routing network information list: if the searched identifiable new intelligent WiFi equipment is configured with a network and the stored user token information is inconsistent with the user token information stored in the intelligent WiFi equipment which is currently configured with the network, stopping transmitting the new routing network information list; otherwise, sending the current routing network information list to the identifiable intelligent WiFi equipment; the intelligent WiFi equipment which is already distributed searches AP hot spots of intelligent WiFi equipment which is not distributed with a network, if the intelligent WiFi equipment which is not distributed with the network is credible AP hot spot information, the intelligent WiFi equipment which is not distributed with the network uses the distributed intelligent WiFi equipment which is connected with the equipment at the first as effective connection, after the intelligent WiFi equipment is successfully connected with other distributed intelligent WiFi equipment, the intelligent WiFi equipment which is not distributed with the network replies to the intelligent WiFi equipment which is in the distribution network according to a negotiated protocol, and the other distributed intelligent WiFi equipment automatically releases the established connection after receiving the information in the distribution network; if the SSID is found to exist but the connection password is not correct or the SSID does not exist after continuously scanning for three times at intervals of 2 seconds, the mode cannot be automatically switched to the AP mode, and a user needs to actively configure new router network information or restore the SSID information through an intelligent mobile terminal application program.
2. The system for automated batch configuration of WiFi devices of claim 1, wherein said intelligent WiFi devices comprise WiFi modules and control unit I/O, said control unit I/O performs peripheral control, key processing.
3. The system of claim 2, wherein the intelligent WiFi devices operate in STA site operation mode after configuration of the first device is completed.
4. The system for automated batch configuration of WiFi devices of claim 3, wherein the intelligent WiFi devices save the encrypted router information in their own FLASH after distribution.
5. The system for automatically configuring WiFi equipment in batches according to claim 1, wherein the intelligent WiFi equipment with the distributed network searches for peripheral credible AP hotspot information in a manner that: and searching in a mode of 2 seconds at intervals of three times, and automatically stopping searching when credible AP hotspot information is not found after the three times of searching are finished.
6. A method for automatic batch configuration of WiFi devices is characterized by comprising the following steps:
step a: installing intelligent WiFi equipment in batches, selecting the intelligent WiFi equipment at a central point position to distribute a network to the equipment through an intelligent mobile application program, searching a recognizable SSID head identifier by the intelligent mobile application program, decrypting SSID information and connecting an AP hotspot, wherein the intelligent WiFi equipment is installed in batches and is in a state of not distributing the network, and the intelligent WiFi equipment works in an AP mode;
step b: after the intelligent WiFi equipment is successfully connected with a network, applying for authentication from a server through user token information and equipment unique identification UUID, and encrypting and storing the authentication token information and router information in FLASH after the authentication is passed;
step c: the method comprises the following steps of starting peripheral WiFi list scanning by the intelligent WiFi equipment with successful distribution network, searching SSID head identification capable of identifying new intelligent WiFi, decrypting SSID information, and connecting the equipment to send a configured routing network information list if the identifiable new intelligent WiFi equipment is searched: if the searched identifiable new intelligent WiFi equipment is configured with a network and the stored user token information is inconsistent with the user token information stored in the intelligent WiFi equipment which is currently configured with the network, stopping transmitting the new routing network information list; otherwise, sending the current routing network information list to the identifiable intelligent WiFi equipment; the intelligent WiFi equipment which is already distributed searches AP hot spots of intelligent WiFi equipment which is not distributed with a network, if the intelligent WiFi equipment which is not distributed with the network is credible AP hot spot information, the intelligent WiFi equipment which is not distributed with the network uses the distributed intelligent WiFi equipment which is connected with the equipment at the first as effective connection, after the intelligent WiFi equipment is successfully connected with other distributed intelligent WiFi equipment, the intelligent WiFi equipment which is not distributed with the network replies to the intelligent WiFi equipment which is in the distribution network according to a negotiated protocol, and the other distributed intelligent WiFi equipment automatically releases the established connection after receiving the information in the distribution network; if the SSID is found to exist but the connection password is not correct or the SSID does not exist after continuously scanning for three times at intervals of 2 seconds, the mode cannot be automatically switched to the AP mode, and a user needs to actively configure new router network information or restore the SSID information through an intelligent mobile terminal application program.
7. The method for automated bulk configuration of WiFi devices of claim 6, wherein in step a: the name and the security password of the AP hotspot enable each product to have unique SSID information according to a negotiated protocol, and the unique identification information is applied to the cloud server and written into FLASH of the product when the product leaves a factory.
8. The method for automated bulk configuration of WiFi devices of claim 6, wherein in step b: after the intelligent WiFi device that has successfully distributed a network is successfully connected to the AP hotspot of the intelligent WiFi device that has not distributed a network, the intelligent WiFi device that has not distributed a network needs to be subjected to effective user token acquisition to judge whether the device is in a state of not connecting the distributed network or not distributing the network: if the device is in the distribution network unsuccessful connection state, applying authentication request confirmation to a server by acquiring the user token stored in the device, the unique identification code of the device and the effective user token of the current user, so as to judge whether the device is the device of the same user.
9. The method for automated bulk configuration of WiFi devices of claim 8, wherein in step b: if the devices are not the devices under the same user, the distribution network information is not sent, the current connection is disconnected, the AP hotspot information of the devices is recorded in a blacklist of the distributed devices, and the blacklist is cleared in the scanning of the peripheral non-distributed devices at a random time point every day of the devices; if the device which is not equipped with the network, the current router information list is sent to the device in a data encryption mode.
10. The method for automated bulk configuration of WiFi devices of claim 6, further comprising at said step c: when the multi-router information stored in the equipment exists and is within the effective distance range of a plurality of routers, a memory identifier is needed, and when the information of successful equipment distribution network verification under the current user and pushed by a server is received, the AP mode is switched to automatically acquire the modified SSID information; and after the new SSID information is obtained, automatically switching the connection of other effective routers, and transmitting the SSID information updated by other distribution network equipment in the network through data encryption UDP.
CN202011500509.4A 2020-12-18 2020-12-18 System and method for automatically configuring WiFi equipment in batches Active CN112261708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011500509.4A CN112261708B (en) 2020-12-18 2020-12-18 System and method for automatically configuring WiFi equipment in batches

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011500509.4A CN112261708B (en) 2020-12-18 2020-12-18 System and method for automatically configuring WiFi equipment in batches

Publications (2)

Publication Number Publication Date
CN112261708A CN112261708A (en) 2021-01-22
CN112261708B true CN112261708B (en) 2021-07-20

Family

ID=74225353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011500509.4A Active CN112261708B (en) 2020-12-18 2020-12-18 System and method for automatically configuring WiFi equipment in batches

Country Status (1)

Country Link
CN (1) CN112261708B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873505B (en) * 2021-02-18 2023-09-01 天翼数字生活科技有限公司 Method and system for automatically discovering distribution network by intelligent terminal
CN113423105B (en) * 2021-06-10 2022-06-14 杭州华橙软件技术有限公司 Network connection method and device
CN114124898B (en) * 2021-10-22 2023-07-21 深圳中科德能科技有限公司 Automatic searching method and device for intelligent equipment
CN114245402B (en) * 2021-12-13 2023-09-08 珠海格力电器股份有限公司 Network distribution method and device of intelligent equipment, electronic equipment and storage medium
CN114286421A (en) * 2021-12-22 2022-04-05 珠海格力电器股份有限公司 Network distribution method, device and system, electronic equipment and storage medium
CN114339960B (en) * 2022-01-07 2023-03-21 深圳华芯信息技术股份有限公司 Robot rapid network configuration method and system, robot equipment end and APP end
CN115225818B (en) * 2022-07-13 2024-05-21 北京有竹居网络技术有限公司 Method, apparatus, device and storage medium for configuring device
CN115580912B (en) * 2022-12-07 2023-03-03 深圳市华曦达科技股份有限公司 Whole-house intelligent equipment WiFi connection management method, system and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106332143A (en) * 2016-09-28 2017-01-11 四川长虹电器股份有限公司 Method for rapidly configuring a network for smart device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014118647A2 (en) * 2013-01-09 2014-08-07 Nathanson Martin D Vehicle communications via wireless access vehicular environment
CN105141645A (en) * 2014-05-29 2015-12-09 阿里巴巴集团控股有限公司 Login method of terminal devices, terminal devices and cloud server
CN105554754A (en) * 2015-12-16 2016-05-04 Tcl集团股份有限公司 Method and system for accessing WIFI module of the internet of things to network
CN105871635B (en) * 2016-06-02 2018-12-25 山东有人信息技术有限公司 The method that a kind of multiple WIFI module parameters in local area automatically configure
CN106100890A (en) * 2016-06-28 2016-11-09 杭州威威网络科技有限公司 A kind of automatically scanned the method that Quick Response Code completes parameter configuration by equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106332143A (en) * 2016-09-28 2017-01-11 四川长虹电器股份有限公司 Method for rapidly configuring a network for smart device

Also Published As

Publication number Publication date
CN112261708A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
CN112261708B (en) System and method for automatically configuring WiFi equipment in batches
US10129745B2 (en) Authentication method and system for wireless mesh network
US8959601B2 (en) Client configuration during timing window
EP3396928B1 (en) Method for managing network access rights and related device
JP3869392B2 (en) User authentication method in public wireless LAN service system and recording medium storing program for causing computer to execute the method
EP2731382B1 (en) Method for setting terminal in mobile communication system
US8150372B2 (en) Method and system for distributing data within a group of mobile units
US7831835B2 (en) Authentication and authorization in heterogeneous networks
EP3764697B1 (en) Method of batch automatic network configuration of wifi devices, terminal equipment and storage medium
US20070190973A1 (en) Base station, wireless communication systems, base station control programs and base station control methods
CN101379795A (en) address assignment by a DHCP server while client credentials are checked by an authentication server
CN101888630B (en) Authentication Method, system and device for switching access networks
WO2006129287A1 (en) Method and devices for wireless network access management
CN108605277B (en) Method and device for establishing wireless local area network connection
US8312151B2 (en) Communication systems and methods for dynamic and secure simplification of equipment networking
KR101460766B1 (en) Security setting system and the control method for using clurster function in Wireless network system
CN110943835A (en) Distribution network encryption method and system for sending wireless local area network information
CN103781071B (en) The method of access points and relevant device
KR101692917B1 (en) Apparatus and method for security management of home IoT device
US20060041749A1 (en) Method and system for improved communication network setup
CN113194471B (en) Wireless network access method, device and terminal based on block chain network
KR100621124B1 (en) Method for managing encryption key in wireless network and network apparatus using the same
CN113347627B (en) Wireless network access method, device and mobile terminal
US20240073690A1 (en) Transmission of network access information for wireless device
JP2006020088A (en) Automatic connection method of network, apparatus for automatically connecting to network, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant