Method for self-organizing network of Mesh devices, Mesh device, terminal device, and storage medium
Mesh network configuration is solved through the Mesh device's own ad hoc network service and configuration information, and the limitations of relying on cloud services in the existing technology are solved, and the ad hoc network of Mesh devices without cloud services is realized, which expands the scope of application and improves stability and efficiency.
Patent Information
- Application Number
- CN202210879774.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-25
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2042-07-25
AI Technical Summary
The existing Mesh networking technology relies on cloud services and cannot realize the ad hoc network of Mesh devices without cloud services, resulting in a relatively limited scope of networking.
Mesh network configuration is carried out through the ad hoc network service enabled by the Mesh device itself and the configuration information sent by the terminal device or other Mesh devices, so as to realize the ad hoc network of the Mesh device without cloud services. The specific steps include executing a slave mode to send a broadcast message, receiving configuration information for network configuration, and stopping sending a broadcast message after completing the network entry to execute the host mode to enable other Mesh devices to enter the network.
It realizes the ad hoc network of Mesh devices when they are separated from the cloud server, expands the scope of application of Mesh devices' ad hoc network, and improves the stability and efficiency of ad hoc network.
Smart Images

Figure CN115460628B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of self-organizing networks, for example, to a method and apparatus for self-organizing networks of Mesh devices, Mesh devices, and storage media. Background Art
[0002] At present, with the rapid development of science and technology, smart Mesh (wireless mesh) modules have become the mainstream smart modules. Mesh networks are equipped with multiple Mesh devices and are mainly used in large stadiums, office buildings, libraries, factories, and large concerts. Since the above scenarios have a high demand for Mesh, taking a large stadium as an example, a large stadium usually needs to be equipped with more than 200 Mesh smart lighting devices. However, the networking process of Mesh network is complicated. Therefore, it is difficult for Mesh networking to achieve fast and stable networking.
[0003] The related technology discloses a method for publicly networking a Bluetooth mesh network, including opening the privacy permission of a first Bluetooth mesh network; starting a remote network configuration server model, randomly dividing the unicast addresses in the first Bluetooth mesh network, and allocating the randomly divided unicast address pool to corresponding nodes in the first Bluetooth mesh network, so that the corresponding nodes have network configuration capabilities; and configuring a mesh device to be configured through at least one corresponding node in the first Bluetooth mesh network, so that after the mesh device to be configured completes the network configuration, it becomes a new mesh node on the first Bluetooth mesh network.
[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0005] The related technology performs Mesh networking by enabling the remote network configuration server model function and randomly allocating unicast addresses. During the networking process, it is necessary to communicate with the cloud server to obtain the unicast address pool. Although the above networking process can achieve stable self-organizing networking, it depends on cloud services. In the absence of cloud services, Mesh self-organizing networking cannot be performed, and the scope of application of the networking is relatively limited. Summary of the invention
[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0007] The embodiments of the present disclosure provide a method for self-organizing mesh devices, a mesh device, a terminal device, and a storage medium, so as to realize self-organizing mesh devices in the absence of cloud services and expand the scope of application of self-organizing networks.
[0008] In some embodiments, the method is applied to Mesh devices, and the method includes: when starting a self-organizing network service, executing a slave mode and sending a broadcast message for requesting networking; receiving configuration information for networking sent by a terminal device or other Mesh devices; performing network configuration according to the configuration information; and when network access is completed, stopping sending the broadcast message and executing a host mode to enable the other Mesh devices to complete network access; wherein the configuration information for networking includes Mesh network information, and also includes a Mesh address pool or a Mesh address.
[0009] In some embodiments, the receiving terminal device sends configuration information for networking, including: receiving public key information and encryption information sent by the terminal device; decrypting the encryption information according to the public key information; and obtaining configuration information including the Mesh network information and the Mesh address pool.
[0010] In some embodiments, after obtaining the configuration information including the Mesh network information and the Mesh address pool, it also includes: selecting an available Mesh address from the Mesh address pool as the local Mesh address.
[0011] In some embodiments, after stopping sending the broadcast message and executing the host mode, it also includes: determining a Mesh network configuration device; sending the Mesh network information to the Mesh network configuration device; after selecting a first Mesh address from the Mesh address pool, assigning the first Mesh address to the Mesh network configuration device so that the Mesh network configuration device performs network configuration.
[0012] In some embodiments, determining the Mesh network configuration device includes: sending a scan request for network configuration; receiving a broadcast message sent by the Mesh device; and selecting the Mesh device corresponding to the broadcast message that meets preset conditions as the Mesh network configuration device.
[0013] In some embodiments, after allocating the first Mesh address to the Mesh network configuration device, it also includes: receiving an allocation request message, the allocation request message including a device identifier; selecting a second Mesh address from the Mesh address pool; and allocating the second Mesh address to the device to be configured corresponding to the device identifier.
[0014] In some embodiments, after allocating the first Mesh address to the Mesh network distribution device, it also includes: stopping execution of the host mode.
[0015] In some embodiments, the receiving of configuration information for networking sent by other Mesh devices includes: receiving the Mesh network information sent by a Mesh address management device; receiving a first Mesh address allocated by the Mesh address management device; and sending an address confirmation message, wherein the address confirmation message is used to indicate that the device has obtained the Mesh address.
[0016] In some embodiments, after sending the address confirmation message, it also includes: receiving an address request message sent by the device to be configured, the address request message is used to request a Mesh address; according to the address request message, requesting a Mesh address from the Mesh address management device; transmitting the second Mesh address allocated by the Mesh address management device to the device to be configured, so that the device to be configured performs network configuration according to the Mesh network information and the second Mesh address.
[0017] In some embodiments, requesting a Mesh address from the Mesh address management device according to the request message includes: generating an allocation request message according to the address request message; sending the allocation request message to the Mesh address management device to request a Mesh address; and receiving a second Mesh address allocated by the Mesh address management device.
[0018] In some embodiments, requesting a Mesh address from the Mesh address management device according to the address request message includes: starting a Mesh network; and sending the allocation request message to the Mesh address management device in the Mesh network to request allocation of a Mesh address.
[0019] In some embodiments, the receiving of configuration information for networking sent by other Mesh devices includes: upon receiving the Mesh network information sent by the Mesh network configuration device, sending an address request message for requesting a Mesh address; upon receiving a second Mesh address sent by the Mesh address management device or the Mesh network configuration device, sending an address confirmation message.
[0020] In some embodiments, the method is applied to a terminal device, and the method includes: obtaining a Mesh address pool; receiving broadcast messages sent by multiple Mesh devices for requesting networking; determining a Mesh address management device based on the multiple broadcast messages; sending configuration information for networking to the Mesh address management device, so that the Mesh address management device performs network configuration and completes network access; wherein the configuration information for networking includes Mesh network information and Mesh address pool.
[0021] In some embodiments, the method further includes: determining that the ad hoc network is completed upon receiving respective Mesh addresses and heartbeat packets sent by all Mesh devices; wherein the heartbeat packet is used to indicate that the device has completed network access.
[0022] In some embodiments, the Mesh device includes a processor and a memory storing program instructions, and the processor is configured to execute the aforementioned method for Mesh device self-organizing network when running the program instructions.
[0023] In some embodiments, the terminal device includes a processor and a memory storing program instructions, and the processor is configured to execute the aforementioned method for Mesh device self-organizing network when running the program instructions.
[0024] In some embodiments, the storage medium stores program instructions, and when the program instructions are run, the method for ad hoc networking of Mesh devices as described above is executed.
[0025] The method for Mesh device self-organizing network, Mesh device, terminal device and storage medium provided in the embodiments of the present disclosure can achieve the following technical effects:
[0026] Mesh devices can configure the Mesh network and complete network access through the self-organizing network service enabled by the device itself and the configuration information sent by the terminal device or other Mesh devices. After completing the network access, they stop sending broadcast messages and execute the host mode to enable other Mesh devices to complete the network access. Therefore, in the absence of a cloud server, the Mesh device itself can achieve network access, and after completing the network access, it can enable other Mesh devices to access the network by executing the host mode. Finally, a self-organizing network of multiple Mesh devices is realized. Therefore, Mesh devices can perform self-organizing networking without being separated from cloud servers, expanding the scope of application of self-organizing networking of Mesh devices.
[0027] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0029] Figure 1 is a schematic diagram of a system environment for a Mesh device ad hoc network provided by an embodiment of the present disclosure;
[0030] Figure 2 is a schematic diagram of a method for self-organizing a Mesh device network provided by an embodiment of the present disclosure;
[0031] Figure 3 is a schematic diagram of another method for Mesh device self-organizing network provided by an embodiment of the present disclosure;
[0032] Figure 4 is a schematic diagram of another method for Mesh device self-organizing network provided by an embodiment of the present disclosure;
[0033] Figure 5 is a schematic diagram of another method for Mesh device self-organizing network provided by an embodiment of the present disclosure;
[0034] Figure 6 is a schematic diagram of another method for Mesh device self-organizing network provided by an embodiment of the present disclosure;
[0035] Figure 7 is a schematic diagram of another method for Mesh device self-organizing network provided by an embodiment of the present disclosure;
[0036] Figure 8 is a schematic diagram of another method for Mesh device self-organizing network provided by an embodiment of the present disclosure;
[0037] Fig. 9 is a schematic diagram of another method for Mesh device self-organizing network provided by an embodiment of the present disclosure;
[0038] Fig.10 is a schematic diagram of another method for Mesh device self-organizing network provided by an embodiment of the present disclosure;
[0039] Fig.11 is a schematic diagram of another method for Mesh device self-organizing network provided by an embodiment of the present disclosure;
[0040] Fig.12 is a schematic diagram of another method for Mesh device self-organizing network provided by an embodiment of the present disclosure;
[0041] Fig.13is a schematic diagram of another method for Mesh device self-organizing network provided by an embodiment of the present disclosure;
[0042] Figure 14-1 is an application schematic diagram of an embodiment of the present disclosure;
[0043] Figure 14-2 is another application schematic diagram of an embodiment of the present disclosure;
[0044] Fig.15 is a schematic diagram of a device for Mesh device self-organizing network provided by an embodiment of the present disclosure;
[0045] Fig.16 It is a schematic diagram of another apparatus for Mesh device self-organizing network provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0046] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0047] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0048] Unless otherwise stated, the term "plurality" means two or more.
[0049] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0050] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0051] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0052] In the embodiments of the present disclosure, the terminal device refers to an electronic device with a communication connection function, and the terminal device can be connected to the server by connecting to the Internet. For example, it is connected to the server by wired communication or wireless communication. In some embodiments, the terminal device is a gateway device such as a router or a network switch. The terminal device can also be connected to the smart home appliance by connecting to the Internet. For example, it is connected to the smart home appliance by Bluetooth, WiFi, etc. In other embodiments, the terminal device is, for example, a mobile device, a computer, or a vehicle-mounted device built into a suspension car, or any combination thereof. Mobile devices may include, for example, mobile phones, smart home devices, wearable devices, smart mobile devices, virtual reality devices, etc., or any combination thereof, wherein wearable devices include, for example: smart watches, smart bracelets, pedometers, etc.
[0053] Figure 1 A schematic diagram of a system environment for a Mesh device ad hoc network provided by an embodiment of the present disclosure is shown. Figure 1 As shown, the system for Mesh device self-organizing network includes a terminal device 200 and multiple Mesh devices. The multiple Mesh devices are numbered Mesh device 1, Mesh device 2 and Mesh device n in sequence. The value of n is determined by the networking requirements in the target scenario.
[0054] The Mesh device includes a Mesh address management device 301 , a Mesh network configuration device 302 , and a device to be configured 303 .
[0055] The Mesh address management device 301 represents a Mesh device that is used to store a Mesh address pool and allocate Mesh addresses to other Mesh devices and has the network configuration capability.
[0056] The Mesh network configuration device 302 represents a Mesh device used to perform network configuration on other Mesh devices except the Mesh address management device 301 and the device itself.
[0057] The network device to be configured 303 represents other Mesh devices except the Mesh address management device 301 and the Mesh network configuration device 302. The network device to be configured 303 can request the allocation of a Mesh address through the Mesh address management device 301, and can obtain Mesh network information through the Mesh network configuration device 302.
[0058] It should be noted that the Mesh address management device 301 only performs network configuration on the Mesh network configuration device 302, and does not perform network configuration on other Mesh devices.
[0059] In the disclosed embodiment, the above-mentioned system for Mesh device ad hoc networking is based on BLE (Bluetooth Low Energy) technology. BLE technology has the technical advantages of low power consumption, small size, low cost and good compatibility. BLE technology includes host mode and slave mode. The disclosed embodiment makes the following description on the host mode and the slave:
[0060] The host mode indicates that a slave device in the broadcasting state is discovered and a connection to the slave device can be initiated.
[0061] Slave mode means entering the broadcast state first, and can be scanned and discovered by the host device, and can be connected by the host device.
[0062] The broadcast state means that a broadcast message of a certain length is sent to the surroundings regularly, and the broadcast message can be scanned by the scanner. The scanning state means that the broadcast message is sent by the device in the broadcast state of the surroundings that scans regularly.
[0063] In addition, in the embodiments of the present disclosure, the Mesh devices are all configured with self-organizing network services. The above self-organizing network services support BLEGATT (Generic Attribute Profile). BLE GATT uses the attribute protocol to define a service framework, which defines the procedures, formats and characteristics of the service. By configuring BLE GATT, any Mesh device can communicate with other Mesh devices according to networking requirements to realize the self-organizing network of Mesh devices. As an example, the description of the self-organizing network service includes sub-process definitions and service characteristic values. The sub-process definitions are shown in Table 1. The service characteristic values are shown in Table 2.
[0064] Table 1
[0065]
[0066] Table 2
[0067]
[0068] Based on the above system for Mesh device self-organizing network, combined with Figure 2 As shown, the embodiment of the present disclosure provides a method for Mesh device self-organizing network, which is applied to Mesh devices. The method includes:
[0069] S01, when starting the self-organizing network service, the Mesh device executes the slave mode and sends a broadcast message for requesting networking.
[0070] S02, the Mesh device receives configuration information for networking sent by the terminal device or other Mesh devices.
[0071] In this step, the Mesh device that receives the configuration information for networking sent by the terminal device is used as the first Mesh device to perform network configuration and complete network access. The above configuration information includes Mesh network information and Mesh address pool. Other Mesh devices except the Mesh device can perform network configuration and complete network access by receiving the configuration information for networking sent by the above Mesh device. The above configuration information includes network information and Mesh address.
[0072] S03, the Mesh device performs network configuration according to the configuration information.
[0073] S04, when the Mesh device completes the network access, it stops sending broadcast messages and executes the host mode to allow other Mesh devices to complete the network access.
[0074] The configuration information used for networking includes Mesh network information and a Mesh address pool or a Mesh address.
[0075] By adopting the method for self-organizing network of Mesh devices provided by the embodiment of the present disclosure, the Mesh device can configure the Mesh network and complete the network access through the self-organizing network service enabled by the device itself and the configuration information sent by the terminal device or other Mesh devices, and stop sending broadcast messages and execute the host mode after completing the network access, so that other Mesh devices can complete the network access. Therefore, in the absence of a cloud server, the Mesh device itself can achieve network access, and after completing the network access, it can enable other Mesh devices to access the network by executing the host mode. Finally, a self-organizing network of multiple Mesh devices is realized. Therefore, the Mesh device can perform self-organizing network without the cloud server, expanding the scope of application of the self-organizing network of Mesh devices.
[0076] Optionally, combined Figure 3 As shown, the Mesh address management device receives the configuration information for networking sent by the terminal device, including:
[0077] S11, the Mesh address management device receives the public key information and encryption information sent by the terminal device.
[0078] In this step, the encrypted information refers to information generated by encrypting the configuration information using the private key information, wherein the public key information corresponds to the private key information.
[0079] The terminal device obtains the public key information and the encryption information in the following manner. When the terminal device is in communication connection with the server, the terminal device may receive the public key information and the secret key information sent by the server. The server may be a cloud server. The terminal device may also generate the public key information and the secret key information by itself. The disclosed embodiment does not specifically limit the method for obtaining the public key information and the encryption information.
[0080] S12, the Mesh address management device decrypts the encrypted information according to the public key information.
[0081] S13, the Mesh address management device obtains configuration information including Mesh network information and Mesh address pool.
[0082] In this step, the Mesh network information includes the API interface verification serial number (AppKEY), the network key (NetKEY) and the initial IV index. The Mesh address pool includes multiple available Mesh addresses to be allocated.
[0083] In this way, the Mesh address management device can obtain configuration information through the terminal device, and can determine the Mesh network information and multiple available Mesh addresses based on the configuration information. Thus, under the self-organizing network service, the network configuration and orderly allocation of Mesh addresses can be realized. In addition, the Mesh address management device decrypts the encrypted information according to the public key information to obtain the configuration information, thereby improving the security of data transmission.
[0084] Optionally, after the Mesh address management device obtains the configuration information including the Mesh network information and the Mesh address pool, the following steps are further included:
[0085] The Mesh address management device selects an available Mesh address from the Mesh address pool as the local Mesh address.
[0086] In this way, the Mesh address management device selects an available Mesh address from the address pool and uses it as the local Mesh address. The Mesh address management device can perform network configuration based on the Mesh network information and the local Mesh address, so that the device has the network configuration capability.
[0087] Specifically, the Mesh address management device randomly selects an available Mesh address from the Mesh address pool as the local Mesh address, thereby improving the fairness of Mesh address allocation.
[0088] It should be noted that after the Mesh address management device completes network access, the Mesh network configuration device represents the first Mesh device to be configured by the Mesh address management device. After the Mesh network configuration device completes network access, all other Mesh devices except the above-mentioned Mesh address management device and the above-mentioned Mesh network configuration device can be connected to the network under the configuration of the Mesh network configuration device.
[0089] Combination Figure 4 As shown, the embodiment of the present disclosure also provides a method for Mesh device self-organizing network, which is applied to Mesh address management device. The method includes:
[0090] S21, when the Mesh address management device starts the self-organizing network service, it executes the slave mode and sends a broadcast message for requesting networking.
[0091] S22, the Mesh address management device receives configuration information for networking sent by the terminal device.
[0092] S23, the Mesh address management device performs network configuration according to the configuration information.
[0093] S24, when the Mesh address management device completes the network access, it stops sending broadcast messages and executes the host mode.
[0094] S25, the Mesh address management device determines the Mesh network configuration device.
[0095] S26, the Mesh address management device sends the Mesh network information to the Mesh network configuration device.
[0096] In this step, the Mesh address management device sends the Mesh network information to the Mesh network configuration device, including: the Mesh address management device public key information and the encrypted network information to the Mesh network configuration device, so that the Mesh network configuration device decrypts the encrypted network information according to the public key information and obtains the Mesh network information.
[0097] S27, after the Mesh address management device selects a first Mesh address from the Mesh address pool, it allocates the first Mesh address to the Mesh network configuration device, so that the Mesh network configuration device performs network configuration.
[0098] The configuration information used for networking includes Mesh network information and Mesh address pool.
[0099] Using the method for Mesh device self-organizing network provided by the embodiment of the present disclosure, the Mesh address management device stops sending broadcast messages and executes the host mode when the network access is completed. In the host mode, the Mesh network configuration device is determined among other Mesh devices. Then the Mesh network information is sent to the Mesh network configuration device, and the selected first Mesh address is assigned to the Mesh network configuration device. Finally, under the self-organizing network service, the network configuration of the Mesh network configuration device is realized. After the Mesh address management device of the embodiment of the present disclosure completes the network access, under the self-organizing network service, the network configuration of the Mesh network configuration device can be realized by sending the Mesh network information and the Mesh address to the determined Mesh network configuration device. In the implementation of the present disclosure, the Mesh address management device is upgraded to a Mesh gateway device. In addition, the above process does not need to obtain the configuration information required for the Mesh device network configuration from the cloud server, and improves the stability of the Mesh device self-organizing network on the basis of expanding the scope of application of the Mesh device self-organizing network.
[0100] Optionally, combined Figure 5 As shown in the figure, the Mesh address management device determines the Mesh network configuration device, including:
[0101] S31, the Mesh address management device sends a scan request for network configuration.
[0102] S32, the Mesh address management device receives the broadcast message sent by the Mesh device.
[0103] S33, the Mesh address management device selects the Mesh device corresponding to the broadcast message that meets the preset conditions as the Mesh network configuration device.
[0104] In this way, the Mesh address management device can select the Mesh device corresponding to the broadcast message that meets the preset conditions from other Mesh devices by sending a scan request for network configuration, and use it as the Mesh network configuration device, thereby improving the speed of Mesh device self-organizing network and realizing fast self-organizing network.
[0105] Optionally, a Mesh device corresponding to a broadcast message that meets a preset condition is selected, including:
[0106] Select the Mesh device corresponding to the broadcast message with the highest signal strength value; or,
[0107] Select the time to receive the broadcast message earlier than other Mesh devices that send broadcast messages.
[0108] In this way, the Mesh distribution device can be quickly identified from other Mesh devices, thereby realizing rapid networking of Mesh devices.
[0109] Optionally, the Mesh address management device selects a first Mesh address from a Mesh address pool, including:
[0110] The mesh address management device randomly selects an unallocated mesh address from the mesh address pool as the first mesh address.
[0111] In this way, the fairness of Mesh address allocation is improved. In addition, the Mesh address management device allocates Mesh addresses in the Mesh address pool, which can achieve orderly management and reasonable allocation of Mesh addresses.
[0112] Combination Figure 6 As shown, the embodiment of the present disclosure also provides a method for Mesh device self-organizing network, which is applied to Mesh address management device. The method includes:
[0113] S41, when the Mesh address management device starts the self-organizing network service, it executes the slave mode and sends a broadcast message for requesting networking.
[0114] S42, the Mesh address management device receives configuration information for networking sent by the terminal device.
[0115] S43, the Mesh address management device performs network configuration according to the configuration information.
[0116] S44, when the Mesh address management device completes network access, it stops sending broadcast messages and executes the host mode to enable other Mesh devices to complete network access.
[0117] S45, the Mesh address management device determines the Mesh network configuration device.
[0118] S46, the Mesh address management device sends the Mesh network information to the Mesh network configuration device.
[0119] S47, after the Mesh address management device selects the first Mesh address from the Mesh address pool, it allocates the first Mesh address to the Mesh network configuration device, so that the Mesh network configuration device performs network configuration.
[0120] S48, the Mesh address management device receives an allocation request message, where the allocation request message includes a device identifier.
[0121] S49, the Mesh address management device selects a second Mesh address from the Mesh address pool.
[0122] S50, the Mesh address management device allocates a second Mesh address to the network device to be configured corresponding to the device identifier.
[0123] The configuration information used for networking includes Mesh network information and Mesh address pool.
[0124] Using the method for Mesh device self-organizing network provided by the embodiment of the present disclosure, the Mesh address management device can uniformly manage and allocate the Mesh addresses in the Mesh address pool after completing the network access. After the Mesh address management device receives the allocation request message including the device identifier, the second Mesh address is selected from the Mesh address pool and allocated to the device to be configured corresponding to the device identifier. In the embodiment of the present disclosure, all devices to be configured can obtain the Mesh address through the Mesh address management device, realize the self-organizing network of Mesh devices, and improve the efficiency of the self-organizing network of Mesh devices. At the same time, the chain self-organizing network and fast self-organizing network of Mesh devices are realized.
[0125] It should be noted that the Mesh address management device allocates the second Mesh address to the network device to be configured corresponding to the device identifier, and the Mesh address management device can transmit the second Mesh address to the Mesh network configuration device so that the Mesh network configuration device forwards it to the network device to be configured corresponding to the device identifier, or the Mesh address management device can transmit the second Mesh address to the network device to be configured corresponding to the device identifier. Regarding the way in which the Mesh address management device transmits the second Mesh address, the embodiments of the present disclosure do not make specific limitations on this.
[0126] In addition, after the Mesh address management device allocates the first Mesh address to the Mesh network distribution device, the following steps are further included:
[0127] The Mesh address management device stops executing host mode.
[0128] In this way, after the Mesh address management device assigns the first Mesh address to the Mesh network configuration device, the Mesh network configuration device can perform network configuration. The Mesh address management device stops executing the host mode at this time, that is, it no longer performs network configuration on other Mesh devices except the Mesh network configuration device. This avoids conflicts when performing network configuration with the Mesh network configuration device and improves the reliability of the Mesh device self-organizing network.
[0129] Optionally, combined Figure 7 As shown in the figure, the Mesh network configuration device receives the configuration information for networking sent by other Mesh devices, including:
[0130] S61, the Mesh network configuration device receives the Mesh network information sent by the Mesh address management device.
[0131] S62, the Mesh network configuration device receives the first Mesh address allocated by the Mesh address management device.
[0132] S63, the Mesh network configuration device sends an address confirmation message, where the address confirmation message is used to indicate that the device has obtained the Mesh address.
[0133] In this way, after receiving the Mesh network information and the first Mesh address sent by the Mesh address management device, the Mesh network configuration device sends an address confirmation message to the Mesh address management device to perform network configuration under the self-organizing network service. And the Mesh address management device is informed of the selection and allocation of addresses in the Mesh address pool, which is helpful to maintain the Mesh addresses in the Mesh address pool.
[0134] Combination Figure 8 As shown, the embodiment of the present disclosure also provides a method for Mesh device self-organizing network, which is applied to Mesh network distribution equipment. The method includes:
[0135] S71, when the Mesh network configuration device starts the self-organizing network service, it executes the slave mode and sends a broadcast message for requesting networking.
[0136] S72, the Mesh network configuration device receives the Mesh network information sent by the Mesh address management device.
[0137] S73, the Mesh network configuration device receives the first Mesh address allocated by the Mesh address management device.
[0138] S74, the Mesh configuration network device sends an address confirmation message, where the address confirmation message is used to indicate that the device has obtained the Mesh address.
[0139] S75, the Mesh network configuration device performs network configuration according to the configuration information.
[0140] S76, when the Mesh network distribution device completes network access, it stops sending broadcast messages and executes the host mode to enable other Mesh devices to complete network access.
[0141] S77, the Mesh network configuration device receives an address request message sent by the network configuration device, wherein the request message is used to request a Mesh address.
[0142] In this step, before the Mesh network configuration device receives the address request message sent by the network configuration device, the following steps are also included:
[0143] The Mesh configuration device determines the device to be configured.
[0144] The Mesh configuration device sends the Mesh network information to the device to be configured.
[0145] The Mesh network configuration device may determine the device to be configured in the same manner as the Mesh address management device determines the Mesh network configuration device.
[0146] The Mesh network configuration device sends the Mesh network information to the device to be configured, and can use the encryption method consistent with step S26, which will not be repeated in this application.
[0147] S78, the Mesh network configuration device requests a Mesh address from the Mesh address management device according to the request message.
[0148] S79, the Mesh network configuration device transmits the second Mesh address allocated by the Mesh address management device to the device to be configured, so that the device to be configured performs network configuration according to the Mesh network information and the second Mesh address.
[0149] The configuration information used for networking includes Mesh network information and Mesh address.
[0150] According to the method for Mesh device self-organizing network provided by the embodiment of the present disclosure, after receiving the address request message sent by the network device to be configured, the Mesh network configuration device requests the Mesh address from the Mesh address management device with address management capability according to the address request message, and transmits the allocated second Mesh address to the network device to be configured as an intermediate device. In the embodiment of the present disclosure, the Mesh address management device acts as a Mesh gateway device to allocate Mesh addresses on demand, thereby shortening the time of Mesh device self-organizing network and improving the friendliness of Mesh self-organizing network setting.
[0151] Optionally, combined Fig. 9 As shown, the Mesh network configuration device requests the Mesh address from the Mesh address management device according to the address request message, including:
[0152] S81, the Mesh distribution network device generates an allocation request message according to the address request message.
[0153] S82, the Mesh network configuration device sends an allocation request message to the Mesh address management device to request a Mesh address.
[0154] S83, the Mesh network configuration device receives the second Mesh address allocated by the Mesh address management device.
[0155] In this way, the Mesh configuration device, as an intermediate device, forwards the Mesh address assigned by the Mesh address management device to the device to be configured, so that the device to be configured can quickly obtain the Mesh address and realize the chained self-organizing network of Mesh devices.
[0156] Optionally, the address request message includes a device identifier of the device to be configured. The allocation request message includes a device identifier. After the Mesh configuration device receives the second Mesh address allocated by the Mesh address management device, it sends it to the device to be configured with the device identifier. In this way, the accuracy of Mesh address allocation can be improved.
[0157] Optionally, combined Fig.10 As shown, the Mesh network configuration device requests the Mesh address from the Mesh address management device according to the address request message, including:
[0158] S91, the Mesh network configuration device starts the Mesh network.
[0159] S92, the Mesh distribution network device sends an allocation request message to the Mesh address management device in the Mesh network to request allocation of a Mesh address.
[0160] In this way, when both the Mesh network configuration device and the Mesh address management device have completed network access, the Mesh network composed of the Mesh network configuration device and the Mesh address management device has a certain degree of security. To this end, the Mesh network configuration device starts the Mesh network and sends the allocation request message under the Mesh network, thereby improving the security of Mesh address transmission, and then improving the security of the Mesh device self-organizing network.
[0161] Combination Fig.11 As shown, the embodiment of the present disclosure also provides a method for Mesh device self-organizing network, which is applied to the device to be configured. The method includes:
[0162] S131, when the network-to-be-connected device starts the self-organizing network service, it executes the slave mode and sends a broadcast message for requesting networking.
[0163] S132, when the device to be configured receives the Mesh network information sent by the Mesh configuration device, it sends an address request message for requesting a Mesh address.
[0164] S133: When the device to be configured receives the second Mesh address sent by the Mesh address management device or the Mesh configuration device, the device to be configured sends an address confirmation message.
[0165] In this step, when the device to be configured receives the second Mesh address sent by the Mesh address management device or the Mesh configuration device, the device to be configured can receive the second Mesh address sent directly by the Mesh address management device, or the device to be configured can receive the second Mesh address sent by the Mesh configuration device and forward it.
[0166] S134, the device to be networked performs network configuration according to the configuration information.
[0167] S135, when the device to be configured has completed network access, it stops sending broadcast messages and executes the host mode to allow other Mesh devices to complete network access.
[0168] The configuration information used for networking includes Mesh network information and Mesh address.
[0169] By using the method for Mesh device self-organizing network provided by the embodiment of the present disclosure, the device to be configured performs network configuration and completes network access under the self-organizing network service according to the Mesh network information sent by the Mesh configuration device and the second Mesh address sent by the Mesh address management device or the Mesh configuration device. The embodiment of the present disclosure realizes the chained self-organizing network of Mesh devices.
[0170] It should be noted that other Mesh devices determine that this device is the last Mesh device to join the network according to the following method:
[0171] In host mode, no broadcast message is received within the preset time.
[0172] In this way, the last Mesh device to join the network among all Mesh devices, after executing the host mode, determines the device to be joined that sends the broadcast message by sending a scan request for network configuration. Since all Mesh devices have completed network access, if the last Mesh device to join the network sends a scan request and cannot receive the broadcast message within the preset time, it is determined that the Mesh device belongs to the last Mesh device to join the network.
[0173] Combination Fig.12 As shown, the embodiment of the present disclosure also provides a method for Mesh device self-organizing network, which is applied to terminal devices. The method includes:
[0174] S141: The terminal device obtains the Mesh address pool.
[0175] S142, the terminal device receives a broadcast message sent by multiple Mesh devices to request networking.
[0176] S143, the terminal device determines the Mesh address management device according to multiple broadcast messages.
[0177] S144, the terminal device sends configuration information for networking to the Mesh address management device, so that the Mesh address management device performs network configuration and completes network access, and the Mesh address management device allocates the Mesh address of the Mesh address pool to other Mesh devices.
[0178] The configuration information used for networking includes Mesh network information and Mesh address pool.
[0179] By adopting the method for Mesh device self-organizing network provided by the embodiment of the present disclosure, the terminal device provides configuration information to the Mesh address management device, and enables it to have the network configuration capability and address allocation capability. In the case of the Mesh device not having a cloud server, the Mesh device can realize the self-organizing network of multiple Mesh devices, thereby expanding the scope of application of the Mesh device self-organizing network.
[0180] Combination Fig.13 As shown, the embodiment of the present disclosure also provides a method for Mesh device self-organizing network, which is applied to terminal devices. The method includes:
[0181] S151: The terminal device obtains the Mesh address pool.
[0182] In this step, the terminal device obtains the Mesh address pool, and after obtaining the available device address range for the terminal device, the Mesh address pool is determined according to the available device address range. The terminal device obtains the available device address range, and the available device address range can be obtained by the terminal device through the server connected to the terminal device; or, the available device address range can be generated for the terminal device itself. The disclosed embodiment does not specifically limit the way in which the terminal device obtains the Mesh address pool.
[0183] S152, the terminal device receives a broadcast message sent by multiple Mesh devices to request networking.
[0184] S153, the terminal device determines the Mesh address management device based on multiple broadcast messages.
[0185] S154, the terminal device sends configuration information for networking to the Mesh address management device, so that the Mesh address management device performs network configuration and completes network access, and the Mesh address management device allocates the Mesh address of the Mesh address pool to other Mesh devices.
[0186] S155, when the terminal device receives the respective Mesh addresses and heartbeat packets sent by all Mesh devices, it determines that the self-organizing network is completed.
[0187] The configuration information used for networking includes Mesh network information and Mesh address pool. The heartbeat packet is used to indicate that the device has completed network access.
[0188] The method for Mesh device self-organizing network provided by the embodiment of the present disclosure is adopted. After each Mesh device has completed network access, the Mesh address of the device and the heartbeat packet used to indicate that the device has completed network access are sent to the terminal device. In this way, after receiving the respective Mesh addresses and heartbeat packets sent by all Mesh devices, the terminal device determines that multiple Mesh devices have completed self-organizing network. The embodiment of the present disclosure can accurately determine whether the Mesh device has completed self-organizing network, thereby improving the accuracy of self-organizing network judgment.
[0189] It should be noted that the heartbeat packet is generated in the following manner: When multiple Mesh devices complete network access, a heartbeat packet is generated. At the same time, a Mesh device sends the Mesh address of the device and the heartbeat packet, and the Mesh device can send the Mesh address of the device and the heartbeat packet to the terminal device at the same time. A Mesh device sends the Mesh address of the device and the heartbeat packet, and the Mesh device can send the Mesh address and the heartbeat packet to the terminal device in sequence.
[0190] In addition, after the terminal device determines that the self-organizing network is completed, it also includes: transmitting the Mesh network information and the Mesh addresses of the multiple Mesh devices to the server. In this way, the configuration information of the Mesh network can be synchronized on the server side.
[0191] Figure 14-1 A schematic diagram of an application of a method for self-organizing a Mesh device network. The number of Mesh devices is N+1. Where N>2. In practical applications, Figure 14-1 As shown, the method for Mesh device self-organizing network specifically performs the following steps:
[0192] S101, the mobile terminal obtains or generates an available device address range from a cloud server.
[0193] S102, after multiple Mesh devices are powered on, they start the self-organizing network service and start the Slave mode (i.e., slave mode).
[0194] S103, the mobile terminal sends a scan request to multiple Mesh devices.
[0195] S104, multiple Mesh devices send a broadcast message to the mobile terminal for requesting networking.
[0196] S105: The mobile terminal determines the Mesh device corresponding to the broadcast message with the strongest signal strength as the Mesh address management device.
[0197] S106, the mobile terminal sends public key information to the Mesh address management device.
[0198] S107, the mobile terminal obtains Mesh network information from the cloud server or generates it by itself, and determines the Mesh address pool according to the available device address range.
[0199] S108, the mobile terminal sends the encrypted information to the Mesh address management device.
[0200] S109, the Mesh address management device decrypts the encrypted information according to the public key to obtain configuration information including Mesh network information and Mesh address pool.
[0201] S110, the Mesh address management device randomly selects an available Mesh address from the Mesh address pool as the local Mesh address, and performs network configuration under the self-organizing network service.
[0202] S111, after the Mesh address management device completes the network access, it switches from Slave mode to Master mode (i.e., host mode) and sends a scan request to other Mesh devices.
[0203] S112, the Mesh address management device receives broadcast messages sent by other Mesh devices.
[0204] S113, the Mesh address management device determines the Mesh device corresponding to the broadcast message with the strongest signal strength as the Mesh network configuration device.
[0205] S114: The mesh address management device randomly selects a first mesh address that has not been allocated from the mesh address pool.
[0206] S115, the Mesh address management device allocates the first Mesh address to the Mesh network configuration device and sends the Mesh network information to the Mesh network configuration device, performs network configuration under the self-organizing network service and stops executing the Master mode.
[0207] S116, the Mesh network configuration device feeds back an address confirmation message ACK to the Mesh address management device to confirm receipt of the first Mesh address.
[0208] S117: After the Mesh network configuration device completes the network access, it switches from Slave mode to Master mode and sends a scan request to other Mesh devices.
[0209] S118, the Mesh distribution network device receives the broadcast message sent by other Mesh devices.
[0210] S119, the Mesh network configuration device determines the Mesh device corresponding to the broadcast message with the strongest signal strength as the device to be configured.
[0211] S120, the Mesh network configuration device sends the Mesh network information to the device to be configured.
[0212] S121, after receiving the Mesh network information, the network configuration device sends an address request message including a device identifier to the Mesh network configuration device.
[0213] The Mesh configuration device starts the Mesh network.
[0214] S122, the Mesh distribution network device generates an allocation request message including a device identifier in the Mesh network, and sends the message to the Mesh address management device.
[0215] S123: The Mesh address management device randomly selects a second Mesh address that has not been allocated from the Mesh address pool.
[0216] S124, the Mesh address management device transmits the second Mesh address to the Mesh network distribution device.
[0217] S125, the Mesh network configuration device sends the second Mesh address to the network configuration device.
[0218] S126, the network device to be configured sends back an address confirmation message ACK to the Mesh network configuration device to confirm receipt of the second Mesh address.
[0219] S127, the Mesh distribution network device performs network configuration on the distribution network device under the self-organizing network service.
[0220] S128, after the device to be configured completes the network access, it switches from Slave mode to Master mode and sends a scan request to other Mesh devices. The subsequent execution steps are consistent with S118 and the execution subject is the device to be configured.
[0221] Until all Mesh devices N-1 have completed network access.
[0222] Figure 14-2 A schematic diagram of an application of a method for self-organizing a Mesh device network. The number of Mesh devices is N+1. Where N>2. In practical applications, Figure 14-1 As shown, the method for Mesh device self-organizing network specifically performs the following steps:
[0223] S201, the Mesh address management device completes network access.
[0224] S202, the Mesh address management device sends the Mesh address of the device and a heartbeat packet to the mobile terminal.
[0225] S203, Mesh device 1 completes network access.
[0226] S204, Mesh device 1 sends the Mesh address of the device and a heartbeat packet to the mobile terminal.
[0227] S205, Mesh device N-1 completes network access.
[0228] S206, Mesh device N-1 sends the Mesh address of the device and a heartbeat packet to the mobile terminal.
[0229] S207, when the terminal device receives the respective Mesh addresses and heartbeat packets sent by all Mesh devices, it determines that the self-organizing network is completed.
[0230] Combination Fig.15 As shown, an embodiment of the present disclosure provides a Mesh device, including a processor 100 and a memory 101. Optionally, the device may also include a communication interface 102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other through the bus 103. The communication interface 102 may be used for information transmission. The processor 100 may call the logic instructions in the memory 101 to execute the method for Mesh device self-organizing network of the above embodiment.
[0231] In addition, the logic instructions in the memory 101 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0232] The memory 101 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 100 executes functional applications and data processing by running the program instructions / modules stored in the memory 101, that is, the method for Mesh device self-organizing network in the above embodiment is implemented.
[0233] The memory 101 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 101 may include a high-speed random access memory and may also include a non-volatile memory.
[0234] Combination Fig.16As shown, an embodiment of the present disclosure provides a terminal device, including a processor 400 and a memory 401. Optionally, the device may also include a communication interface 402 and a bus 403. Among them, the processor 400, the communication interface 402, and the memory 401 can communicate with each other through the bus 403. The communication interface 402 can be used for information transmission. The processor 400 can call the logic instructions in the memory 401 to execute the method for Mesh device self-organizing network of the above embodiment.
[0235] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned method for Mesh device self-organizing network.
[0236] An embodiment of the present disclosure provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the above-mentioned method for Mesh device self-organizing network.
[0237] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0238] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0239] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0240] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0241] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0242] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for wireless mesh device self-organizing network, applied to Mesh address management equipment, characterized in that: The method comprises: When the self-organizing network service is started, the slave mode is executed and a broadcast message for requesting networking is sent; Receiving configuration information for networking sent by terminal equipment; Perform network configuration according to the configuration information; and When the network access is completed, stop sending the broadcast message and execute the host mode to enable the other Mesh devices to complete the network access; Determine the Mesh network equipment; Sending the Mesh network information to the Mesh network distribution device; After selecting a first Mesh address from the Mesh address pool, assigning the first Mesh address to the Mesh network configuration device so that the Mesh network configuration device performs network configuration; The configuration information for networking includes Mesh network information and a Mesh address pool or a Mesh address, wherein the Mesh address pool includes a plurality of available Mesh addresses to be allocated.
2. The method according to claim 1, characterized in that: The receiving terminal device sends configuration information for networking, including: Receive public key information and encrypted information sent by the terminal device; Decrypting the encrypted information according to the public key information; The configuration information including the Mesh network information and the Mesh address pool is obtained.
3. The method according to claim 2, characterized in that After obtaining the configuration information including the Mesh network information and the Mesh address pool, the method further includes: An available Mesh address is selected from the Mesh address pool as the local Mesh address.
4. The method according to claim 1, characterized in that The determining of the Mesh network configuration device includes: Send a scan request for network configuration; Receive broadcast messages sent by Mesh devices; The Mesh device corresponding to the broadcast message that meets the preset conditions is selected as the Mesh network configuration device.
5. The method according to claim 1, characterized in that After allocating the first Mesh address to the Mesh network distribution device, the method further includes: receiving an allocation request message, wherein the allocation request message includes a device identifier; Selecting a second Mesh address from the Mesh address pool; Allocate the second Mesh address to the network device to be configured corresponding to the device identifier.
6. The method according to claim 1, characterized in that After allocating the first Mesh address to the Mesh network distribution device, the method further includes: Stop executing the host mode.
7. A method for wireless mesh device self-organizing network, applied to Mesh network distribution equipment, characterized in that: The method comprises: When the self-organizing network service is started, the slave mode is executed and a broadcast message for requesting networking is sent; Receiving the Mesh network information sent by the Mesh address management device in the method for Mesh device self-organizing network according to claim 1; Receiving a first Mesh address allocated by the Mesh address management device; Send an address confirmation message, where the address confirmation message is used to indicate that the device has obtained a Mesh address; Performing network configuration according to the Mesh network information and the first Mesh address; and When the network access is completed, stop sending the broadcast message and execute the host mode to allow other Mesh devices to complete the network access.
8. The method according to claim 7, characterized in that After sending the address confirmation message, the method further includes: Receive an address request message sent by a device to be configured, where the address request message is used to request a Mesh address; Requesting a Mesh address from the Mesh address management device according to the address request message; The second Mesh address allocated by the Mesh address management device is transmitted to the device to be configured, so that the device to be configured performs network configuration according to the Mesh network information and the second Mesh address.
9. The method according to claim 8, characterized in that The requesting a Mesh address from the Mesh address management device according to the request message includes: generating an allocation request message according to the address request message; Sending the allocation request message to the Mesh address management device to request a Mesh address; Receive a second Mesh address allocated by the Mesh address management device.
10. The method according to claim 8, characterized in that The requesting a Mesh address from the Mesh address management device according to the address request message includes: Enable Mesh network; In the Mesh network, the allocation request message is sent to the Mesh address management device to request allocation of a Mesh address.
11. A method for wireless mesh device self-organizing network, applied to the device to be configured, characterized in that: The method comprises: When the self-organizing network service is started, the slave mode is executed and a broadcast message for requesting networking is sent; Upon receiving the Mesh network information sent by the Mesh network configuration device in the method for Mesh device self-organizing network according to claim 7, sending an address request message for requesting a Mesh address; Upon receiving the second Mesh address sent by the Mesh address management device in the method for Mesh device self-organizing network according to claim 1 or the Mesh network configuration device in the method for Mesh device self-organizing network according to claim 7, sending an address confirmation message; Performing network configuration according to the Mesh network information and the second Mesh address; and When the network access is completed, stop sending the broadcast message and execute the host mode to allow other Mesh devices to complete the network access.
12. A method for wireless mesh device self-organizing network, applied to terminal equipment, characterized in that: include: Get the Mesh address pool; Receive broadcast messages from multiple Mesh devices requesting networking; Determine a Mesh address management device according to the multiple broadcast messages; Sending configuration information for networking to the Mesh address management device, so that the Mesh address management device performs network configuration and completes network access; The configuration information for networking includes Mesh network information and a Mesh address pool, and the Mesh address pool includes a plurality of available Mesh addresses to be allocated; When the Mesh address management device completes network access, it stops sending the broadcast message and executes the host mode; The Mesh address management device determines a Mesh network configuration device, and sends the Mesh network information to the Mesh network configuration device; After the Mesh address management device selects a first Mesh address from the Mesh address pool, it allocates the first Mesh address to the Mesh network configuration device, so that the Mesh network configuration device performs network configuration.
13. The method according to claim 12, characterized in that Also includes: After receiving the respective Mesh addresses and heartbeat packets sent by all Mesh devices, it is determined that the self-organizing network is completed; The heartbeat packet is used to indicate that the device has completed network access.
14. A wireless mesh device, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for wireless mesh device ad hoc networking according to any one of claims 1 to 11 when running the program instructions.
15. A terminal device, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for wireless mesh device ad hoc networking according to claim 12 or 13 when running the program instructions.
16. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the method for wireless mesh device self-organizing network according to any one of claims 1 to 13 is executed.
Citation Information
Patent Citations
Mesh networking method based on Bluetooth low energy and system thereof
CN108738005A
Method and device for network node to access network, electronic equipment and storage medium
CN113115403A