Search

CN-116528326-B - Equipment distribution network method, system, storage medium and related equipment

CN116528326BCN 116528326 BCN116528326 BCN 116528326BCN-116528326-B

Abstract

The embodiment of the invention discloses a device network distribution method, a system, a storage medium and related devices, which are applied to the technical field of communication. In a master device mode of the first wireless network, the to-be-configured network device receives the dynamic host configuration protocol message sent by the slave device, and if the specific information option of the dynamic host configuration protocol message includes the configuration network information of the second wireless network, the to-be-configured network device switches to the slave device mode of the second wireless network after processing the dynamic host configuration protocol message, and performs network configuration added to the second wireless network according to the configuration network information. The equipment to be distributed does not need to actively monitor the broadcast packet in the process of acquiring the distribution network information, but passively acquires the distribution network information by receiving the dynamic host configuration protocol message sent by the slave equipment, and only the WiFi driving layer participates with the IP layer, and the participation of the application layer is not needed, so that the consumption of the equipment to be distributed for distribution network is reduced, and the distribution network time is shortened.

Inventors

  • HAO ZHAO

Assignees

  • 深圳TCL新技术有限公司

Dates

Publication Date
20260512
Application Date
20220124

Claims (11)

  1. 1. The equipment network distribution method is characterized by being applied to equipment to be network distributed in an equipment network distribution system, wherein the equipment network distribution system also comprises terminal equipment and a wireless network access point, and the equipment network distribution method comprises the following steps: Receiving a dynamic host configuration protocol message initiated by the terminal equipment in a main equipment mode of a first wireless network, wherein the first wireless network is a dynamic host configuration protocol network pre-established for the equipment to be configured; If the dynamic host configuration protocol message contains a specific information option, wherein the specific information option comprises the network allocation information of the second wireless network, the network allocation information is extracted from the specific information option and stored; after processing the dynamic host configuration protocol message, switching from the master device mode to a slave device mode of a second wireless network; And carrying out network configuration on the current network equipment to be distributed according to the network distribution information so that the network equipment to be distributed is connected to the wireless network access point.
  2. 2. The method of claim 1, wherein the specific information options include an account number, a password, and an authentication code for a wireless network access point in the second wireless network; the extracting the distribution network information from the specific information options for storage specifically includes: And decrypting the authentication code by a preset decryption mode to obtain a decrypted authentication code, and if the authentication of the decrypted authentication code passes, extracting the account number and the password of the wireless network access point in the specific information option and storing the account number and the password.
  3. 3. The method of claim 2, wherein the specific information option in the dynamic host configuration protocol message is option 43 in the dynamic host configuration protocol message, and the preset decryption mode is a decryption mode corresponding to advanced encryption standard AES.
  4. 4. The equipment network distribution method is characterized by being applied to terminal equipment in an equipment network distribution system, wherein the equipment network distribution system also comprises equipment to be network distributed and a wireless network access point, and the equipment network distribution method comprises the following steps: in a slave device mode of a first wireless network, the to-be-configured network device connected to the first wireless network, wherein the first wireless network configures a protocol network for a dynamic host created in advance for the to-be-configured network device; acquiring distribution network information of a second wireless network; Adding network allocation information of the second wireless network in a specific information option contained in the dynamic host configuration protocol message; And sending the dynamic host configuration protocol message to the equipment to be distributed so that the equipment to be distributed is switched to a slave equipment mode of a second wireless network, and carrying out network configuration for connecting the second wireless network according to the distribution network information so as to enable the equipment to be distributed to be connected to the wireless network access point.
  5. 5. The method of claim 4, wherein the obtaining the configuration information of the second wireless network specifically includes obtaining an account number, a password, and an encrypted authentication code of a wireless network access point in the second wireless network; The encrypted authentication code is used for carrying out network configuration for connecting the second wireless network according to the network distribution information when the network equipment to be distributed passes the authentication according to the encrypted authentication code.
  6. 6. The method of claim 5, wherein the specific information option in the dhcp message is option 43 in the dhcp message, and the encrypted authentication code is obtained by encrypting an authentication code according to an AES encryption method.
  7. 7. A network device to be configured, comprising: The device comprises a message receiving unit, a message sending unit and a message receiving unit, wherein the message receiving unit is used for receiving a dynamic host configuration protocol message initiated by a terminal device in a main device mode of a first wireless network, the device network configuration system comprises a device to be network configuration, the terminal device and a wireless network access point, and the first wireless network is a dynamic host configuration protocol network pre-established for the device to be network configuration; The storage unit is used for extracting the distribution network information from the specific information options and storing the distribution network information if the specific information options are included in the dynamic host configuration protocol message and include the distribution network information of the second wireless network; A mode switching unit, configured to switch from the master device mode to a slave device mode of a second wireless network after processing the dynamic host configuration protocol message; and the network distribution unit is used for carrying out network configuration on the current network equipment to be distributed according to the network distribution information so as to enable the network equipment to be distributed to be connected to the wireless network access point.
  8. 8. A terminal device, comprising: The device comprises a connection unit, a first wireless network and a second wireless network, wherein the connection unit is used for connecting to-be-allocated network equipment of the first wireless network in a slave equipment mode of the first wireless network, the equipment allocation network system comprises the to-be-allocated network equipment, the terminal equipment and a wireless network access point, and the first wireless network is a dynamic host configuration protocol network which is created in advance for the to-be-allocated network equipment; the distribution network acquisition unit is used for acquiring distribution network information of the second wireless network; An adding unit, configured to add the configuration network information of the second wireless network to a specific information option included in the dynamic host configuration protocol message; And the message transmission unit is used for transmitting the dynamic host configuration protocol message to the equipment to be configured so that the equipment to be configured is switched to a slave equipment mode of a second wireless network, and network configuration for connecting the second wireless network is carried out according to the network configuration information so that the equipment to be configured is connected to the wireless network access point.
  9. 9. A device distribution network system, comprising a terminal device and a device to be distributed, wherein the terminal device is a terminal device according to claim 8, and the device to be distributed is a device to be distributed according to claim 7.
  10. 10. A computer readable storage medium storing a plurality of computer programs adapted to be loaded by a processor and to perform the device networking method of any of claims 1 to 6.
  11. 11. A terminal device comprising a processor and a memory; The memory is used for storing a plurality of computer programs, the computer programs are used for being loaded by a processor and executing the equipment network distribution method according to any one of claims 1 to 6, and the processor is used for realizing each computer program in the plurality of computer programs.

Description

Equipment distribution network method, system, storage medium and related equipment Technical Field The present invention relates to the field of communications technologies, and in particular, to a method and system for device network allocation, a storage medium, and related devices. Background In the traditional internet of things (Internet of Things, IOT), all intelligent devices, such as intelligent sound equipment, intelligent locks or intelligent refrigerators, need to be configured (i.e. configured) by a network before a user can control and manage the intelligent devices through a control terminal. In the prior art, when an intelligent device is configured, methods such as Access Point (AP) configuration and sniffing (sniffer) configuration may be included, where in a mode of AP configuration, a driving layer is required to be (WIRELESS FIDELITY, WIFI) for sensing that an existing device is connected to a hotspot when a main device monitors configuration information in a broadcast packet, and an application is started to monitor a specific configuration broadcast packet, so that the configuration is performed, and thus, a WiFi driving layer, a network protocol (IP) layer and an application layer in the intelligent device are required to participate in the configuration, so that memory consumption of the intelligent device is relatively high, and configuration time is relatively long. Disclosure of Invention The embodiment of the invention provides a method and a system for equipment network distribution, a storage medium and related equipment, which reduce network distribution time of equipment to be network distribution. In one aspect, an embodiment of the present invention provides a method for device network allocation, including: Receiving a dynamic host configuration protocol message initiated by a slave device in a master device mode of a first wireless network; If the dynamic host configuration protocol message contains a specific information option, wherein the specific information option comprises the network allocation information of the second wireless network, the network allocation information is extracted from the specific information option and stored; after processing the dynamic host configuration protocol message, switching from the master device mode to a slave device mode of a second wireless network; and carrying out network configuration on the current network equipment to be distributed according to the network distribution information. In another aspect, an embodiment of the present invention provides a method for device network allocation, including: in a slave device mode of a first wireless network, a master device connected to the first wireless network; acquiring distribution network information of a second wireless network; Adding network allocation information of the second wireless network in a specific information option contained in the dynamic host configuration protocol message; And sending the dynamic host configuration protocol message to the master device so that the master device can switch to a slave device mode of a second wireless network, and performing network configuration for connecting the second wireless network according to the network configuration information. Another embodiment of the present invention provides a network device to be configured, including: a message receiving unit, configured to receive a dynamic host configuration protocol message initiated by a slave device in a master device mode of a first wireless network; The storage unit is used for extracting the distribution network information from the specific information options and storing the distribution network information if the specific information options are included in the dynamic host configuration protocol message and include the distribution network information of the second wireless network; A mode switching unit, configured to switch from the master device mode to a slave device mode of a second wireless network after processing the dynamic host configuration protocol message; and the network distribution unit is used for carrying out network configuration on the current network equipment to be distributed according to the network distribution information. Another embodiment of the present invention provides a terminal device, including: A connection unit, configured to connect to a master device of a first wireless network in a slave device mode of the first wireless network; the distribution network acquisition unit is used for acquiring distribution network information of the second wireless network; An adding unit, configured to add the configuration network information of the second wireless network to a specific information option included in the dynamic host configuration protocol message; And the message transmission unit is used for transmitting the dynamic host configuration protocol message to the master device so that the master device can be switched to a sl