A method, device, electronic device and storage medium for network configuration of Internet of Things devices
By connecting to the WIFI hotspot generated by the configuration server on the Internet of Things terminal and verifying the identity, receiving and applying configuration parameters, generating new WIFI hotspots, and automatically passing configuration parameters, the cumbersome problem of IoT terminal configuration is solved, and efficient and automated network configuration is achieved.
Patent Information
- Application Number
- CN202111509595.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-10
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2041-12-10
AI Technical Summary
Existing IoT terminals are cumbersome when configuring parameters such as WIFI account passwords and need to be configured separately. They need to be reset after each modification, resulting in low configuration efficiency, especially when used in batches in commercial or industrial places.
By connecting to the WIFI hotspot generated by the configuration server within a preset time period, establishing a connection and verifying the identity information of the configuration server, receiving and applying configuration parameters, generating a new WIFI hotspot, and automatically passing the configuration parameters to the unconfigured IoT terminal.
It realizes the automated network configuration of IoT terminals, improves configuration efficiency, reduces operation steps and human errors, especially in the use of batch equipment, greatly improves configuration efficiency.
Smart Images

Figure CN114363849B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent terminals of the Internet of Things, and in particular to a method, device, electronic equipment and storage medium for network configuration of Internet of Things devices. Background Art
[0002] With the continuous development and maturity of the Internet, the concept of the Internet of Things has become more and more extensive, and the Internet of Things functions of newly developed smart devices have gradually become standard.
[0003] When manufacturers produce IoT terminals, there must be mass consumption or commercial demand to purchase IoT terminals. Most of the current IoT devices connect to the Internet via WIFI. It is cumbersome to configure parameters such as WIFI account and password for WIFI-connected IoT terminals, and each terminal needs to be configured separately. When the WIFI account and password are modified, they have to be reset one by one, which is very troublesome to use. This is a very bad user experience, especially when the devices are used in batches in commercial or industrial occasions. This operation method will be fatal. Summary of the invention
[0004] The present invention provides a method, device, electronic device and storage medium for configuring a network of Internet of Things devices, so as to solve the problem in the prior art that parameters such as WIFI account and password of an Internet of Things terminal need to be manually configured, resulting in low configuration efficiency.
[0005] In order to solve the above problems, the present invention adopts the following technical solutions: including:
[0006] In a first aspect, the present invention provides a method for network configuration of an Internet of Things device, the method being applied to an Internet of Things terminal, the Internet of Things terminal being able to communicate with a server of the Internet of Things terminal, the method comprising:
[0007] Connecting to a first WIFI hotspot within a preset time period, where the first WIFI hotspot is generated by a configuration terminal corresponding to the configuration server;
[0008] Establishing a connection with the configuration server through the first WIFI hotspot and verifying the identity information of the configuration server;
[0009] If the identity information of the configuration server is verified successfully, receiving the configuration parameters sent by the configuration server;
[0010] The network is configured according to the configuration parameters to generate a second WIFI hotspot, wherein the second WIFI hotspot is used to connect the server of the Internet of Things terminal to the Internet of Things terminal that has not been network configured within the area covered by the second WIFI hotspot, and then send the configuration parameters to the Internet of Things terminal that has not been network configured.
[0011] A further technical solution is that establishing a connection with the configuration server through the first WIFI hotspot includes:
[0012] Use UDP or TCP to establish a connection with the configuration server.
[0013] A further technical solution is that the verification of the identity information of the configuration server includes:
[0014] Sending a first request to the configuration server;
[0015] receiving an ID of a configuration server returned by the configuration server in response to the first request;
[0016] Determine whether the ID of the configuration server is the same as the ID of the pre-stored configuration server;
[0017] If so, it is determined that the identity information of the configuration server has been authenticated.
[0018] A further technical solution is that the configuration server is a configuration server of a handheld configuration terminal, or a server of an Internet of Things terminal that has been network configured; the configuration terminal is a handheld configuration terminal, or an Internet of Things terminal that has been network configured.
[0019] In a second aspect, the present invention provides a method for configuring a network of an Internet of Things device, the method being applied to a configuration server, the configuration server being able to communicate with a configuration terminal, the method comprising:
[0020] Connecting to an Internet of Things terminal through a first WIFI hotspot within a preset time period, and verifying the identity information of the Internet of Things terminal, wherein the first WIFI hotspot is generated by the configuration terminal corresponding to the configuration server;
[0021] If the identity information of the Internet of Things terminal is verified, the configuration parameters are sent to the Internet of Things terminal, and the configuration parameters are configuration parameters generated after receiving the configuration instructions of the configuration terminal, or are configuration parameters sent by the server of the Internet of Things terminal that has been network configured and stored in the configuration server after the configuration terminal receives the configuration parameters; the configuration parameters are used to enable the configuration terminal to perform network configuration according to the configuration parameters and generate a second WIFI hotspot, and the second WIFI hotspot is used to enable the server of the Internet of Things terminal to connect to the Internet of Things terminal that has not been network configured within the interval covered by the second WIFI hotspot, and then send the configuration parameters to the Internet of Things terminal that has not been network configured.
[0022] A further technical solution is that the verification of the identity information of the IoT terminal includes:
[0023] Receiving a first request sent by the Internet of Things terminal, where the first request carries the ID of the Internet of Things terminal;
[0024] Determine whether the ID of the IoT terminal is the same as the ID of a pre-stored IoT terminal;
[0025] If so, it is determined that the identity information verification of the IoT terminal has passed.
[0026] A further technical solution is that if the identity information of the IoT terminal is verified, the configuration parameters are sent to the IoT terminal, including:
[0027] The configuration parameters are encrypted using a preset encryption algorithm and sent to the Internet of Things terminal.
[0028] In a third aspect, the present invention further provides an Internet of Things device network configuration device, comprising a unit for executing the method described in the first aspect, or a unit for executing the method described in the second aspect.
[0029] In a fourth aspect, the present invention further provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0030] Memory, used to store computer programs;
[0031] The processor is used to implement the steps of the method described in the first aspect or the steps of the method described in the second aspect when executing the program stored in the memory.
[0032] In a fifth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented.
[0033] The above technical solution provided by the embodiment of the present invention has the following advantages compared with the prior art:
[0034] In the embodiment of the present invention, the Internet of Things terminal connects to the first WIFI hotspot within a preset time period, thereby establishing a connection with the configuration server through the first WIFI hotspot, and verifying the identity information of the configuration server; when the identity information of the configuration server is verified, the Internet of Things terminal receives the configuration parameters sent by the configuration server; the Internet of Things terminal performs network configuration according to the configuration parameters, and generates a second WIFI hotspot, and after the server of the Internet of Things terminal is connected to the Internet of Things terminal that has not performed network configuration within the interval covered by the second WIFI hotspot, the configuration parameters are sent to the Internet of Things terminal that has not performed network configuration, thereby automatically completing parameter configuration for all Internet of Things terminals that have not performed network configuration in the interval covered by the second WIFI hotspot. This method enables all Internet of Things terminals that have not performed network configuration to be converted from a configuration parameter receiving state to a configuration parameter sending state after completing network configuration, thereby greatly improving configuration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0037] Figure 1 A schematic diagram of a flow chart of a method for configuring a network for an Internet of Things device provided in Embodiment 1 of the present invention;
[0038] Figure 2 A schematic diagram of a flow chart of a method for configuring a network for an Internet of Things device provided in Embodiment 2 of the present invention;
[0039] Figure 3 A structural block diagram of an Internet of Things device network configuration device provided in Embodiment 3 of the present invention;
[0040] Figure 4 A structural block diagram of an Internet of Things device network configuration device provided in Embodiment 4 of the present invention;
[0041] Figure 5 A schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present invention;
[0042] Figure 6 This is an example diagram of a method for configuring a network for an Internet of Things device provided in Embodiment 1 and Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0043] In order to more fully understand the technical content of the present invention, the technical solution of the present invention is further introduced and illustrated in conjunction with specific embodiments below, but is not limited thereto.
[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0046] It should also be understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0047] Example 1
[0048] See also Figure 1 , combined with Figure 6 As shown, Figure 1 The present invention provides a flow chart of a method for configuring a network for an IoT device according to Embodiment 1. The method can be applied to an IoT terminal, and the IoT terminal can communicate with a server of the IoT terminal. Specifically, Figure 1 As shown, the method includes the following steps S101-S104.
[0049] S101, connecting to a first WIFI hotspot within a preset time period.
[0050] Specifically, the Internet of Things terminal connects to the first WIFI hotspot within a preset time period, and the preset time period is a time period set according to user needs, such as 24 hours a day. The first WIFI hotspot is generated by the configuration terminal corresponding to the configuration server. The fact that the Internet of Things terminal can connect to the first WIFI hotspot means that the Internet of Things terminal is within the interval covered by the first WIFI hotspot. The configuration server is a configuration server of a handheld configuration terminal, or a server of an Internet of Things terminal that has been network configured; the configuration terminal is a handheld configuration terminal, or an Internet of Things terminal that has been network configured. The handheld configuration terminal can be a mobile phone or a dedicated configuration tool.
[0051] S102: Establish a connection with the configuration server through the first WIFI hotspot, and verify the identity information of the configuration server.
[0052] Specifically, the Internet of Things terminal connects to the first WIFI hotspot to establish a connection with the configuration server; after the Internet of Things terminal establishes a connection with the configuration server, the Internet of Things terminal verifies the identity information of the configuration server to ensure that the configuration server is a device allowed by the user to transmit data with the Internet of Things terminal, thereby preventing the reception of virus-containing data transmitted from other devices.
[0053] In one embodiment, establishing a connection with the configuration server through the first WIFI hotspot includes:
[0054] Use UDP or TCP to establish a connection with the configuration server.
[0055] Specifically, the IoT terminal and the configuration server may use UDP to transmit data, or TCP to transmit data, and either method may be selected to achieve the desired effect.
[0056] In one embodiment, the verifying the identity information of the configuration server includes:
[0057] Sending a first request to the configuration server;
[0058] Specifically, the Internet of Things terminal sends a first request to the configuration server, where the first request is used to obtain an ID of the configuration server.
[0059] receiving an ID of a configuration server returned by the configuration server according to the first request;
[0060] Specifically, the Internet of Things terminal receives the ID of the configuration server returned by the configuration server according to the first request.
[0061] Determine whether the ID of the configuration server is the same as the ID of the pre-stored configuration server;
[0062] Specifically, the Internet of Things terminal determines whether the ID of the configuration server is the same as the ID of a pre-stored configuration server. The ID of the pre-stored configuration server is pre-stored in the Internet of Things terminal by the user, and is used to ensure that the configuration server is a device allowed by the user to transmit data with the Internet of Things terminal, to prevent the reception of virus-containing data transmitted from other devices.
[0063] If so, it is determined that the identity information of the configuration server has been authenticated.
[0064] Specifically, when the Internet of Things terminal determines that the ID of the configuration server is the same as the ID of the pre-stored configuration server, the Internet of Things terminal determines that the identity information verification of the configuration server is successful.
[0065] S103: If the identity information of the configuration server is verified successfully, receive the configuration parameters sent by the configuration server.
[0066] Specifically, when the identity information of the configuration server is verified, it means that the configuration server is a device that the user allows to transmit data with the IoT terminal, and the IoT terminal receives the configuration parameters sent by the configuration server. The configuration parameters include WIFI account, WIFI password, remote server account, remote server password, IP, port, etc.
[0067] S104: Perform network configuration according to the configuration parameters to generate a second WIFI hotspot.
[0068] Specifically, after the IoT terminal uses a preset decryption algorithm to decrypt the configuration parameters, the network configuration is performed according to the configuration parameters. After the network configuration is completed, the IoT terminal generates a second WIFI hotspot. The second WIFI hotspot is used to connect the server of the IoT terminal to the IoT terminal that has not been configured for the network within the interval covered by the second WIFI hotspot, so that the server of the IoT terminal encrypts the configuration parameters and sends them to the IoT terminal that has not been configured for the network, so that the IoT terminal that has not been configured for the network performs network configuration after receiving the configuration parameters. Of course, after receiving the configuration parameters, the IoT terminal that has not been configured for the network will store the configuration parameters to its corresponding configuration server, and its corresponding configuration server will also use the preset decryption algorithm to decrypt the configuration parameters. The preset decryption algorithm is a code configured by the user.
[0069] like Figure 6 As shown, when configuring parameters, the handheld configuration terminal first initiates it, and the Internet of Things terminal 1 within the coverage area of the WIFI generated by the handheld configuration terminal can receive the configuration parameters sent by the configuration server of the handheld configuration terminal. Then, after receiving the configuration parameters, the Internet of Things terminal 1 generates WIFI and the server of the Internet of Things terminal 1 sends the configuration parameters. The Internet of Things terminal 2 and the Internet of Things terminal 3 within the coverage area of the WIFI generated by the Internet of Things terminal 1 can receive the configuration parameters sent by the server of the Internet of Things terminal 1. After receiving the configuration parameters, the Internet of Things terminal 2 and the Internet of Things terminal 3 also generate WIFI and their corresponding servers send the configuration parameters. Since the Internet of Things terminal 4 is not within the range of the WIFI generated by the handheld configuration terminal, the Internet of Things terminal 1, the Internet of Things terminal 2 and the Internet of Things terminal 3, it is not within the current network configuration range.
[0070] Specifically, the Internet of Things terminal connects to the first WIFI hotspot within a preset time period, thereby establishing a connection with the configuration server through the first WIFI hotspot and verifying the identity information of the configuration server; when the identity information of the configuration server is verified, the Internet of Things terminal receives the configuration parameters sent by the configuration server; the Internet of Things terminal performs network configuration according to the configuration parameters and generates a second WIFI hotspot, and connects the server of the Internet of Things terminal to the Internet of Things terminal that has not performed network configuration within the interval covered by the second WIFI hotspot, and then sends the configuration parameters to the Internet of Things terminal that has not performed network configuration, thereby automatically completing parameter configuration for all Internet of Things terminals that have not performed network configuration in the interval covered by the second WIFI hotspot. This method enables all Internet of Things terminals that have not performed network configuration to be converted from a configuration parameter receiving state to a configuration parameter sending state after completing parameter configuration, thereby greatly improving configuration efficiency.
[0071] Example 2
[0072] See also Figure 2 , combined with Figure 6 As shown, Figure 2 The following is a flow chart of a method for configuring a network of an Internet of Things device provided in Embodiment 2 of the present invention. The method is applied to a configuration server, and the configuration server can communicate with a configuration terminal. Specifically, Figure 2 As shown, the method includes the following steps S201-S202.
[0073] S201, connecting to an Internet of Things terminal through a first WIFI hotspot within a preset time period, and verifying identity information of the Internet of Things terminal.
[0074] Specifically, the configuration server connects to the IoT terminal through the first WIFI hotspot within a preset time period, and verifies the identity information of the IoT terminal to ensure that the IoT terminal is a device that the user allows to transmit data to the configuration server, and prevents data leakage caused by transmitting data to other devices. The first WIFI hotspot is generated by the configuration terminal corresponding to the configuration server. The preset time period is a time period set according to user needs, such as 24 hours a day.
[0075] In one embodiment, the verifying the identity information of the IoT terminal includes:
[0076] Receiving a first request sent by the Internet of Things terminal;
[0077] Specifically, the configuration server receives a first request sent by the Internet of Things terminal, where the first request carries the ID of the Internet of Things terminal.
[0078] Determine whether the ID of the IoT terminal is the same as the ID of a pre-stored IoT terminal;
[0079] Specifically, the configuration server determines whether the ID of the Internet of Things terminal is the same as the ID of a pre-stored Internet of Things terminal. The pre-stored Internet of Things terminal ID is pre-stored by the user in the configuration server, and is used to ensure that the Internet of Things terminal is a device allowed by the user to transmit data to the configuration server, preventing the configuration server from transmitting data to other devices and causing data leakage.
[0080] If so, it is determined that the identity information verification of the IoT terminal has passed.
[0081] Specifically, when the ID of the IoT terminal is the same as the ID of the pre-stored IoT terminal, it means that the IoT terminal is a device that the user allows to transmit data with the configuration server, and the configuration server determines that the identity information verification of the IoT terminal is successful.
[0082] S202: If the identity information of the IoT terminal is verified, the configuration parameters are sent to the IoT terminal.
[0083] Specifically, the configuration parameters are configuration parameters generated after receiving a configuration instruction from a configuration terminal, or are configuration parameters stored in the configuration server after the configuration terminal receives configuration parameters sent by a server of an IoT terminal that has been network configured. The configuration parameters are used to enable the configuration terminal to perform network configuration according to the configuration parameters and generate a second WIFI hotspot, and the second WIFI hotspot is used to enable the server of the IoT terminal to connect to an IoT terminal that has not been network configured within the area covered by the second WIFI hotspot and then send the configuration parameters to the IoT terminal that has not been network configured.
[0084] In one embodiment, if the identity information of the Internet of Things terminal is verified, sending the configuration parameters to the Internet of Things terminal includes:
[0085] The configuration parameters are encrypted using a preset encryption algorithm and sent to the Internet of Things terminal.
[0086] Specifically, the configuration server encrypts the configuration parameters using a preset encryption algorithm, and sends the configuration parameters to the IoT terminal after encryption. The preset encryption algorithm is a code written by the user and configured to encrypt the configuration parameters so that others cannot obtain our configuration parameters by capturing packets.
[0087] In an embodiment of the present invention, after connecting to the Internet of Things terminal within the coverage interval of the first WIFI hotspot through the first WIFI hotspot, the configuration server verifies the identity information of the Internet of Things terminal. After the identity information of the Internet of Things terminal is verified, the configuration server sends the configuration parameters to the Internet of Things terminal, so that the Internet of Things terminal receives the configuration parameters sent by the configuration server; the Internet of Things terminal performs network configuration according to the configuration parameters, and generates a second WIFI hotspot. After connecting the server of the Internet of Things terminal to the Internet of Things terminal that has not performed network configuration within the coverage interval of the second WIFI hotspot, the configuration parameters are sent to the Internet of Things terminal that has not performed network configuration, thereby automatically completing parameter configuration for all Internet of Things terminals that have not performed network configuration within the coverage interval of the second WIFI hotspot. This method enables all Internet of Things terminals that have not performed network configuration to be converted from a receiving configuration parameter state to a sending configuration parameter state after completing parameter configuration, thereby greatly improving configuration efficiency.
[0088] Example 3
[0089] See also Figure 3 , an embodiment of the present invention provides a schematic diagram of the structure of an Internet of Things device network configuration device 400. Corresponding to the Internet of Things device network configuration method provided in the above embodiment 1, the present invention also provides an Internet of Things device network configuration device 400. The Internet of Things device network configuration device 400 includes a unit for executing the Internet of Things device network configuration method provided in the above embodiment 1, and the Internet of Things device network configuration device 400 can be configured in an Internet of Things terminal. The Internet of Things device network configuration device 400 includes a first connection unit 401, a first verification unit 402, a first receiving unit 403, and a first generation unit 404.
[0090] A first connection unit 401 is used to connect to a first WIFI hotspot within a preset time period, where the first WIFI hotspot is generated by a configuration terminal corresponding to the configuration server;
[0091] A first verification unit 402 is used to establish a connection with the configuration server through the first WIFI hotspot and verify the identity information of the configuration server;
[0092] The first receiving unit 403 is configured to receive the configuration parameters sent by the configuration server if the identity information of the configuration server is verified successfully;
[0093] The first generating unit 404 is used to perform network configuration according to the configuration parameters and generate a second WIFI hotspot, wherein the second WIFI hotspot is used to enable the server of the Internet of Things terminal to connect to the Internet of Things terminal that has not performed network configuration within the area covered by the second WIFI hotspot and then send the configuration parameters to the Internet of Things terminal that has not performed network configuration.
[0094] In one embodiment, establishing a connection with the configuration server through the first WIFI hotspot includes:
[0095] Use UDP or TCP to establish a connection with the configuration server.
[0096] In one embodiment, the verifying the identity information of the configuration server includes:
[0097] Sending a first request to the configuration server;
[0098] receiving an ID of a configuration server returned by the configuration server in response to the first request;
[0099] Determine whether the ID of the configuration server is the same as the ID of the pre-stored configuration server;
[0100] If so, it is determined that the identity information of the configuration server has been authenticated.
[0101] In one embodiment, the configuration server is a configuration server of a handheld configuration terminal, or a server of an Internet of Things terminal that has been network configured; the configuration terminal is a handheld configuration terminal, or an Internet of Things terminal that has been network configured.
[0102] In an embodiment of the present invention, the Internet of Things terminal connects to a first WIFI hotspot within a preset time period, thereby establishing a connection with the configuration server through the first WIFI hotspot, and verifies the identity information of the configuration server; when the identity information of the configuration server is verified, the Internet of Things terminal receives the configuration parameters sent by the configuration server; the Internet of Things terminal performs network configuration according to the configuration parameters, and generates a second WIFI hotspot, and within the interval covered by the second WIFI hotspot, the server of the Internet of Things terminal is connected to an Internet of Things terminal that has not performed network configuration, and then the configuration parameters are sent to the Internet of Things terminal that has not performed network configuration, thereby automatically completing parameter configuration for all Internet of Things terminals that have not performed network configuration in the interval covered by the second WIFI hotspot. This method enables all Internet of Things terminals that have not performed network configuration to be converted from a configuration parameter receiving state to a configuration parameter sending state after completing parameter configuration, thereby greatly improving configuration efficiency.
[0103] Example 4
[0104] See also Figure 4 , an embodiment of the present invention provides a schematic diagram of the structure of an Internet of Things device network configuration device 500. Corresponding to the Internet of Things device network configuration method provided in the above embodiment 2, the present invention also provides an Internet of Things device network configuration device 500. The Internet of Things device network configuration device 500 includes a unit for executing the Internet of Things device network configuration method provided in the above embodiment 2, and the Internet of Things device network configuration device 500 can be configured on a configuration server. The Internet of Things device network configuration device 500 includes a second verification unit 501 and a first sending unit 502.
[0105] A second verification unit 501 is used to connect to an IoT terminal through a first WIFI hotspot within a preset time period and verify the identity information of the IoT terminal, wherein the first WIFI hotspot is generated by the configuration terminal corresponding to the configuration server;
[0106] The first sending unit 502 is used to send configuration parameters to the Internet of Things terminal if the identity information of the Internet of Things terminal is verified successfully. The configuration parameters are configuration parameters generated after receiving the configuration instructions of the configuration terminal, or are configuration parameters sent by the server of the Internet of Things terminal that has been network configured and stored in the configuration server after the configuration terminal receives the configuration parameters; the configuration parameters are used to enable the configuration terminal to perform network configuration according to the configuration parameters and generate a second WIFI hotspot. The second WIFI hotspot is used to enable the server of the Internet of Things terminal to connect to the Internet of Things terminal that has not been network configured within the interval covered by the second WIFI hotspot and then send the configuration parameters to the Internet of Things terminal that has not been network configured.
[0107] In one embodiment, the verifying the identity information of the IoT terminal includes:
[0108] Receiving a first request sent by the Internet of Things terminal, where the first request carries the ID of the Internet of Things terminal;
[0109] Determine whether the ID of the IoT terminal is the same as the ID of a pre-stored IoT terminal;
[0110] If so, it is determined that the identity information verification of the IoT terminal has passed.
[0111] In one embodiment, if the identity information of the Internet of Things terminal is verified, sending the configuration parameters to the Internet of Things terminal includes:
[0112] The configuration parameters are encrypted using a preset encryption algorithm and sent to the Internet of Things terminal.
[0113] In an embodiment of the present invention, after connecting to the Internet of Things terminal within the coverage interval of the first WIFI hotspot through the first WIFI hotspot, the configuration server verifies the identity information of the Internet of Things terminal. After the identity information of the Internet of Things terminal is verified, the configuration server sends the configuration parameters to the Internet of Things terminal, so that the Internet of Things terminal receives the configuration parameters sent by the configuration server; the Internet of Things terminal performs network configuration according to the configuration parameters, and generates a second WIFI hotspot. After connecting the server of the Internet of Things terminal to the Internet of Things terminal that has not performed network configuration within the coverage interval of the second WIFI hotspot, the configuration parameters are sent to the Internet of Things terminal that has not performed network configuration, thereby automatically completing parameter configuration for all Internet of Things terminals that have not performed network configuration within the coverage interval of the second WIFI hotspot. This method enables all Internet of Things terminals that have not performed network configuration to be converted from a receiving configuration parameter state to a sending configuration parameter state after completing parameter configuration, thereby greatly improving configuration efficiency.
[0114] Example 5
[0115] See also Figure 5 An embodiment of the present invention further provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0116] A memory 113, for storing computer programs;
[0117] The processor 111 is used to execute the program stored in the memory 113 to implement the Internet of Things device network configuration method provided by any of the aforementioned method embodiments.
[0118] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by the processor 111, the steps of the method for configuring a network for an Internet of Things device as provided in any of the aforementioned method embodiments are implemented.
[0119] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0120] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features invented herein.
Claims
1. A method for configuring a network for an Internet of Things device, characterized in that: The method is applied to an Internet of Things terminal, and the Internet of Things terminal can communicate with a server of the Internet of Things terminal, and the method includes: Connecting to a first WIFI hotspot within a preset time period, where the first WIFI hotspot is generated by a configuration terminal corresponding to the configuration server; Establishing a connection with the configuration server through the first WIFI hotspot and verifying the identity information of the configuration server; The verifying the identity information of the configuration server includes: sending a first request to the configuration server; receiving the ID of the configuration server returned by the configuration server according to the first request; determining whether the ID of the configuration server is the same as the ID of the pre-stored configuration server; if so, determining that the identity information of the configuration server is verified; If the identity information of the configuration server is verified successfully, receiving the configuration parameters sent by the configuration server; The network is configured according to the configuration parameters to generate a second WIFI hotspot, wherein the second WIFI hotspot is used to connect the server of the Internet of Things terminal to the Internet of Things terminal that has not been network configured within the area covered by the second WIFI hotspot, and then send the configuration parameters to the Internet of Things terminal that has not been network configured.
2. The method for configuring a network for an Internet of Things device according to claim 1, wherein: The establishing a connection with the configuration server through the first WIFI hotspot includes: Use UDP or TCP to establish a connection with the configuration server.
3. The method for configuring a network for an Internet of Things device according to claim 1, wherein: The configuration server is a configuration server of a handheld configuration terminal, or a server of an Internet of Things terminal that has been network configured; the configuration terminal is a handheld configuration terminal, or an Internet of Things terminal that has been network configured.
4. A method for configuring a network for an Internet of Things device, characterized in that: The method is applied to a configuration server, the configuration server can communicate with a configuration terminal, and the method includes: Connecting to an Internet of Things terminal through a first WIFI hotspot within a preset time period, and verifying the identity information of the Internet of Things terminal, wherein the first WIFI hotspot is generated by the configuration terminal corresponding to the configuration server; The verifying the identity information of the IoT terminal includes: receiving a first request sent by the IoT terminal, the first request carrying the ID of the IoT terminal; determining whether the ID of the IoT terminal is the same as the ID of a pre-stored IoT terminal; and if so, determining that the identity information of the IoT terminal is verified successfully; If the identity information of the Internet of Things terminal is verified, the configuration parameters are sent to the Internet of Things terminal, and the configuration parameters are configuration parameters generated after receiving the configuration instructions of the configuration terminal, or are configuration parameters sent by the server of the Internet of Things terminal that has been network configured and stored in the configuration server after the configuration terminal receives the configuration parameters; the configuration parameters are used to enable the configuration terminal to perform network configuration according to the configuration parameters and generate a second WIFI hotspot, and the second WIFI hotspot is used to enable the server of the Internet of Things terminal to connect to the Internet of Things terminal that has not been network configured within the interval covered by the second WIFI hotspot, and then send the configuration parameters to the Internet of Things terminal that has not been network configured.
5. The method for network configuration of Internet of Things devices according to claim 4, characterized in that: If the identity information of the Internet of Things terminal is verified, sending the configuration parameters to the Internet of Things terminal includes: The configuration parameters are encrypted using a preset encryption algorithm and sent to the Internet of Things terminal.
6. A network distribution device for Internet of Things equipment, characterized in that: The method comprises a unit for executing the method according to any one of claims 1 to 5.
7. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the steps of the method described in any one of claims 1 to 5 when executing a program stored in a memory.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Device binding method and system based on Internet of Things and washing machine
CN107800687A
System and method for quickly realizing network distribution of multiple WiFi devices
CN111565396A