A roadway lamp networking method, device and equipment and readable storage medium
By establishing a serial network in the tunnel lights using 2.4G wireless and UWB technologies, the problem of unstable signal transmission in complex environments such as mine tunnels was solved, enabling effective monitoring and control of tunnel lights over long distances.
Patent Information
- Application Number
- CN202211381125.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-06
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2042-11-06
AI Technical Summary
In complex environments such as mine tunnels, the signal transmission between the tunnel lights and the processor is unstable, leading to inaccurate monitoring and control of tunnel lights at greater distances.
Using 2.4G wireless networking protocol and UWB technology, the system detects nearby streetlights through the first streetlight, measures the distance and assigns a network address code, and establishes a serial network step by step to ensure that the signal is transmitted step by step.
This technology enables any roadway light to serve as a signal relay point during signal transmission, ensuring that signals are transmitted to roadway lights at greater distances, thus achieving effective monitoring and control.
Smart Images

Figure CN115835247B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of laneway lamp networking, in particular to a laneway lamp networking method, device, equipment and readable storage medium. BACKGROUND
[0002] In some narrow alleys between cells and high buildings, and mining tunnels such as coal mines and gold mines, multiple laneway lamps are usually installed at intervals for lighting. For deep laneways, there are more laneway lamps, and in order to facilitate management and control, it is necessary to network the laneway lamps. At present, the networking method of laneway lamps is usually to connect each laneway lamp with a processor through a wireless network, and the processor receives the signals of each laneway lamp and controls each laneway lamp. However, for complex laneways such as mine tunnels, the signal transmission between the laneway lamps far away from the processor is still unstable, which will lead to inaccurate monitoring and control of the laneway lamps far away, so that the information such as brightness failure of each laneway lamp cannot be effectively obtained. SUMMARY
[0003] The problem solved by the present application is how to accurately receive the signals of the laneway lamps far away in order to effectively monitor and control each laneway lamp.
[0004] To solve the above problems, in a first aspect, the present application provides a laneway lamp networking method, comprising the following steps:
[0005] The first laneway lamp is taken as a master laneway lamp, and each slave laneway lamp near the first laneway lamp is detected according to a 2.4G wireless networking protocol.
[0006] The distances between the first laneway lamp and each slave laneway lamp are measured by UWB technology to obtain the slave laneway lamp closest to the first laneway lamp, which is taken as a second laneway lamp.
[0007] The first laneway lamp automatically obtains a network address code by the 2.4G wireless networking protocol, and assigns the network address code to the second laneway lamp to complete the network connection of the second laneway lamp.
[0008] The second laneway lamp, the third laneway lamp,..., and the Nth laneway lamp are taken as master laneway lamps in turn, and each step is repeated to complete the network connection of the Nth laneway lamp and the N+1th laneway lamp, so as to form a serial network of all laneway lamps; wherein N≥2, and the N+1th laneway lamp is the laneway lamp closest to the Nth laneway lamp except the first laneway lamp to the N-1th laneway lamp.
[0009] Optionally, after forming a serial network of all laneway lamps, the following steps are further included:
[0010] The instruction issued by the first roadway lamp receiving processor is transmitted to the second roadway lamp, the third roadway lamp,..., the N-1 roadway lamp and the N roadway lamp in sequence through a serial network, until the instruction is transmitted to the last roadway lamp, wherein N is greater than or equal to 2.
[0011] The N roadway lamp sends back code information to the N-1 roadway lamp after receiving the instruction transmitted by the N-1 roadway lamp, and the N-1 roadway lamp transmits the code information to the N-2 roadway lamp,..., the second roadway lamp transmits the code information to the first roadway lamp, and the first roadway lamp transmits the code information to the processor.
[0012] Optionally, the roadway lamp networking method further comprises the following steps:
[0013] When the N-1 roadway lamp does not receive the code information sent back by the N roadway lamp, the N-1 roadway lamp continuously transmits the instruction to the N roadway lamp for a predetermined number of times.
[0014] If the N-1 roadway lamp does not receive the code information sent back by the N roadway lamp during the process of continuously transmitting the instruction to the N roadway lamp for a predetermined number of times, it is determined that the N roadway lamp is faulty, and the N-1 roadway lamp transmits the instruction to the N+1 roadway lamp by increasing the signal transmission power.
[0015] Optionally, the first roadway lamp is taken as the master roadway lamp, and each slave roadway lamp near the first roadway lamp is detected according to the 2.4G wireless networking protocol, which comprises:
[0016] Each roadway lamp is respectively given a physical address code, and one of the roadway lamps is designated as the first roadway lamp, and the remaining roadway lamps are designated as slave roadway lamps of the first roadway lamp.
[0017] According to the 2.4G wireless networking protocol, the first roadway lamp sends a detection signal every certain time, and the slave roadway lamp receiving the detection signal sends back its physical address code to the first roadway lamp.
[0018] The first roadway lamp receives the physical address code of the slave roadway lamp and sends a detection completion code back to the slave roadway lamp to complete the detection of the slave roadway lamp.
[0019] When the first roadway lamp does not receive the physical address code sent back by the slave roadway lamp after continuously sending the detection signal for a predetermined number of times, the detection of the slave roadway lamp near the first roadway lamp is completed.
[0020] Optionally, the first roadway lamp is taken as the master roadway lamp, and each slave roadway lamp near the first roadway lamp is detected according to the 2.4G wireless networking protocol, which further comprises:
[0021] If the number of slave tunnel lights detected by the first tunnel light is less than the actual number, the first tunnel light sends a detection signal again and increases the transmission power of the detection signal for re-detection; if the number of slave tunnel lights detected is still less than the actual number, an error is reported;
[0022] If the number of slave tunnel lights detected by the Nth tunnel light is less than the actual number, the Nth tunnel light sends a detection signal again and increases the transmission power of the detection signal for re-detection, where N≥2;
[0023] If the number of slave tunnel lights of the Nth tunnel light is still less than the actual number, the N-1th tunnel light is requested to also increase the transmission power, and the Nth tunnel light and the N-1th tunnel light detect the slave tunnel lights of the Nth tunnel light; if the number of detected slave tunnel lights is still less than the actual number, an error is reported; where N≥2.
[0024] Optionally, the distance between the first tunnel light and each slave tunnel light is measured by the UWB technology to obtain the slave tunnel light closest to the first tunnel light, and the slave tunnel light is taken as the second tunnel light.
[0025] The first tunnel light sends a predetermined number of measurement signals to each slave tunnel light by the UWB technology, where the time interval between adjacent two measurement signals is the same.
[0026] The distance between the first tunnel light and each slave tunnel light is measured by the UWB technology according to the measurement signals, where the measured distance between each slave tunnel light and the first tunnel light is a plurality of values.
[0027] The maximum value and the minimum value of the plurality of distance values between each slave tunnel light and the first tunnel light are removed, and the average value of the remaining distance values is obtained to obtain the final distance value between each slave tunnel light and the first tunnel light.
[0028] The final distance values between each slave tunnel light and the first tunnel light are compared to obtain the slave tunnel light with the minimum final distance value, and the slave tunnel light is taken as the second tunnel light.
[0029] Optionally, the distance between the first tunnel light and each slave tunnel light is measured by the UWB technology to obtain the slave tunnel light closest to the first tunnel light, and the slave tunnel light is taken as the second tunnel light.
[0030] If the number of slave tunnel lights of the first tunnel light with the valid final distance value is less than the actual number of slave tunnel lights, the first tunnel light increases the transmission power of the UWB to measure the distance of each slave tunnel light again.
[0031] If the number of slave tunnel lamps of the Nth tunnel lamp with the effective final distance value is less than the actual number of slave tunnel lamps or more than two slave tunnel lamps of the Nth tunnel lamp are measured to have a distance difference of no more than one meter, the transmission power of the UWB of the Nth tunnel lamp is increased again to measure the distance of each slave tunnel lamp of the Nth tunnel lamp, wherein N is greater than or equal to 2.
[0032] If the number of slave tunnel lamps of the Nth tunnel lamp is still less than the actual number of slave tunnel lamps after the distance is measured again, the N-1th tunnel lamp is requested to also increase the transmission power of the UWB, and the distance of the slave tunnel lamp of the Nth tunnel lamp is measured together with the Nth tunnel lamp, wherein N is greater than or equal to 2.
[0033] Compared with the prior art, the first tunnel lamp is taken as a master tunnel lamp, each slave tunnel lamp near the first tunnel lamp is detected according to a 2.4G wireless networking protocol, the distance between the first tunnel lamp and each slave tunnel lamp is measured by UWB technology according to the detected slave tunnel lamp of the first tunnel lamp, the slave tunnel lamp closest to the first tunnel lamp is obtained and taken as a second tunnel lamp, a network address code is automatically obtained by the first tunnel lamp through the 2.4G wireless networking protocol, and the network address code is assigned to the second tunnel lamp to complete the network connection of the first tunnel lamp and the second tunnel lamp, the second tunnel lamp is taken as a master tunnel lamp, the above steps are repeated to obtain a third tunnel lamp and complete the network establishment between the second tunnel lamp and the third tunnel lamp, and the above steps are sequentially repeated to obtain an N+1th tunnel lamp through an Nth tunnel lamp and complete the network establishment between the Nth tunnel lamp and the N+1th tunnel lamp, so that all tunnel lamps form a serial network, and in the signal transmission process, any tunnel lamp can be taken as a signal relay point to transmit the received signal to the next tunnel lamp closest to it, so that the signal can be transmitted to a long distance through step-by-step transmission, and the signal of a tunnel lamp at a long distance can be received to facilitate effective monitoring and control of each tunnel lamp.
[0034] In a second aspect, the application also provides a tunnel lamp networking device, which comprises:
[0035] The detection module is configured to take the first tunnel lamp as a master tunnel lamp, detect each slave tunnel lamp near the first tunnel lamp according to a 2.4G wireless networking protocol, and measure the distance between the first tunnel lamp and each slave tunnel lamp by UWB technology to obtain a slave tunnel lamp closest to the first tunnel lamp and take the slave tunnel lamp as a second tunnel lamp.
[0036] The distance measuring module is configured to measure the distance between the first tunnel lamp and each slave tunnel lamp by UWB technology to obtain a slave tunnel lamp closest to the first tunnel lamp and take the slave tunnel lamp as a second tunnel lamp.
[0037] The code assignment module is configured to automatically acquire a network address code by the first laneway lamp through a 2.4G wireless networking protocol, and assign the network address code to the second laneway lamp to complete the network connection between the first and second laneway lamps.
[0038] The string networking module is configured to sequentially take the second, third, and Nth laneway lamps as master laneway lamps, and repeat the above steps to complete the network connection between the Nth and N+1th laneway lamps, thereby forming a serial network of all the laneway lamps, where N≥2, and the N+1th laneway lamp is the laneway lamp closest to the Nth laneway lamp among the laneway lamps other than the first to N-1th laneway lamps.
[0039] Therefore, the laneway lamp networking device is used to implement the above laneway lamp networking method, and thus has all the technical effects of the above laneway lamp networking method.
[0040] In a third aspect, the present application further provides a laneway lamp networking device, which comprises a processor, a memory, and a plurality of laneway lamps, the laneway lamps comprising a processing module, a storage module, a receiver, a transmitter, and a lighting lamp, the processing module being electrically connected with the storage module, the receiver, the transmitter, and the lighting lamp, respectively, the processor being in communication connection with the receiver of a first laneway lamp among the laneway lamps, and the transmitter of any of the laneway lamps being in communication connection with the receivers of the remaining laneway lamps.
[0041] The memory stores computer executable instructions, which, when executed by the processor, implement the laneway lamp networking method according to any one of claims 1-7.
[0042] Therefore, since the technical scheme of the laneway lamp networking device at least comprises all the technical schemes of the above laneway lamp networking method, the laneway lamp networking device at least has all the technical effects of the above laneway lamp networking method.
[0043] In a fourth aspect, the present application further provides a computer readable storage medium, which stores a computer program, and when the computer program is read and run by a processor, the laneway lamp networking method according to any one of claims 1-7 is implemented.
[0044] Therefore, since the technical scheme of the computer readable storage medium at least comprises all the technical schemes of the above laneway lamp networking method, the computer readable storage medium at least has all the technical effects of the above laneway lamp networking method. BRIEF DESCRIPTION OF DRAWINGS
[0045] Figure 1 FIG. 1 is a structural connection diagram of a laneway lamp networking device according to an embodiment of the present application;
[0046] Figure 2 FIG. 2 is a flowchart of a laneway lamp networking method according to an embodiment of the present application;
[0047] Figure 3 The structural connection diagram of the roadway lamp networking device of the embodiment of the present application.
[0048] The label explanation: 1-detection module; 2-range finding module; 3-coding module; 4-string network module. DETAILED DESCRIPTION
[0049] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0050] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.
[0051] In the description of the present application, it should be noted that, unless otherwise explicitly specified and limited, the terms "set", "mount", "connected", "connected" should be understood broadly, for example, it can be fixedly connected, or it can be detachably connected, or integrally connected; it can be mechanically connected; it can be directly connected, or indirectly connected through an intermediate medium; it can be the communication inside two elements. For those skilled in the art, the specific meaning of the above-mentioned terms in the present application can be understood according to the specific circumstances.
[0052] In the description of the present application, the description of the terms "embodiment", "one embodiment" and "one embodiment" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or embodiment are included in at least one embodiment or embodiment of the present application. In the present application, the illustrative description of the above terms does not necessarily refer to the same embodiment or embodiment. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or embodiments in a suitable manner.
[0053] To solve the above problems, as Figure 1 shown, the embodiment of the present application provides a roadway lamp networking device, which comprises a processor, a memory and a plurality of roadway lamps, the roadway lamp comprising a processing module, a storage module, a receiver, a transmitter and a lighting lamp, the processing module being electrically connected with the storage module, the receiver, the transmitter and the lighting lamp respectively, the processor being in communication connection with the receiver of the first roadway lamp in the roadway lamp, and the transmitter of any roadway lamp being in communication connection with the receiver of the remaining roadway lamps.
[0054] The memory stores computer executable instructions which, when executed by the processor, implement the laneway lamp networking method as described above.
[0055] It should be noted that each laneway lamp is distributed in the laneway according to the actual situation of the laneway, the installation distance of two adjacent laneway lamps is usually greater than one meter, and each laneway lamp is connected through a 2.4G wireless network and a UWB wireless network; the laneway lamp closest to the laneway opening is selected as the first laneway lamp from each laneway lamp, the receiver of the first laneway lamp is used to receive the instruction sent by the processor through the wireless network, then the instruction is transmitted to the processing module of the first laneway lamp, the instruction is transmitted to the storage module of the first laneway lamp after being processed by the processing module of the first laneway lamp, and the lighting lamp is controlled according to the instruction, the processing module of the first laneway lamp transmits the instruction to other laneway lamps through the transmitter of the first laneway lamp according to the received instruction, the receiver of other laneway lamps receives the instruction and transmits the instruction to the processing module of the laneway lamp to execute the instruction.
[0056] Specific networking process: take the first roadway lamp as the master roadway lamp, the receiver of the first roadway lamp receives the networking instruction issued by the processor, and transmits the instruction to the processing module of the first roadway lamp. After processing by the processing module, the transmitter transmits detection signals to each roadway lamp near it under the 2.4G wireless network. Each roadway lamp near the first roadway lamp is a slave roadway lamp of the first roadway lamp. The receiver of each slave roadway lamp receives the instruction transmitted by the transmitter of the first roadway lamp, and transmits the instruction to the processing module of the slave roadway lamp for processing. Then the processing module of the slave roadway lamp transmits code information to the first roadway lamp through the transmitter of the slave roadway lamp. The physical address code of the slave roadway lamp is transmitted back to the first roadway lamp, which is received by the receiver of the first roadway lamp and stored in the storage module of the first roadway lamp. Wherein, the physical address code of each roadway lamp is equivalent to the marker of the roadway lamp. Storing the physical address code of the first roadway lamp in the storage module of the first roadway lamp facilitates the first roadway lamp to identify each slave roadway lamp and subsequent information interaction with each slave roadway lamp. According to the physical address code of each slave roadway lamp detected by the first roadway lamp, the processing module of the first roadway lamp transmits measurement signals to each slave roadway lamp through the transmitter under the UWB wireless network. After the receiver of each slave roadway lamp receives the measurement signal, the measurement signal is transmitted to the processing module of the slave roadway lamp for processing. The processed signal is sent to the receiver of the first roadway lamp through the transmitter of the slave roadway lamp. After the receiver of the first roadway lamp receives the signal, the signal is transmitted to the processing module of the first roadway lamp. The processing module of the first roadway lamp measures the distance between each slave roadway lamp and the first roadway lamp according to the time stamp recorded during the data frame transmission process between the first roadway lamp and the slave roadway lamp, and selects the slave roadway lamp closest to the first roadway lamp as the second roadway lamp from the distance. Then the processing module of the first roadway lamp transmits the networking instruction to the second roadway lamp under the 2.4G wireless network according to the network address code is obtained according to the networking rules, and the protocol data of the network address code is sent to the second alley lamp through the transmitter of the first alley lamp. After the receiver of the second alley lamp receives the protocol data, it is transmitted to the processing module of the second alley lamp for processing. The processing module of the second alley lamp transmits the processed response data to the receiver of the first alley lamp through its transmitter after processing the protocol data. The receiver of the first alley lamp transmits the response data to its processing module, and the coding work of the first alley lamp to the second alley lamp is completed, that is, the networking of the first alley lamp and the second alley lamp is completed. Then take the second alley lamp as the master alley lamp, detect the alley lamps near the second alley lamp as the slave alley lamps of the second alley lamp, this slave alley lamp of the second alley lamp does not include the first alley lamp which has been coded to the second alley lamp, measure the distance between the second alley lamp and its each slave alley lamp, take the slave alley lamp as the third alley lamp, then code the third alley lamp by the second alley lamp, and the networking of the second alley lamp and the third alley lamp is completed. The process of detecting the slave alley lamp of the second alley lamp, measuring the slave alley lamp closest to the second alley lamp and coding the third alley lamp by the second alley lamp is the same as the process of detecting the slave alley lamp of the first alley lamp, measuring the slave alley lamp closest to the first alley lamp and coding the second alley lamp by the first alley lamp. Then repeat the above process in turn, take the third alley lamp as the master alley lamp to determine the fourth alley lamp and code the fourth alley lamp, take the fourth alley lamp as the master alley lamp to determine the fifth alley lamp and code the fifth alley lamp,..., take the Nth alley lamp as the master alley lamp to determine the N+1th alley lamp and code the N+1th alley lamp, until the coding of all alley lamps is completed, so as to form a serial network with all alley lamps. In the signal transmission process, any alley lamp can be used as a signal relay point to transmit the received signal to the next alley lamp, so as to transmit the signal to a long distance and receive the signal of the alley lamp at a long distance, so as to effectively monitor and control each alley lamp.
[0057] The memory stores computer executable instructions, which are executed by the processor to transmit the instructions to the first alley lamp by the processor, and transmitted to the last alley lamp by the first alley lamp in stages, so as to realize the method of alley lamp networking.
[0058] In the embodiment, the processor can include one or more processing cores, the processor connects various parts in the laneway lamp networking device by various interfaces and lines, executes various functions of the laneway lamp networking device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory and calling data in the memory, and the processor can be implemented in at least one hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA) and a programable logic array (PLA). The processor can be integrated with a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU) and a modem. The CPU is mainly used for processing an operating system, a user interface and an application program. The GPU is used for rendering and drawing content to be displayed on the touch display screen. The modem is used for processing wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor, but can be implemented by a separate chip.
[0059] The memory can include a random access memory (RAM) and a read-only memory (ROM). Optionally, the memory includes a non-transitory computer-readable storage medium. The memory can be used to store instructions, programs, codes, code sets or instruction sets. The memory can include a program storage area and a data storage area. The program storage area can store instructions for implementing an operating system, instructions for at least one function (such as touch instructions), instructions for implementing various method embodiments, and the like. The data storage area can store data involved in the above-mentioned various method embodiments and the like. The memory can also be at least one storage device located away from the above-mentioned processor.
[0060] As shown in Figure 2 The embodiment of the application further provides a laneway lamp networking method, including the following steps:
[0061] S1: taking a first laneway lamp as a master laneway lamp, detecting each slave laneway lamp near the first laneway lamp according to a 2.4G wireless networking protocol;
[0062] S2: measuring the distance between the first roadway lamp and each of the slave roadway lamps by UWB technology to obtain the slave roadway lamp closest to the first roadway lamp and take it as the second roadway lamp;
[0063] S3: automatically obtaining a network address code by the first roadway lamp through the networking protocol of 2.4G wireless network and assigning the network address code to the second roadway lamp to complete the network connection between the first and second roadway lamps;
[0064] S4: taking the second, third, …, and Nth roadway lamps as the master roadway lamp in turn and repeating the above steps to complete the network connection between the Nth and N+1th roadway lamps, thereby forming a serial network of all the roadway lamps; wherein N≥2, and the N+1th roadway lamp is the roadway lamp closest to the Nth roadway lamp except the first to N-1th roadway lamps.
[0065] It should be noted that in step S1, one of the roadway lamps is selected as the first roadway lamp and taken as the master roadway lamp, and generally the one closest to the roadway opening is selected as the first roadway lamp; the first roadway lamp detects each of the roadway lamps in its vicinity according to the 2.4G wireless network, and each of the roadway lamps in the vicinity of the first roadway lamp is the slave roadway lamp of the first roadway lamp to facilitate the networking of the first roadway lamp and its slave roadway lamps.
[0066] In step S2, after the first roadway lamp detects the slave roadway lamps in its vicinity, the first roadway lamp measures the distance between each of the slave roadway lamps and the first roadway lamp by UWB wireless network technology, compares the measured distances, and obtains the slave roadway lamp closest to the first roadway lamp, which is taken as the second roadway lamp.
[0067] In step S3, after the slave roadway lamp closest to the first roadway lamp, i.e., the second roadway lamp, is determined, the first roadway lamp automatically obtains a network address code according to the networking protocol of 2.4G wireless network and assigns the network address code to the second roadway lamp, thereby completing the network connection between the first and second roadway lamps.
[0068] In step S4, the second roadway lamp is taken as the main roadway lamp, and the above steps S1 and S2 are repeated to determine the slave roadway lamp closest to the second roadway lamp, which is taken as the third roadway lamp. In the repeated step S2, the first roadway lamp with the network address code of the second roadway lamp is not included in the ranging roadway lamps, and then the repeated step S3 is performed to assign a new network address code to the second roadway lamp by the third roadway lamp and complete the network connection between the second roadway lamp and the third roadway lamp. Then, the third roadway lamp is taken as the main roadway lamp, and the above steps S1 and S2 are repeated to determine the fourth roadway lamp, and then the repeated step S3 is performed to assign a new network address code to the third roadway lamp by the fourth roadway lamp and complete the network connection between the third roadway lamp and the fourth roadway lamp. In this way, the slave roadway lamp closest to the Nth roadway lamp is determined by repeating the steps S1 and S2, which is taken as the N+1th roadway lamp. The N+1th roadway lamp is the roadway lamp closest to the Nth roadway lamp except the first roadway lamp to the N-1th roadway lamp. Then, the repeated step S3 is performed to assign a new network address code to the Nth roadway lamp by the N+1th roadway lamp and complete the network connection between the Nth roadway lamp and the N+1th roadway lamp. The network coding of all the roadway lamps is completed, and the networking of all the roadway lamps is completed.
[0069] The roadway lamp networking completed by the method is a serial network. In the signal transmission process, any roadway lamp can be taken as a signal relay point to transmit the received signal to the next roadway lamp closest to it, so that the signal can be transmitted to a farther distance by the step-by-step transmission mode, and the signal of the roadway lamp at a far distance can be received to effectively monitor and control each roadway lamp.
[0070] In an embodiment of the present application, after the serial network of all the roadway lamps is formed, the following steps are further included:
[0071] S5: The first roadway lamp receives the instruction issued by the processor, and transmits the instruction from the first roadway lamp to the second roadway lamp, from the second roadway lamp to the third roadway lamp,..., and from the N-1th roadway lamp to the Nth roadway lamp through the serial network, until the instruction is transmitted to the last roadway lamp, wherein N≥2.
[0072] S6: After the Nth roadway lamp receives the instruction transmitted by the N-1th roadway lamp, the Nth roadway lamp sends back code information to the N-1th roadway lamp, and the N-1th roadway lamp transmits the code information back to the N-2th roadway lamp,..., the second roadway lamp transmits the code information back to the first roadway lamp, and the first roadway lamp transmits the code information back to the processor.
[0073] It is to be noted that after the serial network of each laneway lamp is established, the signal transmission can be performed in step S5, specifically, the instruction is received and executed by the first laneway lamp receiving processor, and the instruction is transmitted to the second laneway lamp through the transmitter of the first laneway lamp; the instruction is received by the receiver of the second laneway lamp and transmitted to the processing module of the second laneway lamp, the instruction is analyzed and executed by the processing module, and the instruction is transmitted to the third laneway lamp through the transmitter of the second laneway lamp, and so on, the instruction is transmitted step by step, the instruction is received by the receiver of the Nth laneway lamp and transmitted to the processing module of the Nth laneway lamp, the instruction is analyzed and executed by the processing module, and the instruction is transmitted to the N+1th laneway lamp through the transmitter of the Nth laneway lamp, until the instruction is transmitted to the last laneway lamp, and one signal transmission of the serial network is completed.
[0074] In step S6, in the serial network of each laneway lamp, any one laneway lamp needs to return information to confirm that the instruction information of the previous laneway lamp has been received and executed after receiving the instruction information of the previous laneway lamp, that is, the Nth laneway lamp needs to return a feedback information, that is, a return code information to the N-1th laneway lamp after receiving the instruction information transmitted by the N-1th laneway lamp; the N-1th laneway lamp receives the return code information and continues to transmit it to the N-2th laneway lamp, and so on, the return code information is returned step by step, until it is transmitted to the first laneway lamp and transmitted to the processor by the first laneway lamp, and the processor judges the execution condition of the instruction according to the return code information; for example, the fourth laneway lamp receives the instruction of the third laneway lamp, executes the instruction and returns the execution result as the return code information to the third laneway lamp, then the third laneway lamp transmits the return code information to the second laneway lamp, then the second laneway lamp transmits the return code information to the first laneway lamp, and finally the first laneway lamp transmits the return code information to the processor.
[0075] Through the step-by-step transmission of signals between each laneway lamp, the distance of each signal transmission is short, and the effective long-distance transmission of signals can be ensured in the case that the signals are affected in the laneway, thereby facilitating the control of the laneway lamp at a long distance.
[0076] In an embodiment of the present application, a laneway lamp networking method further comprises the following steps:
[0077] When the N-1th laneway lamp does not receive the return code information of the Nth laneway lamp, the N-1th laneway lamp continuously transmits the instruction to the Nth laneway lamp for a predetermined number of times;
[0078] If the N-1th laneway lamp does not receive the return code information of the Nth laneway lamp during the process of continuously transmitting the instruction to the Nth laneway lamp for a predetermined number of times, it is determined that the Nth laneway lamp is faulty, and the N-1th laneway lamp transmits the instruction to the N+1th laneway lamp by increasing the signal transmission power.
[0079] It should be noted that in the serial network composed of various roadway lamps, the N-1 roadway lamp may not receive the back code information of the N roadway lamp in the process of signal transmission by stages, for example, the 4th roadway lamp transmits the signal instruction to the 5th roadway lamp, and does not receive the back code information of the 5th roadway lamp; at this time, the N-1 roadway lamp needs to continuously send the signal instruction of a predetermined number of times to the N roadway lamp, the predetermined number of times can be 5 times, and whether there is back code information in the continuously sent signal information for 5 times is checked, if yes, the signal transmission is completed, if not for 5 times, it is judged that the signal transmission fails, and the N roadway lamp is reported to be faulty, which is handled by manual intervention; at the same time, the signal transmission power of the N-1 roadway lamp is increased, the signal transmission distance is increased, the N roadway lamp is skipped, the N+1 roadway lamp receives the signal instruction of the N-1 roadway lamp, and then the signal is transmitted from the N+1 roadway lamp to the next stage, so that the signal can be normally transmitted.
[0080] In an embodiment of the present application, the first roadway lamp is taken as the master roadway lamp, and each slave roadway lamp near the first roadway lamp is detected according to the networking protocol of 2.4G wireless.
[0081] S11: a physical address code is respectively given to all roadway lamps, and one of the roadway lamps is designated as the first roadway lamp, and the rest of the roadway lamps are taken as slave roadway lamps of the first roadway lamp;
[0082] S12: according to the networking protocol of 2.4G wireless, the first roadway lamp sends a detection signal every certain time 20 milliseconds, and the slave roadway lamp receiving the detection signal transmits its physical address code back to the first roadway lamp;
[0083] S13: after the first roadway lamp receives the physical address code of its slave roadway lamp, a detection completion back code is sent to the slave roadway lamp to complete the detection of the slave roadway lamp;
[0084] S14: when the first roadway lamp cannot receive the physical address code transmitted back by its slave roadway lamp after continuously sending the detection signal for a predetermined number of times, the detection of the slave roadway lamp near the first roadway lamp is completed.
[0085] It should be noted that in step S11, a physical address code is respectively given to all roadway lamps, and the physical address code is equivalent to the mark of each roadway lamp, which is convenient for identifying each roadway lamp in the networking process, and the physical address code can be represented by data with a length of 8 bytes, wherein the first byte and the second byte are the factory number, the third byte and the fourth byte are the customer number, the fifth byte is the production batch, and the sixth byte to the eighth byte is the product roll code number; then one of the roadway lamps is selected as the first roadway lamp, and in general, the first roadway lamp is the roadway lamp closest to the roadway, and the rest of the roadway lamps are taken as the slave roadway lamps of the first roadway lamp.
[0086] In step S12, after the first laneway lamp selects, according to the networking protocol of 2.4G wireless network, the first laneway lamp sends a detection signal every certain time, which can be 20 milliseconds; the slave laneway lamp receives the detection signal sent by the first laneway lamp, and the slave laneway lamp that receives the detection signal sends code information back to the first laneway lamp, and the physical address code is transmitted back to the first laneway lamp and stored in the storage module of the first laneway lamp.
[0087] In step S13, after the first laneway lamp receives the physical address code of the slave laneway lamp, the first laneway lamp sends a detection completion return code to the slave laneway lamp to indicate that the slave laneway lamp is detected, and the slave laneway lamp does not respond to the first laneway lamp after receiving the detection completion return code, and the detection of the slave laneway lamp is completed.
[0088] In step S14, when the first laneway lamp continuously sends a detection signal for a certain number of times, and no code information and physical address code are sent back to the first laneway lamp, it indicates that the first laneway lamp completes the detection of the slave laneway lamp nearby; thus, the slave laneway lamp of the first laneway lamp is determined, so as to select the nearest slave laneway lamp from the slave laneway lamp, and establish a network connection between the first laneway lamp and the nearest slave laneway lamp.
[0089] In an embodiment of the present application, the first laneway lamp is taken as a master laneway lamp, and each slave laneway lamp near the first laneway lamp is detected according to the networking protocol of 2.4G wireless network, which further comprises:
[0090] S15: If the number of slave laneway lamps detected by the first laneway lamp is less than the actual number, the first laneway lamp sends a detection signal again and increases the transmission power of the detection signal for re-detection; if the number of slave laneway lamps detected is still less than the actual number, an error is reported;
[0091] S16: If the number of slave laneway lamps detected by the Nth laneway lamp is less than the actual number, the Nth laneway lamp sends a detection signal again and increases the transmission power of the detection signal for re-detection, where N≥2;
[0092] S17: If the number of slave laneway lamps of the Nth laneway lamp is still less than the actual number, the N-1th laneway lamp is requested to also increase the transmission power, and the Nth laneway lamp and the N-1th laneway lamp detect the slave laneway lamp of the Nth laneway lamp together; if the number detected is still less than the actual number, an error is reported; where N≥2.
[0093] It should be noted that in step S15, after the first roadway lamp detects the slave roadway lamps, the number of slave roadway lamps detected by the first roadway lamp is compared with the actual number of roadway lamps installed. If the number of slave roadway lamps detected by the first roadway lamp is less than the actual number of roadway lamps, it indicates that some slave roadway lamps are not detected, and thus the first roadway lamp needs to resend the detection signal and increase the transmission power of the detection signal to detect the slave roadway lamps near the first roadway lamp again. Since the transmission power of the detection signal is increased, some slave roadway lamps that cannot receive the signal due to the complex environment in the roadway are detected, so as to improve the success rate of detection. If the number of roadway lamps detected after increasing the strength of the detection signal is still less than the actual number of roadway lamps, an error is reported.
[0094] In steps S16 and S17, in addition to the first roadway lamp, other roadway lamps such as the second roadway lamp, the third roadway lamp, and the Nth roadway lamp increase the transmission power of the detection signal to detect the slave roadway lamps near the roadway lamp again when the number of slave roadway lamps detected is less than the actual number of slave roadway lamps. If the number of slave roadway lamps detected again is still less than the actual number of slave roadway lamps, the previous roadway lamp can also be requested to increase the transmission power, for example, if the number of slave roadway lamps detected after the Nth roadway lamp increases the transmission power of the detection signal is still less than the actual number of slave roadway lamps, the N-1th roadway lamp can also be requested to increase the transmission power of the detection signal. The Nth roadway lamp and the N-1th roadway lamp together detect the slave roadway lamps of the Nth roadway lamp, so as to further improve the success rate of detection of the slave roadway lamps. If the number of detected slave roadway lamps is still less than the actual number of slave roadway lamps, an error is reported.
[0095] In an embodiment of the present application, the distance between the first roadway lamp and each slave roadway lamp is measured by UWB technology to obtain the slave roadway lamp closest to the first roadway lamp, and the slave roadway lamp is included as the second roadway lamp.
[0096] S21: The first roadway lamp sends a predetermined number of measurement signals to each slave roadway lamp by UWB technology, wherein the time interval between adjacent two measurement signals is the same.
[0097] S22: The distance between the first roadway lamp and each slave roadway lamp is measured by UWB technology according to the measurement signals, wherein the measured distance between each slave roadway lamp and the first roadway lamp is a plurality of values.
[0098] S23: The maximum value and the minimum value of the plurality of distance values between each slave roadway lamp and the first roadway lamp are removed, and the remaining distance values are averaged to obtain the final distance value between each slave roadway lamp and the first roadway lamp.
[0099] S24: compare the final distance values between each slave roadway lamp and the first roadway lamp, and obtain the slave roadway lamp with the minimum final distance value as the second roadway lamp.
[0100] It should be noted that in step S21, after the first roadway lamp completes detection on the slave roadway lamps in its vicinity, the slave roadway lamp closest to the first roadway lamp needs to be detected and taken as the second roadway lamp. Specifically, the first roadway lamp sends a measurement signal of a predetermined number of times to each slave roadway lamp at a predetermined time interval through the UWB wireless network, wherein the predetermined time interval is 2 milliseconds, and the predetermined number of times is 10. Each slave roadway lamp transmits a feedback information to the first roadway lamp after receiving the detection signal once, so as to obtain the time stamp recorded when each detection signal is transmitted and received.
[0101] In step S22, the distance between the first roadway lamp and each slave roadway lamp is measured through the UWB technology according to the time stamp recorded when each detection signal is transmitted and received. Since the first roadway lamp sends the measurement signal to each slave roadway lamp for 10 times, the distance value between each slave roadway lamp and the first roadway lamp is 10.
[0102] In step S23, the average value of the 10 distance values between each slave roadway lamp and the first roadway lamp is calculated to obtain the final distance value between each slave roadway lamp and the first roadway lamp in the bracket, so as to increase the accuracy of distance measurement. The specific calculation method of the average value is as follows: the maximum value and the minimum value of the 10 distance values between the slave roadway lamp and the first roadway lamp are removed, then the remaining 8 distance values are added and divided by 8, so as to obtain the final distance value between the slave roadway lamp and the first roadway lamp.
[0103] In step S24, after obtaining the final distance values of each slave roadway lamp, the final distance values are compared, and the slave roadway lamp corresponding to the minimum value is selected. The slave roadway lamp is the roadway lamp closest to the first roadway lamp, which is taken as the second roadway lamp. In order to facilitate the subsequent network connection between the second roadway lamp and the third roadway lamp, the second roadway lamp is taken as the master roadway lamp.
[0104] In an embodiment of the present application, the measurement of the distance between the first roadway lamp and each slave roadway lamp through the UWB technology to obtain the slave roadway lamp closest to the first roadway lamp and take it as the second roadway lamp further comprises:
[0105] S25: if the number of slave roadway lamps of the first roadway lamp with valid final distance values is less than the actual number of slave roadway lamps, the first roadway lamp increases the transmission power of UWB to measure the distance of each slave roadway lamp again.
[0106] S26: If the number of slave tunnel lights with effective final distance values measured from the Nth tunnel light is less than the actual number of slave tunnel lights or if more than two slave tunnel lights are measured to be within one meter of the Nth tunnel light, the transmission power of the UWB of the Nth tunnel light is increased and the distances of the slave tunnel lights from the Nth tunnel light are measured again.
[0107] S27: If the number of slave tunnel lights of the Nth tunnel light is still less than the actual number of slave tunnel lights after the distances are measured again, the N-1th tunnel light is requested to also increase the transmission power of the UWB and the distances of the slave tunnel lights from the Nth tunnel light are measured together with the Nth tunnel light.
[0108] It should be noted that in step S25, due to the tunnel environment, unreasonable installation position of the tunnel light, long installation distance of the tunnel light and other factors, some slave tunnel lights cannot receive the detection signal when the distances between the 1st tunnel light and the slave tunnel lights are measured by the UWB technology, so that the number of slave tunnel lights with effective final distance values measured from the 1st tunnel light is less than the actual number of slave tunnel lights. However, the slave tunnel light that cannot be measured may be the closest tunnel light to the 1st tunnel light. Therefore, the transmission power of the UWB of the 1st tunnel light is increased and the distances of the slave tunnel lights from the 1st tunnel light are measured again to measure the distances of all the slave tunnel lights as much as possible and improve the success rate of distance measurement.
[0109] In steps S26 and S27, in addition to the 1st tunnel light, other tunnel lights such as the 2nd tunnel light, the 3rd tunnel light,..., and the Nth tunnel light, when measuring the distances of the slave tunnel lights near them, if the number of slave tunnel lights with effective distance values measured is less than the actual number of slave tunnel lights or if more than two slave tunnel lights are measured to be within one meter of a certain tunnel light, the Nth tunnel light is taken as an example. First, the transmission power of the UWB of the Nth tunnel light is increased and the distances of the slave tunnel lights from the Nth tunnel light are measured again. If the number of slave tunnel lights with effective distance values measured is still less than the actual number of slave tunnel lights or if more than two slave tunnel lights are measured to be within one meter of the Nth tunnel light, the N-1th tunnel light is requested to also increase the transmission power of the UWB and the distances of the slave tunnel lights from the Nth tunnel light are measured together with the Nth tunnel light to further increase the measurement intensity and improve the success rate of distance measurement.
[0110] As Figure 3As shown, the embodiment of the present application further provides a tunnel lamp networking device, comprising a detection module 1, a distance measuring module 2, a code assigning module 3 and a serial networking module 4; the detection module 1 is used to take a first tunnel lamp as a master tunnel lamp, and detect each slave tunnel lamp near the first tunnel lamp according to a 2.4G wireless networking protocol; the distance measuring module 2 is used to measure the distance between the first tunnel lamp and each slave tunnel lamp respectively by UWB technology, so as to obtain a slave tunnel lamp closest to the first tunnel lamp and take it as a second tunnel lamp; the code assigning module 3 is used to automatically obtain a network address code by the first tunnel lamp through the 2.4G wireless networking protocol, and assign the network address code to the second tunnel lamp, so as to complete the network connection of the second tunnel lamp; the serial networking module 4 is used to take the second tunnel lamp, the third tunnel lamp,..., the Nth tunnel lamp as a master tunnel lamp in turn, and repeat each step above respectively, so as to complete the network connection of the Nth tunnel lamp and the N+1th tunnel lamp, thereby forming a serial network of all tunnel lamps; wherein, N≥2, and the N+1th tunnel lamp is a tunnel lamp closest to the Nth tunnel lamp except the first tunnel lamp to the N-1th tunnel lamp.
[0111] The embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and when the computer program is read and run by a processor, the tunnel lamp networking method as described above is realized.
[0112] Although the present disclosure is disclosed as above, the protection scope of the present disclosure is not limited to this. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present disclosure, and these changes and modifications shall fall within the protection scope of the present application.
Claims
1. A method for networking of roadway lights, characterized in that, The method comprises the following steps: The first tunnel lamp is taken as a master tunnel lamp, and each slave tunnel lamp near the first tunnel lamp is detected according to a 2.4G wireless networking protocol; The distances between the first tunnel lamp and each slave tunnel lamp are measured by UWB technology to obtain a slave tunnel lamp closest to the first tunnel lamp, which is taken as a second tunnel lamp; The first tunnel lamp automatically obtains a network address code by the 2.4G wireless networking protocol, and assigns the network address code to the second tunnel lamp to complete the network connection between the first tunnel lamp and the second tunnel lamp; The second tunnel lamp, the third tunnel lamp,..., and the Nth tunnel lamp are taken as master tunnel lamps in turn, and each step is repeated to complete the network connection between the Nth tunnel lamp and the N+1th tunnel lamp, so that all the tunnel lamps form a serial network; wherein N≥2, and the N+1th tunnel lamp is the tunnel lamp closest to the Nth tunnel lamp except the first tunnel lamp to the N-1th tunnel lamp; After all the tunnel lamps form a serial network, the following steps are further included: The first tunnel lamp receives an instruction issued by a processor, and the instruction is transmitted from the first tunnel lamp to the second tunnel lamp, from the second tunnel lamp to the third tunnel lamp,..., and from the N-1th tunnel lamp to the Nth tunnel lamp through the serial network, until the instruction is transmitted to the last tunnel lamp, wherein N≥2; After the Nth tunnel lamp receives the instruction transmitted by the N-1th tunnel lamp, the Nth tunnel lamp sends back code information to the N-1th tunnel lamp, and the N-1th tunnel lamp transmits the code information to the N-2th tunnel lamp,..., the second tunnel lamp transmits the code information to the first tunnel lamp, and the first tunnel lamp transmits the code information to the processor; The distances between the first tunnel lamp and each slave tunnel lamp are measured by UWB technology to obtain a slave tunnel lamp closest to the first tunnel lamp, which is taken as a second tunnel lamp, and the method comprises the following steps: The first tunnel lamp sends a predetermined number of measurement signals to each slave tunnel lamp by UWB technology, wherein the time interval between adjacent two measurement signals is the same; The distance value between the first tunnel lamp and each slave tunnel lamp is measured by UWB technology according to the measurement signals, wherein the distance value between each slave tunnel lamp and the first tunnel lamp is multiple; The maximum value and the minimum value of the multiple distance values between each slave tunnel lamp and the first tunnel lamp are removed, and the average value of the remaining distance values is obtained to obtain the final distance value between each slave tunnel lamp and the first tunnel lamp; The final distance values between each slave tunnel lamp and the first tunnel lamp are compared to obtain the slave tunnel lamp with the minimum final distance value, which is taken as the second tunnel lamp.
2. The tunnel lamp networking method according to claim 1, wherein, The following steps are further included: If the N-1th tunnel lamp does not receive the code information from the Nth tunnel lamp, the N-1th tunnel lamp continuously transmits the instruction to the Nth tunnel lamp for a predetermined number of times; If the N-1th tunnel lamp does not receive the code information from the Nth tunnel lamp during the process of continuously transmitting the instruction to the Nth tunnel lamp for a predetermined number of times, it is determined that the Nth tunnel lamp is faulty, and the N-1th tunnel lamp increases the signal transmission power to transmit the instruction to the N+1th tunnel lamp.
3. The tunnel lamp networking method of claim 1, wherein, The first roadway lamp is taken as a master roadway lamp, and each slave roadway lamp near the first roadway lamp is detected according to a 2.4G wireless networking protocol, comprising: Each roadway lamp is respectively given a physical address code, and one of the roadway lamps is designated as a first roadway lamp, and the rest of the roadway lamps are slave roadway lamps of the first roadway lamp; The first roadway lamp sends a detection signal every certain time according to the 2.4G wireless networking protocol, and the slave roadway lamps receiving the detection signal return their physical address codes to the first roadway lamp; After the first roadway lamp receives the physical address codes of the slave roadway lamps, the first roadway lamp sends a detection completion return code to the slave roadway lamps to complete the detection of the slave roadway lamps; If the first roadway lamp cannot receive the physical address codes returned by the slave roadway lamps after sending the detection signal for a certain number of times, the detection of the slave roadway lamps near the first roadway lamp is completed.
4. The tunnel lamp networking method according to claim 3, wherein, The first roadway lamp is taken as a master roadway lamp, and each slave roadway lamp near the first roadway lamp is detected according to a 2.4G wireless networking protocol, further comprising: If the number of the slave roadway lamps detected by the first roadway lamp is less than the actual number, the first roadway lamp sends a detection signal again and increases the transmission power of the detection signal for re-detection; if the number of the slave roadway lamps detected is still less than the actual number, an error is reported; If the number of the slave roadway lamps detected by the Nth roadway lamp is less than the actual number, the Nth roadway lamp sends a detection signal again and increases the transmission power of the detection signal for re-detection, wherein N≥2; If the number of the slave roadway lamps of the Nth roadway lamp is still less than the actual number, the N-1th roadway lamp is requested to also increase the transmission power, and the Nth roadway lamp and the N-1th roadway lamp detect the slave roadway lamps of the Nth roadway lamp together; if the number detected is still less than the actual number, an error is reported; wherein N≥2.
5. The tunnel lamp networking method according to claim 1, wherein, The distances between the first roadway lamp and each slave roadway lamp are measured by the UWB technology to obtain the slave roadway lamp closest to the first roadway lamp, and the slave roadway lamp is taken as a second roadway lamp, further comprising: If the number of the slave roadway lamps of the first roadway lamp for which valid final distance values are measured is less than the actual number of slave roadway lamps, the first roadway lamp increases the transmission power of the UWB for re-measuring the distances of the slave roadway lamps; If the number of the slave roadway lamps of the Nth roadway lamp for which valid final distance values are measured is less than the actual number of slave roadway lamps or more than two slave roadway lamps of the Nth roadway lamp are measured to be within a distance difference of one meter from the Nth roadway lamp, the Nth roadway lamp increases the transmission power of the UWB for re-measuring the distances of the slave roadway lamps, wherein N≥2; If the number of the slave roadway lamps of the Nth roadway lamp is still less than the actual number of slave roadway lamps after re-measuring, the N-1th roadway lamp is requested to also increase the transmission power of the UWB, and the Nth roadway lamp and the N-1th roadway lamp measure the distances of the slave roadway lamps of the Nth roadway lamp together, wherein N≥2.
6. A gangway lamp networking device, characterized by, Comprising: A detection module for taking a first roadway lamp as a master roadway lamp and detecting each slave roadway lamp near the first roadway lamp according to a 2.4G wireless networking protocol; The ranging module is used for measuring the distance between the first roadway lamp and each slave roadway lamp by UWB technology, so as to obtain the slave roadway lamp closest to the first roadway lamp as the second roadway lamp. The coding module is used for automatically obtaining a network address code by the first roadway lamp through the 2.4G wireless networking protocol, and assigning the network address code to the second roadway lamp, so as to complete the network connection between the first roadway lamp and the second roadway lamp. The serial networking module is used for sequentially taking the second roadway lamp, the third roadway lamp,..., and the Nth roadway lamp as the master roadway lamp, and repeating the above steps, so as to complete the network connection between the Nth roadway lamp and the N+1th roadway lamp, thereby forming a serial network of all the roadway lamps; wherein N≥2, and the N+1th roadway lamp is the roadway lamp closest to the Nth roadway lamp except the first roadway lamp to the N-1th roadway lamp. The first roadway lamp receives the instruction issued by the processor, and transmits the instruction from the first roadway lamp to the second roadway lamp, from the second roadway lamp to the third roadway lamp,..., and from the N-1th roadway lamp to the Nth roadway lamp through the serial networking module, until the instruction is transmitted to the last roadway lamp, wherein N≥2. After the Nth roadway lamp receives the instruction transmitted by the N-1th roadway lamp, the Nth roadway lamp sends back the code information to the N-1th roadway lamp, and the N-1th roadway lamp transmits the code information to the N-2th roadway lamp,..., the second roadway lamp transmits the code information to the first roadway lamp, and the first roadway lamp transmits the code information to the processor. The ranging module is used for measuring the distance between the first roadway lamp and each slave roadway lamp by UWB technology, so as to obtain the slave roadway lamp closest to the first roadway lamp as the second roadway lamp. The first roadway lamp sends a predetermined number of measurement signals to each slave roadway lamp by UWB technology, wherein the time interval between adjacent two measurement signals is the same. The distance between the first roadway lamp and each slave roadway lamp is measured by UWB technology according to the measurement signals, wherein the measured distance between each slave roadway lamp and the first roadway lamp has multiple values. The maximum value and the minimum value of the multiple distance values between each slave roadway lamp and the first roadway lamp are removed, and the average value of the remaining distance values is obtained, so as to obtain the final distance value between each slave roadway lamp and the first roadway lamp. The final distance values between each slave roadway lamp and the first roadway lamp are compared, and the slave roadway lamp with the minimum final distance value is obtained as the second roadway lamp.
7. A gangway lamp networking device, characterized by The processor, the memory, and the plurality of roadway lamps are provided, the roadway lamps comprise a processing module, a storage module, a receiver, a transmitter, and a lighting lamp, the processing module is electrically connected with the storage module, the receiver, the transmitter, and the lighting lamp, the processor is in communication connection with the receiver of the first roadway lamp among the roadway lamps, and the transmitter of any roadway lamp is in communication connection with the receiver of the remaining roadway lamps. The memory stores computer executable instructions, and when the computer executable instructions are executed by the processor, the roadway lamp networking method in any one of claims 1-5 is realized.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, when the computer program is read and run by the processor, realizing the laneway lamp networking method of any one of claims 1-5.
Citation Information
Patent Citations
Intelligent mine roadway illuminating lamp and illuminating system
CN105588041A
Street lamp topology network structure and management system based on zigbee and GPRS
CN208477715U