Tunnel lamp ad hoc network addressing system and method based on Bluetooth mesh
By designing a tunnel lamp self-organizing addressing system based on Bluetooth mesh, the orderly networking and addressing of lamps is realized by using forwarding flag information and networking information, the problems of time-consuming, insecure and random address allocation in traditional methods are solved, and networking efficiency and security are improved.
Patent Information
- Application Number
- CN202411792461.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-07
- Publication Date
- 2025-03-07
AI Technical Summary
In the prior art, networking and addressing of traditional Bluetooth mesh devices need to be operated through a mobile phone, which is time-consuming and unsafe, and it is difficult to allocate mesh addresses in the order of physical installation of lamps.
A tunnel lamp self-organized network addressing system based on Bluetooth mesh is designed. Through the combination of signal generation unit, signal input unit, judgment unit, distribution unit and signal output unit, the forwarding flag information and network information are used to realize the orderly networking and addressing of lamps.
It improves networking efficiency, saves labor costs, ensures that the physical installation address and mesh address of the lamp are kept in the same order, and avoids the security issues of the general Bluetooth networking method.
Smart Images

Figure CN119584144A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lamps, and in particular to a tunnel lamp ad hoc network addressing system and method based on Bluetooth mesh. Background Art
[0002] In the current state of the art, traditional Bluetooth mesh device networking and addressing primarily relies on a mobile phone acting as a provisioning initiator (Provisioner) to configure various parameters for an unprovided device. The phone searches for a provisioner, selects one, and establishes a BLE connection. Data exchange then proceeds, primarily involving configuration of mesh networking parameters such as the network key (NetKey), node key (DevKey), application key (AppKey), and the mesh address (DevAddr) that the phone actively assigns to the node.
[0003] The main features of this technical solution are: 1. One-to-one operation; 2. A BLE connection must be established, which is affected by the Bluetooth BLE transmission range and is generally stable within 50 meters; 3. The process of transmitting network configuration information takes about 10 seconds;
[0004] However, this technical solution requires operators to hold their mobile phones and move through the tunnel to connect to nearby lamps during construction. This requires operators to repeatedly connect to the network on their mobile phones and move around in the tunnel, which is time-consuming and unsafe.
[0005] Typically, mobile phones assign addresses cumulatively. For example, if node address N is assigned, the next time it will be assigned address N+1. Therefore, the way and order in which network providers select network providers affects the mesh addresses their nodes obtain. Some solutions use Bluetooth signal strength (RSS I) to prioritize selection. For example, if the provider is at location A, the theoretical strength distribution is A>B>C, and so on.
[0006] In real-world projects, the RSSI value of a node query is unstable. For example, at point A, searching for B might show -60dB one time, but -70dB the next time. If the nodes are physically far apart, it's possible to distinguish them by averaging multiple samples. However, in tunnel projects, the shortest distance between luminaires is around 2 meters, making it impossible to distinguish between B and C using RSSI. Therefore, there's a high probability that C will be selected before B, resulting in Mesh_Addr_C being smaller than Mesh_Addr_B. This makes it impossible to assign mesh addresses based on the physical order of luminaire installation.
[0007] Of course, allocation can also be done through manual selection, but the time cost will be relatively high.
[0008] There are other methods, such as patent CN202311179754, which sends mesh-related information such as network key (NetKey), node key (DevKey), and application key (AppKey) through BLE broadcast. However, it cannot solve the problem of how to assign mesh addresses according to the physical address of the lamp installation, and the address allocation is still random.
[0009] Therefore, it is necessary to solve the problems existing in the prior art. Summary of the Invention
[0010] The present invention aims to at least partially address one of the aforementioned technical problems in the prior art. To this end, one object of the present invention is to provide a Bluetooth mesh-based tunnel lighting ad hoc network addressing system and method that improves networking efficiency, saves labor costs, and enhances safety.
[0011] The technical solution of the present invention to solve the above technical problems is as follows: a tunnel lighting self-organizing network addressing system based on Bluetooth mesh, including a signal generation unit and a signal input unit, a judgment unit, a network distribution unit, and a signal output unit on the lighting fixture:
[0012] The signal generating unit is used to generate networking information D0 and send the networking information D0 to the signal input unit of the lamp;
[0013] The signal input unit is used to receive the networking information D0 and forward the networking information D0 to the judgment unit;
[0014] The judgment unit is used to judge whether the received networking information D0 contains a forwarding flag. When the networking information D0 contains the forwarding flag, the networking information D0 is discarded and new networking information D0 is received again; when the networking information D0 does not contain the forwarding flag, the forwarding flag A is added to the networking information D0, and new networking information D0A is generated and sent to the signal output unit; and the networking information D0 is forwarded to the network distribution unit.
[0015] The network distribution unit is used to form a network according to the network information D0, and at the same time address itself according to the address reported by the network information D0, generate its own network information DA, and send the network information DA to the signal output unit;
[0016] The signal output unit is used to first send the networking information D0A to the signal input unit of the next lamp, and is also used to send the networking information DA to the signal input unit of the next lamp.
[0017] On the basis of the above technical solution, the present invention can also be improved as follows.
[0018] Furthermore, the signal input unit is further configured to temporarily store the information received within a set time interval, and forward the information to the judgment unit at the end of the set time interval.
[0019] The judgment unit is further configured to judge whether all information contains a forwarding flag. If none of the information contains a forwarding flag, all information is forwarded to the distribution network unit. If all information contains a forwarding flag, all information received within a set time interval is discarded.
[0020] Furthermore, the network distribution unit is also used to reset the timer. When the reset timer times out, the network distribution status of the lamp is determined. When the network distribution unit determines that the network distribution has not been performed, the network distribution and addressing are performed according to the networking information D0 to generate the networking information DA; when the network distribution unit determines that the network distribution has been performed, new information is received again.
[0021] Furthermore, the networking information D0 includes network information, device information, application key, and node mesh address.
[0022] Furthermore, the signal input unit is an infrared receiver, and the signal output unit is an infrared outputter.
[0023] The beneficial effects of the present invention are: by forwarding flag information and networking information, the lamps in the tunnel can be controlled to be networked and addressed in an orderly manner, and personnel only need to be at the tunnel entrance to complete the networking work of the entire tunnel lamps; improve networking efficiency and save labor costs; after the networking is completed, the physical installation address and mesh address of the lamp end can keep the same order, solving the existing solution that requires one-to-one entry of the MESH address and installation address of the lamp after networking, saving labor costs; the networking data of the lamp network is an infrared custom message, which can avoid the security problems existing in the general Bluetooth networking method.
[0024] Another technical solution of the present invention to solve the above technical problems is as follows: A tunnel lighting self-organizing network addressing method based on Bluetooth mesh includes the following steps:
[0025] The signal generating unit generates the networking information D0, sends the networking information D0 to the signal input unit of the lamp, and the signal input unit forwards the networking information D0 to the judging unit;
[0026] The judgment unit judges whether the received networking information D0 contains a forwarding flag. If the networking information D0 contains a forwarding flag, the new networking information D0 is received again. If the networking information D0 does not contain a forwarding flag, the forwarding flag A is added to the networking information D0 to generate new networking information D0A and send it to the signal output unit. At the same time, the networking information D0 is forwarded to the network distribution unit. The signal output unit sends the networking information D0A to the signal input unit of the next lamp.
[0027] The network distribution unit performs networking according to the networking information D0, and at the same time, adds 1 to its own address according to the address reported by the networking information D0, generates its own networking information DA, and sends the networking information DA to the signal output unit; the signal output unit sends the networking information DA to the signal input unit of the next lamp.
[0028] The beneficial effects of the present invention are: by forwarding flag information and networking information, the lamps in the tunnel can be controlled to be networked and addressed in an orderly manner, and personnel only need to be at the tunnel entrance to complete the networking work of the entire tunnel lamps; improve networking efficiency and save labor costs; after the networking is completed, the physical installation address and mesh address of the lamp end can keep the same order, solving the existing solution that requires one-to-one entry of the MESH address and installation address of the lamp after networking, saving labor costs; the networking data of the lamp network is an infrared custom message, which can avoid the security problems existing in the general Bluetooth networking method. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 This is a module block diagram of a tunnel lighting ad hoc network addressing system based on Bluetooth mesh according to the present invention;
[0030] Figure 2 This is a flow chart of a Bluetooth mesh-based tunnel lighting ad hoc network addressing method according to the present invention.
[0031] In the accompanying drawings, the components represented by the reference numerals are as follows:
[0032] 1. Signal generation unit, 2. Signal input unit, 3. Judgment unit, 4. Network distribution unit, 5. Signal output unit. DETAILED DESCRIPTION
[0033] The principles and features of the present invention are described below with reference to the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.
[0034] Example 1:
[0035] like Figure 1As shown, a tunnel lamp self-organizing network addressing system based on Bluetooth mesh includes a signal generating unit 1 and a signal input unit 2 on the lamp, a judgment unit 3, a network distribution unit 4, and a signal output unit 5:
[0036] The signal generating unit 1 is used to generate networking information D0 and send the networking information D0 to the signal input unit 2 of the lamp;
[0037] The signal input unit 2 is used to receive the networking information D0 and forward the networking information D0 to the judgment unit 3;
[0038] The judgment unit 3 is used to judge whether the received networking information D0 contains a forwarding flag. When the networking information D0 contains the forwarding flag, the networking information D0 is discarded and new networking information D0 is received again; when the networking information D0 does not contain the forwarding flag, the forwarding flag A is added to the networking information D0, and new networking information D0A is generated and sent to the signal output unit 5; and the networking information D0 is forwarded to the network distribution unit 4.
[0039] The network distribution unit 4 is used to form a network according to the network information D0, and at the same time address itself according to the address reported by the network information D0, generate its own network information DA, and send the network information DA to the signal output unit 5;
[0040] The signal output unit 5 is used to first send the networking information D0A to the signal input unit 2 of the next lamp, and is also used to send the networking information DA to the signal input unit 2 of the next lamp.
[0041] In the above embodiment, the signal input unit 2 is further used to temporarily store the information received within the set time interval, and forward the information to the judgment unit 3 when the set time interval ends.
[0042] The judgment unit 3 is further configured to judge whether all information contains a forwarding flag. If no information contains a forwarding flag, all information is forwarded to the network distribution unit 4. If all information contains a forwarding flag, all information received within a set time interval is discarded.
[0043] In the above embodiment, the network distribution unit 4 is also used to reset the timer. When the reset timer times out, the network distribution status of the lamp is determined. When the network distribution unit 4 determines that the network distribution has not been performed, the network distribution and addressing are performed according to the networking information D0 to generate the networking information DA; when the network distribution unit 4 determines that the network distribution has been performed, new information is received again.
[0044] In the above embodiment, the networking information D0 includes network information, device information, application key, and node mesh address.
[0045] In the above embodiment, the signal input unit 2 is an infrared receiver, and the signal output unit 5 is an infrared output device.
[0046] In a specific application of this embodiment, the signal generating unit 1 generates networking information D0 and sends the networking information D0 to the lamp A. After the signal input unit 2 of the lamp A receives the networking information D0, it temporarily stores the information received within the set time interval, and forwards the used information to the judging unit 3 at the end of the set time interval; the judging unit 3 first judges whether all the received information contains a forwarding flag. When the networking information D0 in all the information contains a forwarding flag, all the information received within the set time interval is discarded, and new information is received again; when all the information does not contain a forwarding flag, the networking information D0 is set to a network-configurable state, and a forwarding flag A is added to the networking information D0, and new networking information D0A is generated and sent to the signal output unit 5. The signal output unit 5 sends the networking information D0A to the signal input unit 2 of the next lamp B; after the signal input unit 2 of the lamp B receives the networking information D0A containing the forwarding flag A, it suspends networking and receives new information again;
[0047] The network distribution unit 4 of lamp A resets the timer. When the reset timer times out, the network distribution status of lamp A is detected. If lamp A determines that network distribution has not been completed, the network distribution unit 4 performs network distribution and addressing according to the network information D0, and generates network information DA and sends it to the signal output unit 5. The signal output unit 5 sends the network information DA to the signal input unit 2 of the next lamp B. If the network distribution unit 4 determines that network distribution has been completed, the network information D0 is not processed.
[0048] After receiving networking information D0A, luminaire B determines whether it contains a forwarding flag. If so, it pauses networking and re-receives new information. After receiving networking information DA, luminaire B determines whether it contains a forwarding flag. If not, it generates flag information D0B and forwards it to the next luminaire, C. Networking and addressing are performed using networking information DA, and upon completion, networking information DB is generated. This allows for networking and addressing of all luminaires within a tunnel.
[0049] This embodiment controls the orderly networking and addressing of lamps in the tunnel by forwarding flag information and networking information. Personnel only need to be at the tunnel entrance to complete the networking of the entire tunnel lamps; improve networking efficiency and save labor costs; after the networking is completed, the physical installation address and mesh address of the lamp end can maintain the same order, solving the existing solution that requires one-to-one entry of the MESH address and installation address of the lamp after networking, saving labor costs; the networking data of the lamp network is a custom infrared message, which can avoid the security issues existing in the general Bluetooth networking method.
[0050] Example 2:
[0051] like Figure 2 As shown, a method for addressing tunnel lighting fixtures in a self-organizing network based on Bluetooth mesh includes the following steps:
[0052] The signal generating unit 1 generates the networking information D0 and sends the networking information D0 to the signal input unit 2 of the lamp. The signal input unit 2 forwards the networking information D0 to the judging unit 3.
[0053] The judgment unit 3 judges whether the received networking information D0 contains a forwarding flag. If the networking information D0 contains a forwarding flag, the judgment unit 3 receives new networking information D0. If the networking information D0 does not contain a forwarding flag, the judgment unit 3 adds a forwarding flag A to the networking information D0, generates new networking information D0A, and sends it to the signal output unit 5. The judgment unit 3 also forwards the networking information D0 to the network distribution unit 4. The signal output unit 5 sends the networking information D0A to the signal input unit 2 of the next lamp.
[0054] The network distribution unit 4 performs networking according to the networking information D0, and at the same time, adds 1 to its own address according to the address reported by the networking information D0, generates its own networking information DA, and sends the networking information DA to the signal output unit 5; the signal output unit 5 sends the networking information DA to the signal input unit 2 of the next lamp.
[0055] The above embodiment further includes the following steps: the signal input unit 2 temporarily stores the information received within the set time interval, and forwards the information to the judgment unit 3 at the end of the set time interval.
[0056] The judgment unit 3 judges whether all information contains a forwarding flag. When all information does not contain a forwarding flag, all information is forwarded to the distribution network unit 4; when all information contains a forwarding flag, all information received within a set time interval is discarded.
[0057] The above embodiment also includes the following steps: the network distribution unit 4 resets the timer, and when the reset timer times out, the network distribution status of the lamp is judged. When the network distribution unit 4 determines that the network distribution has not been performed, the network distribution and addressing are performed according to the networking information D0 to generate the networking information DA; when the network distribution unit 4 determines that the network distribution has been performed, new information is received again.
[0058] In the above embodiment, the networking information D0 includes network information, device information, application key, and node mesh address.
[0059] In the above embodiment, the signal input unit 2 is an infrared receiver, and the signal output unit 5 is an infrared output device.
[0060] In a specific application of this embodiment, the signal generating unit 1 generates networking information D0 and sends the networking information D0 to the lamp A. After the signal input unit 2 of the lamp A receives the networking information D0, it temporarily stores the information received within the set time interval, and forwards the used information to the judging unit 3 at the end of the set time interval; the judging unit 3 first judges whether all the received information contains a forwarding flag. When the networking information D0 in all the information contains a forwarding flag, all the information received within the set time interval is discarded, and new information is received again; when all the information does not contain a forwarding flag, the networking information D0 is set to a network-configurable state, and a forwarding flag A is added to the networking information D0, and new networking information D0A is generated and sent to the signal output unit 5. The signal output unit 5 sends the networking information D0A to the signal input unit 2 of the next lamp B; after the signal input unit 2 of the lamp B receives the networking information D0A containing the forwarding flag A, it suspends networking and receives new information again;
[0061] The network distribution unit 4 of lamp A resets the timer. When the reset timer times out, the network distribution status of lamp A is detected. If lamp A determines that network distribution has not been completed, the network distribution unit 4 performs network distribution and addressing according to the network information D0, and generates network information DA and sends it to the signal output unit 5. The signal output unit 5 sends the network information DA to the signal input unit 2 of the next lamp B. If the network distribution unit 4 determines that network distribution has been completed, the network information D0 is not processed.
[0062] After receiving networking information D0A, luminaire B determines whether it contains a forwarding flag. If so, it pauses networking and re-receives new information. After receiving networking information DA, luminaire B determines whether it contains a forwarding flag. If not, it generates flag information D0B and forwards it to the next luminaire, C. Networking and addressing are performed using networking information DA, and upon completion, networking information DB is generated. This allows for networking and addressing of all luminaires within a tunnel.
[0063] This embodiment controls the orderly networking and addressing of lamps in the tunnel by forwarding flag information and networking information. Personnel only need to be at the tunnel entrance to complete the networking of the entire tunnel lamps; improve networking efficiency and save labor costs; after the networking is completed, the physical installation address and mesh address of the lamp end can maintain the same order, solving the existing solution that requires one-to-one entry of the MESH address and installation address of the lamp after networking, saving labor costs; the networking data of the lamp network is a custom infrared message, which can avoid the security issues existing in the general Bluetooth networking method.
[0064] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A tunnel lighting ad hoc network addressing system based on Bluetooth mesh, characterized in that: It comprises a signal generating unit (1), a signal input unit (2) on the lamp, a judging unit (3), a network distribution unit (4), and a signal output unit (5): The signal generating unit (1) is used to generate networking information D0 and send the networking information D0 to the signal input unit (2) of the lamp; The signal input unit (2) is used to receive the networking information D0 and forward the networking information D0 to the judgment unit (3); The judgment unit (3) is used to judge whether the received networking information D0 contains a forwarding flag. When the networking information D0 contains the forwarding flag, the networking information D0 is discarded and new networking information D0 is received again; when the networking information D0 does not contain the forwarding flag, a forwarding flag A is added to the networking information D0, and new networking information D0A is generated and sent to the signal output unit (5); and the networking information D0 is forwarded to the network distribution unit (4). The network distribution unit (4) is used to form a network according to the network information D0, and at the same time address itself according to the address reported by the network information D0, generate its own network information DA, and send the network information DA to the signal output unit (5); The signal output unit (5) is used to first send the networking information D0A to the signal input unit (2) of the next lamp, and is also used to send the networking information DA to the signal input unit (2) of the next lamp.
2. The Bluetooth mesh-based tunnel lighting ad hoc network addressing system according to claim 1 is characterized in that: The signal input unit (2) is also used to temporarily store the information received within a set time interval, and forward the information to the judgment unit (3) at the end of the set time interval. The judgment unit (3) is also used to judge whether all information contains a forwarding flag. When all information does not contain a forwarding flag, all information is forwarded to the distribution network unit (4); when all information contains a forwarding flag, all information received within a set time interval is discarded.
3. The Bluetooth mesh-based tunnel lighting ad hoc network addressing system according to claim 1 is characterized in that: The network configuration unit (4) is also used to reset the timer. When the reset timer times out, the network configuration state of the lamp is determined. When the network configuration unit (4) determines that the network configuration has not been performed, network configuration and addressing are performed according to the networking information D0 to generate networking information DA. When the network configuration unit (4) determines that the network configuration has been performed, new information is received again.
4. According to the Bluetooth mesh-based tunnel lighting self-organizing network addressing system according to claim 1, the networking information D0 includes network information, device information, application key, and node mesh address.
5. According to the Bluetooth mesh-based tunnel lighting ad hoc network addressing system according to claim 1, the signal input unit (2) is an infrared receiver, and the signal output unit (5) is an infrared output device.
6. A method for addressing tunnel lamps in a self-organizing network based on Bluetooth mesh, characterized in that: Using the Bluetooth mesh-based tunnel lighting ad hoc network addressing system as described in any one of claims 1 to 4, comprising the following steps: The signal generation unit (1) generates networking information D0, and sends the networking information D0 to the signal input unit (2) of the lamp, and the signal input unit (2) forwards the networking information D0 to the judgment unit (3); The judgment unit (3) judges whether the received networking information D0 contains a forwarding flag, and when the networking information D0 contains the forwarding flag, receives new networking information D0 again; when the networking information D0 does not contain the forwarding flag, adds a forwarding flag A to the networking information D0, generates new networking information D0A and sends it to the signal output unit (5); and forwards the networking information D0 to the network distribution unit (4); the signal output unit (5) sends the networking information D0A to the signal input unit (2) of the next lamp; The network distribution unit (4) performs networking according to the networking information D0, and at the same time, adds 1 to its own address according to the address reported by the networking information D0, generates its own networking information DA, and sends the networking information DA to the signal output unit (5); the signal output unit (5) sends the networking information DA to the signal input unit (2) of the next lamp.
Citation Information
Patent Citations
Rapid network distribution method for Bluetooth Mesh network
CN117156471A
