Internet of things wireless terminal, configuration method thereof and wireless network access pointTechnical Field
The invention belongs to the field of communication, and particularly relates to an Internet of things wireless terminal, a configuration method thereof and a wireless network access point.
Background
The internet of things technology generally has three layers of architectures, namely a sensing layer, a network transmission layer and an application layer. The network transmission layer is a channel for transmitting the whole information and is also a medium for constructing a network by each Internet of things terminal and the Internet of things control center. Wi-Fi, which is the most popular internet access method at present, has been widely used in various fields, and is also being widely applied to networking of the internet of things, and is considered to be the most important networking method. The terminal of the internet of things using Wi-Fi networking is called as a wireless terminal of the internet of things.
Building the internet of things through Wi-Fi firstly requires forming Wi-Fi coverage in a certain area by using a single or a plurality of Wi-Fi APs (Access points, wireless NetWork Access points), all the Wi-Fi APs are located in the same wireless local area NetWork and have the same wireless NetWork name and encryption setting, so that all wireless terminals of the internet of things are located in the coverage area of the wireless local area NetWork, and the wireless local area NetWork1 is called as a service NetWork, as shown in fig. 1, because an internet of things control center can be generally connected to the Wi-Fi APs in a wired or wireless manner, the internet of things control center itself is a Wi-Fi AP in some cases, and therefore, the internet of things control center is not marked in the figure. The SSID (Service Set Identifier) and password information of the Service network are configured and managed by a network administrator or a user, and the Service network may further include devices required by the internet of things, such as a gateway and a server, to perform corresponding functions.
In the prior art, wireless terminals of the internet of things need to be configured one by one, so that all wireless terminals of the internet of things are successfully connected to a service network. Taking the following process of configuring the wireless terminal of the internet of things by using a mobile terminal such as a smart phone and a tablet personal computer as an example, the specific configuration process mainly comprises the following steps:
1) the wireless terminal of the internet of things is in a factory configuration state through a Reset key of the wireless terminal of the internet of things, at the moment, the wireless terminal of the internet of things starts a Wi-Fi Soft-AP mode to create a temporary wireless NetWork, and the created wireless NetWork NetWork2 is called as a temporary NetWork;
2) connecting to a temporary network using a mobile terminal such as a smartphone, a tablet computer, etc., as shown in fig. 2;
3) the mobile terminal searches the wireless terminal of the internet of things by using Application software (APP) specially used for configuring the wireless terminal of the internet of things, inputs SSID (service set identifier) and password information of a service network by using the APP, and stores configuration;
4) the wireless terminal of the Internet of things exits from a factory configuration state, is automatically connected to a service network, and simultaneously closes a temporary network established by the wireless terminal of the Internet of things;
5) repeating the steps 1)2)3)4) above, so that all the wireless terminals of the internet of things are connected to the service network, as shown in fig. 3.
Finally, the mobile terminal needs to be reconnected to the service network, search for the wireless terminals of the internet of things in the network by using the APP, and further configure and manage the searched wireless terminals of the internet of things. The mobile terminals such as the smart phone and the tablet computer can also be replaced by a notebook computer with a wireless network card, and at the moment, the APP is also replaced by corresponding application software, and the configuration process is similar and is not repeated.
However, the configuration method of the wireless terminal of the internet of things in the prior art has the following problems:
1) the configuration step is complicated. The mobile terminal firstly needs to be connected to a wireless network established by the wireless terminal of the internet of things, then wireless configuration is carried out through the APP, then disconnection and reconnection are needed to be carried out on the wireless network in the layout, and further configuration is carried out through the APP. The switching of the wireless network and the generation and the closing of the wireless network exist in the configuration process, and the complex configuration process is difficult to understand by general users;
2) the configuration process lacks security. Because the wireless network established by the wireless terminal of the internet of things is generally an open network and no access password is set or a general password is used, the wireless network is likely to be accessed by an illegal mobile terminal and illegally operates equipment, thereby bringing a series of potential safety hazards.
Disclosure of Invention
The invention aims to provide an Internet of things wireless terminal, a configuration method thereof and a wireless network access point, and aims to solve the problems of complex configuration steps and lack of safety of the Internet of things wireless terminal configuration method in the prior art.
In a first aspect, the present invention provides a configuration method for a wireless terminal of an internet of things, where the method includes:
a wireless network access point AP which enables an authentication network receives network access request information sent by a wireless terminal of the Internet of things; the wireless terminal of the Internet of things is connected to the authentication network through a preset name SSID and a preset password of a wireless network of the authentication network; the network access request information comprises an MAC address, a device name, a device type and a device authentication code of the device;
the AP generates the wireless terminal device information of the Internet of things requesting for network access according to the device name and the device type in the network access request information, sends the wireless terminal device information of the Internet of things requesting for network access to a mobile terminal in a service network, and waits for the mobile terminal to send the authentication code of the wireless terminal device of the Internet of things requesting for network access to the AP;
the AP judges whether the equipment authentication code sent by the wireless terminal of the Internet of things is consistent with the equipment authentication code sent by the mobile terminal so as to realize authentication;
and if the authentication is passed, the AP sends configuration information of the service network to the wireless terminal of the Internet of things so that the wireless terminal of the Internet of things is connected to the service network through the configuration information of the service network.
In a second aspect, the present invention provides a wireless network access point AP, including:
the first receiving module is used for receiving network access request information sent by the wireless terminal of the Internet of things by the AP which enables the authentication network; the wireless terminal of the Internet of things is connected to the authentication network through a preset name SSID and a preset password of a wireless network of the authentication network; the network access request information comprises an MAC address, a device name, a device type and a device authentication code of the device;
the first sending module is used for generating the wireless terminal device information of the internet of things requesting for network access according to the device name and the device type in the network access request information, sending the wireless terminal device information of the internet of things requesting for network access to a mobile terminal in a service network, and waiting for the mobile terminal to send the authentication code of the wireless terminal device of the internet of things requesting for network access to the AP;
the first judgment module is used for judging whether the equipment authentication code sent by the wireless terminal of the Internet of things is consistent with the equipment authentication code sent by the mobile terminal so as to realize authentication;
and the second sending module is used for sending the configuration information of the service network to the wireless terminal of the Internet of things if the authentication is passed so that the wireless terminal of the Internet of things is connected to the service network through the configuration information of the service network.
In a third aspect, the present invention provides a configuration method for an internet of things wireless terminal, where the method includes:
the wireless terminal of the Internet of things is connected to the authentication network through a preset name SSID and a preset password of a wireless network of the authentication network;
the method comprises the steps that an Internet of things wireless terminal sends network access request information to a wireless network Access Point (AP) to request to join a service network, wherein the network access request information comprises an MAC (media access control) address, an equipment name, an equipment type and an equipment authentication code of equipment; judging whether the equipment authentication code sent by the wireless terminal of the Internet of things is consistent with the equipment authentication code sent by the mobile terminal by the AP so as to realize authentication;
the wireless terminal of the Internet of things receives configuration information of a service network sent by the AP after the authentication is passed;
the wireless terminal of the Internet of things analyzes the configuration information of the service network to obtain the SSID and the password of the service network;
and the wireless terminal of the Internet of things is connected to the service network through the SSID and the password of the service network.
In a fourth aspect, the present invention provides an internet of things wireless terminal, including:
the first connection module is used for connecting to the authentication network through the preset name SSID and password of the wireless network of the authentication network;
a third sending module, configured to send network access request information to a wireless network access point AP, requesting to join a service network, where the network access request information includes an MAC address of a device, a device name, a device type, and a device authentication code; judging whether the equipment authentication code sent by the wireless terminal of the Internet of things is consistent with the equipment authentication code sent by the mobile terminal by the AP so as to realize authentication;
the fourth receiving module is used for receiving the configuration information of the service network sent by the AP after the authentication is passed;
the analysis module is used for analyzing the configuration information of the service network and acquiring the SSID and the password of the service network;
and the second connection module is used for connecting to the service network through the SSID and the password of the service network.
In a fifth aspect, the present invention provides a configuration method for a wireless terminal of an internet of things, where the method includes:
the wireless terminal of the Internet of things is connected to the authentication network through a preset name SSID and a preset password of a wireless network of the authentication network;
the method comprises the steps that an Internet of things wireless terminal sends network access request information to a wireless network Access Point (AP) to request to join a service network, wherein the network access request information comprises an MAC (media access control) address, an equipment name, an equipment type and an equipment authentication code of equipment;
the AP which has started the authentication network generates the equipment name and the equipment type in the network access request information into the wireless terminal equipment information of the Internet of things which requests network access, and sends the wireless terminal equipment information of the Internet of things to the mobile terminal in the service network;
the mobile terminal generates a prompt message to prompt an administrator that a new device requests to access the network and requires the administrator to input a device authentication code;
the mobile terminal receives an input device authentication code;
the mobile terminal sends the equipment authentication code to the AP;
the AP judges whether the equipment authentication code sent by the wireless terminal of the Internet of things is consistent with the equipment authentication code sent by the mobile terminal so as to realize authentication;
if the authentication is passed, the AP sends configuration information of the service network to the wireless terminal of the Internet of things;
the wireless terminal of the Internet of things analyzes the configuration information of the service network to obtain the SSID and the password of the service network;
and the wireless terminal of the Internet of things is connected to the service network through the SSID and the password of the service network.
In the invention, as the AP starts the authentication network, the wireless terminal of the Internet of things is connected to the authentication network through the preset SSID and password of the authentication network, so that the wireless terminal of the Internet of things can be connected to the AP under the condition of no setting, and indirectly communicates with the mobile terminal; in addition, the access of illegal equipment and the risk of illegal management of new equipment are limited through the process of bidirectional authentication of the authentication code; in addition, the operation of an administrator is simplified by a method of issuing configuration information to the wireless terminal of the Internet of things through the AP; in addition, the two-way authentication of the mobile terminal and the wireless terminal of the Internet of things ensures the safety of the service network. In conclusion, the invention can greatly reduce the complexity of the configuration process, improve the safety of the configuration process, and can be widely applied to the configuration process of the wireless terminal of the internet of things in the environments of family, enterprise office and production.
Drawings
Fig. 1 is a schematic diagram of all internet-of-things wireless terminals in the coverage area of a wireless local area NetWork netword 1 in the prior art.
Fig. 2 and 3 are schematic diagrams of configuring an internet of things wireless terminal through a mobile terminal in the prior art.
Fig. 4 is a flowchart of a configuration method of an internet of things wireless terminal according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of a service network and an authentication network according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an AP according to a second embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an internet of things wireless terminal according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly 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.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
The first embodiment is as follows:
referring to fig. 4, a configuration method of an internet of things wireless terminal according to an embodiment of the present invention includes the following steps:
s101, the wireless terminal of the Internet of things is connected to an authentication network through a preset SSID and a preset password of the authentication network;
in the first embodiment of the present invention, before S101, the method may further include the following steps:
the mobile terminal sends request information for starting an authentication network to the AP through a service network;
the AP receives request information for starting an authentication network, which is sent by a mobile terminal through a service network;
and the AP enables the authentication network according to the request information for enabling the authentication network.
In the first embodiment of the present invention, the AP may be a WI-FI AP. The serving network is a wireless network previously established with at least one Wi-FiAP. The authentication network is a wireless network previously established with at least one Wi-Fi AP. Although the authentication network and the service network are established by the same WI-FI AP (as shown in fig. 5), the authentication network and the service network are completely isolated, and devices in the authentication network can only communicate with the WI-FI AP.
The mobile terminal is a mobile terminal connected to the serving network.
The SSID and password of the authentication network are fixed. The wireless terminal of the internet of things is preset with the SSID and the password of the authentication network in an initial configurable state, so that the wireless terminal of the internet of things can be automatically connected to the authentication network after the AP enables the authentication network.
S102, the wireless terminal of the Internet of things sends network access request information to the AP to request to join the service network.
In the first embodiment of the present invention, the network access request information includes a MAC address, a device name, a device type, and a device authentication code of the device. The MAC address of the equipment is used for uniquely identifying the network equipment, the MAC address of the equipment is used for returning the message, and the equipment type is used for primarily judging the legality of the equipment by the WI-FI AP.
In the first embodiment of the present invention, a PIN Number (serial Number for identifying the device) of the device is used as the device authentication code.
S103, the AP which has started the authentication network receives network access request information sent by the wireless terminal of the Internet of things;
s104, the AP generates the wireless terminal device information of the Internet of things requesting for network access according to the device name and the device type in the network access request information, sends the wireless terminal device information of the Internet of things requesting for network access to a mobile terminal in a service network, and waits for the mobile terminal to send the authentication code of the wireless terminal device of the Internet of things requesting for network access to the AP;
in the first embodiment of the present invention, before S104, the method may further include the following steps:
the AP judges the legality of the wireless terminal of the Internet of things according to the network access request information; the method specifically comprises the following steps: the AP judges whether the equipment type is one of the equipment types known by the AP or not according to the equipment type in the network access request information, and if so, the wireless terminal of the Internet of things is judged to be legal;
and when the AP judges that the wireless terminal of the Internet of things is legal, executing the S104.
S105, the mobile terminal receives the wireless terminal equipment information of the Internet of things sent by the AP;
s106, the mobile terminal generates a prompt message to prompt an administrator that a new device requests to access the network and requires the administrator to input a device authentication code;
s107, the mobile terminal receives the input device authentication code.
The authentication process through the authentication code is a bidirectional authentication process of the mobile terminal and the wireless terminal of the Internet of things. The wireless terminal of the internet of things needs to be added into a service network, and access of illegal equipment is limited by permission of the mobile terminal; the mobile terminal needs to add a new wireless terminal of the internet of things, and the authentication code corresponding to the wireless terminal of the internet of things needs to be correctly input, so that the risk that the wireless terminal of the internet of things is illegally managed by others is avoided.
S108, the mobile terminal sends the equipment authentication code to the AP;
s109, the AP judges whether the equipment authentication code sent by the wireless terminal of the Internet of things is consistent with the equipment authentication code sent by the mobile terminal so as to realize authentication;
s1010, if the authentication is passed, the AP sends configuration information of a service network to the wireless terminal of the Internet of things;
the configuration information of the service network specifically includes an SSID and a password of the service network.
In the first embodiment of the present invention, the sending, by the AP, the configuration information of the service network to the wireless terminal of the internet of things specifically includes:
and the AP sends the configuration information of the service network to the wireless terminal of the Internet of things through the MAC address of the equipment in the network access request information.
S1011, the wireless terminal of the Internet of things receives configuration information of the service network sent by the AP;
s1012, the wireless terminal of the Internet of things analyzes the configuration information of the service network to obtain the SSID and the password of the service network;
and S1013, the wireless terminal of the Internet of things is connected to the service network through the SSID and the password of the service network.
The wireless terminal equipment of the internet of things completes the process of configuring the network, and then the wireless terminal equipment of the internet of things works in a service network and is managed by the mobile terminal.
In the first embodiment of the present invention, after S1013, the method may further include the following steps:
the mobile terminal sends request information for closing the authentication network to the AP through the service network;
the AP receives request information of closing the authentication network sent by the mobile terminal through a service network;
and the AP closes the authentication network according to the request information for closing the authentication network.
In the first embodiment of the invention, the interaction process of the mobile terminal, the AP and the wireless terminal of the internet of things is encrypted, and encryption algorithms such as SSL, RSA and DES can be adopted.
In the first embodiment of the invention, as the AP starts the authentication network, the wireless terminal of the Internet of things is connected to the authentication network through the preset SSID and password of the authentication network, so that the wireless terminal of the Internet of things can be connected to the AP under the condition of no setting, and indirectly communicates with the mobile terminal; in addition, the access of illegal equipment and the risk of illegal management of new equipment are limited through the process of bidirectional authentication of the authentication code; in addition, the operation of an administrator is simplified by a method of issuing configuration information to the wireless terminal of the Internet of things through the AP; in addition, the security of the service network is ensured by the encryption setting of the interaction process of the mobile terminal, the AP and the wireless terminal of the Internet of things, the bidirectional authentication of the mobile terminal and the wireless terminal of the Internet of things and the legality authentication of the wireless terminal of the Internet of things accessing the authentication network. In conclusion, the invention can greatly reduce the complexity of the configuration process, improve the safety of the configuration process, and can be widely applied to the configuration process of the wireless terminal of the internet of things in the environments of family, enterprise office and production.
Example two:
referring to fig. 6, an AP according to a second embodiment of the present invention includes: the device comprises a first receiving module 11, a first sending module 12, a first judging module 13 and a second sending module 14. Wherein,
the first receiving module 11 is configured to receive, by an AP that has enabled an authentication network, network access request information sent by a wireless terminal of the internet of things; the wireless terminal of the Internet of things is connected to the authentication network through a preset name SSID and a preset password of a wireless network of the authentication network; the network access request information comprises an MAC address, a device name, a device type and a device authentication code of the device;
in the second embodiment of the present invention, the MAC address of the device is used to uniquely identify the network device, the MAC address of the device is used for message backhaul, and the device type is used for WI-FI AP to preliminarily determine the validity of the device.
In the second embodiment of the present invention, a device PIN code is used as the device authentication code.
A first sending module 12, configured to generate, by using the device name and the device type in the network access request information, internet of things wireless terminal device information requesting network access, send the internet of things wireless terminal device information to a mobile terminal in a service network, and wait for the mobile terminal to send an authentication code of the internet of things wireless terminal device requesting network access to the AP;
in the second embodiment of the present invention, the AP may be a WI-FI AP. The serving network is a wireless network previously established with at least one Wi-FiAP. The authentication network is a wireless network previously established with at least one Wi-Fi AP. Although the authentication network and the service network are established by the same WI-FI AP, the authentication network and the service network are completely isolated, and devices in the authentication network can only communicate with the WI-FI AP.
The mobile terminal is a mobile terminal connected to the serving network.
The SSID and password of the authentication network are fixed. The wireless terminal of the internet of things is preset with the SSID and the password of the authentication network in an initial configurable state, so that the wireless terminal of the internet of things can be automatically connected to the authentication network after the AP enables the authentication network.
The first judging module 13 is configured to judge whether the device authentication code sent by the wireless terminal of the internet of things and the device authentication code sent by the mobile terminal are consistent to implement authentication;
and a second sending module 14, configured to send configuration information of the service network to the internet of things wireless terminal if the authentication is passed, so that the internet of things wireless terminal is connected to the service network through the configuration information of the service network.
In the second embodiment of the present invention, the AP may further include:
the second receiving module is used for receiving request information for starting an authentication network, which is sent by the mobile terminal through a service network;
the enabling module is used for enabling the authentication network according to the request information for enabling the authentication network;
the third receiving module is used for receiving request information of closing the authentication network, which is sent by the mobile terminal through the service network;
and the closing module is used for closing the authentication network according to the request information for closing the authentication network.
In the second embodiment of the present invention, the AP may further include:
the second judging module is configured to judge validity of the wireless terminal of the internet of things according to the network access request information, and specifically may be: judging whether the equipment type in the network access request information is one of the equipment types known by the AP or not according to the equipment type in the network access request information, and if so, judging that the wireless terminal of the Internet of things is legal; and when the wireless terminal of the internet of things is judged to be legal, the first sending module generates the wireless terminal equipment information of the internet of things requesting for network access according to the equipment name and the equipment type in the network access request information, and sends the wireless terminal equipment information of the internet of things requesting for network access to the mobile terminal in the service network.
In the second embodiment of the invention, as the AP starts the authentication network, the wireless terminal of the Internet of things is connected to the authentication network through the preset SSID and password of the authentication network, so that the wireless terminal of the Internet of things can be connected to the AP under the condition of no setting, and indirectly communicates with the mobile terminal; in addition, the access of illegal equipment and the risk of illegal management of new equipment are limited through the process of bidirectional authentication of the authentication code; in addition, the operation of an administrator is simplified by a method of issuing configuration information to the wireless terminal of the Internet of things through the AP; in addition, the two-way authentication of the mobile terminal and the wireless terminal of the Internet of things and the legality certification of the wireless terminal of the Internet of things accessing the authentication network ensure the safety of the service network. In conclusion, the invention can greatly reduce the complexity of the configuration process, improve the safety of the configuration process, and can be widely applied to the configuration process of the wireless terminal of the internet of things in the environments of family, enterprise office and production.
Example three:
referring to fig. 7, a wireless terminal of an internet of things according to a third embodiment of the present invention includes: a first connection module 21, a third transmission module 22, a fourth reception module 23, a parsing module 24, and a second connection module 25. Wherein,
the first connection module 21 is used for connecting to the authentication network through the preset name SSID and password of the wireless network of the authentication network;
a third sending module 22, configured to send network access request information to the wireless network access point AP, requesting to join the service network, where the network access request information includes an MAC address of the device, a device name, a device type, and a device authentication code; judging whether the equipment authentication code sent by the wireless terminal of the Internet of things is consistent with the equipment authentication code sent by the mobile terminal by the AP so as to realize authentication;
in the third embodiment of the present invention, the MAC address of the device is used to uniquely identify the network device, the MAC address of the device is used for message backhaul, and the device type is used for WI-FI AP to preliminarily determine the validity of the device.
In the third embodiment of the present invention, a device PIN code is used as the device authentication code.
In the second embodiment of the present invention, the AP may be a WI-FI AP. The serving network is a wireless network previously established with at least one Wi-FiAP. The authentication network is a wireless network previously established with at least one Wi-Fi AP. Although the authentication network and the service network are established by the same WI-FI AP, the authentication network and the service network are completely isolated, and devices in the authentication network can only communicate with the WI-FI AP.
The mobile terminal is a mobile terminal connected to the serving network.
The SSID and password of the authentication network are fixed. The wireless terminal of the internet of things is preset with the SSID and the password of the authentication network in an initial configurable state, so that the wireless terminal of the internet of things can be automatically connected to the authentication network after the AP enables the authentication network.
A fourth receiving module 23, configured to receive configuration information of the service network sent by the AP after the authentication is passed;
the analysis module 24 is configured to analyze the configuration information of the service network, and acquire an SSID and a password of the service network;
a second connection module 25, configured to connect to the service network through the SSID and the password of the service network.
In the third embodiment of the invention, as the authentication network is started by the AP, the wireless terminal of the Internet of things is connected to the authentication network through the preset SSID and password of the authentication network, so that the wireless terminal of the Internet of things can be connected to the AP under the condition of no setting, and indirectly communicates with the mobile terminal; in addition, the access of illegal equipment and the risk of illegal management of new equipment are limited through the process of bidirectional authentication of the authentication code; in addition, the operation of an administrator is simplified by a method of issuing configuration information to the wireless terminal of the Internet of things through the AP; in addition, the two-way authentication of the mobile terminal and the wireless terminal of the Internet of things and the legality certification of the wireless terminal of the Internet of things accessing the authentication network ensure the safety of the service network. In conclusion, the invention can greatly reduce the complexity of the configuration process, improve the safety of the configuration process, and can be widely applied to the configuration process of the wireless terminal of the internet of things in the environments of family, enterprise office and production.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by relevant hardware instructed by a program, and the program may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc.
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.