Disclosure of Invention
In view of this, the technical problem to be solved by the present invention is how to provide a traffic signal lamp fault detection apparatus, which can automatically detect whether a traffic signal lamp has a fault and report fault information to relevant departments in time.
In order to solve the above technical problem, an embodiment of the present invention provides a device for detecting a fault of a traffic signal lamp, including:
the detection node module is connected with the traffic signal lamp and used for judging whether the traffic signal lamp has a fault or not;
and the coordinator module is connected with the detection node module and is used for sending the information whether the traffic signal lamp fails to work to a remote server.
In one possible implementation manner, the detection node module includes:
the current transformer is connected to the zero lines of the group of traffic signal lamps;
the full-bridge rectifier and the sampling resistor module are connected with the current transformer, and the output signal of the current transformer enters the sampling resistor after being rectified by the full bridge;
and the CC2530 processor is connected with the full-bridge rectifier and the sampling resistor module, output signals of the full-bridge rectifier and the sampling resistor module are used for acquiring a current value and lighting time of each phase lamp through an analog-to-digital converter arranged in the CC2530 processor, the acquired current value and the lighting time of each phase lamp are respectively compared with a prestored reference current value and prestored reference lighting time, and when a comparison result is not within a preset range, signal lamp fault information is generated and transmitted to the coordinator module through a Zigbee network.
In one possible implementation, the coordinator module includes:
and the STM32 processor is used for receiving the information whether the traffic signal lamp fails or not sent by the detection node module and transmitting the failure information to a remote server through a GPRS remote communication module circuit.
In a possible implementation manner, the coordinator module further includes: and the display circuit is used for displaying the fault information.
In a possible implementation manner, the detecting node module further includes:
the self-learning key is used for receiving the trigger of a user;
the CC2530 processor is further configured to:
when the self-learning key receives the trigger of a user, collecting current values of the traffic signal lamps in a preset time period to respectively obtain reference current values of the three traffic signal lamps;
the preset time period is greater than one working cycle of the traffic signal lamp, an internal timer of the CC2530 processor is started according to the collected current peak value, three preset time periods are recorded, the lighting time of each phase lamp is calculated through the phase change current peak value to serve as reference lighting time, and the reference current value and the reference lighting time are stored in an internal flash memory of the CC2530 processor.
In a possible implementation manner, the node detection module further includes:
the dial switch is connected with the CC2530 processor;
a power supply circuit connected with the CC2530 processor; when the dial switch is in the same state as the dial switch on the coordinator module, the power supply circuit supplies power to the device;
and the networking indicator light is connected with the CC2530 processor, the STM32 processor searches for the detection node module with the same address, and after the key circuit on the coordinator module receives the trigger of a user, the networking indicator light on the detection node module with the same address is lightened.
In a possible implementation manner, the node detection module further includes:
and the AP power amplifier circuit and the antenna are connected with the CC2530 processor and are used for enhancing Zigbee wireless signals.
In a possible implementation manner, the number of the detection node modules is multiple, and the number of the coordinator modules is 1.
The traffic signal lamp fault detection device provided by the embodiment of the invention can automatically detect whether the traffic signal lamp has a fault or not and report fault information to relevant departments in time.
Other features and aspects of the present invention will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Detailed Description
The following detailed description of the present invention is provided in conjunction with the accompanying drawings, but it should be understood that the scope of the present invention is not limited to the specific embodiments.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. Throughout the specification and claims, unless explicitly stated otherwise, the word "comprise", or variations such as "comprises" or "comprising", will be understood to imply the inclusion of a stated element or component but not the exclusion of any other element or component.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present invention. It will be understood by those skilled in the art that the present invention may be practiced without some of these specific details. In some instances, methods, means, elements well known to those skilled in the art have not been described in detail so as not to obscure the present invention.
Example 1
Fig. 1 is a schematic structural diagram illustrating an apparatus for detecting a traffic signal fault according to an embodiment of the present invention, and as shown in fig. 1, the apparatus 10 includes: a detection node module 11 and a coordinator module 12.
And the detection node module 11 is connected with the traffic signal lamp and used for judging whether the traffic signal lamp breaks down or not. And the coordinator module 12 is connected with the detection node module 11 and is used for sending the information whether the traffic signal lamp fails to work to the remote server. The remote server is a server of the superior traffic management part and can receive the information whether the traffic signal lamp fails or not, so that related departments can timely maintain the failed traffic signal lamp according to the information.
Therefore, the device 10 for detecting a traffic signal lamp fault provided by the embodiment of the invention can automatically detect whether the traffic signal lamp has a fault and report fault information to relevant departments in time.
Example 2
Fig. 2 is a schematic structural diagram of an apparatus for detecting a traffic signal fault according to an embodiment of the present invention, and as shown in fig. 2, the apparatus 10 includes: a plurality of detection node modules 11 and a coordinator module 12.
Generally, a plurality of traffic lights are arranged at an intersection, for example, one traffic light is arranged in each of 4 directions, at this time, each traffic light may be connected to 1 detection node module 11, and the detection node module 11 is configured to determine whether a fault occurs in the connected traffic light. And 1 coordinator module 12 is arranged at one intersection, and the coordinator module 12 is connected with any one of the detection node modules 11 and is used for sending the information of whether the traffic signal lamp has a fault to a remote server. The remote server is a server of the superior traffic management part and can receive the information whether the traffic signal lamp fails or not, so that related departments can timely maintain the failed traffic signal lamp according to the information.
Therefore, the device 10 for detecting a traffic signal lamp fault provided by the embodiment of the invention can automatically detect whether the traffic signal lamp has a fault and report fault information to relevant departments in time.
Example 3
Fig. 3 is a schematic structural diagram of an apparatus for detecting a traffic signal fault according to an embodiment of the present invention, and as shown in fig. 3, the apparatus 10 includes: a detection node module 11 and a coordinator module 12.
A detection node module 11, comprising: a current transformer 111, such as a neutral current transformer, is connected to the zero line of a set of traffic lights. And the full-bridge rectifier and sampling resistor module 112 is connected with the current transformer 111, and the output signal of the current transformer 111 enters the sampling resistor after being rectified by the full bridge. The processor 113 is connected to the full-bridge rectifier and the sampling resistor module 112, the processor 11 may be a CC2530 processor, the output signals of the full-bridge rectifier and the sampling resistor module 112 are collected by an analog-to-digital converter arranged in the CC2530 processor 113, the collected current value I and the lighting time T of each phase lamp are stored in a flash memory of the CC2530 processor 113, the collected current value I and the lighting time T of each phase lamp are respectively compared with a pre-stored reference current value I and a pre-stored reference lighting time T, and when the comparison result is not within a predetermined range, signal lamp fault information is generated and transmitted to the network coordinator module 12 through Zigbee.
A coordinator module 12 comprising: a processor 121, which processor 121 may be an STM32 processor, for receiving information detecting whether the traffic signal light transmitted by the node module 11 has a fault and transmitting the fault information to a remote server through the GPRS remote communication module circuit 122.
Optionally, the coordinator module 12 further includes: the display circuit 123, which may be an OLED display circuit, is configured to display the fault information. Optionally, the display circuit 123 may also be used to display information indicating that the traffic signal is operating properly.
Optionally, the detection node module 11 further includes: and the operation indicator light 119 synchronously displays the detection result of the detection node module 11 on the operation indicator light, and can be used for debugging fault simulation indication and detection state indication.
When the traffic signal lamp fault detection device 10 provided by the embodiment of the invention is used for detecting a traffic signal lamp fault, the device 10 is powered on, the acquired current value I and the lighting time T of each phase lamp are respectively compared with the prestored reference current value I and the prestored reference lighting time T, and when the comparison result is not within the preset range, signal lamp fault information is generated and transmitted to the coordinator module 12 through the Zigbee network. Faults that may be detected by the apparatus 10 include: 1. the red, green and yellow lamps have long-time on faults. 2. The red, green and yellow lamps are not on. 3. The red, green and yellow lamps do not fail to operate periodically according to the initial mode. 4. Leakage and short circuit of signal lamp.
Therefore, the device 10 for detecting the traffic signal lamp fault provided by the embodiment of the invention can automatically detect whether the traffic signal lamp has a fault or not and report fault information to relevant departments in time, and enables a group of three red, yellow and green signal lamps to only need one path of detection node module 11 through a zero line current detection method without setting a detection node for each lamp, thereby reducing hardware cost and self fault rate of detection equipment. One detection node module 11 can detect four groups of signal lamp faults of straight going, left turning, right turning and timer.
Example 4
Fig. 4 is a schematic structural diagram of a traffic signal lamp fault detection device according to an embodiment of the present invention, in which components that use the same reference numerals as those in embodiments 1 to 3 all use the same text descriptions as those in embodiments 1 to 3, and are not described again here. As shown in fig. 4, the detection node module 11 further includes: dial switch 114, power supply circuit 115.
Dial switch 114 is connected to CC2530 processor 113.
And a power supply circuit 115 connected to the CC2530 processor 113, wherein the power supply circuit 115 supplies power to the apparatus 10 when the state of the toggle button 114 is the same as that of a toggle button (not shown) on the coordinator module 12. The detection node module 11 may further include: networking indicator 116.
And the networking indicator light 116 is connected with the CC2530 processor 113, the STM32 processor 121 searches the detection node modules 11 with the same address, and after the key circuit 124 on the coordinator module 12 receives the trigger of the user, the networking indicator light 116 on the detection node modules 11 with the same address is lightened.
Optionally, the node detection module 11 further includes: and the AP power amplifier circuit and the antenna 117 are connected with the CC2530 processor 113 and are used for enhancing Zigbee wireless signals. Therefore, the networking distance and stability are ensured.
When the device 10 for detecting traffic signal lamp faults provided by the embodiment of the invention is used for networking, at a traffic signal lamp installation point, the dial switch 114 on the detection node module 11 is dialed to be in the same state as the dial switch on the coordinator module 12, the device 10 is powered on, the coordinator module 12 automatically searches for the detection node module 11, after the coordinator module 12 displays all detection node modules 11 with the same address, network configuration is completed by pressing a networking confirmation key (not shown in the figure) on the coordinator module 12, and the networking indicator lamp 116 is turned on after networking of the detection node module 11 and the coordinator module 12 is completed.
Therefore, the traffic signal lamp fault detection device 10 provided by the embodiment of the invention can automatically detect whether a traffic signal lamp has a fault and report fault information to relevant departments in time, and reduces the wiring problem among signal lamps at the same intersection in a wireless networking mode, ensures that at most one coordinator module 12 is needed at one intersection, reduces hardware cost and later-stage operation cost, and enables signal lamp fault detection to be more practical.
Example 5
Fig. 5 is a schematic structural diagram of a traffic signal lamp fault detection device according to an embodiment of the present invention, in which components that use the same reference numerals as those in embodiments 1 to 4 all use the same text descriptions as those in embodiments 1 to 4, and are not described again here. As shown in fig. 5, the detection node module 11 further includes: a self-learning key 118.
A self-learning key 118 for receiving a user trigger. The CC2530 processor 113 is further configured to: when the self-learning key 118 receives a trigger of a user, current values of traffic lights are collected within a preset time period to obtain reference current values I of three traffic lights respectively, the preset time period is greater than one working cycle of the traffic lights, an internal timer of the CC2530 processor is started according to a collected current peak value, the three preset time periods are recorded, lighting time T of each phase of light is calculated through a commutation current peak value to serve as reference lighting time, and the reference current values I and the reference lighting time T are stored in an internal flash memory of the CC2530 processor 113.
When the device 10 for detecting faults of traffic lights provided by the embodiment of the invention is used for learning, the self-learning button 118 is manually pressed once within a preset time, for example, within three seconds, so that the learning of the first mode is entered, and the learning of the second mode is entered after the self-learning button 118 is pressed twice. If the self-learning key is not pressed, the learning mode is skipped, and the normal working mode is directly entered.
And if the self-learning key 118 is operated, the CC2530 processor 113 starts to collect the current value of the traffic signal lamp, the collection is more than one normal working cycle of the traffic signal lamp, the node starts the internal timer of the CC2530 processor 113 according to the peak value of the collected current during the collection, three time periods are recorded, the red, yellow and green lamp time is logically judged, the three lamp current values are stored in the internal flash memory of the CC2530 processor 113, and the statistics of the reference current I and the lighting time T of the normal mode of the traffic signal lamp are completed. And automatically restarting after learning is finished. The core of the learning mode is to calculate the lighting time T of each phase of lamp through the peak value of the commutation current.
Fig. 6a to 6b show sampling phase-change diagrams of each phase of lamp, as shown in fig. 6a to 6b, when the red lamp and the yellow lamp are on, the zero line sampling voltages are almost completely consistent, the green lamp sampling voltage is higher than the red lamp voltage by 152mv, and the green lamp phase sequence can be judged according to the sampling voltage values.
Fig. 7a shows a green-yellow commutation signal diagram, fig. 7b shows a green-yellow commutation pulse diagram, and as shown in fig. 7 a-7 b, the commutation pulse sampling voltage is significantly higher than the normal voltage value, and the commutation from green to yellow, the end time point of green and the start time point of yellow can be determined.
Fig. 7c shows a diagram of the yellow-red commutation pulse, as shown in the figure, the sampling voltage of the commutation pulse is significantly higher than the normal voltage value, and it can be determined that the commutation from the yellow lamp to the red lamp is completed, and the start time of the yellow lamp is started.
Fig. 7d shows a red-green commutation pulse diagram, as shown, the commutation pulse sampling voltage is significantly higher than the normal voltage value, and it can be determined that the commutation from the red lamp to the green lamp is completed, and the start time of the red lamp is started.
Therefore, the traffic signal lamp fault detection device 10 provided by the embodiment of the invention can automatically learn, automatically set the reference current value and the reference lighting time, has high learning efficiency, can complete mode learning within two operating periods of the traffic signal lamp, quickly complete various state learning such as a normal mode, a night yellow light mode, a tide mode and the like, automatically judge mode faults in the later period and remove time error influence.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the above technical solutions substantially or contributing to the related art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.