Disclosure of Invention
In order to solve the problems and defects in the prior art, the invention provides an intelligent dimming control system and method for each lighting section in a tunnel, which not only realize the dynamic lighting effects of lighting equipment in the tunnel, such as vehicle coming light, vehicle going light dark and lamp going with the vehicle, but also realize that each lighting section adopts a proper power value to light a lamp according to the data of brightness values outside the tunnel, vehicle inspection information and the brightness specification value required by each lighting section through the built brand-new intelligent dimming control system for the vehicle, so that the difference between the brightness inside and outside the tunnel is minimum, the black hole effect is eliminated, and the optimal energy-saving effect is finally achieved.
In order to achieve the above object, the technical solution of the present invention is as follows:
an intelligent dimming control system for each lighting section in a tunnel on a vehicle mainly comprises an LED tunnel lamp, a local controller, a relay, nodes, an outside-tunnel brightness sensor and an inside-tunnel brightness sensor, wherein the local controller is communicated with the relay by adopting Ethernet, the relay is communicated with the nodes by adopting Bluetooth, and the outside-tunnel brightness sensor and the inside-tunnel brightness sensor are communicated with the relay by adopting a 485 bus;
the LED tunnel lamp is arranged in the tunnel and used for lighting in the tunnel;
the local controller is used for receiving the information transmitted by the relay and issuing an instruction, the local controller issues the instruction to the relay at the entrance of the tunnel, the relay forwards the instruction to the node, the instruction is transmitted in the node according to the set propagation direction, propagation distance and jump transmission interval, and finally the instruction is fed back to the local controller by the relay at the exit of the tunnel;
the relay is used for forwarding data and instructions between the node and the local controller and issuing dimming control instructions to the nodes in the tunnel according to brightness values inside and outside the tunnel hole, and one relay is respectively installed at an inlet and an outlet in the tunnel;
the outside-tunnel brightness sensor is used for detecting the brightness outside the tunnel and is arranged at the entrance of the tunnel;
the luminance sensor in the hole is used for detecting the luminance in the tunnel, and the luminance sensor in the hole is arranged in the tunnel in the entrance lighting section, the transition lighting section, the middle lighting section, the exit lighting section and the exit lighting section respectively.
In the invention, the system dimming can be designed into two modes of sectional dimming and single lamp dimming, the node structures and node arrangements corresponding to the two modes are different, and the node arrangements are slightly different under different tunnel lamp arrangement conditions.
Segmented dimming:
for the tunnels with the lamps arranged on two sides, the nodes comprise class A nodes and class B nodes, the class A nodes can detect vehicles passing in the tunnels and can control the LED tunnel lamps connected with the class A nodes, and the class B nodes are used for controlling the LED tunnel lamps connected with the class B nodes; wherein,
the A-type node equipment is arranged on the left side of the tunnel traffic lane and is respectively arranged at the starting positions of the entrance lighting first section, the entrance lighting second section, the transition lighting first section, the transition lighting second section, the middle lighting section, the exit lighting first section and the exit lighting second section and at intervals of 60 meters in each lighting section; the B-type node equipment is arranged on the right side of the tunnel traffic lane and is respectively arranged at the starting positions of the first entrance lighting section, the second entrance lighting section, the first transition lighting section, the second transition lighting section, the middle lighting section, the first exit lighting section and the second exit lighting section and at the interval of 60 meters in each lighting section; the nodes are connected with the LED tunnel lamps at the respective sides within the range of 60 meters;
for the tunnel with the lamps distributed in the middle, the nodes are type A nodes which are respectively arranged at the starting positions of the first entrance lighting section, the second entrance lighting section, the first transition lighting section, the second transition lighting section, the middle lighting section, the first exit lighting section and the second exit lighting section and at intervals of 60 meters in each lighting section, and the nodes are connected with all the LED tunnel lamps within the range of 60 meters.
Dimming of a single lamp:
for the tunnels with the lamps arranged on two sides, the nodes comprise class A nodes and class B nodes, the class A nodes can detect vehicles passing in the tunnels and can control the LED tunnel lamps connected with the class A nodes, and the class B nodes are used for controlling the LED tunnel lamps connected with the class B nodes; wherein,
the A-type node equipment is arranged on the left side of a tunnel traffic lane and is arranged at the starting positions of the first entrance lighting section, the second entrance lighting section, the first transition lighting section, the second transition lighting section, the middle lighting section, the first exit lighting section and the second exit lighting section and at intervals of 60 meters in each lighting section respectively, the A-type node is connected with an LED tunnel lamp closest to the A-type node, and the B-type nodes are arranged at the rest LED tunnel lamps in the tunnel respectively;
for the tunnel with the lamps arranged in the middle, the nodes comprise class A nodes and class B nodes, the class A nodes can detect vehicles passing in the tunnel and can control LED tunnel lamps connected with the class A nodes, and the class B nodes are used for controlling the LED tunnel lamps connected with the class B nodes; wherein,
the A-type nodes are respectively arranged at the starting positions of the first entrance lighting section, the second entrance lighting section, the first transition lighting section, the second transition lighting section, the middle lighting section, the first exit lighting section and the second exit lighting section and at intervals of 60 meters in each lighting section, the A-type nodes are connected with an LED tunnel lamp closest to the A-type nodes, and the B-type nodes are respectively distributed at the rest LED tunnel lamps in the tunnel.
In the invention, in the tunnel, all nodes communicate with each other through Bluetooth.
In the invention, the relays in the system and the nodes in the tunnel have own numbers, and the relays and the nodes in the system are sequentially numbered according to the sequence from the tunnel entrance to the tunnel exit.
Preferably, the nodes or relays in the tunnel receive the bluetooth data sent by the first four and the last four nodes numbered adjacent to the nodes or relays.
An intelligent dimming control method for each lighting section in a tunnel on a vehicle is realized based on the intelligent dimming control system for each lighting section in the tunnel, and specifically comprises the following steps:
the local controller or the node generates a packet of data packet, then transmits the packet of data packet to other surrounding devices, after receiving the packet of data packet, the other surrounding devices firstly judge whether the data in the packet of data is complete and whether the transmission process is wrong, then judge whether the corresponding LED tunnel lamp should be controlled to be turned on according to the attribute of the packet of data, the data transmission direction, the data transmission distance and the skip transmission interval, and further judge whether the packet of data needs to be broadcast and transmitted again to other surrounding devices;
the LED tunnel lamp in the tunnel is lightened according to a specified dimming proportion, and after the set light-up time, the light of the LED tunnel lamp is darkened; after other nodes in the tunnel receive the data, the same operation is executed, the lighting instruction sequentially lights the lighting equipment within the distance range in a set direction according to the set data transmission distance, and finally the dynamic vehicle-mounted dimming effect of the lighting of the vehicle in the tunnel is realized;
the out-of-tunnel brightness sensor and the in-tunnel brightness sensor respectively acquire actual brightness values of all illumination sections outside and in the tunnel in real time, the data are transmitted to the relay, the relay determines the dimming proportion of the LED tunnel lamp in each illumination section according to the actual brightness values inside and outside the tunnel, generates corresponding data packets and transmits the data packets to nodes in all the illumination sections, and the nodes adjust the operating power of the LED tunnel lamp according to the data in the data packets.
Preferably, the local controller automatically generates a packet of data and then directly sends the packet of data to the relay at the inlet through a TCP protocol, the relay at the inlet stores the packet of data into a data buffer area of the relay, and the timer takes out a packet of data from the data buffer area every 25 milliseconds and broadcasts the packet of data to other peripheral equipment by using Bluetooth.
Preferably, the node automatically generates a packet of data to be stored in its own data buffer, and the timer fetches a packet of data from the data buffer every 25 ms and broadcasts the packet of data to other devices around using bluetooth.
Preferably, after receiving the packet data, the other peripheral devices first determine whether the data in the packet data is complete and whether the transmission process is faulty, and then determine whether the corresponding LED tunnel lamp should be controlled to turn on according to the attribute of the packet data, the data transmission direction, the data propagation distance, and the skip transmission interval, and whether the packet data needs to be broadcast and transmitted again to other peripheral devices, including:
step a, after the equipment receives the data packet, firstly judging whether the data head, the data tail and the check bit in the data packet are correct, if so, turning to the step b, otherwise, discarding the data packet and waiting for receiving the next broadcasted data packet;
step b, the device judges whether the device is in the data specified transmission direction according to the data transmission direction of the data packet, if so, the device goes to step c, otherwise, the device does not perform subsequent processing and discards the data packet, and waits for receiving the next broadcast data packet;
step c, the device judges whether the device is in the data transmission distance according to the data transmission distance of the data packet, if so, the step d is carried out, otherwise, the subsequent processing is not carried out, the data packet is discarded, and the device waits for receiving the next broadcast data packet;
d, the equipment executes corresponding operation according to the attribute of the data packet and judges whether the equipment meets a skip transmission interval, if so, the data packet is put into a buffer area of the equipment, a timer takes out the data packet after 25 milliseconds and broadcasts the data packet by Bluetooth, other equipment around the equipment receives the data packet, the steps are repeated, and the data packet is transmitted according to the appointed data transmission direction and finally fed back to the local controller; if the device does not meet the skip transmission interval, the device does not perform subsequent processing on the data packet any more and waits for receiving the next broadcast data packet;
step d1, if the data packet received by the equipment is a fault data packet, the equipment does not execute any instruction, the data packet is directly broadcast to other surrounding equipment, and the local controller prompts a management maintenance worker to maintain the equipment in the tunnel after receiving the fault data packet;
step d2, if the data packet received by the equipment is a parameter setting data packet, the equipment modifies the parameters of the LED tunnel lamp correspondingly controlled according to the parameter modification instruction in the data packet;
and d3, if the data packet received by the equipment is the vehicle detection data packet, the equipment lights the LED tunnel lamp correspondingly controlled according to the light-on instruction in the data packet.
Preferably, the relay determines the dimming ratio of the LED tunnel lamp in each lighting segment according to the actual brightness values inside and outside the hole, generates a corresponding data packet, and transmits the data packet to the node in each lighting segment, and the node adjusts the operating power of the LED tunnel lamp according to the data in the data packet, including:
after the relay receives the data transmitted by the sensor outside the tunnel and the sensor inside the tunnel, the dimming proportion of the LED tunnel lamp in different illumination sections is calculated according to the following fitting formula
Wherein,
for the actual luminance values in the tunnel,
is the dimming proportion of the LED tunnel lamp in the tunnel,
the actual brightness value outside the tunnel is obtained;
the relay generates a packet of data packet to be stored in a data buffer area of the relay, a timer takes out a packet of data from the data buffer area every 25 milliseconds, the packet of data is broadcasted to surrounding nodes by using Bluetooth, after the nodes receive the packet of data, whether the data in the packet of data is complete and whether the transmission process is wrong are judged, and then whether the running power of the corresponding LED tunnel lamp should be adjusted is judged according to the attribute of the packet of data, the data transmission direction, the data transmission distance, the jump transmission interval and the data volume content.
Preferably, after receiving the packet data, the node first determines whether data in the packet is complete and whether a transmission process is erroneous, and then determines whether to adjust operating power of a corresponding LED tunnel lamp according to an attribute of the packet, a data transmission direction, a data propagation distance, and a skip transmission interval, including:
step e, the node judges whether the node is in the data specified transmission direction according to the data transmission direction of the data packet, if so, the step f is carried out, otherwise, the subsequent processing is not carried out, the data packet is discarded, and the node waits for receiving the next broadcast data packet;
f, the node judges whether the node is in the data transmission distance according to the data transmission distance of the data packet, if so, the step g is carried out, otherwise, the subsequent processing is not carried out, the data packet is discarded, and the node waits for receiving the data packet of the next broadcast;
g, the node executes corresponding operation according to the attribute of the data packet, firstly, the node judges whether the illumination section is the same as the action illumination section according to the action illumination section contained in the data volume content in the data packet, if the illumination section is different from the action illumination section, the step h is skipped to, and if the illumination section is the same, the operation power of the corresponding LED tunnel lamp is adjusted according to the dimming proportion parameter contained in the data volume content;
step h, judging whether the node meets the skip transmission interval, if so, putting the data packet into a buffer area of the node, taking out the data packet by a timer after 25 milliseconds and broadcasting the data packet by Bluetooth, and after other peripheral equipment receives the data packet, repeating the steps, transmitting the data packet according to the appointed data transmission direction, and finally feeding the data packet back to a local controller; and if the node does not meet the skip transmission interval, the data packet is not subjected to subsequent processing, and the next broadcast data packet is waited to be received.
Preferably, after receiving the data packet, the device discards the data packet and deletes the data packet with the same data buffer in the device if judging that the data buffer in the device has the same data packet.
Preferably, the parameter modification instruction comprises an LED tunnel lamp lighting time instruction, an LED tunnel lamp brightness level adjusting instruction and a vehicle-mounted dimming closing instruction.
The invention has the beneficial effects that:
(1) The invention realizes the dynamic lighting effect of lighting equipment in the tunnel, such as coming light, going dark and going with the vehicle, and realizes that each lighting section adopts proper power value to light the lamp according to the data of the brightness value outside the tunnel, the vehicle inspection information and the brightness standard value required by each lighting section, thereby minimizing the difference of the brightness inside and outside the tunnel, eliminating the black tunnel effect, avoiding the energy consumption waste caused by excessive and ineffective lighting under the conditions of safe driving and comfortable lighting, and achieving the best energy-saving effect.
(2) The invention finely controls the lamps of each lighting section in the tunnel, has obvious energy-saving effect, prolongs the service life of the lamps in the tunnel and reduces carbon emission.
(3) The vehicle-mounted intelligent dimming control system abandons the traditional node + gateway form, and builds a brand-new dimming control system in a gateway-removing form, data transmission is carried out between all nodes in a Bluetooth jump transmission mode, the relay is mainly responsible for data forwarding between the local controller and the nodes, the relay and the local controller are communicated by adopting the Ethernet, the problem that a data transmission link is disconnected due to the fact that no mobile signal exists is solved, the whole tunnel is only provided with two relays, only two network ports and two IP addresses need to be occupied, the layout cost and the maintenance cost of the system are reduced, and the control of the nodes is more reliable.
(4) The vehicle-mounted intelligent dimming control system can be implemented in a tunnel without a mobile signal, data transmission and node control cannot be influenced, and the system is high in applicability.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution for achieving the object of the present invention will be further described by several specific examples, and it should be noted that the technical solution claimed in the present invention includes, but is not limited to, the following examples. All other embodiments, which can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present invention, shall fall within the protection scope of the present invention.
At present, a relatively extensive dimming mode is adopted in a lighting control method of a highway tunnel, and the brightness value of a lighting section in a tunnel is uniformly adjusted by dividing into 4-6 dimming levels according to the brightness value outside the tunnel. When the tunnel lighting is designed, the problem of insufficient tunnel brightness caused by factors such as light attenuation of each lighting section, dust covering of the lamp, and faults of individual lamps is considered by a design unit, the lamp generally selects larger power, and when the lamp runs at rated power, the brightness value is much larger than the design standard value. Therefore, the current tunnel lighting dimming technology has the following problems and disadvantages: (1) The on-vehicle dimming cannot be realized, even if only one vehicle passes through, lamps in the tunnel are all lightened to be fully loaded, so that a large amount of ineffective illumination is caused to cause waste of electric energy, and the longer the tunnel is, the greater the waste of the electric energy is; (2) Lamps in the tunnel are usually only in full-bright and micro-bright states, when a vehicle exists, after the lamps are lightened, the brightness value of the lamps exceeds a standard value, excessive illumination is caused, electric energy waste is caused, and the more the vehicle flow is, the more the waste is obvious. In summary, the conventional rough dimming control method not only causes "white hole" and "black hole" effects, but also causes a lot of waste of energy consumption due to excessive and ineffective lighting.
Based on the above, the embodiment of the invention provides an on-vehicle intelligent dimming control system and method for each illumination section in a tunnel, which not only realize the dynamic illumination effect of lighting equipment in the tunnel, such as on-vehicle light, dark on-vehicle light and on-vehicle light, but also realize that each illumination section adopts a proper power value to light the lamp according to the data of the brightness value outside the tunnel, the vehicle inspection information and the brightness standard value required by each illumination section by building the on-vehicle intelligent dimming control system, so that the difference between the brightness inside and outside the tunnel is minimized, the black hole effect is eliminated, and the optimal energy-saving effect is finally achieved.
In order to facilitate understanding of the technical scheme of the invention, a vehicle-mounted intelligent dimming control system for each lighting section in a tunnel disclosed by the embodiment of the invention is firstly introduced in detail.
In the embodiment, the invention firstly divides the tunnel into four large sections, namely an entrance lighting section, a transition lighting section, a middle lighting section and an exit lighting section, from the entrance to the exit in sequence, further divides the entrance lighting section into the entrance lighting section and the entrance lighting section, the transition lighting section is subdivided into the transition lighting section and the transition lighting section, and the exit lighting section is divided into the exit lighting section and the exit lighting section.
The embodiment of the invention discloses an intelligent dimming control system for each lighting section in a tunnel, which is shown in the attached figure 1 in the specification, and mainly comprises an LED tunnel lamp, a local controller, a relay, a node, an out-of-hole brightness sensor and an in-hole brightness sensor, wherein the local controller is communicated with the relay by adopting Ethernet, the relay is communicated with the node by adopting Bluetooth, the out-of-hole brightness sensor and the in-hole brightness sensor are communicated with the relay by adopting a 485 bus, and the intelligent dimming control system comprises:
the LED tunnel lamp is arranged at the top of the tunnel along the length direction of the tunnel and used for realizing illumination in the tunnel and providing a good illumination sight line for a driver in the tunnel;
the local controller is used for receiving the information transmitted by the relay and issuing an instruction, the local controller issues the instruction to the relay at the entrance of the tunnel, the relay forwards the instruction to the node, the instruction is transmitted in the node according to the set propagation direction, propagation distance and jump transmission interval, and finally the instruction is fed back to the local controller by the relay at the exit of the tunnel;
the relay comprises an Ethernet module and a Bluetooth chip and is mainly used for forwarding data and instructions between the node and the local controller and sending dimming control instructions to the node in the tunnel according to brightness values inside and outside the tunnel hole, and relays are respectively installed at an inlet and an outlet in the tunnel;
the luminance sensor outside the tunnel is used for detecting the luminance outside the tunnel and is arranged at the entrance of the tunnel;
the luminance sensor in the hole is used for detecting the luminance in the tunnel, and the luminance sensor in the hole is arranged in the tunnel in the entrance lighting section, the transition lighting section, the middle lighting section, the exit lighting section and the exit lighting section respectively.
In the invention, the system dimming can be designed into two modes of sectional dimming and single lamp dimming, the node structures and node arrangements corresponding to the two modes are different, and the node arrangements are slightly different under different tunnel lamp arrangement conditions.
Segmented dimming:
for the tunnels with the lamps arranged on the two sides, the nodes comprise class A nodes and class B nodes, the class A nodes can detect vehicles passing through the tunnels and can control the LED tunnel lamps connected with the class A nodes, and the class B nodes are used for controlling the LED tunnel lamps connected with the class B nodes; wherein,
the A-type node equipment is arranged on the left side of the tunnel traffic lane and is respectively arranged at the starting positions of the first entrance lighting section, the second entrance lighting section, the first transition lighting section, the second transition lighting section, the middle lighting section, the first exit lighting section and the second exit lighting section and at the interval of 60 meters in each lighting section; the B-type node equipment is arranged on the right side of the tunnel traffic lane and is respectively arranged at the starting positions of the first entrance lighting section, the second entrance lighting section, the first transition lighting section, the second transition lighting section, the middle lighting section, the first exit lighting section and the second exit lighting section and at the interval of 60 meters in each lighting section; the nodes are connected with the LED tunnel lamps at the respective sides within the range of 60 meters;
for the tunnel with the lamps distributed in the middle, the nodes are type A nodes which are respectively arranged at the starting positions of the first entrance lighting section, the second entrance lighting section, the first transition lighting section, the second transition lighting section, the middle lighting section, the first exit lighting section and the second exit lighting section and at intervals of 60 meters in each lighting section, and the nodes are connected with all the LED tunnel lamps within the range of 60 meters.
Dimming of a single lamp:
for the tunnels with the lamps arranged on two sides, the nodes comprise class A nodes and class B nodes, the class A nodes can detect vehicles passing in the tunnels and can control the LED tunnel lamps connected with the class A nodes, and the class B nodes are used for controlling the LED tunnel lamps connected with the class B nodes; wherein,
the A-type node equipment is arranged on the left side of a tunnel traffic lane and is arranged at the starting positions of the first entrance lighting section, the second entrance lighting section, the first transition lighting section, the second transition lighting section, the middle lighting section, the first exit lighting section and the second exit lighting section and at intervals of 60 meters in each lighting section respectively, the A-type node is connected with an LED tunnel lamp closest to the A-type node, and the B-type nodes are arranged at the rest LED tunnel lamps in the tunnel respectively;
for the tunnel with the lamps arranged in the middle, the nodes comprise class A nodes and class B nodes, the class A nodes can detect vehicles passing in the tunnel and can control LED tunnel lamps connected with the class A nodes, and the class B nodes are used for controlling the LED tunnel lamps connected with the class B nodes; wherein,
the A-type nodes are respectively arranged at the starting positions of the first entrance lighting section, the second entrance lighting section, the first transition lighting section, the second transition lighting section, the middle lighting section, the first exit lighting section and the second exit lighting section and at intervals of 60 meters in each lighting section, the A-type nodes are connected with an LED tunnel lamp closest to the A-type nodes, and the B-type nodes are respectively distributed at the rest LED tunnel lamps in the tunnel.
In the invention, in the tunnel, all nodes communicate with each other through Bluetooth.
In this embodiment, when lamps are arranged on both sides of a tunnel, the tunnel LED lamps on both sides are generally arranged symmetrically.
In this embodiment, the relays in the system and the nodes in the tunnel both have their own numbers, and the relays and the nodes in the system are numbered sequentially according to the sequence from the tunnel entrance to the tunnel exit.
In this embodiment, it should be noted that the class a node is a radar-type node, and is provided with a dimming controller and a vehicle detector, and the class a node can not only control the lighting, brightness level, and the like of the LED lamp in the tunnel, but also detect the vehicle in the tunnel; furthermore, the class B node is a common node and has a dimming controller, and the class B node can only control the lighting, brightness level, and the like of the LED lamp in the tunnel, and cannot detect the vehicle in the tunnel. Both class a and class B nodes are prior art and can be purchased commercially.
In this embodiment, it should be further noted that, when numbering the devices in the system, numbering is usually performed in the order from large to small, and the relays and nodes are numbered sequentially in the order from the tunnel entrance to the exit.
For the tunnel with lamps distributed in the middle, the number is simple and direct, the number of the relay at the tunnel entrance is 1001, the number of the first node corresponding to the first tunnel LED lamp at the tunnel entrance is 1000, the number of the second node corresponding to the second tunnel LED lamp is 999, the number of the third node corresponding to the third tunnel LED lamp is 998, the number of the four nodes corresponding to the fourth tunnel LED lamp is 997, the number of the fifth node corresponding to the fifth tunnel LED lamp is 996, and so on, the number of the relay at the exit is the last in the system and is the minimum.
For the tunnels with lights arranged on the two sides, when numbering, the relay number at the entrance of the tunnel is 1001, the number of the first A-type node at the entrance in the tunnel is 1000, the number of the first B-type node is 999, the number of the second A-type node is 998, the number of the second B-type node is 997, the number of the third A-type node is 996, the number of the third B-type node is 995, and so on, the A-type nodes and the B-type nodes on the left and right sides of the tunnel in the tunnel are numbered in a crossed manner; similarly, the number of the relay at the egress is the last in the system and is the smallest.
Therefore, in this embodiment, when numbering nodes in a tunnel, the a-class nodes and the B-class nodes are numbered uniformly according to the sequence from the entry to the exit, and have no relation with the node type and the tunnel segment in which the node is located.
In this embodiment, the node or the relay uses the white list filtering policy of bluetooth, so that it can only receive bluetooth data of the first four devices and the last four devices adjacent to the node or the relay, and other data are filtered out, thereby preventing too much data from causing a large load to the controller to scan and analyze data, which results in untimely processing of valid data.
In this implementation, after a node or a relay receives a packet of bluetooth data, the data is analyzed according to a specified data protocol to see whether the packet of data conforms to the protocol, if the packet of data does not conform to the protocol, the packet of data is discarded, if the packet of data conforms to the protocol, information such as a data source, a data propagation direction, a data propagation distance, a packet attribute and the like is analyzed from the packet of data, after the device receives the packet of data, the device firstly compares the packet of data with data in its internal buffer area to judge whether the same packet of data exists, if the same packet of data exists, the packet of data is discarded, and the same packet of data in its internal buffer area is deleted at the same time, if the same packet of data does not exist in the buffer area, corresponding operations are required to be executed according to the data propagation direction, the data propagation distance and the packet of data of the packet of data, and finally, a dynamic lighting effect of lighting equipment "light on coming vehicle, dark vehicle going with light and light along with vehicle" in a tunnel is realized.
Furthermore, brightness sensors arranged in the tunnel and outside the tunnel monitor the current brightness values in real time, data are transmitted to a relay, the relay receives the data and generates corresponding data packets, the data packets are transmitted to a local controller and a node through Ethernet and Bluetooth respectively, the local controller receives the data packets and displays the data packets at a terminal, and the node executes corresponding actions according to the data in the data packets after receiving the data packets and adjusts the operating power of the LED tunnel illuminating lamp correspondingly controlled by the node to the specified power, so that the brightness difference between the inside and the outside of the tunnel is minimized, the black hole effect is eliminated, the energy consumption waste caused by excessive and ineffective illumination is avoided under the conditions of safe driving and comfortable illumination, and the optimal energy-saving effect is achieved.
In this embodiment, it should be noted that the bluetooth data packet received by the node or the relay includes information such as a data header, a packet attribute, a data source, a data skip interval, a data transmission direction, a data transmission distance, an instruction action, a check bit, a data trailer, and a data volume content.
In this embodiment, the data header is used to determine whether the data is the first bit of each packet of data, and the data such as the second bit, the third bit, and the like can be found only by using the data as a reference, the data trailer is used to indicate that a complete packet of data is received, and the check bit is used to determine whether there is a transmission error in the packet of data during transmission. Therefore, in this embodiment, the determination of whether the data packet is protocol-compliant data refers to determining whether the data in the data packet is complete and whether the transmission process is error according to the data header, the data trailer and the check bit information in the bluetooth data packet, and if there is no problem, executing the next operation, otherwise, directly discarding the data packet.
In this embodiment, the data transmission direction, the data transmission distance, and the data skip interval may be set according to the requirements of the user. The data transmission direction is divided into a forward direction and a reverse direction, according to a common rule, the forward direction is generally called from the tunnel entrance to the tunnel exit, otherwise, the reverse direction is called, and the data transmission direction is generally set as forward transmission from the tunnel entrance to the tunnel exit; the data transmission distance refers to how many nodes the data can be transmitted, and the data is not transmitted beyond the distance, for example, after a radar type node (i.e., a class a node) with the number of 88 detects a vehicle, a vehicle detection data packet with the packet attribute of vehicle detection is initiated, the data transmission distance in the data packet is 10, the transmission direction is forward, then the data packet is only transmitted to a node with the number of 88-10=78, and a node with the number of less than 78 in a tunnel does not skip the data packet and does not execute the instruction action contained in the data packet; further, the skip transmission interval refers to whether the packet data is transmitted between nodes one by one or by how many nodes are spaced, and an intermediate node between two data skip transmission nodes is not skipped, for example, the skip transmission interval is set to 1, which indicates that the packet data is transmitted between nodes one by one, and the skip transmission interval is set to 4, which indicates that the packet data is transmitted between 4 nodes, and in general, in order to meet the lighting requirement in the tunnel, when the lighting instruction is executed in the dynamic dimming operation mode of the tunnel, the vehicle detection packet is transmitted between nodes one by one.
In this embodiment, it should be further noted that the data source indicates which device the packet data is generated from, and is indicated by the number of the device.
In the present embodiment, the packet attribute is a vehicle detection packet indicating whether the packet data is a vehicle detection packet in which a vehicle is detected or a failure packet in which equipment is reported, or a parameter setting packet, or another packet such as a dimming packet.
In this embodiment, it should be noted that the vehicle detection data packet is generally sent by a type a radar node arranged in the tunnel after detecting the vehicle, the parameter setting data packet is generally issued by the local controller, and for the failure data packet, all nodes in the tunnel may be generated; the dimming packets are generated by the relay.
Based on the same inventive concept, the embodiment of the invention also discloses an intelligent dimming control method for each lighting section in the tunnel, which is realized based on the internet of things vehicle-mounted dimming system for going to the gateway in the tunnel. Specifically, the dimming method is as follows.
The local controller or the node generates a packet of data packet, then transmits the packet of data to other surrounding equipment, after the other surrounding equipment receives the packet of data, firstly judges whether the data in the packet of data is complete and whether the transmission process is wrong, and then judges whether the corresponding LED tunnel lamp should be controlled to be lightened according to the attribute of the packet of data, the data transmission direction, the data transmission distance and the skip transmission interval, and whether the packet of data needs to be broadcast and transmitted again to other surrounding equipment;
the LED tunnel lamp in the tunnel is lightened, and after the set lightening time, the light of the LED tunnel lamp is darkened; after other nodes in the tunnel receive the data, the same operation is executed, the lighting instruction sequentially lights the lighting equipment within the distance range in a set direction according to the set data transmission distance, and finally the dynamic vehicle-mounted dimming effect of the lighting of the vehicle in the tunnel is realized;
the out-of-tunnel brightness sensor and the in-tunnel brightness sensor respectively acquire actual brightness values of all illumination sections outside and in the tunnel in real time, the data are transmitted to the relay, the relay determines the dimming proportion of the LED tunnel lamp in each illumination section according to the actual brightness values inside and outside the tunnel, generates corresponding data packets and transmits the data packets to nodes in all the illumination sections, and the nodes adjust the operating power of the LED tunnel lamp according to the data in the data packets.
In this embodiment, it should be noted that the brightness sensor performs data transmission by using the principle of proximity when transmitting data to the relay.
In this embodiment, it should be noted that, if the data packet is generated by the local controller and is below the local controller, the local controller automatically generates the data packet and then sends the data packet to the relay at the ingress via the TCP protocol, the relay at the ingress stores the data packet into its own data buffer, and the timer fetches a packet of data from the data buffer every 25 milliseconds and broadcasts the packet of data to other peripheral devices using bluetooth.
In this embodiment, it should be further noted that, if the data packet is generated by the node and is located below the node, after the node automatically generates the data packet, the data packet is stored in its own data buffer, and the timer fetches a packet of data from the data buffer every 25 milliseconds, and broadcasts the packet of data to other peripheral devices by using bluetooth.
In this embodiment, it should be further described that, if the data packet is generated and sent by the relay, the relay directly sends the data packet to the local controller through the TCP protocol, then the relay stores the data packet in its own data buffer, and the timer takes out a packet of data from the data buffer every 25 milliseconds and broadcasts the packet of data to other peripheral devices through bluetooth.
In this embodiment, after receiving the packet data, the other peripheral devices first determine whether the data in the packet data is complete and whether the transmission process is faulty, and then determine whether to control the corresponding LED tunnel lamp to turn on according to the attribute of the packet data, the data transmission direction, the data propagation distance, and the skip transmission interval, and whether to broadcast and transmit the packet data to other peripheral devices again, which specifically includes the following contents:
step a, after the device receives the data packet, firstly judging whether the data head, the data tail and the check bit in the data packet are correct, if so, turning to the step b, otherwise, directly discarding the data packet to wait for receiving the next broadcast data packet.
And b, judging whether the equipment is in the data specified transmission direction or not by the equipment according to the data transmission direction of the data packet, if so, turning to the step c, otherwise, not performing subsequent processing and discarding the data packet to wait for receiving the next broadcast data packet.
In this embodiment, it should be noted that, determining whether the device itself is in the data specified transmission direction specifically includes the following steps:
if the transmission direction of the data packet is the forward direction, the equipment judges whether the number of the equipment is smaller than the number of the data source, if so, the equipment is in the data specified transmission direction, otherwise, the equipment is not in the data transmission direction;
when the transmission direction of the data packet is reverse, the equipment judges whether the number of the equipment is larger than the number of the data source, if so, the equipment is in the data specified transmission direction, otherwise, the equipment is not in the data transmission direction.
And c, the equipment judges whether the equipment is in the data transmission distance according to the data transmission distance of the data packet, if so, the step d is carried out, otherwise, the subsequent processing is not carried out, the data packet is discarded, and the next broadcasted data packet is waited to be received.
In this embodiment, it should be noted that the device determines whether the device is located within the data transmission distance, specifically as follows:
and judging whether the number of the equipment is larger than the data source number minus the absolute value of the data transmission distance, if so, indicating that the equipment is in the data transmission distance, otherwise, indicating that the equipment is not in the data transmission distance.
D, the equipment executes corresponding operation according to the attribute of the data packet and judges whether the equipment meets a skip transmission interval, if so, the data packet is put into a buffer area of the equipment, a timer takes out the data packet after 25 milliseconds and broadcasts the data packet by Bluetooth, other equipment around the equipment receives the data packet, the steps are repeated, and the data packet is transmitted according to the appointed data transmission direction and finally fed back to the local controller; if the device does not meet the skip transmission interval, after the device executes corresponding operation, the device does not perform subsequent processing on the data packet any more and waits for receiving the next broadcast data packet;
step d1, if the data packet received by the equipment is a fault data packet, the equipment does not execute any instruction, the data packet is directly broadcast to other peripheral equipment, and the local controller prompts management and maintenance personnel to maintain the equipment in the tunnel after receiving the fault data packet;
step d2, if the data packet received by the equipment is a parameter setting data packet, the equipment modifies the parameters of the LED tunnel lamp correspondingly controlled according to the parameter modification instruction in the data packet;
and d3, if the data packet received by the equipment is the vehicle detection data packet, the equipment lights the LED tunnel lamp correspondingly controlled according to the light-on instruction in the data packet.
Further, the parameter modification instruction comprises an LED tunnel lamp lighting time instruction, an LED tunnel lamp brightness level adjusting instruction and a vehicle-mounted dimming closing instruction.
In this embodiment, it should be noted that the data propagation distance and the skip transmission interval set by the parameter setting data packet and the failure data packet are generally set to be relatively large, for example, the skip transmission interval may be set to 4, which may meet the requirement that each node can take effect, and may also accelerate the propagation speed of the data packet. For vehicle detection data packets, the data propagation distance is generally set to be relatively small, and outgoing data packets are propagated between nodes one by one without being propagated by the nodes.
In this embodiment, when a node or an LED tunnel lamp controlled by the node fails, the node generates a corresponding failure data packet, and feeds back the failure data to the local controller according to the above process.
In this embodiment, the relay determines the dimming ratio of the LED tunnel lamp in each lighting segment according to the actual brightness value inside and outside the hole, generates a corresponding data packet, and transmits the data packet to the node in each lighting segment, where the node adjusts the operating power of the LED tunnel lamp according to the data in the data packet, and the method includes:
after the relay receives the data transmitted by the sensor outside the tunnel and the sensor inside the tunnel, the dimming proportion of the LED tunnel lamp in different illumination sections is calculated according to the following fitting formula
Wherein,
for the actual brightness values of the illumination segments within the tunnel,
the dimming proportion of the LED tunnel lamps in each lighting section in the tunnel,
the actual brightness value outside the tunnel is used as the actual brightness value;
the relay generates a packet of data packet to be stored in a data buffer area of the relay, the timer takes out a packet of data from the data buffer area every 25 milliseconds, and broadcasts the packet of data to surrounding nodes by using Bluetooth, after the nodes receive the packet of data, the nodes firstly judge whether the data in the packet of data is complete and whether the transmission process is wrong, and then judge whether the running power of the corresponding LED tunnel lamp should be adjusted according to the attribute of the packet of data, the data transmission direction, the data propagation distance, the jump transmission interval and the data volume content.
Further, after receiving the packet data, the node first determines whether the data in the packet is complete and whether the transmission process is faulty, and then determines whether the operating power of the corresponding LED tunnel lamp should be adjusted according to the attribute of the packet, the data transmission direction, the data propagation distance, the skip transmission interval, and the data volume content, including:
e, the node judges whether the node is in the data specified transmission direction according to the data transmission direction of the data packet, if so, the step f is carried out, otherwise, the subsequent processing is not carried out, the data packet is discarded, and the next broadcast data packet is waited to be received;
f, the node judges whether the node is in the data transmission distance according to the data transmission distance of the data packet, if so, the step g is carried out, otherwise, the subsequent processing is not carried out, the data packet is discarded, and the node waits for receiving the data packet of the next broadcast;
g, the node executes corresponding operation according to the attribute of the data packet, firstly, the node judges whether the lighting section in which the node is positioned is the same as the lighting section according to the action lighting section contained in the content of the data body in the data packet, if the lighting section is different from the action lighting section, the step h is skipped, and if the lighting section is the same, the operating power of the corresponding LED tunnel lamp is adjusted according to the dimming proportion parameter contained in the content of the data body;
step h, judging whether the node meets the skip transmission interval, if so, putting the data packet into a buffer area of the node, taking out the data packet by a timer after 25 milliseconds and broadcasting the data packet by Bluetooth, and after other peripheral equipment receives the data packet, repeating the steps, transmitting the data packet according to the appointed data transmission direction, and finally feeding the data packet back to a local controller; and if the node does not meet the skip transmission interval, the data packet is not subjected to subsequent processing, and the next broadcast data packet is waited to be received.
In this embodiment, it should be noted that the fact that the device does not perform subsequent processing on the data packet means that the device does not store the data packet into its own buffer, and does not broadcast the data packet.
In this embodiment, it should be noted that whether the self-device satisfies the skip transmission interval is determined as follows:
the equipment firstly analyzes the direct source (only by calling an official API) of the data packet from the Bluetooth protocol, wherein the direct source of the data refers to the data packet sent by a person and is represented by the number of the equipment which sends the data packet; the equipment judges whether the number of the equipment is equal to the absolute value obtained by subtracting the skip transmission interval from the direct data source number, if so, the equipment meets the skip transmission interval requirement, and the equipment stores the received data packet into a buffer area of the equipment and broadcasts the data packet regularly.
In this embodiment, it should be noted that the device refers to a relay or a node in a system.
In this embodiment, it should be noted that, because the data packet generated by the local controller is directly sent to the relay through the ethernet (TCP), the relay stores the data packet into the data buffer, and then broadcasts the data packet in a bluetooth manner at regular time, and the relay is used as the first device of the bluetooth transmission link, in the system, the data source of the data packet below the local controller is considered as the relay, and then the number of the data source is the number corresponding to the relay.
Further, after the device receives the data packet, if the device judges that the data packet in the internal data buffer area of the device has the same data packet, the device discards the data packet and deletes the data packet in the internal data buffer area of the device at the same time.
In this embodiment, the receipt of the same packet as the data buffer of the mobile station indicates that the data broadcasted by the mobile station has been correctly received and processed by the device meeting the requirements, and the mobile station does not need to broadcast the packet any more, so that the same packet in the data buffer of the mobile station is deleted. The step ensures the reliability of data transmission, because the Bluetooth broadcasting mode is an unreliable communication mode, after the equipment broadcasts a packet of data, the equipment cannot ensure that 100 percent of the data is correctly received by other equipment, and therefore, the same packet of data is broadcasted for a plurality of times in a circulating way by 25 milliseconds until the same data packet broadcasted by other equipment is detected, and at the moment, the data is considered to be reliably broadcasted.
In this embodiment, it should be further noted that before dimming, the dimmable ranges supported by the various power lamps used in the tunnel need to be measured, the highest and lowest (unlighted) dimmable ratios (e.g., the highest 87% and the lowest 10%) of the various lamps are determined, meanwhile, the luminance values of the road surfaces of the lighting segments in the tunnel at different dimming ratios (10% -100%) need to be collected, the highest dimming ratio of each lighting segment meeting the design luminance value when a vehicle is in a driving state and the lowest dimming ratio adjustable by the lamps in a non-driving state are obtained through a fitting algorithm, the dimming parameters of the lighting segments are set in the dimming controllers of the lighting segments, and then the real-time dynamic adjustment of the luminance values of the lighting segments is realized according to the luminance values outside the tunnel.
In this embodiment, the maximum dimming proportion of each lighting segment that meets the design brightness value when the vehicle is in motion and the minimum dimming proportion that can be adjusted by the lamp itself when the vehicle is not in motion are obtained through a fitting algorithm, which is a conventional mathematical method and will not be described herein again.
Finally, the intelligent dimming control system and the method are practically applied to the Qinghai \23704sub-tunnel, the tunnel is opened at the end of 2016, and only partial damaged lamps are replaced during traffic operation. The design value of the luminance value outside the tunnel is 3300cd/m2, the design luminance value of the tunnel entrance section is 82.5cd/m2, and the actually measured road luminance value collected when the lamp is completely started in the left hole is 187.93cd/m2, and the road luminance value of the right hole is: 347.82cd/m 2. Although the fixture has been in use for 5 years (some of the fixtures were replaced in 2020), the brightness value of the fully open road surface of the fixture is still much greater than the designed brightness value.
The method comprises the steps of turning on a lamp to 100%,90%,80% and 70% according to a dimming lamp, respectively measuring the brightness values of the road surfaces of all lighting sections, calculating according to a fitting formula, setting the highest dimming proportion (graded according to 0-100) of a left tunnel to be 68.79% when the left tunnel has a vehicle, setting the highest dimming proportion of a right tunnel to be 47.7%, and meeting a design specification value, so that the dimming proportion can be set to be the highest dimming proportion of the left tunnel and the right tunnel, namely, the lamp does not need to be turned on to 100% when the vehicle has the vehicle at ordinary times, and therefore, not only can the lighting cost be greatly saved, but also the glare and 'white hole' effects cannot be caused due to the fact that the brightness value of an entrance section is too large. Meanwhile, the service life of the lamp can be positively prolonged because the lamp is in a low energy consumption state for a long time.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention in any way, and all simple modifications and equivalent variations of the above embodiments according to the technical spirit of the present invention are included in the scope of the present invention.