Equipment network distribution methods and systems
By receiving powerline broadcast network distribution requests from sub-devices through the master device, performing network distribution based on MAC addresses, and unicasting network distribution result messages using WIFI management frames, the problem of excessive communication data and low security in the network distribution process of smart home devices is solved by combining powerline communication and WIFI management frame communication, thus achieving an efficient and secure network distribution process.
Patent Information
- Application Number
- CN202510617851.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-14
- Publication Date
- 2026-11-17
AI Technical Summary
The current smart home device network configuration process involves a large amount of communication data and a high communication frequency, and is easily intercepted and cracked, resulting in reduced network configuration efficiency and security.
The system receives power line broadcast network distribution request messages from sub-devices via the parent device, performs network distribution based on MAC addresses, and uses WIFI management frames to unicast and transmit network distribution result messages. By combining power line communication and WIFI management frame communication, the system avoids establishing connections at the IP layer and above, reducing the amount and frequency of communication data. At the same time, it uses communication keys for encryption and verifies whether the sub-device's MAC address exists in the whitelist.
It greatly reduces the amount of communication data and frequency between devices, improves network distribution efficiency, achieves millisecond-level network distribution, enhances network distribution security, and prevents packet capture and cracking.
Smart Images

Figure CN123123049A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power distribution network technology, specifically to a device power distribution method and system. Background Technology
[0002] Smart home devices typically connect to the network via Wi-Fi access points and exchange data with internet servers. This requires users to input service set identifiers, passwords, and other information. The process involves scanning, authentication, association, and dynamic host configuration to complete the device's network configuration and enable it to connect to the Wi-Fi access point. The entire process usually takes more than 10 seconds. During this process, a connection at the IP layer or higher needs to be established between the device and the Wi-Fi access point. Communication between them requires carrying Internet Protocol headers or User Datagram Protocol headers, and invalid data packets will inevitably be sent to maintain the connection. In addition, network configuration based solely on Wi-Fi communication protocols makes data transmission vulnerable to eavesdropping and theft.
[0003] However, with the increasing number of smart home devices, performing the above operations for network configuration on each device would involve a large amount of communication data and a high communication frequency, and would be easily intercepted and cracked, leading to a decrease in network configuration efficiency and security. Summary of the Invention
[0004] This application provides a device network distribution method and system to solve the technical problem that the existing network distribution process involves a large amount of communication data and a high communication frequency, and is easily intercepted and cracked, resulting in reduced network distribution efficiency and security.
[0005] In a first aspect, the device network distribution method of the embodiments of this application, applied to a mother device, includes: Receive a distribution network request message broadcast by the sub-device via the power line; the distribution network request message includes the MAC address of the sub-device; When the MAC address exists in the device whitelist, network configuration is performed for the sub-device based on the MAC address; When the network distribution is successful, the network distribution result message is unicast to the sub-device via WIFI management frame based on the MAC address; both the parent device and the sub-device are devices with power line communication function and WIFI management frame communication function, and the parent device is connected to the network and has routing function.
[0006] In one embodiment, the step of configuring the sub-device with network access based on the MAC address when the MAC address exists in the device whitelist includes: Receive the device whitelist issued by the device cloud platform; Save the device whitelist to local Flash memory.
[0007] In one embodiment, the network configuration request message further includes the communication key of the sub-device, and the network configuration result message is obtained based on the following steps: The network distribution success identifier is encrypted using the communication key to obtain the network distribution result message.
[0008] In one embodiment, after unicasting the network configuration result message to the sub-device via a WIFI management frame based on the MAC address, the process includes: Register the device information of the sub-device on the device cloud platform.
[0009] Secondly, embodiments of this application provide a device network configuration method, applied to a sub-device, comprising: Broadcast its own distribution network request message via power lines; Receive the network distribution result message unicast by the parent device via WIFI management frame; Based on the network configuration result message, change its own network status to "network configured"; Both the sub-device and the parent device are devices with power line communication and WIFI management frame communication functions, and the parent device is connected to the network and has routing functions.
[0010] In one embodiment, modifying one's own network status to "already configured" based on the network configuration result message includes: decrypting the network configuration result message using one's own communication key; Upon successful decryption and acquisition of the network configuration success identifier, the network status is changed to "network configured". The network distribution request message includes its own communication key, and the network distribution result message is obtained by the master device encrypting the network distribution success identifier using the communication key.
[0011] Thirdly, embodiments of this application provide a device distribution network system, including: a parent device and a child device; The mother device is used for: Receive a distribution network request message broadcast by the sub-device via the power line; the distribution network request message includes the MAC address of the sub-device; When the MAC address exists in the device whitelist, network configuration is performed for the sub-device based on the MAC address; Upon successful network configuration, the network configuration result message is unicast to the sub-device via a WIFI management frame based on the MAC address. The sub-device is used for: Broadcast its own distribution network request message via power lines; Receive the network distribution result message unicast by the parent device via WIFI management frame; Based on the network configuration result message, change its own network status to "network configured"; Both the parent device and the child device are devices with power line communication and WIFI management frame communication functions, and the parent device is connected to the network and has routing functions.
[0012] Fourthly, embodiments of this application provide an electronic device, including a processor and a memory storing a computer program, wherein the processor executes the program to implement the steps of the device network configuration method described in the first or second aspect.
[0013] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the steps of the device network configuration method described in the first or second aspect.
[0014] In a sixth aspect, embodiments of this application provide a non-transitory computer-readable storage medium, including a computer program, which, when executed by a processor, implements the steps of the device network configuration method described in the first or second aspect.
[0015] The device network distribution method and system provided in this application involve a master device receiving a network distribution request message broadcast by a slave device via a power line. The network distribution request message includes the MAC address of the slave device. If the MAC address exists in the device whitelist, network distribution is performed on the slave device based on the MAC address. When the network distribution is successful, the network distribution result message is unicast to the slave device via a WIFI management frame based on the MAC address. Both the master device and the slave device are devices with power line communication and WIFI management frame communication functions, and the master device is connected to the network and has routing functions. This application requires only one powerline communication and one Wi-Fi management frame communication to enable the parent device to act as a router for network distribution to the child devices. It eliminates the need for users to input service set identifiers, passwords, or other information, and avoids steps such as scanning, authentication, association, and dynamic host configuration. During this process, the parent device communicates with the child devices based on their MAC addresses, thus eliminating the need for IP layer or higher-layer connections. Communication between them also eliminates the need for Internet Protocol (IP) headers or User Datagram Protocol (UDP) headers, and avoids sending invalid data packets to maintain the connection. This significantly reduces the amount and frequency of communication between devices, effectively improving network distribution efficiency. Furthermore, this application combines powerline communication with Wi-Fi management frame communication, and uses both Wi-Fi and powerline communication protocols for network distribution, increasing the difficulty of data transmission being eavesdropped on and stolen. This makes the network distribution process less susceptible to packet sniffing and cracking, effectively improving network security. Moreover, the parent device verifies the child device's MAC address in a preset whitelist before distributing network information, further enhancing network security. In summary, when facing the network configuration needs of a large number of smart home devices, the network configuration process of this application greatly simplifies the amount of communication data and the frequency of communication between devices, and is not easily intercepted or cracked. Combined with whitelist verification for sub-devices, it can effectively improve network configuration efficiency and security. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in this application 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 some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is one of the flowcharts illustrating the device network configuration method provided in the embodiments of this application; Figure 2 This is a schematic diagram of the structure of the WIFI management frame in the device network configuration method provided in the embodiments of this application; Figure 3 This is a second schematic flowchart of the device network configuration method provided in the embodiments of this application; Figure 4This is an interactive flowchart of the device distribution network system provided in the embodiments of this application; Figure 5 This is a schematic diagram of the structure of the mother device and the daughter device in the equipment distribution network system provided in the embodiments of this application; Figure 6 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0019] In this application, both the parent device and the child device can be smart home devices, but the parent device is also a central device that is connected to the network and has routing capabilities.
[0020] Figure 1 This is one of the schematic flowcharts of the device network configuration method provided in the embodiments of this application. (Refer to...) Figure 1 This application provides a device network distribution method, applied to a parent device, which may include: 101. Receiving a network distribution request message broadcast by a child device via a power line; The network configuration request message includes the MAC address of the sub-device; 102. When the MAC address exists in the device whitelist, configure the network for the sub-device based on the MAC address; 103. Upon successful network configuration, the network configuration result message is unicast to the sub-device via WIFI management frame based on the MAC address.
[0021] Both the parent device and the daughter device are devices with power line communication and WIFI management frame communication functions, and the parent device is connected to the network and has routing functions.
[0022] In this embodiment, the parent device periodically checks whether it has received a power line communication message. When it receives a distribution network request message, it checks whether the MAC address of the child device exists in the device whitelist. If it does not exist, the distribution network request message is ignored. If it exists, the distribution network is configured for the child device based on the MAC address. The MAC address is recorded in the local Flash. When the distribution network is successfully configured, the distribution network result message is unicast to the child device through the WIFI management frame of the link layer based on the MAC address.
[0023] The specific structure of the WIFI management frame is as follows: Figure 2As shown, it includes a MAC header, frame body, and frame check sequence. The frame body contains a private message element, which includes an element identifier, length, vendor unique identifier, and vendor-defined data. The length refers to the total length of the vendor unique identifier and vendor-defined data. The data format of the vendor-defined data is protocol identifier-data generation timestamp-actual payload data length-actual payload data. The data format of the actual payload data is type-length-value.
[0024] Reference Figure 2 The network distribution result message can be filled into the vendor-defined data of the private message element with element identifier 221, thereby enabling the transmission of communication data between the parent device and the child device through the WIFI management frame of the link layer.
[0025] The device network configuration method provided in this embodiment involves a parent device receiving a network configuration request message broadcast by a child device via a power line. The network configuration request message includes the MAC address of the child device. If the MAC address exists in the device whitelist, network configuration is performed for the child device based on the MAC address. When network configuration is successful, the network configuration result message is unicast to the child device via a WIFI management frame based on the MAC address. Both the parent device and the child device are devices with power line communication and WIFI management frame communication functions, and the parent device is connected to the network and has routing functions. This embodiment requires only one powerline communication and one Wi-Fi management frame communication to enable the parent device to configure the network for the child device, acting as a router. It eliminates the need for users to input service set identifiers, passwords, or other information, and avoids steps such as scanning, authentication, association, and dynamic host configuration. During this process, the parent device communicates with the child device based on its MAC address, thus eliminating the need for IP layer or higher-layer connections. Communication between them also eliminates the need for Internet Protocol (IP) headers or User Datagram Protocol (UDP) headers, and avoids sending invalid data packets to maintain the connection. This significantly reduces the amount of communication data and frequency between devices, effectively improving network configuration efficiency and achieving millisecond-level configuration. Furthermore, this embodiment combines powerline communication with Wi-Fi management frame communication, using both Wi-Fi and powerline communication protocols for network configuration. This increases the difficulty of data transmission being eavesdropped on and stolen, making the network configuration process less susceptible to packet sniffing and cracking, thereby effectively improving network security. The parent device also verifies whether the child device's MAC address is in a preset whitelist before configuring the network, further enhancing network security. In summary, when facing the network configuration needs of a large number of smart home devices, the network configuration process in this embodiment greatly simplifies the amount of communication data and the frequency of communication between devices, and is not easily intercepted or cracked. Combined with whitelist verification for sub-devices, it can effectively improve network configuration efficiency and security.
[0026] In one embodiment, when the MAC address exists in the device whitelist, before configuring the sub-device for network access based on the MAC address, the following may be included: Receive the device whitelist issued by the device cloud platform and save the device whitelist to local Flash.
[0027] In this embodiment, the device cloud platform is responsible for managing the devices. By establishing a device whitelist and recording the MAC addresses of devices that are allowed to be accessed by the parent device, it can filter out child devices with lower security for the parent device. After receiving the device whitelist, the parent device will only configure the network for the secure child devices, thereby improving the security of the network configuration.
[0028] In one embodiment, the network distribution request message also includes the communication key of the sub-device, and the network distribution result message can be obtained based on the following steps: The successful distribution network identifier is encrypted using the communication key to obtain the distribution network result message.
[0029] In this embodiment, the mother device obtains the communication key through the power line and records it in the local Flash memory. It then uses the communication key to encrypt the successful distribution network identifier using the AES-128 (Advanced Encryption Standard-128-bit key) algorithm before obtaining the distribution network result message. This makes it difficult for the communication key to be stolen and the distribution network result message to be cracked, thereby increasing the difficulty of packet capture and cracking during the distribution network process and greatly improving the security of the distribution network.
[0030] In one embodiment, after unicasting the network configuration result message to the sub-device via a WIFI management frame based on the MAC address, the following may be included: Register the device information of the sub-device on the device cloud platform. This device information includes all the information that needs to be registered, including the sub-device's MAC address.
[0031] In this embodiment, the parent device reports the device information of the child device to the device cloud platform to complete the registration and online operation of the child device, thereby enabling the child device to operate online under the management of the device cloud platform.
[0032] Figure 3 This is the second schematic flowchart of the device network configuration method provided in the embodiments of this application. (Refer to...) Figure 3 This application provides a device network configuration method, applied to sub-devices, which may include: 301. Broadcasting its own distribution network request message via power lines; 302. Receive the network distribution result message unicast by the parent device via WIFI management frame; 303. Based on the network distribution result message, modify its own network status to "network already distributed".
[0033] Both the sub-device and the parent device are devices with power line communication and WIFI management frame communication functions, and the parent device is connected to the network and has routing functions.
[0034] In this embodiment, after the sub-device is powered on or connected to the power line via a button, it can periodically broadcast its own network configuration request message to all devices connected to the power line and check whether a WIFI management frame has been received. When a WIFI management frame is received, the sub-device obtains the network configuration result message therein, modifies its own network status to "configured" based on the network configuration result message, and stops broadcasting its own network configuration request message. The network configuration result message also includes the MAC address of the parent device, and the MAC address of the parent device can also be recorded at this time. Furthermore, the network configuration request message includes the MAC address of the sub-device, so after the network configuration is completed, the sub-device and the parent device can communicate subsequently based on their respective MAC addresses.
[0035] The specific structure of the WIFI management frame is as follows: Figure 2 As shown, it includes a MAC header, frame body, and frame check sequence. The frame body contains a private message element, which includes an element identifier, length, vendor unique identifier, and vendor-defined data. The length refers to the total length of the vendor unique identifier and vendor-defined data. The data format of the vendor-defined data is protocol identifier-data generation timestamp-actual payload data length-actual payload data. The data format of the actual payload data is type-length-value.
[0036] Reference Figure 2 The network distribution result message can be filled into the vendor-defined data of the private message element with element identifier 221, thereby enabling the transmission of communication data between the parent device and the child device through the WIFI management frame of the link layer.
[0037] The device network configuration method provided in this embodiment involves a sub-device broadcasting its own network configuration request message via a power line, receiving a network configuration result message unicast by the parent device via a WIFI management frame, and modifying its own network status to "configured" based on the network configuration result message. Both the sub-device and the parent device are devices with power line communication and WIFI management frame communication functions, and the parent device is already connected to the network and has routing functions. This embodiment requires only one powerline communication and one Wi-Fi management frame communication to enable the parent device to act as a router for network configuration of the child devices. It eliminates the need for users to input service set identifiers, passwords, or other information, and avoids steps such as scanning, authentication, association, and dynamic host configuration. During this process, the parent device communicates with the child devices based on their MAC addresses, thus eliminating the need for IP layer or higher-layer connections. Communication between them also eliminates the need for Internet Protocol (IP) headers or User Datagram Protocol (UDP) headers, and avoids sending invalid data packets to maintain the connection. This significantly reduces the amount of communication data and frequency between devices, effectively improving network configuration efficiency and achieving millisecond-level configuration. Furthermore, this embodiment combines powerline communication with Wi-Fi management frame communication, and uses both Wi-Fi and powerline communication protocols for network configuration, increasing the difficulty of data transmission being eavesdropped and intercepted, making the network configuration process less susceptible to packet sniffing and cracking, thereby effectively improving network security. In summary, when facing the network configuration needs of a large number of smart home devices, this embodiment significantly simplifies the communication data and frequency between devices, making it less susceptible to packet sniffing and cracking, effectively improving network configuration efficiency and security.
[0038] In one embodiment, modifying one's own network status to "already allocated" based on the network allocation result message may include: decrypting the network allocation result message using one's own communication key, and modifying one's own network status to "already allocated" upon successful decryption and obtaining a successful network allocation identifier. The distribution network request message includes its own communication key, and the distribution network result message is obtained by the master device encrypting the distribution network success identifier using the communication key.
[0039] In this embodiment, after the sub-device obtains the network distribution result message through the WIFI management frame, it can use its own communication key to decrypt the network distribution result message using the AES-128 (Advanced Encryption Standard - 128-bit key) algorithm. Only after obtaining the network distribution success identifier does it determine that the parent device has successfully distributed the network for itself, thus allowing it to change its own network status to "network-distributed." Because its own communication key is sent to the parent device via the power line, and the network distribution result message needs to be encrypted and decrypted, the communication key is difficult to steal, and the network distribution result message is difficult to crack, thereby increasing the difficulty of network distribution process being intercepted and cracked, and greatly improving network distribution security.
[0040] Figure 4 This is an interactive flowchart of the device distribution network system provided in an embodiment of this application. (Refer to...) Figure 4 This application provides a device distribution network system, which may include: a master device and a slave device; The mother equipment is used for: Receive network distribution request messages broadcast by sub-devices via power lines; the network distribution request message includes the MAC address of the sub-device; When the MAC address exists in the device whitelist, network configuration is performed for the sub-device based on the MAC address; When the network configuration is successful, the network configuration result message is unicast to the sub-device via WIFI management frame based on the MAC address; Sub-devices are used for: Broadcast its own distribution network request message via power lines; Receive the network distribution result message unicast by the parent device via WIFI management frame; Based on the network configuration result message, change its own network status to "network configured"; Both the parent device and the daughter device are devices with power line communication and WIFI management frame communication functions, and the parent device is connected to the network and has routing functions.
[0041] Reference Figure 4 The specific power distribution process between the mother equipment and the daughter equipment is as follows: 1. The parent device receives the device whitelist issued by the device cloud platform and saves it to the local Flash memory; 2. The sub-device periodically broadcasts its own distribution network request message through the power line. This distribution network request message includes its own MAC address and communication key. 3. The mother device periodically checks whether it has received power line communication messages. When it receives a distribution network request message, it verifies whether the MAC address of the sub-device exists in the device whitelist. 4. When the MAC address of the sub-device exists in the device whitelist, the parent device configures the network for the sub-device based on the MAC address of the sub-device and records the MAC address of the sub-device and the communication key in the local Flash. 5. When the network distribution is successful, the master device encrypts the network distribution success identifier using the communication key to obtain the network distribution result message, and unicasts the network distribution result message to the sub-device via the link layer WIFI management frame based on the sub-device's MAC address; the network distribution result message also includes the master device's MAC address; 6. The parent device reports the device information of the child device to the device cloud platform to complete the registration and online operation of the child device; 7. The sub-device periodically checks whether it has received a WIFI management frame. When it receives a WIFI management frame, it obtains the network configuration result message in it, decrypts the network configuration result message using its own communication key, and confirms successful network configuration when it successfully decrypts and obtains the network configuration success identifier. It then changes its own network status to "network configured", stops broadcasting its own network configuration request message, and records the MAC address of the parent device.
[0042] Reference Figure 5 Both the parent device and the child device include a power line communication module and a WIFI communication module. The power line communication modules of the two devices communicate with each other via power line, and the WIFI communication modules of the two devices communicate with each other via WIFI management frames. This allows the parent device and the child device to have both power line communication and WIFI management frame communication functions, and can communicate simultaneously based on the power line communication protocol and the WIFI communication protocol.
[0043] Furthermore, after the distribution network is completed, subsequent communication between the mother device and the daughter device can select different communication methods based on different communication scenarios. In low-speed communication scenarios with small communication data volume, link layer WIFI management frames can be used for communication; in high-speed communication scenarios with large communication data volume, power lines can be used for communication.
[0044] In the device distribution network system provided in this embodiment, only one powerline communication and one WIFI management frame communication are needed between the parent device and the child device. The parent device can act as a router to distribute the network to the child device without requiring the user to input service set identifiers, passwords, or other information, and without going through steps such as scanning, authentication, association, and dynamic host configuration. During this process, the parent device communicates with the child device based on its MAC address. Therefore, there is no need to establish a connection at the IP layer or higher. The communication between them does not need to carry Internet Protocol headers or User Datagram Protocol headers, nor does it need to send invalid data packets to maintain the connection. This greatly simplifies the amount of communication data and the frequency of communication between devices, thereby effectively improving the efficiency of network distribution and achieving millisecond-level network distribution. In addition, this embodiment combines powerline communication with WIFI management frame communication and performs network distribution based on both WIFI communication protocols and powerline communication protocols, increasing the difficulty of being eavesdropped and stolen during data transmission. This makes the network distribution process less susceptible to packet capture and cracking, thereby effectively improving the security of the network distribution. Furthermore, the parent device will verify whether the MAC address of the child device exists in the preset whitelist before distributing the network to the child device, thereby further improving the security of the network distribution. In summary, when facing the network configuration needs of a large number of smart home devices, the network configuration process in this embodiment greatly simplifies the amount of communication data and the frequency of communication between devices, and is not easily intercepted or cracked. Combined with whitelist verification for sub-devices, it can effectively improve network configuration efficiency and security.
[0045] Furthermore, this embodiment combines power line communication with WIFI management frame communication, which can give full play to the advantages of both communication methods. By reasonably selecting and configuring these two communication methods, it can effectively meet the communication needs of different communication data volumes and different communication rates between devices, thereby improving communication efficiency and communication flexibility.
[0046] Figure 6 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application, such as... Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630, and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 communicate with each other via the communication bus 640. The processor 610 can call a computer program in the memory 630 to execute steps of the device network configuration method, such as: Receive a distribution network request message broadcast by the sub-device via the power line; the distribution network request message includes the MAC address of the sub-device; When the MAC address exists in the device whitelist, network configuration is performed for the sub-device based on the MAC address; Upon successful network distribution, the distribution result message is unicast to the sub-device via a WIFI management frame based on the MAC address; both the parent device and the sub-device are devices with power line communication and WIFI management frame communication capabilities, and the parent device is networked and has routing capabilities; or Broadcast its own distribution network request message via power lines; Receive the network distribution result message unicast by the parent device via WIFI management frame; Based on the network configuration result message, change its own network status to "network configured"; Both the sub-device and the parent device are devices with power line communication and WIFI management frame communication functions, and the parent device is connected to the network and has routing functions.
[0047] Furthermore, the logical instructions in the aforementioned memory 630 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0048] On the other hand, this application also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can perform the steps of the device network configuration method provided in the above embodiments, such as including: Receive a distribution network request message broadcast by the sub-device via the power line; the distribution network request message includes the MAC address of the sub-device; When the MAC address exists in the device whitelist, network configuration is performed for the sub-device based on the MAC address; Upon successful network distribution, the distribution result message is unicast to the sub-device via a WIFI management frame based on the MAC address; both the parent device and the sub-device are devices with power line communication and WIFI management frame communication capabilities, and the parent device is networked and has routing capabilities; or Broadcast its own distribution network request message via power lines; Receive the network distribution result message unicast by the parent device via WIFI management frame; Based on the network configuration result message, change its own network status to "network configured"; Both the sub-device and the parent device are devices with power line communication and WIFI management frame communication functions, and the parent device is connected to the network and has routing functions.
[0049] On the other hand, embodiments of this application also provide a non-transitory computer-readable storage medium storing a computer program thereon, the computer program being used to cause a processor to execute the steps of the device network configuration method provided in the above embodiments, for example including: Receive a distribution network request message broadcast by the sub-device via the power line; the distribution network request message includes the MAC address of the sub-device; When the MAC address exists in the device whitelist, network configuration is performed for the sub-device based on the MAC address; Upon successful network distribution, the distribution result message is unicast to the sub-device via a WIFI management frame based on the MAC address; both the parent device and the sub-device are devices with power line communication and WIFI management frame communication capabilities, and the parent device is networked and has routing capabilities; or Broadcast its own distribution network request message via power lines; Receive the network distribution result message unicast by the parent device via WIFI management frame; Based on the network configuration result message, change its own network status to "network configured"; Both the sub-device and the parent device are devices with power line communication and WIFI management frame communication functions, and the parent device is connected to the network and has routing functions.
[0050] The non-transitory computer-readable storage medium can be any available medium or data storage device that the processor can access, including but not limited to magnetic memory (e.g., floppy disk, hard disk, magnetic tape, magneto-optical disk (MO)), optical memory (e.g., CD, DVD, BD, HVD), and semiconductor memory (e.g., ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)).
[0051] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0052] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A method for equipment network distribution, characterized in that, Applied to mother equipment, including: Receive a distribution network request message broadcast by the sub-device via the power line; the distribution network request message includes the MAC address of the sub-device; When the MAC address exists in the device whitelist, network configuration is performed for the sub-device based on the MAC address; When the network distribution is successful, the network distribution result message is unicast to the sub-device via WIFI management frame based on the MAC address; both the parent device and the sub-device are devices with power line communication function and WIFI management frame communication function, and the parent device is connected to the network and has routing function.
2. The equipment distribution network method according to claim 1, characterized in that, Before configuring the sub-device with network access based on the MAC address when the MAC address exists in the device whitelist, the process includes: Receive the device whitelist issued by the device cloud platform; Save the device whitelist to local Flash memory.
3. The equipment distribution network method according to claim 1, characterized in that, The network allocation request message also includes the communication key of the sub-device, and the network allocation result message is obtained based on the following steps: The network distribution success identifier is encrypted using the communication key to obtain the network distribution result message.
4. The equipment distribution network method according to claim 2, characterized in that, After the network configuration result message is unicast to the sub-device via a WIFI management frame based on the MAC address, the process includes: Register the device information of the sub-device on the device cloud platform.
5. A method for equipment network distribution, characterized in that, Applied to sub-devices, including: Broadcast its own distribution network request message via power lines; Receive the network distribution result message unicast by the parent device via WIFI management frame; Based on the network configuration result message, change its own network status to "network configured"; Both the sub-device and the parent device are devices with power line communication and WIFI management frame communication functions, and the parent device is connected to the network and has routing functions.
6. The equipment distribution network method according to claim 5, characterized in that, The step of modifying its own network status to "already configured" based on the network configuration result message includes: The network distribution result message is decrypted using its own communication key; Upon successful decryption and acquisition of the network configuration success identifier, the network status is changed to "network configured". The network distribution request message includes its own communication key, and the network distribution result message is obtained by the master device encrypting the network distribution success identifier using the communication key.
7. A device distribution network system, characterized in that, include: Mother equipment and daughter equipment; The mother device is used for: Receive distribution network request messages broadcast by sub-devices via power lines; The network configuration request message includes the MAC address of the sub-device; When the MAC address exists in the device whitelist, network configuration is performed for the sub-device based on the MAC address; Upon successful network configuration, the network configuration result message is unicast to the sub-device via a WIFI management frame based on the MAC address; the sub-device is used for: Broadcast its own distribution network request message via power lines; Receive the network distribution result message unicast by the parent device via WIFI management frame; Based on the network configuration result message, change its own network status to "network configured"; Both the parent device and the child device are devices with power line communication and WIFI management frame communication functions, and the parent device is connected to the network and has routing functions.
8. An electronic device comprising a processor and a memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the device network distribution method according to any one of claims 1 to 4, or the steps of the device network distribution method according to any one of claims 5 to 6.
9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the device network distribution method according to any one of claims 1 to 4, or the steps of the device network distribution method according to any one of claims 5 to 6.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the device network distribution method according to any one of claims 1 to 4, or the steps of the device network distribution method according to any one of claims 5 to 6.
