Method and system for synchronously covering intelligent street lamps based on wireless networking communication
By using LED lighting to transmit optical signals between street lamps, combined with photodiodes and phase shift technology, the problems of high hardware cost, poor signal reliability and complex deployment of wireless networked street lamps are solved, and low-cost, high-reliability intelligent networking and data security are achieved.
Patent Information
- Application Number
- CN202510624668.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-15
- Publication Date
- 2025-09-12
AI Technical Summary
Existing wireless networked streetlights have problems such as high hardware investment, poor signal reliability, difficulty in generating network topology maps, insufficient deployment intelligence, and insufficient communication encryption.
LED lighting is used as a communication bridge, and data transmission between street lamps is achieved through optical signal transmission. Photodiodes and phase shift technology are used to improve signal stability. The network topology map is automatically generated and the gateway is independently set. Symmetric encryption is used to ensure data security.
Reduce hardware investment costs, improve signal reliability, simplify deployment, generate accurate network topology maps, and ensure data security.
Smart Images

Figure CN120640494A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of communication street lamps, and specifically to a method and system for synchronously covering smart street lamps based on wireless networking communications. Background Art
[0002] Traditional streetlights face challenges such as high energy consumption, inefficient management, and limited functionality, driving the development of wireless networked streetlight technology. This technology integrates LED lighting with various wireless communication technologies, such as short-range Zigbee, mid-range Wi-Fi / Bluetooth Mesh, long-range LoRa / NB-IoT, and electromagnetic interference-resistant visible light communication. This creates a layered networking architecture, encompassing a terminal layer for dimming and fault detection, a network layer supporting clustered or mesh self-organizing networks, and a platform layer with map visualization and remote upgrades. Key technologies, such as interference resistance and low power consumption, are also addressed. Applications encompass scenarios such as adaptive lighting, fault diagnosis, and edge computing.
[0003] Existing wireless networked street lights have the following technical defects: 1. Wireless networking is overly dependent on Mesh wireless communication. Mesh networking requires each street light to install a wireless communication module, which increases the hardware investment cost of the street lights; 2. Mesh networking will be affected by signal interference in outdoor environments and cannot guarantee reliability; 3. Existing networked street lights cannot generate a network topology map based on the actual location and require additional positioning devices to achieve this; 4. Street light networking requires manual intervention to set up the gateway and network access, and the deployment is not simple and intelligent enough; 5. The communication between networks lacks encryption function, which is prone to data leakage. Therefore, developing a street light that can use LED lighting as a communication bridge without increasing hardware costs is a technical problem that technical personnel in this field need to solve. Summary of the Invention
[0004] In response to the deficiencies in the prior art, the present invention provides a method and system for synchronously covering smart street lamps based on wireless networking communications, which solves the problems raised in the above-mentioned background technology.
[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions: a method for synchronously covering smart street lamps based on wireless networking communication, which is implemented based on an acquisition module, an encoding module, a decryption module, a controller, a flash memory module, an encryption module, an actuator, and a light-emitting component. The light-emitting component includes LEDs in four directions, and includes the following steps:
[0006] When the streetlights are powered on, the controller executes the initialization network program to form a network. During the networking process, data is processed between streetlights using encryption and decryption. The streetlights transmit light signals through the light-emitting components and receive light signals through the light collection module. Whenever a new streetlight is networked, the network fusion program is executed based on the number of networked streetlights to obtain a network topology. All controllers set the streetlight at the center of the network topology as the gateway and correct the virtual position of each streetlight in the network topology.
[0007] When the actuator drives two LEDs in the same direction to emit light signals, phase offset modulation is used. When there is stray light interference in the environment where the street lamp is located, the stability of the optical signal communication can be improved. Even if the optical signal of one of the LEDs is lost, the optical signal of the other LED in the same direction can supplement the lost optical signal. The actuator of each street lamp is set with a basic frequency, which is the default frequency of optical signal communication. The actuator converts the digital signal into an optical signal based on the basic frequency or the frequency multiplication. The optical signal here is an optical carrier signal converted from a digital signal with a binary data structure. The frequency multiplication is gradually increased according to the amount of data transmitted between the street lamps. The acquisition module verifies the optical signal when receiving it to avoid optical signal loss or data errors.
[0008] Furthermore, the initialization network program specifically includes the following steps:
[0009] Step 101: The controller of the first street lamp obtains a secret key from the flash memory module of the first street lamp and simultaneously sends a networking request and the secret key to the encryption module of the first street lamp. The encryption module of the first street lamp uses the secret key to encrypt the networking request into a first ciphertext and forwards it to the encoding module of the first street lamp. The encoding module of the first street lamp converts the ciphertext into a first data link and transmits it to the actuator of the first street lamp. The actuator of the first street lamp drives the light-emitting component of the first street lamp to illuminate. The LEDs in the four directions of the light-emitting component of the first street lamp transmit first optical signals to the outside according to the first data link. Because the direction of the adjacent street lamp cannot be determined when the networking request is sent out, all LEDs in the four directions need to send the networking request simultaneously. After any direction receives the networking feedback, the optical signal transmission in a single direction is carried out.
[0010] Step 102: The acquisition module of the second streetlight acquires the first light signal emitted by the first streetlight in its direction and converts it into a second data link. The acquisition module of the second streetlight transmits its own direction information and the second data link to the encoding module of the second streetlight. The encoding module of the second streetlight converts the second data link into a second ciphertext. The encoding module of the second streetlight transmits the second ciphertext and the direction information to the decryption module of the second streetlight. The decryption module of the second streetlight obtains a secret key from the flash memory module of the second streetlight. The decryption module of the second streetlight uses the secret key to convert the second ciphertext into a first message. The decryption module of the second streetlight transmits the first message and the direction information to the controller of the second streetlight. The content of the first message is the networking request of the first streetlight.
[0011] Step 103: The controller of the second street lamp reads the parameter information and secret key of the second street lamp from the flash memory module. The controller of the second street lamp transmits the parameter information, secret key, and networking feedback of the second street lamp to the encryption module of the second street lamp. The encryption module of the second street lamp uses the secret key to encrypt the parameter information and networking feedback of the second street lamp into a third ciphertext. The encryption module of the second street lamp transmits the third ciphertext to the encoding module of the second street lamp. The encoding module of the second street lamp converts the third ciphertext into a third data link. The encoding module of the second street lamp transmits the third data link to the actuator of the second street lamp. The actuator of the second street lamp drives the light-emitting component of the second street lamp to illuminate. The light-emitting component of the second street lamp sends a second optical signal to the LED of the first street lamp according to the third data link.
[0012] Step 104: The acquisition module of the first streetlight acquires the second optical signal directed toward the second streetlight and converts it into a fourth data link. The acquisition module of the first streetlight transmits the fourth data link to the encoding module of the first streetlight. The encoding module of the first streetlight converts the fourth data link into a fourth ciphertext. The encoding module of the first streetlight transmits the fourth ciphertext to the decryption module of the first streetlight. The decryption module of the first streetlight obtains a secret key from the flash memory module of the first streetlight. The decryption module of the first streetlight uses the secret key to convert the fourth ciphertext into a second message. The decryption module of the first streetlight transmits the second message to the controller of the first streetlight. The content of the second message is parameter information and networking feedback of the second streetlight.
[0013] Step 105: The controller of the first street lamp completes the network connection with the controller of the second street lamp according to the networking feedback and the parameter information of the first street lamp and the second street lamp, and the network initialization program is terminated.
[0014] Furthermore, the message is the parameter information, networking request and networking feedback of the adjacent street lights in the direction of the acquisition module. The parameter information of the street lights includes the gateway information of the network where the street lights are located, the network address of the street lights themselves and the hardware number of the street lights themselves. Each hardware number is unique and corresponds one-to-one to the street lights, and is used to identify the street lights in the network topology diagram. The first data link, the second data link, the third data link and the fourth data link are all binary data structures, consisting of 0 and 1 respectively. The flash memory modules in the first street lights and the second street lights store the same key, and the encryption and decryption process is symmetric encryption.
[0015] Furthermore, when the actuator uses phase offset to drive two LEDs in the same direction, the actuator sets the phase of the first LED to 0 and the phase of the second LED to π. The actuator converts the digital signal to be sent into an optical signal according to the modulation formula. The modulation formula is set by the controller and saved in the flash memory module. The controller can read it from the flash memory module and then transmit it to the actuator through the encryption module and the encoding module in sequence. The modulation formula is:
[0016] s1(t)=Q·sin(2πf0t+φ)
[0017] s2(t)=Q·sin(2πf0t+φ+π / 2)
[0018] s1(t) is the function of the light intensity of the first LED changing with time t, s2(t) is the function of the light intensity of the second LED changing with time t, Q is the amplitude of the light signals of the two LEDs, f0 is the carrier frequency, which is the fundamental frequency or a multiple of the carrier frequency, t is the propagation time of the light signal, φ is the phase set by the actuator, the phase of the first LED is φ = 0, and the phase of the second LED is set to φ = π. In the formula for s2(t), π / 2 is the fixed phase difference between the first and second LEDs;
[0019] The actuator modulates the corresponding LED according to s1(t) and s2(t) to emit light signals, which are then acquired and verified by the acquisition module.
[0020] Furthermore, the acquisition module verifies the optical signal including the following steps:
[0021] The controller sets the detection formula, which is:
[0022] E1=∫Ts(t)·sin(2πf0t)dt
[0023] E2=∫Ts(t)·sin(2πf0t+π)dt
[0024] E1 is the correlation integral between the light signal received by the acquisition module and the reference signal sin(2πf0t). In the formula of E1, s(t) corresponds to the light signal s1(t) of the first LED. E2 is the correlation integral between the light signal received by the acquisition module and the reference signal sin(2πf0t+π). In the formula of E2, s(t) corresponds to the light signal s2(t) of the second LED. ∫T…dt is the integral operation within the period T.
[0025] The controller sets the detection formula and saves it to the flash memory module. The acquisition module reads the detection formula from the flash memory module and calculates it. The calculation process is handled by the verification module built into the acquisition module. If the calculation result is E1>E2, the acquisition module takes the light signal emitted by the first LED as the standard. If E1<E2, the acquisition module takes the light signal emitted by the second LED as the standard. Theoretically, E1≠E2. When the light signal received by the acquisition module is mainly stray light, that is, it is dominated by random noise, and the random noise value is much larger than the light signal intensity value, E1 and E2 may be equal. In this case, the collected light signal no longer has communication function. If E1=E2, the acquisition module determines that the light signal is lost and does not collect it.
[0026] Furthermore, the actuator sets the basic frequency for optical signal communication. If the basic frequency cannot meet the data volume of the optical signal communication, the actuator increases the basic frequency to the multiplier and adjusts it according to the different frequencies of the multiplier. If the basic frequency meets the data volume of the optical signal communication, the actuator reduces the multiplier to the basic frequency again. The multiplier of the actuator can be adjusted dynamically, and the acquisition frequency of the acquisition module is a fixed frequency 1. The actuator uses a timer to adjust the basic frequency or multiplier.
[0027] Furthermore, the network integration procedure specifically includes the following steps:
[0028] Step 201: After the two street lamps are networked, the controllers each count the number of street lamps in the network before networking;
[0029] Step 202: Compare the number of streetlights in the networks to which the two streetlights belong before networking. Follow the principle of integrating the network with fewer streetlights into the network with more streetlights. Connect the two networked streetlights and use the connected streetlights as access points. Connect the streetlight layout of the network with fewer streetlights to the streetlight layout of the network with more streetlights. The streetlight layout here is the original network topology of the networks to which the two streetlights belong before networking. A new network topology is obtained. If the number of streetlights in the two networks is equal, one of them is randomly selected to be integrated into the other.
[0030] Step 203: After the network is integrated, the network topology needs to be revised and the gateway needs to be set.
[0031] Furthermore, correcting the virtual position of the street lamp in the network topology map specifically includes the following steps:
[0032] Step 301: The controller obtains the number and length of connections between each street lamp in the network topology. Since street lamp communication is based on LEDs in four directions, each street lamp can only connect to a maximum of four street lamps, and the connection lines are perpendicular to each other, the network topology should be distributed in a grid shape.
[0033] Step 302: The controller marks the streetlights with connection lengths greater than 1 as offset points, selects the connection line with the largest connection length between the offset points, takes the midpoint as the correction point, and moves the streetlight from the offset point to the correction point. The correction point is the virtual position of the streetlight.
[0034] Step 303: After the streetlight has moved, the original connection number of the streetlight is reconnected to complete the correction of the streetlight's virtual position;
[0035] Setting up a gateway in the network topology diagram specifically includes the following steps:
[0036] Step 401: The controller marks the streetlights with a connection number of 1 in the network topology as edge streetlights. The fewer the connection number, the more likely they are to appear at the edge of the network topology.
[0037] Step 402: Count the number of shortest paths from all streetlights to each edge streetlight. The path number increases by 1 for each streetlight passed. Each controller adds up the shortest path numbers of all its own streetlights to obtain the total number of paths. The larger the shortest path number of each edge streetlight, the closer the streetlight is to the center.
[0038] Step 403: Set the street lamp with the largest total number of paths as the gateway of the network topology. If there are multiple street lamps with the same total number of paths, randomly set it from the street lamps with the same total number of paths.
[0039] A system for synchronously covering smart street lamps based on wireless networking communication includes an acquisition module, an encoding module, a decryption module, a controller, a flash memory module, an encryption module, an actuator, and a light-emitting component. The output end of the acquisition module is connected to the input end of the encoding module, the output end of the encoding module is respectively connected to the input ends of the decryption module and the actuator, the output end of the decryption module is connected to the input end of the controller, a port of the controller establishes communication with a port of the flash memory module, the output end of the flash memory module is respectively connected to the input ends of the decryption module and the acquisition module, the output end of the controller is connected to the input end of the encryption module, the output end of the encryption module is connected to the input end of the encoding module, and the output end of the actuator is connected to the input end of the light-emitting component;
[0040] The acquisition module specifically includes a photosensitive diode and a verification module. The photosensitive diode is installed at the end of the tube bundle structure and is used to obtain the light signal at a specific position in the direction of the street lamp. Each photosensitive diode is equipped with two tube bundle structures with two connected ends, and the two tube bundle structures are respectively facing two specific positions in the same direction. The verification module is used to calculate and verify the light signal obtained by the photosensitive diode. The encoding module is used for data conversion and transmission. The decryption module is used to decrypt the ciphertext into a message. The encryption module is used to encrypt the message into ciphertext. The actuator is specifically a light source driver, which is used to drive the light-emitting component to illuminate and adjust the flashing frequency of the light-emitting component. The flashing frequency of the light-emitting component is much higher than the visual frequency that can be perceived by the human eye. Therefore, adjusting the flashing frequency of the light-emitting component will not affect the actual lighting effect. The controller is used for data processing of the entire system. The flash memory module is used to save the parameter information, key and temporary data generated during the controller calculation process of the street lamp.
[0041] Furthermore, the light-emitting component is composed of 8 LEDs, which are grouped in pairs and located in four directions on the top of the street lamp. Adjacent directions are perpendicular to each other. The dotted circle is the lighting range of each LED. The LED lighting ranges between each street lamp are tangent. The photosensitive diode is located between the two LEDs. The photosensitive diode can obtain the LED light signal of the adjacent street lamp in the direction.
[0042] The present invention has the following beneficial effects:
[0043] 1. Use LEDs and photodiodes to achieve communication between street lamps. Photodiodes have low costs because LEDs themselves have lighting properties. Emitting optical signals based on them does not increase additional investment, reducing the hardware investment in street lamps on the network. At the same time, optical signals are not easily affected by signal interference in outdoor environments, and communication is reliable.
[0044] 2. Through automatic network integration and autonomous gateway settings, there is no need for manual pre-setting and deployment, which improves the convenience of networking. The network topology map can be automatically generated and the position of each street lamp can be corrected without the need for positioning facilities. At the same time, the use of symmetric encrypted communication can ensure data security.
[0045] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0047] Figure 1 This is a system block diagram of the present invention based on wireless networking communication synchronous coverage of smart street lights;
[0048] Figure 2 Schematic diagram of the process of optical signal communication between street lamps of the present invention;
[0049] Figure 3 A circuit diagram of an actuator timer of the present invention;
[0050] Figure 4 This is a schematic diagram of the structure of a single street lamp of the present invention from a top-down perspective;
[0051] Figure 5 This is a schematic diagram of the network topology diagram of the present invention correcting the virtual position of the street lamp;
[0052] Figure 6 This is a schematic structural diagram of two adjacent street lamps according to the present invention.
[0053] In the accompanying drawings, the components represented by the reference numerals are as follows:
[0054] In the figure: 1-LED, 2-photodiode. DETAILED DESCRIPTION
[0055] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.
[0056] See also Figure 1-6 The present invention provides a technical solution: a method for synchronously covering smart street lamps based on wireless networking communication, which is implemented based on an acquisition module, an encoding module, a decryption module, a controller, a flash memory module, an encryption module, an actuator and a light-emitting component. The light-emitting component includes LEDs 1 in four directions, and includes the following steps:
[0057] When the streetlights are powered on, the controller executes the initialization network program to form a network. During the networking process, data is processed between streetlights using encryption and decryption. The streetlights transmit light signals through the light-emitting components and receive light signals through the light collection module. Whenever a new streetlight is networked, the network fusion program is executed based on the number of networked streetlights to obtain a network topology. All controllers set the streetlight at the center of the network topology as the gateway and correct the virtual position of each streetlight in the network topology.
[0058] When the actuator drives two LEDs 1 in the same direction to emit light signals, phase offset modulation is used. This can improve the stability of optical signal communication when there is stray light interference in the street lamp environment. Even if the light signal of one LED 1 is lost, the light signal of the other LED 1 in the same direction can supplement the lost light signal. The actuator of each street lamp is set to a base frequency, which is the default frequency of 120Hz for optical signal communication. The actuator converts the digital signal into an optical signal based on the base frequency or the frequency multiplication. The optical signal here is an optical carrier signal converted from a digital signal with a binary data structure. The frequency multiplication increases step by step according to the data transmission volume between the street lamps, and the frequency multiplication is 240Hz, 480Hz, 960Hz and 1920Hz respectively. The acquisition module verifies the received optical signal to avoid optical signal loss or data errors.
[0059] Among them, such as Figure 2 As shown, the network initialization program specifically includes the following steps:
[0060] Step 101: The controller of the first street lamp obtains a secret key from the flash memory module of the first street lamp and simultaneously sends a networking request and the secret key to the encryption module of the first street lamp. The encryption module of the first street lamp uses the secret key to encrypt the networking request into a first ciphertext and forwards it to the encoding module of the first street lamp. The encoding module of the first street lamp converts the ciphertext into a first data link and transmits it to the actuator of the first street lamp. The actuator of the first street lamp drives the light-emitting component of the first street lamp to illuminate. The LEDs 1 in the four directions of the light-emitting component of the first street lamp transmit first optical signals according to the first data link. Because the direction of the adjacent street lamp cannot be determined when the networking request is sent, all LEDs 1 in the four directions need to send the networking request simultaneously. After any direction receives the networking feedback, the optical signal transmission in a single direction is carried out.
[0061] Step 102: The acquisition module of the second streetlight acquires the first light signal emitted by the first streetlight in its direction and converts it into a second data link. The acquisition module of the second streetlight transmits its own direction information and the second data link to the encoding module of the second streetlight. The encoding module of the second streetlight converts the second data link into a second ciphertext. The encoding module of the second streetlight transmits the second ciphertext and the direction information to the decryption module of the second streetlight. The decryption module of the second streetlight obtains a secret key from the flash memory module of the second streetlight. The decryption module of the second streetlight uses the secret key to convert the second ciphertext into a first message. The decryption module of the second streetlight transmits the first message and the direction information to the controller of the second streetlight. The content of the first message is the networking request of the first streetlight.
[0062] Step 103: The controller of the second street lamp reads the parameter information and secret key of the second street lamp from the flash memory module. The controller of the second street lamp transmits the parameter information, secret key, and networking feedback of the second street lamp to the encryption module of the second street lamp. The encryption module of the second street lamp uses the secret key to encrypt the parameter information and networking feedback of the second street lamp into a third ciphertext. The encryption module of the second street lamp transmits the third ciphertext to the encoding module of the second street lamp. The encoding module of the second street lamp converts the third ciphertext into a third data link. The encoding module of the second street lamp transmits the third data link to the actuator of the second street lamp. The actuator of the second street lamp drives the light-emitting component of the second street lamp to illuminate. The light-emitting component of the second street lamp sends a second optical signal to the LED 1 of the first street lamp according to the third data link.
[0063] Step 104: The acquisition module of the first streetlight acquires the second optical signal directed toward the second streetlight and converts it into a fourth data link. The acquisition module of the first streetlight transmits the fourth data link to the encoding module of the first streetlight. The encoding module of the first streetlight converts the fourth data link into a fourth ciphertext. The encoding module of the first streetlight transmits the fourth ciphertext to the decryption module of the first streetlight. The decryption module of the first streetlight obtains a secret key from the flash memory module of the first streetlight. The decryption module of the first streetlight uses the secret key to convert the fourth ciphertext into a second message. The decryption module of the first streetlight transmits the second message to the controller of the first streetlight. The content of the second message is parameter information and networking feedback of the second streetlight.
[0064] Step 105: The controller of the first street lamp completes the network connection with the controller of the second street lamp according to the networking feedback and the parameter information of the first street lamp and the second street lamp, and the network initialization program is terminated.
[0065] Among them, the message is the parameter information, networking request and networking feedback of the adjacent street lights in the direction of the acquisition module. The parameter information of the street light includes the gateway information of the network where the street light is located, the network address of the street light itself and the hardware number of the street light itself. Each hardware number is unique and corresponds one-to-one to the street light, and is used to identify the street light in the network topology diagram. The first data link, the second data link, the third data link and the fourth data link are all binary data structures, consisting of 0 and 1 respectively. The flash memory modules in the first street light and the second street light store the same key, and the encryption and decryption process is symmetric encryption.
[0066] When the actuator uses phase offset to drive two LEDs 1 in the same direction, the actuator sets the phase of the first LED 1 to 0 and the phase of the second LED 1 to π. The actuator converts the digital signal to be sent into an optical signal according to the modulation formula. The modulation formula is set by the controller and saved in the flash memory module. The controller can read it from the flash memory module and then transmit it to the actuator through the encryption module and the encoding module in sequence. The modulation formula is:
[0067] s1(t)=Q·sin(2πf0t+φ)
[0068] s2(t)=Q·sin(2πf0t+φ+π / 2)
[0069] s1(t) is the function of the light intensity of the first LED 1 changing with time t, s2(t) is the function of the light intensity of the second LED 1 changing with time t, Q is the amplitude of the light signals of the two LEDs 1, f0 is the carrier frequency, which is the fundamental frequency 120 Hz or its multiple, t is the time during which the light signal propagates, φ is the phase set by the actuator, the phase of the first LED 1 is φ = 0, and the phase of the second LED 1 is set to φ = π. In the formula for s2(t), π / 2 is the fixed phase difference between the first LED 1 and the second LED 1;
[0070] The actuator modulates the corresponding LED 1 according to s1(t) and s2(t) to emit light signals, which are then acquired and verified by the acquisition module.
[0071] The acquisition module verifies the optical signal including the following steps:
[0072] The controller sets the detection formula, which is:
[0073] E1=∫Ts(t)·sin(2πf0t)dt
[0074] E2=∫Ts(t)·sin(2πf0t+π)dt
[0075] E1 is the correlation integral between the light signal received by the acquisition module and the reference signal sin(2πf0t). In the formula of E1, s(t) corresponds to the light signal s1(t) of the first LED 1. E2 is the correlation integral between the light signal received by the acquisition module and the reference signal sin(2πf0t+π). In the formula of E2, s(t) corresponds to the light signal s2(t) of the second LED 1. ∫T…dt is the integral operation within the period T.
[0076] The controller sets the detection formula and saves it to the flash memory module. The acquisition module reads the detection formula from the flash memory module and calculates it. The calculation process is handled by the verification module built into the acquisition module. If the calculation result E1>E2, the acquisition module takes the light signal emitted by the first LED 1 as the standard. If E1<E2, the acquisition module takes the light signal emitted by the second LED 1 as the standard. Theoretically, E1≠E2. When the light signal received by the acquisition module is mainly stray light, that is, it is dominated by random noise, and the random noise value is much larger than the light signal intensity value, E1 and E2 may be equal. In this case, the collected light signal no longer has communication function. If E1=E2, the acquisition module determines that the light signal is lost and does not collect it.
[0077] Among them, the actuator sets the basic frequency for optical signal communication. If the basic frequency cannot meet the data volume of the optical signal communication, the actuator increases the basic frequency to the multiplier and adjusts it according to the different frequencies of the multiplier. If the basic frequency meets the data volume of the optical signal communication, the actuator reduces the multiplier to the basic frequency again. For example, the amount of data to be transmitted is 150bit / s, but the transmission upper limit of the basic frequency is 120bit / s. Therefore, the actuator needs to increase the basic frequency to the multiplier 240Hz. If the multiplier of 240Hz still cannot meet the data transmission volume, the actuator continues to increase the multiplier in sequence until it reaches a maximum of 1920Hz. If the amount of data to be transmitted drops to 160bit / s, the actuator will correspondingly reduce the multiplier to 240Hz. If the data to be transmitted The data rate continues to drop to 100 bit / s, and the basic frequency can meet the transmission requirements. The actuator reduces the multiplication frequency from 240Hz to the basic frequency 120Hz. The multiplication frequency of the actuator can be adjusted dynamically. The acquisition frequency of the acquisition module is a fixed frequency of 1920Hz. 1920Hz can be compatible with the basic frequency and multiplication frequency of the actuator at the same time. For example, the actuator frequency of the first street lamp is the multiplication frequency 480Hz, and the actuator frequency of the second street lamp is the basic frequency 120Hz. The acquisition frequency of the acquisition module is both an integer multiple of the multiplication frequency 480Hz and an integer multiple of the basic frequency 120Hz. Therefore, if the first street lamp and the second street lamp have just started to execute the initialization network program, even if the actuators of the first street lamp and the second street lamp have different frequencies, they can still complete the optical signal communication. Figure 3 As shown, the actuator uses a 555 timer to adjust the basic frequency or frequency multiplication. Figure 3 For the 555 timer and peripheral circuits, the 555 timer can generate a PWM wave of up to 300kHz, and the duty cycle of the PWM wave can be freely adjusted to achieve dynamic frequency adjustment.
[0078] The network integration procedure specifically includes the following steps:
[0079] Step 201: After the two street lamps are networked, the controllers each count the number of street lamps in the network before networking;
[0080] Step 202: Compare the number of streetlights in the networks of the two streetlights before networking. Follow the principle of integrating the network with fewer streetlights into the network with more streetlights. For example, if the number of streetlights in the network of the first streetlight before networking is 5 and the number of streetlights in the network of the second streetlight before networking is 7, then the network to which the first streetlight belongs will be integrated into the network to which the second streetlight belongs. Connect the two networked streetlights and use the connected streetlights as access points to connect the streetlight layout of the network with fewer streetlights to the streetlight layout of the network with more streetlights. The streetlight layout here is the original network topology of the networks to which the respective streetlights belong before networking. A new network topology is obtained. If the number of streetlights in the two networks is equal, one of them is randomly selected to be integrated into the other.
[0081] Step 203: After the network is integrated, the network topology needs to be revised and the gateway needs to be set.
[0082] The process of correcting the virtual position of a street lamp in the network topology diagram specifically includes the following steps:
[0083] Step 301: The controller obtains the number of connections and the length of connections between each street lamp in the network topology diagram, such as Figure 5 As shown, L1, L2, L3, L4 and L5 are all street lights in the network topology diagram. The number of connections of L4 and L5 are both 2. L5 is connected to L1 and L4 respectively, and L4 is connected to L5 and L3 respectively. The connection length between L4 and L5 is 2. Because street light communication is based on LED 1 in four directions, each street light can only be connected to 4 street lights at most, and the connection lines are perpendicular to each other. Therefore, the network topology diagram should be distributed in a grid shape.
[0084] Step 302: The controller marks the street lights with a connection length greater than 1 as offset points, selects the connection line with the largest offset point connection length and marks the midpoint as the correction point, and moves the street light from the offset point to the correction point. The correction point is the virtual position of the street light. Figure 5 In the figure, L4 is the offset point and L4# is the correction point. In actual environments, the streetlight position corresponding to L4 will be closer to L5. Move the L4 streetlight to L4# in the direction of C. Because the streetlights are not completely perpendicular or parallel to each other, the streetlight connection relationship in the topology diagram generated based on optical signal communication will deviate from the actual streetlight position. By shifting the streetlight position toward the direction of the longer connection line, the streetlight position in the network topology diagram can be corrected to a certain extent to avoid excessive deviation between the network topology diagram and the actual situation.
[0085] Step 303: After the streetlight has been moved, reconnect the original number of connections of the streetlight, such as Figure 5 The connecting line segment between L3 and L4# completes the correction of the virtual position of the street light;
[0086] Setting up a gateway in the network topology diagram specifically includes the following steps:
[0087] Step 401: The controller marks the streetlights with a connection number of 1 in the network topology as edge streetlights. The fewer the connection number, the more likely they are to appear at the edge of the network topology.
[0088] Step 402: Count the shortest paths from all streetlights to each edge streetlight, and increase the path number by 1 each time a streetlight is passed. Figure 5 The number of shortest paths from L5 to L3 is 2. Each controller adds up the number of shortest paths of its own streetlight to get the total number of paths. The larger the number of shortest paths of each edge streetlight, the closer the streetlight is to the center.
[0089] Step 403: Set the street lamp with the largest total number of paths as the gateway of the network topology. If there are multiple street lamps with the same total number of paths, randomly set it from the street lamps with the same total number of paths.
[0090] like Figure 1 As shown, a system for synchronously covering smart street lamps based on wireless networking communication includes an acquisition module, an encoding module, a decryption module, a controller, a flash memory module, an encryption module, an actuator and a light-emitting component. The output end of the acquisition module is connected to the input end of the encoding module, the output end of the encoding module is respectively connected to the input ends of the decryption module and the actuator, the output end of the decryption module is connected to the input end of the controller, the port of the controller establishes communication with the port of the flash memory module, the output end of the flash memory module is respectively connected to the input ends of the decryption module and the acquisition module, the output end of the controller is connected to the input end of the encryption module, the output end of the encryption module is connected to the input end of the encoding module, and the output end of the actuator is connected to the input end of the light-emitting component;
[0091] The acquisition module specifically includes a photodiode 2 and a verification module. The photodiode 2 is installed at the end of the bundle structure and is used to obtain the light signal at a specific position in the direction of the street lamp, such as Figure 4 As shown in , the specific position is the position B at the dotted ellipse, and each photodiode is equipped with two tube-like structures with two ends connected, and the two tube-like structures are respectively oriented towards two specific positions B in the same direction, as shown in FIG. Figure 6 As shown, it is convenient for the photodiode 2 to obtain the light signal at the corresponding position and avoid interference from other stray light. The verification module is used to calculate and verify the light signal obtained by the photodiode 2. The encoding module is used for data conversion and transmission. The decryption module is used to decrypt the ciphertext into a message. The encryption module is used to encrypt the message into a ciphertext. The actuator is specifically a light source driver, which is used to drive the light-emitting component to illuminate and adjust the flashing frequency of the light-emitting component. Among them, the flashing frequency of the light-emitting component is much higher than the visual frequency of 60Hz that can be perceived by the human eye. Therefore, the light-emitting component adjusts the flashing frequency and does not affect the actual lighting effect. The controller is used for data processing of the entire system. The flash memory module is used to save the parameter information, key and temporary data generated during the calculation process of the controller of the street lamp.
[0092] The light emitting assembly is composed of 8 LEDs 1, which are arranged in groups of two each in four directions on the top of the street lamp, with adjacent directions perpendicular to each other. Figure 4 As shown in , the dotted circle is the lighting range of each LED 1, the lighting ranges of the LEDs 1 between each street lamp are tangent, and the photosensitive diode 2 is located between the two LEDs 1. The photosensitive diode 2 can obtain the light signal of the LED 1 of the adjacent street lamp in the direction.
[0093] The above description is only a preferred specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any technician familiar with the technical field, within the technical scope disclosed by the present invention, who makes equivalent replacements or changes based on the technical solution and inventive concept of the present invention, should be covered by the scope of protection of the present invention.
Claims
1. A method for synchronously covering smart street lamps based on wireless networking communication, characterized in that: The following steps are involved: When the streetlight is powered on, the controller executes the initialization network program to form a network. During the networking process, data is processed between streetlights using encryption and decryption. The streetlights transmit light signals through the light-emitting components and receive light signals through the light collection module. Whenever a new streetlight is networked, the network fusion program is executed according to the number of networked streetlights to obtain a network topology map. The streetlight at the center of the network topology map is set as the gateway, and the virtual position of each streetlight in the network topology map is corrected. The actuator drives two LEDs (1) in the same direction to emit light signals by using phase shift for modulation. The actuator of each street lamp is set with a basic frequency, which is a default frequency for communication. The actuator converts the digital signal into an optical signal based on the basic frequency or the frequency multiplication. The acquisition module performs verification when receiving the optical signal.
2. The method for synchronously covering smart street lamps based on wireless networking communication according to claim 1 is characterized in that: Initializing the network program specifically includes the following steps: Step 101: The controller of the first street lamp obtains a secret key from the flash memory module and simultaneously sends a networking request and the secret key to the encryption module. The encryption module encrypts the networking request into a first ciphertext using the secret key and forwards it to the encoding module. The encoding module converts the ciphertext into a first data link and transmits it to the actuator. The actuator drives the light-emitting component to illuminate. The LEDs (1) in four directions of the light-emitting component send first light signals to the outside according to the first data link. Step 102: The acquisition module of the second streetlight acquires the first light signal emitted by the first streetlight in its direction and converts it into a second data link. The acquisition module transmits its own direction information and the second data link to the encoding module. The encoding module converts the second data link into a second ciphertext. The encoding module transmits the second ciphertext and the direction information to the decryption module. The decryption module obtains a secret key from the flash memory module and uses the secret key to convert the second ciphertext into a first message. The decryption module transmits the first message and the direction information to the controller. The first message contains the networking request of the first streetlight. Step 103: The controller of the second street lamp reads the parameter information and secret key of the street lamp from the flash memory module, and transmits the parameter information, secret key and networking feedback of the street lamp to the encryption module. The encryption module uses the secret key to encrypt the parameter information and networking feedback of the street lamp into a third ciphertext. The encryption module transmits the third ciphertext to the encoding module. The encoding module converts the third ciphertext into a third data link. The encoding module transmits the third data link to the actuator. The actuator drives the light-emitting component to illuminate. The light-emitting component sends a second light signal to the LED (1) facing the first street lamp according to the third data link. Step 104: The acquisition module of the first streetlight acquires the second optical signal directed toward the second streetlight and converts it into a fourth data link. The acquisition module transmits the fourth data link to the encoding module. The encoding module converts the fourth data link into a fourth ciphertext. The encoding module transmits the fourth ciphertext to the decryption module. The decryption module obtains a secret key from the flash memory module and uses the secret key to convert the fourth ciphertext into a second message. The decryption module transmits the second message to the controller. The content of the second message is the streetlight parameter information and networking feedback. Step 105: The controller of the first street lamp completes the network connection with the controller of the second street lamp according to the networking feedback and the parameter information of the street lamp, and the network initialization program is terminated.
3. The method and system for synchronously covering smart street lamps based on wireless networking communication according to claim 2, characterized in that: The message contains parameter information, networking requests, and networking feedback of the adjacent street lamps in the direction of the acquisition module. The parameter information of the street lamp includes the gateway information of the network where the street lamp is located, the network address of the street lamp itself, and the hardware number of the street lamp itself. The first data link, the second data link, the third data link, and the fourth data link are all binary data structures, consisting of 0 and 1 respectively. The flash memory modules in the first and second street lamps store the same key, and the encryption and decryption process is symmetric encryption.
4. The method for synchronously covering smart street lamps based on wireless networking communication according to claim 1, characterized in that: When the actuator drives two LEDs (1) in the same direction using phase offset, the actuator sets the phase of the first LED (1) to 0 and the phase of the second LED (1) to π. The actuator converts the digital signal to be sent into an optical signal according to a modulation formula. The modulation formula is set by the controller and saved in the flash memory module. The modulation formula is: s1(t)=Q·sin(2πf0t+φ) s2(t)=Q·sin(2πf0t+φ+π / 2) s1(t) is a function of how the light intensity of the first LED (1) changes with time t, s2(t) is a function of how the light intensity of the second LED (1) changes with time t, Q is the amplitude of the light signals of the two LEDs (1), f0 is the carrier frequency, which is the base frequency or the frequency multiplication, t is the time when the light signal propagates, φ is the phase set by the actuator, the phase of the first LED (1) is φ=0, and the phase of the second LED (1) is set to φ=π, and π / 2 in the formula for obtaining s2(t) is the fixed phase difference between the first LED (1) and the second LED (1); The actuator modulates the corresponding LED (1) according to s1(t) and s2(t) to emit light signals, which are then acquired and verified by the acquisition module.
5. The method for synchronously covering smart street lamps based on wireless networking communication according to claim 4 is characterized in that: The acquisition module verifies the optical signal including the following steps: The controller sets the detection formula, which is: E1=∫Ts(t)·sin(2πf0t)dt E2=∫Ts(t)·sin(2πf0t+π)dt E1 is the correlation integral between the light signal received by the acquisition module and the reference signal sin(2πf0t). In the formula of E1, s(t) corresponds to the light signal s1(t) of the first LED(1). E2 is the correlation integral between the light signal received by the acquisition module and the reference signal sin(2πf0t+π). In the formula of E2, s(t) corresponds to the light signal s2(t) of the second LED(1). ∫T……dt is the integral operation within the period T. The controller sets a detection formula and saves it to a flash memory module. The acquisition module reads the detection formula from the flash memory module and calculates. If the calculation result is E1>E2, the acquisition module takes the light signal emitted by the first LED (1) as the standard. If E1<E2, the acquisition module takes the light signal emitted by the second LED (1) as the standard. If E1=E2, the acquisition module determines that the light signal is lost and does not collect the light signal.
6. The method for synchronously covering smart street lamps based on wireless networking communication according to claim 1, characterized in that: The actuator sets the base frequency for optical signal communication. If the base frequency cannot meet the data volume of the optical signal communication, the actuator increases the base frequency to a multiple frequency and adjusts it according to the different frequencies of the multiple frequency. If the base frequency meets the data volume of the optical signal communication, the actuator reduces the multiple frequency back to the base frequency. The acquisition frequency of the acquisition module is a fixed frequency, and the actuator uses a timer to adjust the base frequency or the multiple frequency.
7. The method for synchronously covering smart street lamps based on wireless networking communication according to claim 1, characterized in that: The network integration procedure specifically includes the following steps: Step 201: After the two street lamps are networked, the controllers each count the number of street lamps in the network before networking; Step 202: Compare the number of streetlights in the two networks before networking. Follow the principle of integrating the network with fewer streetlights into the network with more streetlights. Connect the two networked streetlights and use the connected streetlights as access points. Connect the streetlight layout of the network with fewer streetlights to the layout of the network with more streetlights to obtain a network topology. If the number of streetlights in the two networks is equal, randomly select one network to integrate into the other. Step 203: After the network is integrated, the network topology needs to be revised and the gateway needs to be set.
8. The method for synchronously covering smart street lamps based on wireless networking communication according to claim 1, characterized in that: Correcting the virtual position of a street light in a network topology diagram specifically includes the following steps: Step 301: The controller obtains the number of connections and the length of connections between each street lamp in the network topology; Step 302: Mark the streetlights with a connection length greater than 1 as offset points, select the connecting line with the largest offset point connection length and mark its midpoint as the correction point, and move the streetlight from the offset point to the correction point. The correction point is the virtual position of the streetlight. Step 303: After the streetlight has moved, the original connection number of the streetlight is reconnected to complete the correction of the streetlight's virtual position; Setting up a gateway in the network topology diagram specifically includes the following steps: Step 401: The controller marks the streetlight with a connection number of 1 in the network topology as an edge streetlight; Step 402: Count the number of shortest paths from all streetlights to each edge streetlight. The number of paths increases by 1 each time a streetlight is passed. Each controller adds up the number of shortest paths from its own streetlight to obtain the total number of paths. Step 403: Set the street lamp with the largest total number of paths as the gateway of the network topology. If there are multiple street lamps with the same total number of paths, randomly set it from the street lamps with the same total number of paths.
9. Based on wireless networking communication, the system synchronously covers smart street lights, which is characterized by The method for synchronously covering smart street lamps based on wireless networking communication, as described in any one of claims 1 to 8, comprises an acquisition module, an encoding module, a decryption module, a controller, a flash memory module, an encryption module, an actuator, and a light-emitting component, wherein the output end of the acquisition module is connected to the input end of the encoding module, the output end of the encoding module is respectively connected to the input ends of the decryption module and the actuator, the output end of the decryption module is connected to the input end of the controller, a port of the controller establishes communication with a port of the flash memory module, the output end of the flash memory module is respectively connected to the input ends of the decryption module and the acquisition module, the output end of the controller is connected to the input end of the encryption module, the output end of the encryption module is connected to the input end of the encoding module, and the output end of the actuator is connected to the input end of the light-emitting component; The acquisition module comprises a photosensitive diode (2) and a verification module, wherein the photosensitive diode (2) is mounted at the end of the tubular structure and is used to obtain a light signal at a specific position in the direction of the street lamp; the verification module is used to calculate and verify the light signal obtained by the photosensitive diode (2); the encoding module is used for data conversion and transmission; the decryption module is used to decrypt ciphertext into a message; the encryption module is used to encrypt the message into ciphertext; the actuator is a light source driver, used to drive the lighting component to illuminate and adjust the flashing frequency of the light-emitting component; the controller is used for data processing; and the flash memory module is used to store parameter information of the street lamp, a key, and temporary data generated during the controller calculation process.
10. The system for synchronously covering smart street lamps based on wireless networking communication according to claim 9 is characterized in that: The light-emitting assembly is composed of 8 LEDs (1), which are arranged in groups of two at four directions on the top of the street lamp. The dotted circle represents the lighting range of each LED (1), and the lighting ranges of the LEDs (1) between each street lamp are tangent. A photosensitive diode (2) is located between two LEDs (1), and the photosensitive diode (2) can obtain light signals from the LEDs (1) of adjacent street lamps in the same direction.
Citation Information
Cited By
High-density small local area network multi-access cooperation rapid network distribution method and system
CN121842729A