Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, the present invention aims to: the method and the system for quickly networking the easy mesh network are arranged to solve the problem that the networking fails due to unskilled operation of a user in short networking time.
An easy mesh network rapid networking method comprises the following steps:
s10: the unpaired Agent router periodically sends Beacon data packets, and periodically scans the Beacon data packets sent by the Controller router around;
s20: if the Controller router scans and collects a Beacon data packet sent by a surrounding Agent router, analyzing the Beacon data packet, and judging whether the Beacon data packet is correct, wherein the correct Beacon data packet indicates that the Beacon data packet is sent by an unpaired Agent router, and the Agent router is allowed to be accessed into an EasyMesh network;
s30: and if the Agent route scans and collects the Beacon data packet sent by the surrounding Controller route, analyzing the Beacon data packet, judging whether the Beacon data packet is correct, and if the Beacon data packet is correct, setting the state of the Beacon data packet of the Agent route to be paired and accessing the EasyMesh network.
Further, the unpaired Agent in S10 leaves the factory and sets the MAC address and serial number.
Further, the Beacon data packets sent by the Agent route and the Controller route in S10 both define private IE information, where the private IE information includes: and the unpaired state, the MAC address, the serial number and the authentication mark are encrypted by using a fixed RSA private key and are added into the Beacon data packet of the private IE.
Further, the method for judging whether the Beacon data packet is correct comprises the following steps:
s100: analyzing the Beacon data packet, and judging whether the data packet contains the private IE information;
s200: if the private IE information is contained, the IE information is decrypted, and if the authentication standard in the decryption result is correct, the Beacon data packet is correct;
s300: if the data packet does not contain the private IE information or the authentication mark field is wrong, the data packet is wrong, and the result is ignored.
Further, in the S20, the manner of allowing the unpaired Agent to access the EasyMesh network by the route is: and encrypting the SSID and PASSWORD of the EasyMesh network and the MAC address and the serial number of the Agent route by an RSA public key and updating the encrypted MAC address and the serial number into a Beacon data packet of the Controller route.
Further, before executing the step S30, an Agent route MAC address and a sequence number that need to access the EasyMesh network are added to the Controller route.
Further, the mode of accessing the Agent route in S30 to the EasyMesh network is as follows: and configuring the SSID and the PASSSWORD in the analysis result to the own EasyMesh network.
Further, before implementing the step of S20 or S30, the Controller routing execution allows the Agent routing access operation.
In a second aspect, the present invention is also an EasyMesh network fast networking system, including a main route and a sub-route, and characterized in that:
the preparation module is used for periodically sending Beacon data packets and scanning surrounding Beacon data packets by the sub-router;
the analysis module is used for analyzing Beacon data packets of the main route and the sub-route;
the judging module is used for judging whether the Beacon data packets of the main route and the sub-route are correct or not;
an access module for allowing a sub-route to access the EasyMesh network.
Further, the main route is a Controller route, and the sub-route is an Agent route.
Compared with the prior art, the invention has the following advantages:
the invention provides an easy mesh network rapid networking method, wherein a user operates a Controller route to scan a Beacon data packet sent by a surrounding Agent route to obtain the state of the Agent route, an unpaired Agent route is accessed into the easy mesh network, the user can also operate an unpaired Agent route to scan the Beacon data packet sent by the surrounding Agent route to obtain the state of the Controller route, the states of the Beacon data packets of the Agent routes are set to be paired and accessed into the easy mesh network, WPS networking can be rapidly completed through the two modes, the networking efficiency is improved, and the user experience is improved.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and therefore are only used as examples, and the protection scope of the present invention is not limited thereby.
Fig. 1 is a block diagram of an easy mesh network fast networking method, and fig. 2 is a flowchart of an easy mesh network fast networking method. A quick networking method of an EasyMesh network comprises the steps of S10-S30;
s10: the unpaired Agent router periodically sends Beacon data packets, and periodically scans the Beacon data packets sent by the Controller router around;
s20: if the Controller router scans and collects a Beacon data packet sent by a surrounding Agent router, analyzing the Beacon data packet, and judging whether the Beacon data packet is correct, wherein the correct Beacon data packet indicates that the Beacon data packet is sent by an unpaired Agent router, and the Agent router is allowed to be accessed into an EasyMesh network;
s30: and if the Agent route scans and collects a Beacon data packet sent by the surrounding Controller route, analyzing the Beacon data packet, judging whether the Beacon data packet is correct, and if the Beacon data packet is correct, setting the states of the Beacon data packets of the Agent route to be paired and accessing the EasyMesh network.
In this embodiment, a user operates a Controller router to scan a Beacon data packet sent by a surrounding Agent router to obtain a state of the Agent router, an unpaired Agent router is accessed to an EasyMesh network, the user can also operate an unpaired Agent router to scan the Beacon data packet sent by the surrounding Agent router to obtain the state of the Controller router, the states of the Beacon data packets of the Agent routers are set to be paired, the Beacon data packets are accessed to the EasyMesh network, and WPS networking can be rapidly completed through the two modes, so that networking efficiency is improved, and user experience is improved.
The unpaired Agent route in S10 has factory set the MAC address and serial number.
In S10, the Beacon data packets sent by the Agent route and the Controller route both define private IE information, where the private IE information includes: and the unpaired state, the MAC address, the serial number and the authentication mark are encrypted by using a fixed RSA private key and are added into the Beacon data packet of the user.
The unpaired Agent route uses a fixed RSA private key to encrypt an Agent route MAC address, an Agent route serial number, an Agent authentication mark and an unpaired mark, and updates the encrypted Agent route MAC address, the Agent route serial number, the Agent authentication mark and the unpaired mark into a Beacon data packet of the unpaired Agent route.
Before executing S20 and S30, the user logs in a Controller routing interface and executes an allow Agent routing access operation.
In S20, the user clicks a scan button in the Controller routing interface, scans and collects the Beacon packet sent by the Agent routing around, and determines whether the Beacon packet is correct.
As shown in fig. 3, a flowchart for determining whether a Beacon packet is correct in an easy mesh network fast networking method, where the method for determining whether the Beacon packet is correct includes steps S100 to S200:
s100: analyzing the Beacon data packet, and judging whether the data packet contains the private IE information;
s200: if the private IE information is contained, the IE information is decrypted, and if the authentication standard in the decryption result is correct, the Beacon data packet is correct;
s300: if the data packet does not contain the private IE information or the authentication flag field is wrong, the data packet is wrong, and the result is ignored.
And if the Beacon data packet routed by the Agent is correct, indicating that unpaired Agent nodes exist around, and adding a network access permission button in the webpage for the nodes.
Once the user clicks the button, the Controller route initializes the private IE information of the Beacon packet of the Agent route, the IE information takes the MAC address and the serial number of the Agent route as authentication marks and contains the SSID and the PASSWORD of the EasyMesh network, and finally, the IE information is encrypted by the RSA public key and updated to the Beacon packet of the Controller route.
Before executing the step of S30, adding an Agent routing MAC address and a serial number which need to access the EasyMesh network into a Controller routing.
In S30, the Agent route actively scans the Beacon packet sent by the Controller route around, decrypts the Beacon packet using the Agent' S private key, and determines whether the Beacon packet is correct.
And if the Beacon data packet is correct, configuring the SSID and the PASSSWORD in the analysis result to the EasyMesh network of the Beacon data packet, setting the private IE state in the Beacon data packet of the Agent to be paired, configuring network parameters, and accessing the Beacon data packet to the EasyMesh network.
After the Controller routing starts the allowed Agent routing to access the network, a timer is triggered, and within the time of the timer, if the allowed Agent routing is accessed, the device is accessed in a page promotion user, and the Beacon packet is immediately updated, and the private IE field is deleted. And if the Agent route is not successfully accessed in the specified time range, prompting the user that the Agent route is not accessed in the page, prompting whether the user needs to continuously keep the network access state of the Agent route, and determining or cancelling whether the private IE field in the Beacon data packet needs to be deleted by clicking the user.
Based on the same inventive concept, an embodiment of the present invention further provides an easy mesh network rapid networking system, as shown in fig. 4, including:
the preparation module is used for periodically sending Beacon data packets and scanning peripheral Beacon data packets by the sub-router;
the analysis module is used for analyzing the Beacon data packets of the main route and the sub-route;
the judging module is used for judging whether the Beacon data packets of the main route and the sub-route are correct or not;
and the access module is used for allowing the sub-route to be accessed into the EasyMesh network.
Wherein, the main route is a Controller route, and the sub-route is an Agent route.
In conclusion, the easy mesh network rapid networking method and the easy mesh network rapid networking system solve the problem that the user is unskilled in operation in short networking time, which causes networking failure, can rapidly complete WPS networking through two modes, improve networking efficiency and improve user experience.
Finally, the above embodiments are only used for illustrating the technical solutions of the present invention and not for limiting, although the present invention is described in detail with reference to the embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all of them should be covered in the protection scope of the present invention.