Network configuration method, device, equipment and storage medium

Encrypting network configuration information through wireless hotspot connection and application layer protocol negotiation keys solves the problem of automatic network configuration of smart devices and achieves a simple and efficient network distribution process.

CN113301563BActive Publication Date: 2024-10-15ALIBABA GROUP HOLDING LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010080832.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-02-05
Publication Date
2024-10-15
Estimated Expiration
2040-02-05

AI Technical Summary

Technical Problem

Smart devices such as smart air conditioners and smart rice cookers and other wireless LAN devices cannot independently search for wireless access points and enter passwords, making network configuration difficult.

Method used

Through the wireless hotspot connection between the network distribution device and the device to be connected to the network, the server program and client program using the preset application layer protocol negotiate the key and encrypt the network configuration information to achieve automatic network configuration.

Benefits of technology

No additional key generation code and storage resources are required, which simplifies the network configuration process. The device can complete network configuration even if it is not connected to the public network, improving configuration efficiency and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113301563B_ABST
    Figure CN113301563B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a network configuration method, device, equipment and storage medium. The network configuration method includes: a network configuration device such as a mobile phone terminal responds to a wireless hotspot opening operation to establish a communication connection with a device to be connected to the network; the network configuration device determines a key through a server program supporting a preset application layer protocol and a corresponding client program in the device to be connected to the network, encrypts the network configuration information of the AP according to the key, and sends the encrypted network configuration information to the client program, so that the device to be connected to the network can access the AP according to the network configuration information. Through this solution, the network configuration of the device to be connected to the network can be completed at a low cost, and it is simple and efficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet / Internet of Things technology, and in particular to a network configuration method, device, equipment and storage medium. Background Art

[0002] With the rapid development of communication technology, Wireless Local Area Networks (WLAN) technology that follows the IEEE802.11 protocol standard has been widely used in various devices. Some of these devices have screens (displays), such as smart terminal devices such as mobile phones and computers; some devices do not have screens, such as IoT devices such as smart air conditioners and smart rice cookers.

[0003] Terminal network configuration has always been a pain point for Wi-Fi IoT. After purchasing a Wi-Fi IoT device, users need to configure the device to their home Wi-Fi network in order to control these smart devices online.

[0004] Since devices such as smart air conditioners and smart rice cookers do not have screens, they cannot autonomously search for wireless access points (APs) and manually input AP access passwords like computers and mobile phones, and thus cannot autonomously complete network configuration. Therefore, it is necessary to solve the problem of automatically configuring the network for devices such as smart air conditioners and smart rice cookers waiting to be connected to the network. Summary of the invention

[0005] The embodiments of the present invention provide a network configuration method, apparatus, device and storage medium for implementing network configuration for devices to be connected to the network.

[0006] In a first aspect, an embodiment of the present invention provides a network configuration method, which is applied to a network distribution device, including:

[0007] In response to the wireless hotspot activation operation, establishing a communication connection with the device to be connected to the network;

[0008] Determine a key through a server program supporting a preset application layer protocol in the network configuration device and a client program supporting the application layer protocol in the device to be networked, and encrypt the network configuration information of the access point according to the key;

[0009] The encrypted network configuration information is sent to the client program, so that the device to be connected to the network can access the access point according to the network configuration information.

[0010] In a second aspect, an embodiment of the present invention provides a network configuration device, which is applied to a network distribution device, including:

[0011] A connection module, used to establish a communication connection with the device to be connected to the network in response to the wireless hotspot opening operation;

[0012] A processing module, configured to determine a key through a server program supporting a preset application layer protocol in the network configuration device and a client program supporting the application layer protocol in the device to be networked, and encrypt network configuration information of the access point according to the key;

[0013] The sending module is used to send the encrypted network configuration information to the client program so that the device to be connected to the network can access the access point according to the network configuration information.

[0014] In a third aspect, an embodiment of the present invention provides a network distribution device, which includes a processor and a memory, wherein an executable code is stored in the memory, and when the executable code is executed by the processor, the processor executes the network configuration method in the first aspect.

[0015] An embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of a network configuration device, the processor executes the network configuration method in the first aspect.

[0016] In a fourth aspect, an embodiment of the present invention provides a network configuration method, which is applied to a device to be connected to a network, and the method includes:

[0017] Establish communication connection with distribution network equipment;

[0018] Determine a key through a client program supporting a preset application layer protocol in the device to be networked and a server program supporting the application layer protocol in the network configuration device;

[0019] Receive network configuration information encrypted by the server program according to the key;

[0020] The network configuration information is decrypted according to the key, so that the device to be networked can access the corresponding access point according to the network configuration information.

[0021] In a fifth aspect, an embodiment of the present invention provides a network configuration device, which is applied to a device to be connected to a network, including:

[0022] A first connection module, used to establish a communication connection with a distribution network device;

[0023] A key generation module, used to determine a key through a client program supporting a preset application layer protocol in the device to be connected to the network and a server program supporting the application layer protocol in the network configuration device;

[0024] A receiving module, used to receive the network configuration information encrypted by the server program according to the key;

[0025] The second connection module is used to decrypt the network configuration information according to the key, so that the device to be connected to the network can access the corresponding access point according to the network configuration information.

[0026] In a sixth aspect, an embodiment of the present invention provides a device to be connected to a network, comprising a processor and a memory, wherein the memory stores executable code, and when the executable code is executed by the processor, the processor executes the network configuration method in the fourth aspect.

[0027] An embodiment of the present invention provides a non-temporary machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of a device to be connected to the network, the processor executes the network configuration method in the fourth aspect.

[0028] In a seventh aspect, an embodiment of the present invention provides a network configuration method, which is applied to a network distribution device, and the method includes:

[0029] Establish a communication connection with the device to be connected to the network;

[0030] Determine a key through a client program supporting a preset application layer protocol in the network configuration device and a server program supporting the application layer protocol in the device to be networked, and encrypt the network configuration information of the access point according to the key;

[0031] The encrypted network configuration information is sent to the server program, so that the device to be connected to the network can access the access point according to the network configuration information.

[0032] In an eighth aspect, an embodiment of the present invention provides a network configuration device, which is applied to a network distribution device, including:

[0033] A connection module is used to establish a communication connection with the device to be connected to the network;

[0034] A processing module, configured to determine a key through a client program supporting a preset application layer protocol in the network configuration device and a server program supporting the application layer protocol in the device to be networked, and encrypt network configuration information of the access point according to the key;

[0035] The sending module is used to send the encrypted network configuration information to the server program so that the device to be connected to the network can access the access point according to the network configuration information.

[0036] In the ninth aspect, an embodiment of the present invention provides a network distribution device, comprising: a memory and a processor; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor executes the network configuration method as described in the seventh aspect.

[0037] An embodiment of the present invention provides a non-temporary machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of a network configuration device, the processor executes the network configuration method in the seventh aspect.

[0038] In a tenth aspect, an embodiment of the present invention provides a network configuration method, which is applied to a device to be connected to a network, and the method includes:

[0039] In response to the wireless hotspot activation operation, establishing a communication connection with the network distribution device;

[0040] Determine a key through a server program supporting a preset application layer protocol in the device to be networked and a client program supporting the application layer protocol in the network configuration device;

[0041] Receiving network configuration information encrypted by the client program according to the key;

[0042] The network configuration information is decrypted according to the key, so that the device to be networked can access the corresponding access point according to the network configuration information.

[0043] In an eleventh aspect, an embodiment of the present invention provides a network configuration device, which is applied to a device to be connected to a network, including:

[0044] A first connection module, configured to establish a communication connection with a network distribution device in response to a wireless hotspot activation operation;

[0045] A key generation module, used to determine a key through a server program supporting a preset application layer protocol in the device to be networked and a client program supporting the application layer protocol in the network configuration device;

[0046] A receiving module, used for receiving the network configuration information encrypted by the client program according to the key;

[0047] The second connection module is used to decrypt the network configuration information according to the key, so that the device to be connected to the network can access the corresponding access point according to the network configuration information.

[0048] In the twelfth aspect, an embodiment of the present invention provides a device to be connected to the network, comprising: a memory and a processor; wherein executable code is stored on the memory, and when the executable code is executed by the processor, the processor executes the network configuration method as described in the tenth aspect.

[0049] An embodiment of the present invention provides a non-temporary machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of a device to be connected to the network, the processor executes the network configuration method in the tenth aspect.

[0050] In a thirteenth aspect, an embodiment of the present invention provides a network configuration method, which is applied to a mobile terminal, and the method includes:

[0051] In response to the wireless hotspot activation operation, establishing a communication connection with the device to be connected to the network;

[0052] Opening a server program in the mobile terminal that supports a preset application layer protocol;

[0053] Determining a key through the server program and a client program supporting the application layer protocol in the device to be connected to the network, and encrypting the network configuration information of the access point according to the key;

[0054] The encrypted network configuration information is sent to the client program, so that the device to be connected to the network can access the access point according to the network configuration information.

[0055] In a fourteenth aspect, an embodiment of the present invention provides a network configuration device, applied to a mobile terminal, including:

[0056] A connection module, used to establish a communication connection with the device to be connected to the network in response to the wireless hotspot opening operation;

[0057] A processing module, used to start a server program in the mobile terminal that supports a preset application layer protocol; determine a key through the server program and a client program in the device to be connected to the network that supports the application layer protocol, and encrypt the network configuration information of the access point according to the key;

[0058] The sending module is used to send the encrypted network configuration information to the client program so that the device to be connected to the network can access the access point according to the network configuration information.

[0059] In the fifteenth aspect, an embodiment of the present invention provides a mobile phone terminal, comprising: a memory and a processor; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor executes the network configuration method as described in the thirteenth aspect.

[0060] An embodiment of the present invention provides a non-temporary machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of a mobile phone terminal, the processor executes the network configuration method as described in the thirteenth aspect.

[0061] In order to ensure the security of the network configuration information of the AP sent by the network configuration device to the device to be connected to the network, it is necessary to encrypt and send the network configuration information, so it is necessary to generate the key required to encrypt the network configuration information. To this end, in the network configuration scheme provided in the embodiment of the present invention, the network configuration device or the device to be connected to the network can be made to open a wireless hotspot (Wi-Fi hotspot), and the name of the wireless hotspot, namely the service set identifier (SSID), is a pre-set specific name, which is used by the network configuration device and the device to be connected to the network to identify each other's identity and then establish a communication connection with each other. Afterwards, one of the network configuration device and the device to be connected to the network starts a server program that supports the preset application layer protocol, and the other starts a client program that supports the preset application layer protocol, and then determines a key through the application layer interaction between the server program and the client program, so that the network configuration device uses the key to encrypt the network configuration information of the AP, and sends the encrypted network configuration information to the device to be connected to the network so that it can access the AP. In this solution, there is no need to set up additional codes for generating the above-mentioned keys and storage resources for storing the codes in the network configuration device and the device to be connected to the network. The network configuration of the device to be connected to the network can be completed by relying only on the resources inherent in the network configuration device and the device to be connected to the network, which is simple and efficient. In addition, in this solution, the network configuration device can complete the network configuration of the device to be connected to the network even if it is not connected to the public network. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0063] Figure 1 A schematic diagram of a flow chart of a network configuration method provided by an embodiment of the present invention;

[0064] Figure 2 A schematic diagram of a flow chart of a network configuration method provided by another embodiment of the present invention;

[0065] Figure 3 A schematic diagram of a network configuration scenario provided by an embodiment of the present invention;

[0066] Figure 4 A schematic diagram of the structure of a network configuration device provided by an embodiment of the present invention;

[0067] Figure 5 For Figure 4 A schematic diagram of the structure of a network configuration device corresponding to the network configuration device provided in the illustrated embodiment;

[0068] Figure 6 A schematic diagram of the structure of another network configuration device provided by an embodiment of the present invention;

[0069] Figure 7 For Figure 6 A schematic diagram of the structure of a device to be connected to the network corresponding to the network configuration device provided in the illustrated embodiment;

[0070] Figure 8 A schematic diagram of the structure of another network configuration device provided by an embodiment of the present invention;

[0071] Fig. 9 For Figure 8 A schematic diagram of the structure of a network configuration device corresponding to the network configuration device provided in the illustrated embodiment;

[0072] Fig.10 A schematic diagram of the structure of another network configuration device provided by an embodiment of the present invention;

[0073] Fig.11 For Fig.10 A schematic diagram of the structure of a device to be connected to the network corresponding to the network configuration device provided in the illustrated embodiment. DETAILED DESCRIPTION

[0074] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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.

[0075] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.

[0076] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0077] In addition, the step sequence in the following method embodiments is only an example and not a strict limitation.

[0078] Before specifically introducing the network configuration solution provided by the embodiment of the present invention, several concepts involved in this document are first explained.

[0079] The server in this article can be an independent physical host or a host cluster located in the cloud.

[0080] The device to be connected to the network in this article can be a terminal device such as a smart refrigerator, a robot, a smart wearable device, or an IoT device such as a sensor or a detector. The device to be connected to the network has not yet been connected to a wireless network that it is expected to access, that is, to a certain AP, so it is called a device to be connected to the network.

[0081] The network configuration device in this article can be a terminal device such as a mobile phone, a tablet computer, a smart speaker, a car terminal, etc., which usually has a screen and can automatically or the user can input the network configuration information of the AP through the screen. The network configuration information includes the SSID and access password of the AP. The network configuration device is used to perform network configuration on the device to be connected to the network so that it can access the AP. In addition, a network configuration application can be run in the network configuration device, and the network configuration of the device to be connected to the network is realized through the network configuration application.

[0082] The purpose of the network configuration device for the network access device is mainly to send the AP's network configuration information to the network access device, and the network access device accesses the AP according to the network configuration information. Since the network configuration information includes sensitive information such as the AP's access password, which should not be disclosed, the network configuration device needs to encrypt the network configuration information for transmission, which requires the generation of encryption keys.

[0083] One way to obtain the key is: a QR code containing the identifier of the device to be connected is set on the device to be connected, and the network configuration device obtains the identifier of the device to be connected by scanning the QR code. Then, the network configuration device uses the identifier of the device to be connected to query the cloud server to obtain the key of the device to be connected from the server storing the identifier of the device to be connected and the key corresponding to the device to be connected, so as to encrypt the network configuration information of the AP using the key, and send the encrypted network configuration information to the device to be connected. The device to be connected decrypts the network configuration information according to its own key to access the AP.

[0084] In the above method, on the one hand, the network distribution device is required to be able to access the public network to ensure that the network distribution device can access the server; on the other hand, the program code required to execute the above key acquisition process needs to be placed in the device to be connected to the network and the network distribution device, which will bring additional computing resources and storage resources to the device to be connected to the network and the network distribution device.

[0085] In order to simplify the above requirements for network distribution equipment and devices to be connected to the network during the network distribution process, the embodiments of the present invention provide solutions as described in the following embodiments.

[0086] Figure 1 A flowchart of a network configuration method provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the network configuration process may include the following steps:

[0087] 101. In response to a wireless hotspot activation operation, a network configuration device establishes a communication connection with a device to be networked.

[0088] 102. The network configuration device determines a key through a server program supporting a preset application layer protocol and a client program supporting the application layer protocol in the device to be connected to the network.

[0089] 103. The server program in the network configuration device encrypts the network configuration information of the AP according to the key.

[0090] 104. The network configuration device sends the encrypted network configuration information to the client program in the device to be connected to the network through the server program.

[0091] 105. The device to be connected to the network uses the key to decrypt the network configuration information to access the AP.

[0092] In summary, in the network configuration solution provided in this embodiment, the network configuration device turns on the wireless hotspot, so that the device to be connected to the network can access the wireless hotspot, i.e., the network configuration device. After the two establish a communication connection, a key for encrypting the network configuration information of the AP is generated through the communication interaction process of the application layer. Then, the network configuration device uses the key to encrypt the network configuration information of the AP and sends it to the device to be connected to the network.

[0093] During the network configuration process, if the network configuration device is configured to work in the wireless hotspot mode, then in actual applications, when a device to be connected to the network needs to be configured through the network configuration device, the user (usually the owner of the network configuration device and the device to be connected to the network) triggers the wireless hotspot opening operation on the network configuration device. At this time, the network configuration device can broadcast the SSID corresponding to the wireless hotspot. Specifically, the network configuration device can periodically broadcast management frames containing the SSID.

[0094] Generally, the communication protocols used by the network configuration equipment and the equipment to be connected to the network are in compliance with the 802.11 standard. In the 802.11 standard, many management frames are specified. Therefore, the above management frame can be selected from any one of the multiple management frames specified in the 802.11 standard. Common management frames include: beacon frames and probe request frames.

[0095] In actual applications, for a device to be connected to the network, at a certain moment, it may not only receive management frames sent by the above-mentioned network configuration devices, but also receive management frames sent by other devices, such as management frames sent by APs, and these management frames may all contain the SSID of the corresponding device. At this time, the device to be connected to the network needs to distinguish which management frame corresponds to the network configuration device it needs to connect to, that is, the device to be connected to the network needs to be able to identify which network configuration device it needs to connect to based on the SSID carried in the received management frame.

[0096] Based on this, optionally, when the network configuration device configures the network for the device to be networked, the SSID used by the network configuration device when opening the wireless hotspot can be preset, that is, the name of the wireless hotspot is pre-set, such as using specific identification content as the name of the wireless hotspot. Since the range of radio frequency signals that the device to be networked can receive is limited, the number of SSIDs that can be searched within the signal receiving range of the device to be networked is often limited, and the specific SSID is not prone to duplication and has a relatively high degree of recognition. Moreover, the SSID can also be pre-installed in the device to be networked, so that when the management frame received by the device to be networked contains the SSID, the device to be networked determines that the device sending the management frame is the network configuration device that needs to be connected.

[0097] When the device to be connected to the network determines that it needs to connect to the network configuration device according to the SSID sent by the network configuration device, it can access the wireless hotspot according to the access password corresponding to the SSID pre-set in the device to be connected to the network (the access password can also be default), thereby establishing a communication connection with the network configuration device, and the communication connection can be a TCP connection or a UDP connection. It can be understood that the communication connection is a connection at the transport layer.

[0098] Of course, the establishment of the communication connection between the network configuration device and the device to be networked is not limited to the above implementation method. For example, the communication connection can also be established through communication methods such as Bluetooth.

[0099] After establishing a connection with the device to be connected to the network, the network configuration device is configured to locally start a server program in the network configuration device that supports a preset application layer protocol. Similarly, a client program corresponding to the server program is also started in the device to be connected to the network.

[0100] For example, when a TCP connection is established between the network configuration device and the device to be connected to the network, the application layer protocol can be Hyper Text Transfer Protocol over Secure Socket Layer (HTTPS) or Secure Shell (SSH). When a UDP connection is established between the network configuration device and the device to be connected to the network, the application layer protocol can be Constrained Application Protocol (CoAP).

[0101] Assuming that the selected application layer protocol is HTTPS, the server program can be represented as: HTTPS Server, and the client program can be represented as: HTTPS Client. In fact, most of the current terminal devices (including devices to be connected to the network) often have the ability to access the remote server through the HTTPS protocol as an HTTPS Client by default.

[0102] The purpose of starting the application layer program on the network configuration device and the device to be networked is to generate a key for encrypting and decrypting the network configuration information of the AP through application layer interaction.

[0103] Optionally, the process of determining the key between the server program and the client program can be implemented as follows:

[0104] The client program sends a first random number to the server program;

[0105] The server program sends the second random number to the client program;

[0106] The server program sends the public key to the client program;

[0107] The client program uses the public key to encrypt the third random number and sends it to the server program;

[0108] The server program uses the private key to decrypt the third random number;

[0109] The server program generates a key according to the first random number, the second random number and the third random number;

[0110] The client program generates the key according to the first random number, the second random number and the third random number.

[0111] The first random number and the third random number are randomly generated by the client program or generated using a certain set algorithm, and the second random number is randomly generated by the server program or generated using a certain set algorithm. Both the first random number and the second random number are sent in plain text, and the third random number is encrypted by the client program using the public key provided by the server program and transmitted to the server program.

[0112] The server program will eventually obtain the above three random numbers. Similarly, the client program will also eventually obtain the three random numbers. Finally, the server program and the client program use the same algorithm to calculate the three random numbers obtained by each of them to obtain the same key.

[0113] Although the first random number and the second random number are sent in plain text, the third random number is sent encrypted using the public key provided by the server program. If there is no corresponding private key, the third random number will not be obtained. Therefore, the key obtained based on the above three random numbers is not easy to crack. In addition, the key is generated by multiple random numbers, and its uniqueness is more guaranteed compared to the key generated using only one random number.

[0114] Of course, there may be many ways for the server program and the client program to determine the key, which are not limited to the above examples.

[0115] In summary, when a TCP connection is established between the network configuration device and the device to be connected to the network, the server program and the client program can determine the key through the Transport Layer Security (TLS) protocol. When a UDP connection is established between the network configuration device and the device to be connected to the network, the server program and the client program determine the key through the Datagram Transport Layer Security (DTLS) protocol.

[0116] TLS is used to provide confidentiality and data integrity between two applications, thereby ensuring the security of communication between the server program and the client program. Since TLS is designed to support TCP, DTLS is required to ensure the security of data transmission based on UDP connections. The process of the server program and the client program executing TLS or DTLS to determine the key can be implemented with reference to existing related technologies and will not be described in detail in this article.

[0117] After determining the key, the server program in the network configuration device uses the key to encrypt the AP's network configuration information and sends the encrypted network configuration information to the client program. The client program uses the key to decrypt the network configuration information and then accesses the AP using the decrypted network configuration information.

[0118] It is worth noting that after obtaining the above key, the network configuration device can also use the key to encrypt the AP's network configuration information through other programs or processes, not necessarily through the above server program. Accordingly, the encrypted network configuration information only needs to be sent to the device to be connected to the network, and does not necessarily have to be sent to the above client program.

[0119] In summary, in the network configuration scheme provided by the embodiment of the present invention, there is no need to set additional codes for generating the above-mentioned keys and storage resources for storing the codes in the network configuration device and the device to be connected to the network, and the network configuration of the device to be connected to the network can be completed by relying only on the resources inherent in the network configuration device and the device to be connected to the network. Specifically, in this network configuration scheme, since the network configuration device and the device to be connected to the network naturally have the ability to start application layer programs such as HTTPS Server, HTTPS Client; SSH Server, SSHClient, etc., keys can be negotiated through application layer programs without the need for additional resources to generate keys, and without occupying too many storage resources, thereby achieving simplicity and efficiency. In addition, in this scheme, the network configuration device can complete the network configuration of the device to be connected to the network even if it is not connected to the public network.

[0120] Figure 2 A flowchart of a network configuration method provided by another embodiment of the present invention is shown as follows: Figure 2 As shown, the network configuration method may include the following steps:

[0121] 201. In response to a wireless hotspot activation operation, the network access device establishes a communication connection with a network distribution device.

[0122] 202. The network configuration device determines a key through a client program supporting a preset application layer protocol and a server program supporting the application layer protocol in the device to be networked.

[0123] 203. The client program in the network configuration device encrypts the network configuration information of the AP according to the key.

[0124] 204. The network configuration device sends the encrypted network configuration information to the server program in the device to be connected to the network through the client program.

[0125] 205. The device to be connected to the network uses the key to decrypt the network configuration information to access the AP.

[0126] The network configuration solution provided in this embodiment is Figure 1 The difference between the illustrated embodiments is that: in this embodiment, the device that turns on the wireless hotspot is a device to be connected to the network, and when the device to be connected to the network establishes a communication connection with the network configuration device, a server program corresponding to a certain application layer protocol is opened in the device to be connected to the network, and a corresponding client program is opened in the network configuration device.

[0127] Specifically, the device to be connected to the network sends a management frame containing a preset SSID, so that after the network configuration device intercepts the management frame, it establishes a communication connection with the device to be connected to the network according to the access password corresponding to the SSID.

[0128] For example, in a home scenario, there are often multiple devices that need to be configured, such as smart air conditioners, smart refrigerators, etc., and the network configuration device for these devices can be one, such as a mobile phone of a user at home. In this scenario, when the devices are used as wireless hotspots, in order to distinguish different devices, the SSID of the wireless hotspot corresponding to the devices can be set to include at least one of the following information:

[0129] The set identifier, the product type identifier corresponding to the device to be connected to the network, and the device identifier corresponding to the device to be connected to the network.

[0130] The set identifier may be used to distinguish between devices to be networked and devices not to be networked, for example, a combination of letters, numbers, or symbols may be set for adh or the like.

[0131] The product type identifier corresponding to the device to be connected to the network can be used to distinguish devices of different product types to be connected to the network. For example, the product type identifier corresponding to a certain brand of refrigerator is XYZ, and the product type identifier corresponding to a certain brand of air conditioner is DCE.

[0132] The device identifier corresponding to the device to be connected to the network can be used to distinguish different devices of the same product type. For example, if there are two smart air conditioners of the same brand and model at home, the two smart air conditioners can be distinguished by the device identifier. The device identifier can be a MAC address.

[0133] The detailed execution process of the network configuration solution provided in this embodiment is similar to Figure 1 The solutions provided by the illustrated embodiments are similar and will not be described in detail.

[0134] For ease of understanding, the following Figure 3 To illustrate the implementation process of the network configuration solution provided by the embodiment of the present invention in an actual application scenario.

[0135] Figure 3 A schematic diagram of a network configuration scenario provided by an embodiment of the present invention, in Figure 3 In the example, it is assumed that the network configuration device mentioned above is a mobile terminal 301, and the device to be connected to the network is a sweeping robot 302. The purpose of the mobile terminal to configure the network of the sweeping robot is to connect the sweeping robot to the network. Figure 3 Assume that the SSID of the router 303 is XYZ and the access password of the router 303 is PW123.

[0136] In order to realize the network configuration of the sweeping robot 302 by the mobile terminal 301, first, the wireless hotspot function of the mobile terminal 301 is turned on to put it in the wireless hotspot mode. The sweeping robot 302 accesses the wireless hotspot to establish a communication connection with the mobile terminal 301. After the sweeping robot 302 establishes a communication connection with the mobile terminal 301, the mobile terminal 301 can locally start the server program that supports the preset application layer protocol, assuming it is HTTPS Server. In addition, the sweeping robot 302 has a client program that supports the application layer protocol by default, assuming it is HTTPS Client. Thus, the mobile terminal 301 negotiates the key KEY with the HTTPS Client in the sweeping robot 302 through the HTTPS Server to encrypt the network configuration information of the router 303 according to the key KEY. The encryption process is assumed to be expressed as: KEY (XYZ, PW123), that is, the SSID and access password of the router 303 are encrypted using the key KEY. Furthermore, the mobile phone terminal 301 sends the encrypted network configuration information KEY (XYZ, PW123) to the cleaning robot 302 , and the cleaning robot 302 decrypts the key KEY to obtain the SSID and access password of the router 303 , and accesses the router 303 accordingly.

[0137] The network configuration device of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these network configuration devices can be configured using commercially available hardware components through the steps taught in this solution.

[0138] Figure 4 A schematic diagram of a network configuration device provided in an embodiment of the present invention. Figure 1 In the distribution network equipment described in the embodiment shown. Figure 4 As shown, the device includes: a connecting module 11, a processing module 12, and a sending module 13.

[0139] The connection module 11 is used to establish a communication connection with the device to be connected to the network in response to the wireless hotspot activation operation.

[0140] The processing module 12 is used to determine a key through a server program supporting a preset application layer protocol in the network configuration device and a client program supporting the application layer protocol in the device to be networked, and encrypt the network configuration information of the access point according to the key.

[0141] The sending module 13 is used to send the encrypted network configuration information to the client program, so that the device to be connected to the network can access the access point according to the network configuration information.

[0142] Optionally, the processing module 12 can be specifically used to: receive a first random number sent by the client program through the server program; send a second random number and a public key to the client program through the server program, so that the client program sends a third random number encrypted using the public key to the server program; decrypt the third random number using a private key through the server program; generate the key according to the first random number, the second random number and the third random number through the server program; wherein the client program generates the key according to the first random number, the second random number and the third random number.

[0143] Optionally, the connection module 11 is specifically used to: in response to a wireless hotspot activation operation, send a management frame containing a preset service set identifier, so that the network-accessing device that receives the management frame establishes a communication connection with the network configuration device according to an access password corresponding to the service set identifier.

[0144] Optionally, a TCP connection is established between the network configuration device and the device to be networked, and the processing module 12 can be specifically used to: enable the server program and the client program to determine a key through a secure transport layer protocol. Optionally, the application layer protocol includes: HTTPS or SSH.

[0145] Optionally, a UDP connection is established between the network configuration device and the device to be networked, and the processing module 12 can be specifically used to: enable the server program and the client program to determine a key through a data packet transport layer security protocol. Optionally, the application layer protocol includes: CoAP.

[0146] Optionally, the network distribution device locally starts the server program.

[0147] Figure 4 The device shown can perform the aforementioned Figure 1 For the steps executed by the network distribution device in the illustrated embodiment, the parts not described in detail in this embodiment can be referred to the relevant description of the aforementioned embodiments, and will not be repeated here.

[0148] In one possible design, the above Figure 4 The structure of the network configuration device shown can be implemented as a network configuration device, such as a terminal device such as a mobile phone, a laptop computer, a vehicle-mounted terminal, etc. Figure 5 As shown, the network distribution device may include: a first processor 21 and a first memory 22. The first memory 22 stores executable code, and when the executable code is executed by the first processor 21, at least the first processor 21 implements the aforementioned Figure 1 The steps performed by the network distribution device in the illustrated embodiment.

[0149] The structure of the network distribution device may further include a first communication interface 23 for communicating with other devices or a communication network.

[0150] In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of a network distribution device, the processor executes the aforementioned Figure 1 The steps performed by the network distribution device in the illustrated embodiment.

[0151] Figure 6 A schematic diagram of another network configuration device provided in an embodiment of the present invention, wherein the network configuration device is arranged Figure 1 In the device to be connected to the network described in the embodiment shown. Figure 6 As shown, the device includes: a first connection module 31, a key generation module 32, a receiving module 33, and a second connection module 34.

[0152] The first connection module 31 is used to establish a communication connection with a distribution network device.

[0153] The key generation module 32 is used to determine a key through a client program supporting a preset application layer protocol in the device to be networked and a server program supporting the application layer protocol in the network configuration device.

[0154] The receiving module 33 is used to receive the network configuration information encrypted by the server program according to the key.

[0155] The second connection module 34 is used to decrypt the network configuration information according to the key, so that the device to be connected to the network can access the corresponding access point according to the network configuration information.

[0156] Optionally, the first connection module 31 is specifically used to: receive a management frame sent by the network configuration device, the management frame including a service set identifier of the wireless hotspot corresponding to the network configuration device; and establish a communication connection with the network configuration device according to an access password corresponding to the service set identifier.

[0157] Figure 6 The device shown can perform the aforementioned Figure 1 For the steps executed by the network access device in the illustrated embodiment, the parts not described in detail in this embodiment can be referred to the relevant description of the aforementioned embodiments, and will not be repeated here.

[0158] In one possible design, the above Figure 6 The structure of the network configuration device shown can be implemented as a device to be connected to the network, which can be, for example, a smart home device, a smart wearable device, etc. Figure 7As shown, the network access device may include: a second processor 41 and a second memory 42. The second memory 42 stores executable code, and when the executable code is executed by the second processor 41, at least the second processor 41 implements the aforementioned Figure 1 The steps executed by the device to be connected to the network in the illustrated embodiment.

[0159] The structure of the device to be connected to the network may also include a second communication interface 43 for communicating with other devices or communication networks.

[0160] In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of the device to be connected to the network, the processor executes the aforementioned Figure 1 The steps executed by the device to be connected to the network in the illustrated embodiment.

[0161] Figure 8 A schematic diagram of another network configuration device provided in an embodiment of the present invention, wherein the network configuration device is arranged Figure 2 In the network distribution equipment described in the embodiment shown. Figure 8 As shown, the device includes: a connecting module 51, a processing module 52, and a sending module 53.

[0162] The connection module 51 is used to establish a communication connection with the device to be connected to the network.

[0163] The processing module 52 is used to determine a key through a client program supporting a preset application layer protocol in the network configuration device and a server program supporting the application layer protocol in the device to be networked, and encrypt the network configuration information of the access point according to the key.

[0164] The sending module 53 is used to send the encrypted network configuration information to the server program, so that the device to be connected to the network can access the access point according to the network configuration information.

[0165] Optionally, the connection module 51 is specifically used to: receive a management frame sent by the device to be connected, the management frame including a service set identifier of the wireless hotspot corresponding to the device to be connected; and establish a communication connection with the device to be connected according to an access password corresponding to the service set identifier.

[0166] Optionally, the service set identifier includes at least one of the following information:

[0167] The set identifier, the product type identifier corresponding to the device to be connected to the network, and the device identifier corresponding to the device to be connected to the network.

[0168] Figure 8 The device shown can perform the aforementioned Figure 2 For the steps executed by the network distribution device in the illustrated embodiment, the parts not described in detail in this embodiment can be referred to the relevant description of the aforementioned embodiments, and will not be repeated here.

[0169] In one possible design, the above Figure 8 The structure of the network configuration device shown can be implemented as a network distribution device. Fig. 9 As shown, the network distribution device may include: a third processor 61 and a third memory 62. The third memory 62 stores executable code, and when the executable code is executed by the third processor 61, at least the third processor 61 implements the aforementioned Figure 2 The steps performed by the network distribution device in the illustrated embodiment.

[0170] The structure of the network distribution device may further include a third communication interface 63 for the network distribution device to communicate with other devices or a communication network.

[0171] In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of a network distribution device, the processor executes the aforementioned Figure 2 The steps performed by the network distribution device in the illustrated embodiment.

[0172] Fig.10 A schematic diagram of another network configuration device provided in an embodiment of the present invention, wherein the network configuration device is arranged Figure 2 In the device to be connected to the network described in the embodiment shown. Fig.10 As shown, the device includes: a first connection module 71, a key generation module 72, a receiving module 73, and a second connection module 74.

[0173] The first connection module 71 is used to establish a communication connection with the network distribution device in response to a wireless hotspot activation operation.

[0174] The key generation module 72 is used to determine a key through a server program supporting a preset application layer protocol in the device to be connected to the network and a client program supporting the application layer protocol in the network configuration device.

[0175] The receiving module 73 is used to receive the network configuration information encrypted by the client program according to the key.

[0176] The second connection module 74 is used to decrypt the network configuration information according to the key, so that the device to be connected to the network can access the corresponding access point according to the network configuration information.

[0177] Optionally, the first connection module 71 is specifically used to: in response to a wireless hotspot activation operation, send a management frame containing a preset service set identifier, so that the network configuration device that receives the management frame establishes a communication connection with the device to be networked according to an access password corresponding to the service set identifier.

[0178] Fig.10 The device shown can perform the aforementioned Figure 2 For the steps executed by the network access device in the illustrated embodiment, the parts not described in detail in this embodiment can be referred to the relevant description of the aforementioned embodiments, and will not be repeated here.

[0179] In one possible design, the above Fig.10 The structure of the network configuration device shown can be implemented as a device to be connected to the network. Fig.11 As shown, the network access device may include: a fourth processor 81 and a fourth memory 82. The fourth memory 82 stores executable code, and when the executable code is executed by the fourth processor 81, at least the fourth processor 81 implements the aforementioned Figure 2 The steps executed by the device to be connected to the network in the illustrated embodiment.

[0180] The structure of the device to be connected to the network may further include a fourth communication interface 83, which is used for the device to be connected to the network to communicate with other devices or a communication network.

[0181] In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of the device to be connected to the network, the processor executes the aforementioned Figure 2 The steps executed by the device to be connected to the network in the illustrated embodiment.

[0182] In addition, an embodiment of the present invention provides a network configuration device, which is arranged in Figure 3 In the mobile phone terminal described in the embodiment shown, the network configuration device includes: a connection module, a processing module, and a sending module. Among them:

[0183] The connection module is used to establish a communication connection with the device to be connected to the network in response to the wireless hotspot activation operation.

[0184] The processing module is used to start the server program supporting the preset application layer protocol in the mobile terminal; determine the key through the server program and the client program supporting the application layer protocol in the device to be connected to the network, and encrypt the network configuration information of the access point according to the key.

[0185] The sending module is used to send the encrypted network configuration information to the client program so that the device to be connected to the network can access the access point according to the network configuration information.

[0186] The network configuration device can perform the aforementioned Figure 3 The steps performed by the mobile terminal in the embodiment shown in the figure, for the parts not described in detail in this embodiment, can refer to the relevant description of the previous embodiment, and will not be repeated here. In addition, the structure of the network configuration device can be implemented as a mobile terminal. The mobile terminal may include: a processor and a memory. Among them, the memory stores executable code, and when the executable code is executed by the processor, at least the processor implements the above-mentioned Figure 3 The steps executed by the mobile phone terminal in the illustrated embodiment.

[0187] The structure of the mobile terminal may also include a communication interface for communicating with other devices or a communication network. The structure of the mobile terminal may also include components such as a display screen.

[0188] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. Those of ordinary skill in the art may understand and implement the present invention without creative effort.

[0189] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on such an understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a computer product, and the present invention can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0190] The network configuration method provided in the embodiment of the present invention can be executed by one or more programs / softwares, and the program / software can be provided by the network side. The network configuration device and the network access device mentioned in the above embodiments can download the required corresponding program / software to the local non-volatile storage medium, and when it needs to execute the above network configuration method, the program / software is read into the memory by the CPU, and then the program / software is executed by the CPU to implement the network configuration method provided in the above embodiments. The execution process can refer to the above Figures 1 to 3 Instructions in .

[0191] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A network configuration method, It is characterized in that Applied to a mobile phone terminal, the method comprises: In response to the wireless hotspot activation operation, establishing a communication connection with the device to be connected to the network; Opening a server program inherent in the mobile terminal that supports a preset application layer protocol, wherein the application layer protocol includes: HTTPS, SSH or CoAP; Based on the communication connection, a key is determined through the server program and a client program inherent in the device to be connected to the network and supporting the application layer protocol, and network configuration information of the access point is encrypted according to the key; Sending the encrypted network configuration information to the client program through the communication connection, so that the device to be connected to the network can access the access point according to the network configuration information; The key determination step includes: The server program receives a first random number sent in plain text by the client program; The server program sends the second random number and the public key in plain text to the client program, so that the client program sends the third random number encrypted by the public key to the server program; The server program uses the private key to decrypt the third random number; The server program generates the key according to the first random number, the second random number and the third random number; The client program generates the key according to the first random number, the second random number and the third random number.

2. The method according to claim 1, It is characterized in that The step of establishing a communication connection with the device to be connected to the network in response to the wireless hotspot opening operation includes: In response to the wireless hotspot activation operation, a management frame including a preset service set identifier is sent, so that the network access device that receives the management frame establishes a communication connection with the mobile phone terminal according to the access password corresponding to the service set identifier.

3. The method according to claim 1, It is characterized in that A TCP connection is established between the mobile terminal and the device to be connected to the network, the application layer protocol includes HTTPS or SSH, and the server program and the client program determine a key through a secure transport layer protocol.

4. The method according to claim 1, It is characterized in that A UDP connection is established between the mobile terminal and the device to be connected to the network, the application layer protocol includes CoAP, and the server program and the client program determine a key through a data packet transport layer security protocol.

5. A network configuration device, It is characterized in that Applied to mobile terminals, including: A connection module, used to establish a communication connection with the device to be connected to the network in response to the wireless hotspot opening operation; A processing module, used to start a server program inherent in the mobile terminal that supports a preset application layer protocol, wherein the application layer protocol includes: HTTPS, SSH or CoAP; based on the communication connection, a key is determined through the server program and a client program inherent in the device to be connected to the network that supports the application layer protocol, and the network configuration information of the access point is encrypted according to the key; wherein the key determination step includes: the server program receives a first random number sent in plain text by the client program; the server program sends a second random number and a public key in plain text to the client program, so that the client program sends a third random number encrypted with the public key to the server program; the server program decrypts the third random number using a private key; the server program generates the key according to the first random number, the second random number and the third random number; wherein the client program generates the key according to the first random number, the second random number and the third random number; The sending module is used to send the encrypted network configuration information to the client program through the communication connection, so that the device to be connected to the network can access the access point according to the network configuration information.

6. A mobile phone terminal, It is characterized in that include: A memory and a processor; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor executes the network configuration method according to any one of claims 1 to 4.

7. A non-transitory machine-readable storage medium, It is characterized in that The non-transitory machine-readable storage medium stores executable code, and when the executable code is executed by a processor of a mobile terminal, the processor executes the network configuration method according to any one of claims 1 to 4.

8. A network configuration method, It is characterized in that Applied to a distribution network device, the method comprises: In response to the wireless hotspot activation operation, establishing a communication connection with the device to be connected to the network; Based on the communication connection, a key is determined through a server program inherent in the network configuration device and supporting a preset application layer protocol and a client program inherent in the device to be networked and supporting the application layer protocol, and network configuration information of the access point is encrypted according to the key, wherein the application layer protocol includes: HTTPS, SSH or CoAP; Sending the encrypted network configuration information to the client program through the communication connection, so that the device to be connected to the network can access the access point according to the network configuration information; The key determination step includes: The server program receives a first random number sent in plain text by the client program; The server program sends the second random number and the public key in plain text to the client program, so that the client program sends the third random number encrypted by the public key to the server program; The server program uses the private key to decrypt the third random number; The server program generates the key according to the first random number, the second random number and the third random number; The client program generates the key according to the first random number, the second random number and the third random number.

9. The method according to claim 8, It is characterized in that The network distribution device locally starts the server program.

10. A network configuration method, It is characterized in that Applied to a device to be connected to a network, the method comprises: Establish communication connection with distribution network equipment; Based on the communication connection, a key is determined by a client program inherent in the device to be connected to the network and supporting a preset application layer protocol and a server program inherent in the network configuration device and supporting the application layer protocol, wherein the application layer protocol includes: HTTPS, SSH or CoAP; Receiving, via the communication connection, network configuration information encrypted by the server program according to the key; Decrypting the network configuration information according to the key, so that the device to be connected to the network can access the corresponding access point according to the network configuration information; The key determination step includes: The client program sends a first random number in plain text to the server program; The client program receives a second random number and a public key sent in plain text by the server program; The client program sends the third random number encrypted by the public key to the server program, so that the server program decrypts the third random number by using the private key; The client program generates the key according to the first random number, the second random number and the third random number; The server program generates the key according to the first random number, the second random number and the third random number.

11. The method according to claim 10, It is characterized in that The establishing of a communication connection with the distribution network device includes: Receiving a management frame sent by the network configuration device, wherein the management frame includes a service set identifier of the wireless hotspot corresponding to the network configuration device; Establish a communication connection with the network configuration device according to the access password corresponding to the service set identifier.

12. A network configuration method, It is characterized in that Applied to a distribution network device, the method comprises: Establish a communication connection with the device to be connected to the network; Based on the communication connection, a key is determined through a client program inherent in the network configuration device and supporting a preset application layer protocol and a server program inherent in the device to be networked and supporting the application layer protocol, and network configuration information of the access point is encrypted according to the key, wherein the application layer protocol includes: HTTPS, SSH or CoAP; Sending the encrypted network configuration information to the server program through the communication connection, so that the device to be connected to the network can access the access point according to the network configuration information; The key determination step includes: The client program sends a first random number in plain text to the server program; The client program receives a second random number and a public key sent in plain text by the server program; The client program sends the third random number encrypted by the public key to the server program, so that the server program decrypts the third random number by using the private key; The client program generates the key according to the first random number, the second random number and the third random number; The server program generates the key according to the first random number, the second random number and the third random number.

13. The method according to claim 12, It is characterized in that The step of establishing a communication connection with the device to be connected to the network includes: Receiving a management frame sent by the device to be connected to the network, wherein the management frame includes a service set identifier of the wireless hotspot corresponding to the device to be connected to the network; Establish a communication connection with the device to be networked according to the access password corresponding to the service set identifier.

14. The method according to claim 13, It is characterized in that The service set identifier includes at least one of the following information: The set identifier, the product type identifier corresponding to the device to be connected to the network, and the device identifier corresponding to the device to be connected to the network.

15. A network configuration method, It is characterized in that Applied to a device to be connected to a network, the method comprises: In response to the wireless hotspot activation operation, establishing a communication connection with the network distribution device; Based on the communication connection, a key is determined by a server program inherent in the device to be connected to the network and supporting a preset application layer protocol and a client program inherent in the network configuration device and supporting the application layer protocol, wherein the application layer protocol includes: HTTPS, SSH or CoAP; receiving, via the communication connection, network configuration information encrypted by the client program according to the key; Decrypting the network configuration information according to the key, so that the device to be connected to the network can access the corresponding access point according to the network configuration information; The key determination step includes: The server program receives a first random number sent in plain text by the client program; The server program sends the second random number and the public key in plain text to the client program, so that the client program sends the third random number encrypted by the public key to the server program; The server program uses the private key to decrypt the third random number; The server program generates the key according to the first random number, the second random number and the third random number; The client program generates the key according to the first random number, the second random number and the third random number.

16. The method according to claim 15, It is characterized in that The step of establishing a communication connection with a network distribution device in response to a wireless hotspot activation operation includes: In response to the wireless hotspot activation operation, a management frame including a preset service set identifier is sent, so that the network configuration device that receives the management frame establishes a communication connection with the device to be networked according to the access password corresponding to the service set identifier.

17. A network configuration device, It is characterized in that Applied to distribution network equipment, including: A connection module, used to establish a communication connection with the device to be connected to the network in response to the wireless hotspot opening operation; A processing module, based on the communication connection, is used to determine a key through a server program inherent in the network configuration device and supporting a preset application layer protocol and a client program inherent in the device to be connected to the network and supporting the application layer protocol, and to encrypt the network configuration information of the access point according to the key, wherein the application layer protocol includes: HTTPS, SSH or CoAP; wherein the key determination step includes: the server program receives a first random number sent in plain text by the client program; the server program sends a second random number and a public key in plain text to the client program, so that the client program sends a third random number encrypted with the public key to the server program; the server program decrypts the third random number using a private key; the server program generates the key according to the first random number, the second random number and the third random number; wherein the client program generates the key according to the first random number, the second random number and the third random number; The sending module is used to send the encrypted network configuration information to the client program through the communication connection, so that the device to be connected to the network can access the access point according to the network configuration information.

18. A network distribution device, It is characterized in that include: A memory and a processor; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor executes the network configuration method as described in claim 8 or 9.

19. A non-transitory machine-readable storage medium, It is characterized in that The non-transitory machine-readable storage medium stores executable code, and when the executable code is executed by a processor of a network configuration device, the processor executes the network configuration method as claimed in claim 8 or 9.

20. A network configuration device, It is characterized in that Applicable to devices to be connected to the network, including: A first connection module, used to establish a communication connection with a distribution network device; A key generation module, used to determine a key based on the communication connection, through a client program inherent in the device to be connected to the network that supports a preset application layer protocol and a server program inherent in the network configuration device that supports the application layer protocol, wherein the application layer protocol includes: HTTPS, SSH or CoAP; wherein the key determination step includes: the client program sends a first random number in plain text to the server program; the client program receives a second random number and a public key sent in plain text by the server program; the client program sends a third random number encrypted with the public key to the server program, so that the server program decrypts the third random number using a private key; the client program generates the key according to the first random number, the second random number and the third random number; wherein the server program generates the key according to the first random number, the second random number and the third random number; A receiving module, used for receiving, through the communication connection, the network configuration information encrypted by the server program according to the key; The second connection module is used to decrypt the network configuration information according to the key, so that the device to be connected to the network can access the corresponding access point according to the network configuration information.

21. A device to be connected to the network, It is characterized in that include: A memory and a processor; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor executes the network configuration method as claimed in claim 10 or 11.

22. A non-transitory machine-readable storage medium, It is characterized in that The non-transitory machine-readable storage medium stores executable code, and when the executable code is executed by a processor of the device to be connected to the network, the processor executes the network configuration method as claimed in claim 10 or 11.

23. A network configuration device, It is characterized in that Applied to distribution network equipment, including: A connection module is used to establish a communication connection with the device to be connected to the network; A processing module, used to determine a key based on the communication connection, through a client program inherent in the network configuration device that supports a preset application layer protocol and a server program inherent in the device to be connected to the network that supports the application layer protocol, and encrypt the network configuration information of the access point according to the key, wherein the application layer protocol includes: HTTPS, SSH or CoAP; wherein the key determination step includes: the client program sends a first random number in plain text to the server program; the client program receives a second random number and a public key sent in plain text by the server program; the client program sends a third random number encrypted with the public key to the server program, so that the server program decrypts the third random number using a private key; the client program generates the key according to the first random number, the second random number and the third random number; wherein the server program generates the key according to the first random number, the second random number and the third random number; The sending module is used to send the encrypted network configuration information to the server program through the communication connection, so that the device to be connected to the network can access the access point according to the network configuration information.

24. A network distribution device, It is characterized in that include: A memory and a processor; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor executes the network configuration method as described in any one of claims 12 to 14.

25. A non-transitory machine-readable storage medium, It is characterized in that The non-transitory machine-readable storage medium stores executable code, and when the executable code is executed by a processor of a network configuration device, the processor executes the network configuration method as described in any one of claims 12 to 14.

26. A network configuration device, It is characterized in that Applicable to devices to be connected to the network, including: A first connection module, configured to establish a communication connection with a network distribution device in response to a wireless hotspot activation operation; A key generation module, used to determine a key based on the communication connection, through a server program inherent in the device to be connected to the network and supporting a preset application layer protocol and a client program inherent in the network configuration device and supporting the application layer protocol, wherein the application layer protocol includes: HTTPS, SSH or CoAP; wherein the key determination step includes: the server program receiving a first random number sent in plain text by the client program; the server program sending a second random number and a public key in plain text to the client program, so that the client program sends a third random number encrypted with the public key to the server program; the server program decrypts the third random number using a private key; the server program generates the key according to the first random number, the second random number and the third random number; wherein the client program generates the key according to the first random number, the second random number and the third random number; A receiving module, configured to receive, through the communication connection, network configuration information encrypted by the client program according to the key; The second connection module is used to decrypt the network configuration information according to the key, so that the device to be connected to the network can access the corresponding access point according to the network configuration information.

27. A device to be connected to the network, It is characterized in that include: A memory and a processor; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor executes the network configuration method as described in claim 15 or 16.

28. A non-transitory machine-readable storage medium, It is characterized in that The non-transitory machine-readable storage medium stores executable code, and when the executable code is executed by a processor of the device to be connected to the network, the processor executes the network configuration method as claimed in claim 15 or 16.