A device network configuration method and system, a storage medium and related devices

By adding specific information options to the Dynamic Host Configuration Protocol (DHCP) message, and utilizing the WiFi driver layer and IP layer for network configuration of smart devices, the problems of long configuration time and high resource consumption in traditional network configuration are solved, resulting in a faster network configuration process.

CN116528326BActive Publication Date: 2026-05-12SHENZHEN TCL NEW-TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN TCL NEW-TECH CO LTD
Filing Date
2022-01-24
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

When configuring traditional smart devices for network connectivity, the WiFi driver layer, network protocol layer, and application layer all need to be involved, resulting in high memory consumption and long configuration time.

Method used

Add specific information options to the Dynamic Host Configuration Protocol (DHCP) message, participate through the WiFi driver layer and IP layer, obtain and switch to the second wireless network for network configuration, and avoid application layer involvement.

Benefits of technology

This reduces the resource consumption of devices waiting to be distributed and shortens the distribution time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116528326B_ABST
    Figure CN116528326B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a device network configuration method and system, a storage medium and related devices, and are applied to the technical field of communication. In a master device mode of a first wireless network, a to-be-configured device receives a dynamic host configuration protocol message sent by a slave device. If specific information options of the dynamic host configuration protocol message include network configuration information of a second wireless network, the to-be-configured device switches to a slave device mode of the second wireless network after processing the dynamic host configuration protocol message, and performs network configuration of the second wireless network according to the network configuration information. In the process of obtaining the network configuration information, the to-be-configured device does not need to actively listen to a broadcast packet, but passively obtains the network configuration information by receiving the dynamic host configuration protocol message sent by the slave device, only needs to involve a WiFi drive layer and an IP layer, and does not need to involve an application layer, so that consumption of the to-be-configured device during network configuration is reduced, and network configuration time is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a device network configuration method, system, storage medium, and related equipment. Background Technology

[0002] In the traditional Internet of Things (IoT), each smart device, such as a smart speaker, smart lock, or smart refrigerator, needs to be configured on the network (i.e., network configuration) before users can control and manage the smart devices through a control terminal.

[0003] In existing technologies, network configuration for smart devices can include methods such as Access Point (AP) network configuration and sniffer network configuration. In AP network configuration mode, when the master device listens for network configuration information in the broadcast packet, the Wireless Fidelity (WiFi) driver layer needs to detect that an existing device is connected to the hotspot and start the application to listen for specific network configuration broadcast packets in order to perform network configuration. In this way, the WiFi driver layer, network protocol (IP) layer and application layer in the smart device all need to participate in the network configuration behavior, resulting in high memory consumption and long network configuration time for the smart device. Summary of the Invention

[0004] This invention provides a device network configuration method, system, storage medium, and related equipment, which reduces the network configuration time for devices to be configured.

[0005] One embodiment of the present invention provides a device network distribution method, comprising:

[0006] In the master device mode of the first wireless network, it receives Dynamic Host Configuration Protocol (DHCP) messages initiated by slave devices;

[0007] If the Dynamic Host Configuration Protocol message contains specific information options, and the specific information options include network configuration information for the second wireless network, the network configuration information is extracted from the specific information options and stored.

[0008] After processing the Dynamic Host Configuration Protocol message, the system switches from the master device mode to the slave device mode of the second wireless network.

[0009] Configure the network for the devices to be configured based on the network distribution information.

[0010] Another aspect of this invention provides a device network configuration method, comprising:

[0011] In slave device mode of the first wireless network, the master device is connected to the first wireless network;

[0012] Obtain the network configuration information of the second wireless network;

[0013] Add the configuration information for the second wireless network to the specific information options included in the Dynamic Host Configuration Protocol message;

[0014] The Dynamic Host Configuration Protocol (DHCP) message is sent to the master device so that the master device switches to slave mode of the second wireless network and performs network configuration for connecting to the second wireless network according to the network configuration information.

[0015] Another embodiment of the present invention provides a device for network distribution, comprising:

[0016] The message receiving unit is used to receive Dynamic Host Configuration Protocol (DHCP) messages initiated by the slave device in the master device mode of the first wireless network.

[0017] A storage unit is configured to extract and store network configuration information from the specific information option if the dynamic host configuration protocol message contains a specific information option and the specific information option includes network configuration information of the second wireless network;

[0018] The mode switching unit is used to process the dynamic host configuration protocol message and switch from the master device mode to the slave device mode of the second wireless network.

[0019] The distribution network unit is used to configure the network of the current device to be distributed based on the distribution network information.

[0020] Another embodiment of the present invention provides a terminal device, comprising:

[0021] A connection unit is configured to connect to the master device of the first wireless network in slave device mode of the first wireless network;

[0022] The network distribution acquisition unit is used to acquire the network distribution information of the second wireless network;

[0023] Add a unit to add network configuration information for a second wireless network in the specific information options contained in the Dynamic Host Configuration Protocol message;

[0024] The message transmission unit is used to send the Dynamic Host Configuration Protocol (DHCP) message to the master device so that the master device switches to slave device mode of the second wireless network and performs network configuration for connecting to the second wireless network according to the network configuration information.

[0025] Another aspect of the present invention provides a device distribution network system, comprising: a terminal device and a device to be distributed, wherein the device to be distributed is the device to be distributed as described in another aspect of the present invention, and the terminal device is the terminal device as described in another aspect of the present invention.

[0026] Another aspect of the present invention provides a computer-readable storage medium storing a plurality of computer programs adapted for loading by a processor and executing the device network configuration method as described in one or another aspect of the present invention.

[0027] Another embodiment of the present invention provides a terminal device, including a processor and a memory;

[0028] The memory is used to store multiple computer programs, which are loaded and executed by a processor as described in one aspect of the device network configuration method of the present invention; the processor is used to implement each of the multiple computer programs.

[0029] As can be seen, in this embodiment of the invention, in the master device mode of the first wireless network, the device to be configured receives a Dynamic Host Configuration Protocol (DHCP) message sent by the slave device. If the specific information options of the DHCP message include network configuration information of the second wireless network, the device to be configured will switch to the slave device mode of the second wireless network after processing the DHCP message and perform network configuration to join the second wireless network according to the network configuration information. In this process, the device to be configured does not need to actively listen for broadcast packets, but passively obtains the network configuration information by receiving the DHCP message sent by the slave device. Only the WiFi driver layer and IP layer are involved, without the application layer, thereby reducing the overhead and time consumed by the device to be configured during network configuration. Attached Figure Description

[0030] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0031] Figure 1 This is a schematic diagram of a system to which a device distribution network method provided in an embodiment of the present invention is applied;

[0032] Figure 2 This is a flowchart of a device network distribution method provided in one embodiment of the present invention;

[0033] Figure 3 This is a flowchart of a device network distribution method provided in another embodiment of the present invention;

[0034] Figure 4 This is a schematic diagram of specific information options in another embodiment of the present invention;

[0035] Figure 5 This is a flowchart of a device network configuration method provided in one application embodiment of the present invention;

[0036] Figure 6 This is a schematic diagram of a distributed system to which the device distribution network method of this invention is applied in another application embodiment of the invention;

[0037] Figure 7 This is a schematic diagram of the block structure in another application embodiment of the present invention;

[0038] Figure 8 This is a schematic diagram of the logical structure of a device to be configured in a network according to an embodiment of the present invention;

[0039] Figure 9 This is a schematic diagram of the logical structure of a terminal device provided in an embodiment of the present invention;

[0040] Figure 10 This is a schematic diagram of the logical structure of another terminal device provided in an embodiment of the present invention. Detailed Implementation

[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0042] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0043] This invention provides a device network distribution method, which can be mainly applied to, for example... Figure 1 The system shown may include: terminal device 10, device to be configured on the network 11, and wireless network access point 12, wherein:

[0044] Terminal device 10 can mainly access the second wireless network through wireless network access point 12, obtain the network configuration information of wireless network access point 12, and send the network configuration information to the device to be configured 11.

[0045] Among them, the terminal device 10 can search for information about the wireless network access point 12, including the account and password of the wireless network access point 12, through wireless network search, and send the searched information as network configuration information to the device to be configured 11.

[0046] The terminal device 10 can specifically be a smartphone, personal computer, or tablet.

[0047] The device to be configured is 11, which is used to obtain network configuration information from the terminal device 10 and complete the network configuration according to the network configuration information. In this way, the device to be configured can connect to the network through the wireless network access point 12 and connect to the cloud server.

[0048] Before completing network configuration and connecting to the cloud server, the device 11 to be configured can first create a wireless local area network (such as a first wireless network) as an access point (AP) hotspot to allocate resources to slave devices joining the first wireless network. During this process, it can receive network configuration information sent by slave devices based on another wireless network (such as a second wireless network). In this embodiment, the first wireless network can be a Dynamic Host Configuration Protocol (DHCP) network, which, as an AP hotspot in the network, can allocate resources such as IP addresses to slave devices; the second wireless network can be a WiFi network.

[0049] Here, an AP hotspot refers to the creator of a wireless network, which is the central node of the network. Other devices can search for the information of the AP hotspot and join the network where the AP hotspot is located. In this embodiment, the device to be configured on the network 11 can be a smart home appliance terminal with a WiFi module, such as a smart speaker, smart door lock, or smart refrigerator.

[0050] Wireless network access point 12 is a router device that connects to the external network and can provide network services to the aforementioned terminal device 10 and the device to be configured on the network 11, generally including local area network connection control services and cloud connection control services.

[0051] Specifically, such as Figure 2 As shown, the network configuration device 11 in this embodiment can configure network information through the following steps:

[0052] Step 101: In the master device mode of the first wireless network, receive the Dynamic Host Configuration Protocol message initiated by the slave device.

[0053] Specifically, the user can operate the device to be configured 11 to enable the device to start the AP hotspot and start the service of the first wireless network protocol, which is DHCP protocol service in this embodiment. In this way, other devices can search for the information of the device to be configured 11 through wireless network search and join the first wireless network created by the device to be configured 11.

[0054] Among them, the device to be configured is the master device, which is in the master device mode of the first wireless network, while the other devices are slave devices, which are in the station mode of the first wireless network. The slave devices can send DHCP messages to the master device to request the master device to allocate corresponding resources to the slave device.

[0055] To enable network configuration for devices joining the second wireless network, the slave device can obtain the network configuration information of the second wireless network and send this information to the devices via DHCP messages. The network configuration information of the second wireless network may include the account and password of the aforementioned wireless network access point 12.

[0056] In practice, the slave device adds network configuration information to the specific information options of the DHCP message. These specific information options are parts that the DHCP protocol does not parse; they can be customized and parsed by the manufacturer, and the required fields can be flexibly configured according to the corresponding engineering needs. For example, Option 43 is simply option 43. In this embodiment, network configuration information is added to the specific information options of the DHCP message so that the slave device 11, acting as the master device, can obtain this network configuration information and thus complete the network configuration.

[0057] Step 102: If the Dynamic Host Configuration Protocol message contains a specific information option, and the specific information option includes the network configuration information of the second wireless network, extract the network configuration information from the specific information option and store it.

[0058] Specifically, if the specific information option includes the account, password and authentication code of the wireless network access point 12 in the second wireless network, and the authentication code is obtained by the terminal device 10 encrypting a certain authentication code using a preset encryption method, such as using Advanced Encryption Standard (AES), then the device to be configured 11 will decrypt the authentication code in the specific information option using a preset decryption method to obtain the decrypted authentication code. Here, the preset decryption method can be the decryption method corresponding to AES, etc.

[0059] Furthermore, if the authentication of the decrypted authentication code is successful, the account and password of the wireless network access point 12 in the specific information options are extracted and stored. Specifically, if the decrypted authentication code matches the preset authentication code in the device to be configured 11, the authentication of the decrypted authentication code is considered successful.

[0060] Step 103: After processing the Dynamic Host Configuration Protocol message, switch from master device mode to slave device mode of the second wireless network.

[0061] It is understandable that when the device to be configured receives a DHCP message, it will determine whether the DHCP message contains specific information options. If it does, it will further determine whether the specific information options include the configuration information of the second wireless network. If it does, the device to be configured will extract the configuration information and store it. It will also process the DHCP message, such as assigning network protocol address information to the slave device according to the DHCP message.

[0062] If the DHCP message does not contain specific information options, or if the specific information options in the DHCP message do not include network configuration information, then the device to be configured 11 will not process the DHCP message.

[0063] Furthermore, after the device 11 to be configured on the network processes the DHCP message, it can automatically trigger the switching of the network mode, directly switching from the master device mode to the slave device mode of the second wireless network.

[0064] Step 104: Configure the network for the devices to be configured based on the network distribution information.

[0065] Specifically, the device to be configured 11 will connect to the wireless network access point 12 according to the configuration information, and then connect to the cloud server through the wireless network access point 12.

[0066] As can be seen, in this embodiment of the invention, in the master device mode of the first wireless network, the device to be configured receives a Dynamic Host Configuration Protocol (DHCP) message sent by the slave device. If the specific information options of the DHCP message include network configuration information of the second wireless network, the device to be configured will switch to the slave device mode of the second wireless network after processing the DHCP message and perform network configuration to join the second wireless network according to the network configuration information. In this process, the device to be configured does not need to actively listen for broadcast packets, but passively obtains the network configuration information by receiving the DHCP message sent by the slave device. Only the WiFi driver layer and IP layer are involved, without the application layer, thereby reducing the overhead and time consumed by the device to be configured during network configuration.

[0067] Another embodiment of the present invention provides a device network configuration method, which is mainly executed by the terminal device 10 in the above system, and the flowchart is as follows. Figure 3 As shown, it includes:

[0068] Step 201: In slave device mode of the first wireless network, connect to the master device of the first wireless network.

[0069] Specifically, when the device to be configured in the above system 11 acts as the master device of the first wireless network, starts the AP hotspot and starts the service of the first wireless network protocol, the terminal device 10 can search for the wireless network, find the information of the device to be configured in 11, and connect to the device to be configured in 11 (i.e. the master device of the first wireless network).

[0070] Step 202: Obtain the network configuration information of the second wireless network.

[0071] Specifically, terminal device 10 obtains information such as the account, password, and encrypted authentication code of the wireless network access point in the second wireless network. The encrypted authentication code can be obtained by encrypting a specific authentication code using a preset encryption method, such as AES encryption.

[0072] Step 203: Add the configuration information for the second wireless network in the specific information option included in the Dynamic Host Configuration Protocol message.

[0073] Specifically, the specific information option in the Dynamic Host Configuration Protocol (DHCP) message can be option 43, and its structure can be as follows: Figure 4 As shown, it includes: version, slave device code, encrypted authentication code, cyclic redundancy check (CRC) 32, service set identifier (SSID) length and content, and user password (PWD) length and content.

[0074] In this context, SSID and PWD refer to the account and password of the wireless network access point in the second wireless network, respectively, both of which are variable bytes; the slave device code is the current terminal device's code, while the version refers to the terminal device's version. Here, the version and slave device code are used by the master device to determine whether the current terminal device is an available device; the authentication code after the password is obtained by encrypting an authentication code according to a preset encryption method (such as AES encryption). It is used so that when the master device successfully authenticates the user using the encrypted authentication code, it will configure the network to connect to the second wireless network based on the network configuration information. The specific authentication process is described in the above embodiments and will not be repeated here.

[0075] Step 204: Send the Dynamic Host Configuration Protocol (DHCP) message to the master device so that the master device can switch to slave mode of the second wireless network and perform network configuration according to the network configuration information. The network configuration method performed by the master device is described in the above embodiments and will not be repeated here.

[0076] As can be seen, in the method of this embodiment, the terminal device will actively access the first wireless network where the device to be configured is located, and send the configuration information to the device to be configured by obtaining the Dynamic Host Configuration Protocol message. This allows the device to obtain the configuration information, so that only the WiFi driver layer and IP layer need to participate, and the application layer does not need to participate. This reduces the consumption of the device to be configured when configuring the network and reduces the configuration time.

[0077] The device network distribution method provided in this embodiment of the invention can be mainly applied to the above-mentioned... Figure 1 In the system shown, specifically, such as Figure 5 As shown, the method in this embodiment may include the following steps:

[0078] Step 301: The user can operate the device to be configured to start the AP hotspot and start the service of the first wireless network. In this embodiment, the first wireless network is specifically a wireless network based on the DHCP protocol.

[0079] Step 302: The terminal device searches for the information of the device to be configured in the first wireless network, such as the identifier and password of the device to be configured, and connects to the device to be configured in the first wireless network as a slave device.

[0080] In step 303, the terminal device obtains the network configuration information of the second wireless network and adds the network configuration information of the second wireless network to Option 43 of the DHCP message (i.e., the specific information option mentioned above). Here, the DHCP message can specifically be a DHCP discovery request, and the DHCP message obtained after adding the network configuration information is sent to the device to be configured.

[0081] Option 43 may include the slave device code, version, SSID of the wireless network access point in the second wireless network, PWD, and the slave device's authentication code. The authentication code can be obtained by encrypting a certain authentication code according to the AES encryption method.

[0082] Step 304: After receiving the DHCP message, the device to be configured determines whether the DHCP message contains Option43. If it does, proceed to step 305; otherwise, the DHCP message will not be processed.

[0083] Step 305: If the device to be configured determines whether Option 43 includes the configuration information of the second wireless network, or determines that the slave device is not an available device based on the version and slave device code included in Option 43, or if the verification of the checksum (such as CRC32) in Option 43 fails, the DHCP message will not be processed; otherwise, proceed to step 306.

[0084] Step 306: The device to be configured decrypts the authentication code included in Option43 according to the preset decryption method. If the decryption fails, the DHCP message will not be processed; otherwise, proceed to step 307.

[0085] Step 307: The device to be configured authenticates the decrypted authentication code. If the authentication is successful, the configuration information included in Option 43 is extracted and stored. Specifically, the SSID and PWD included in Option 43 can be stored, and step 308 is continued. If the authentication fails, the DHCP message will not be processed.

[0086] Step 308: The device to be configured processes the DHCP message, specifically, it can assign an IP address to the terminal device acting as a slave device.

[0087] Step 309: After processing the DHCP message, the device to be configured switches from the master device mode of the first wireless network to the slave device mode of the second wireless network, that is, turns off the AP hotspot and enables STATION mode.

[0088] Step 310: The device to be configured connects to the wireless network access point in the second wireless network according to the stored configuration information to complete the configuration of the device to be configured.

[0089] As can be seen, the method in this embodiment can achieve the following effects:

[0090] (1) The DHCP message contains the vendor-customizable Option43 option, which carries the network configuration information of the device to be configured.

[0091] (2) The authentication code included in the Option43 option of the DHCP message is encrypted using a certain encryption method, such as AES encryption, to prevent it from being intercepted and eavesdropped.

[0092] (3) If the network configuration information included in Option43 does not meet the requirements, the wireless network access point to the second wireless network is not allowed to be connected, thereby reducing the processing pressure on the network configuration device.

[0093] (4) The application layer does not need to be started during the process of obtaining distribution network information, which speeds up the distribution network and reduces the consumption of equipment resources.

[0094] (5) Only after the network distribution information is verified can the device to be distributed be allowed to assign IP addresses to the terminal devices that are slave devices, in order to prevent too many invalid slave devices from accessing the network and causing the IP address resources of the device to be distributed to be exhausted.

[0095] The following uses another specific application example to illustrate the device network configuration method in this invention. The device to be configured in this embodiment is mainly a distributed system 100. The distributed system may include a client 300 and multiple nodes 200 (any form of computing device in the network, such as a server or user terminal). The client 300 and the nodes 200 are connected through network communication.

[0096] Taking a distributed system as an example, see blockchain system. Figure 6 This is an optional structural diagram of the distributed system 100 provided in this embodiment of the invention applied to a blockchain system. It consists of multiple nodes 200 (any form of computing device connected to the network, such as servers or user terminals) and clients 300. The nodes form a peer-to-peer (P2P) network. The P2P protocol is an application layer protocol running on top of the Transmission Control Protocol (TCP). In the distributed system, any machine, such as a server or terminal, can join and become a node. A node includes a hardware layer, a middleware layer, an operating system layer, and an application layer.

[0097] See Figure 6 The functions of each node in the blockchain system shown include:

[0098] 1) Routing: A basic function of nodes used to support communication between nodes.

[0099] In addition to routing capabilities, nodes can also have the following functions:

[0100] 2) Applications are deployed in the blockchain to implement specific business needs. They record data related to the implementation of functions to form record data, carry digital signatures in the record data to indicate the source of the task data, and send the record data to other nodes in the blockchain system. When other nodes successfully verify the source and integrity of the record data, they add the record data to the temporary block.

[0101] For example, the application's implemented business logic includes code that implements the device's network configuration function, which mainly includes:

[0102] In the master device mode of the first wireless network, a Dynamic Host Configuration Protocol (DHCP) message initiated by a slave device is received; if the DHCP message contains specific information options, and the specific information options include network configuration information of the second wireless network, the network configuration information is extracted from the specific information options and stored; after processing the DHCP message, the system switches from the master device mode to the slave device mode of the second wireless network; and network configuration is performed on the current device to be configured according to the network configuration information.

[0103] 3) A blockchain consists of a series of blocks that are sequentially generated. Once a new block is added to the blockchain, it will not be removed. The blocks contain the data submitted by the nodes in the blockchain system.

[0104] See Figure 7 This is an optional schematic diagram of the block structure provided in an embodiment of the present invention. Each block includes the hash value of the transaction records stored in this block (the hash value of this block) and the hash value of the previous block. The blocks are connected through their hash values ​​to form a blockchain. Additionally, the block may include information such as a timestamp when it was generated. A blockchain is essentially a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains relevant information used to verify the validity of the information (anti-counterfeiting) and to generate the next block.

[0105] This invention also provides a device to be configured on the network, such as a smart home device, as shown in the schematic diagram below. Figure 8 As shown, it can specifically include:

[0106] The message receiving unit 20 is used to receive dynamic host configuration protocol messages initiated by the slave device in the master device mode of the first wireless network.

[0107] Storage unit 21 is configured to extract and store the network configuration information from the specific information option if the dynamic host configuration protocol message received by message receiving unit 20 contains a specific information option and the specific information option includes the network configuration information of the second wireless network.

[0108] Specifically, if the specific information option includes the account, password, and authentication code of the wireless network access point in the second wireless network, then the storage unit 21 is specifically used to decrypt the authentication code using a preset decryption method to obtain a decrypted authentication code. If the authentication of the decrypted authentication code is successful, the account and password of the wireless network access point in the specific information option are extracted and stored. Here, the specific information option is option 43, and the preset decryption method is the decryption method corresponding to the Advanced Encryption Standard (AES).

[0109] The mode switching unit 22 is used to process the Dynamic Host Configuration Protocol message received by the message receiving unit 20 and switch from the master device mode to the slave device mode of the second wireless network.

[0110] The distribution network unit 23 is used to perform network configuration on the current device to be distributed based on the distribution network information stored in the storage unit 21.

[0111] In the device to be configured in this embodiment, it is not necessary to actively listen to broadcast packets during the process of obtaining configuration information. Instead, it passively obtains configuration information by receiving Dynamic Host Configuration Protocol messages sent by the device. Only the WiFi driver layer and IP layer need to participate, without the participation of the application layer, thereby reducing the consumption of the device to be configured during configuration and reducing the configuration time.

[0112] This invention also provides a terminal device, the structural schematic of which is shown below. Figure 9 As shown, it can specifically include:

[0113] The connection unit 30 is configured to connect to the master device of the first wireless network in slave device mode of the first wireless network;

[0114] Distribution network acquisition unit 31 is used to acquire distribution network information of the second wireless network;

[0115] Adding unit 32 is used to add the network configuration information of the second wireless network obtained by the network configuration acquisition unit 31 to the specific information option contained in the dynamic host configuration protocol message;

[0116] The message transmission unit 33 is used to send the Dynamic Host Configuration Protocol message obtained by the adding unit 32 to the master device through the connection of the connection unit 30, so that the master device switches to the slave device mode of the second wireless network and performs network configuration for connecting to the second wireless network according to the network configuration information.

[0117] As can be seen, the terminal device in this embodiment of the invention will actively access the first wireless network where the device to be configured is located. By obtaining the Dynamic Host Configuration Protocol message, the device to be configured sends the configuration information to the device to be configured. This allows the device to obtain the configuration information in a process where only the WiFi driver layer and the IP layer need to participate, without the application layer. This reduces the consumption of the device to be configured when configuring the network and reduces the configuration time.

[0118] This invention also provides another terminal device, the structural schematic of which is shown below. Figure 10As shown, the terminal device can vary significantly due to differences in configuration or performance. It may include one or more central processing units (CPUs) 40 (e.g., one or more processors) and memory 41, and one or more storage media 42 (e.g., one or more mass storage devices) for storing application programs 421 or data 422. The memory 41 and storage media 42 can be temporary or persistent storage. The program stored in the storage media 42 may include one or more modules (not shown in the figure), each module including a series of instruction operations on the terminal device. Furthermore, the CPU 40 may be configured to communicate with the storage media 42 and execute the series of instruction operations in the storage media 42 on the terminal device.

[0119] Specifically, the application program 421 stored in the storage medium 42 includes a device network configuration application, and this program may include the message receiving unit 20, storage unit 21, mode switching unit 22, and network configuration unit 23 in the device to be configured, which will not be described in detail here. Furthermore, the central processing unit 40 may be configured to communicate with the storage medium 42 and execute a series of operations corresponding to the device network configuration application stored in the storage medium 42 on the terminal device.

[0120] The terminal device may also include one or more power supplies 43, one or more wired or wireless network interfaces 44, one or more input / output interfaces 45, and / or one or more operating systems 423, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0121] The steps performed by the device to be distributed in the above method embodiments can be based on this. Figure 10 The structure of the terminal device shown is illustrated.

[0122] Furthermore, embodiments of the present invention also provide another terminal device, the structure of which is the same as described above. Figure 10 Similar to the terminal devices shown, the difference is that in this embodiment, the application stored in the storage medium includes a device network configuration application, and this application may include the connection unit 30, network configuration acquisition unit 31, addition unit 32, and message transmission unit 33 in the aforementioned terminal device, which will not be described in detail here. Furthermore, the central processing unit may be configured to communicate with the storage medium and execute a series of operations corresponding to the device network configuration application stored in the storage medium on the terminal device.

[0123] In another aspect, this invention provides a computer-readable storage medium storing a plurality of computer programs adapted for loading by a processor and executing a device network configuration method as described above for a device to be configured or a terminal device.

[0124] Another embodiment of the present invention provides a terminal device, including a processor and a memory;

[0125] The memory is used to store multiple computer programs, which are loaded and executed by the processor as described above, such as the device network configuration method performed by the device to be configured or the terminal device; the processor is used to implement each of the multiple computer programs.

[0126] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the device network configuration method provided in the various optional implementations described above.

[0127] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0128] The above provides a detailed description of a device network distribution method, system, storage medium, and related equipment provided by embodiments of the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for equipment network distribution, characterized in that, A device to be configured in a device configuration network system, wherein the device configuration network system further includes terminal devices and wireless network access points, and the device configuration method includes: In the master device mode of the first wireless network, a Dynamic Host Configuration Protocol (DHCP) message initiated by the terminal device is received, wherein the first wireless network is a DHCP network pre-created by the device to be configured. If the Dynamic Host Configuration Protocol message contains specific information options, and the specific information options include network configuration information for the second wireless network, the network configuration information is extracted from the specific information options and stored. After processing the Dynamic Host Configuration Protocol message, the system switches from the master device mode to the slave device mode of the second wireless network. The network configuration is performed on the device to be configured based on the network configuration information, so that the device to be configured can be connected to the wireless network access point.

2. The method as described in claim 1, characterized in that, The specific information options include the account, password, and authentication code of the wireless network access point in the second wireless network; The step of extracting and storing the distribution network information from the specific information option specifically includes: The authentication code is decrypted using a preset decryption method to obtain a decrypted authentication code. If the authentication of the decrypted authentication code is successful, the account and password of the wireless network access point in the specific information option are extracted and stored.

3. The method as described in claim 2, characterized in that, The specific information option in the Dynamic Host Configuration Protocol (DMP) message is option 43 in the DMP message, and the preset decryption method is the decryption method corresponding to the Advanced Encryption Standard (AES).

4. A method for equipment network distribution, characterized in that, Terminal devices used in a device network configuration system, wherein the device network configuration system also includes devices to be configured and wireless network access points, and the device network configuration method includes: In slave device mode of the first wireless network, the device to be configured is connected to the first wireless network, wherein the first wireless network is a Dynamic Host Configuration Protocol (DHCP) network pre-created for the device to be configured; Obtain the network configuration information of the second wireless network; Add the configuration information for the second wireless network to the specific information options included in the Dynamic Host Configuration Protocol message; The Dynamic Host Configuration Protocol (DHCP) message is sent to the device to be configured, so that the device to be configured switches to slave mode of the second wireless network and performs network configuration to connect to the second wireless network according to the configuration information, so that the device to be configured connects to the wireless network access point.

5. The method as described in claim 4, characterized in that, The acquisition of the network configuration information of the second wireless network specifically includes: acquiring the account, password, and encrypted authentication code of the wireless network access point in the second wireless network; The encrypted authentication code is used to configure the network for connecting to the second wireless network based on the network configuration information when the device to be configured passes the authentication based on the encrypted authentication code.

6. The method as described in claim 5, characterized in that, The specific information option in the Dynamic Host Configuration Protocol (DMP) message is option 43 in the DMP message, and the encrypted authentication code is obtained by encrypting an authentication code according to the Advanced Encryption Standard (AES).

7. A device for distribution network, characterized in that, include: The message receiving unit is used to receive a Dynamic Host Configuration Protocol (DHCP) message initiated by a terminal device in the master device mode of the first wireless network. The device configuration system includes the device to be configured, the terminal device, and the wireless network access point. The first wireless network is a DHCP network pre-created by the device to be configured. A storage unit is configured to extract and store network configuration information from the specific information option if the dynamic host configuration protocol message contains a specific information option and the specific information option includes network configuration information of the second wireless network; The mode switching unit is used to process the dynamic host configuration protocol message and switch from the master device mode to the slave device mode of the second wireless network. The network configuration unit is used to configure the network of the device to be configured according to the network configuration information, so that the device to be configured can be connected to the wireless network access point.

8. A terminal device, characterized in that, include: A connection unit is configured to connect to a device to be configured in the first wireless network in slave mode of the first wireless network, wherein the device configuration system includes the device to be configured, the terminal device, and the wireless network access point, and the first wireless network is a Dynamic Host Configuration Protocol (DHCP) network pre-created for the device to be configured. The network distribution acquisition unit is used to acquire the network distribution information of the second wireless network; Add a unit to add network configuration information for a second wireless network in the specific information options contained in the Dynamic Host Configuration Protocol message; The message transmission unit is used to send the Dynamic Host Configuration Protocol (DHCP) message to the device to be configured, so that the device to be configured switches to the slave mode of the second wireless network and performs network configuration to connect to the second wireless network according to the configuration information, so that the device to be configured connects to the wireless network access point.

9. A device distribution network system, characterized in that, include: The terminal device and the device to be configured on the network, wherein the terminal device is the terminal device as described in claim 8, and the device to be configured on the network is the device to be configured on the network as described in claim 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of computer programs adapted to be loaded by a processor and executed as described in any one of claims 1 to 6.

11. A terminal device, characterized in that, Including processor and memory; The memory is used to store a plurality of computer programs, which are loaded by a processor and executed as described in any one of claims 1 to 6; the processor is used to implement each of the plurality of computer programs.