Road traffic signal fault alarm terminal
By designing a road traffic signal fault alarm terminal, using a current transformer to detect the signal lamp current and switch to the yellow flash state, the problems of high false alarm rate and low network rate of existing traffic signal fault detection are solved, and timely uploading and accurate detection of fault information is achieved.
Patent Information
- Application Number
- CN202510667244.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2025-08-08
AI Technical Summary
The fault detection of existing road traffic signal machines has a high false alarm rate and a low network rate, which makes the traffic police command center unable to obtain fault information in time, increasing traffic safety hazards.
Design a road traffic signal fault alarm terminal to detect the current of the signal lamp through the current transformer, and switch the signal power to the yellow flash state when the fault is faulty, and upload the fault information to the cloud server. The terminal equipment can operate independently without affecting the normal operation of the signal.
It improves the accuracy and timeliness of fault detection, reduces the false alarm rate, ensures that the traffic signal can be switched to the yellow flash state in time when the fault is faulty, and reduces traffic safety risks.
Smart Images

Figure CN120452238A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a road traffic signal fault alarm terminal. Background Art
[0002] The road traffic signal fault alarm terminal is an IoT terminal device that uses current transformers to detect the current flowing through the red, yellow, and green lights in traffic signal controllers to determine if a signal is faulty. The national standard "GB25280-2016 Road Traffic Signal Controllers" specifies the types of serious road traffic signal faults and their troubleshooting methods. These faults are categorized as serious and general faults. Severe faults include green conflict faults, all red lights in a signal group being off, simultaneous red and green lights in a signal group, and other serious faults that impact road traffic safety. General faults primarily include yellow and green light faults. The national standard stipulates that in the event of a serious fault, the signal controller should enter a yellow flashing state or turn off. In the event of a general fault, the controller can continue to operate with degraded functionality. Currently, most traffic signals on the market have fault detection capabilities. However, due to complex on-site wiring and the possibility of parallel connections, accurate fault detection cannot be performed according to the standard. This results in a high incidence of false alarms, leading most cities to disable fault detection altogether. There are hundreds of intersections in a city. According to current statistics, the network rate of traffic lights is not high. When a failure occurs, the traffic police command center cannot be notified in the first time, which creates a huge hidden danger for traffic safety accidents. Summary of the Invention
[0003] In view of the above problems existing in the prior art, the main purpose of the present invention is to provide a road traffic signal failure alarm terminal.
[0004] The technical solution of the present invention is as follows: A road traffic signal fault alarm terminal includes an MCU main control unit, a liquid crystal display unit, a keyboard, a light group detection unit, a hardware yellow flash unit, an Ethernet communication unit, a 4G communication unit, and an indicator light interface unit, wherein: The liquid crystal display unit and the keyboard are respectively connected to the MCU main control unit for communication. The liquid crystal display unit is used for human-computer interaction. The user can set and view operating parameters through the liquid crystal display unit, and can also view and clear fault information. The keyboard is used to cooperate with the liquid crystal display unit to perform human-computer interaction operations, and the user enters parameter information and views fault information through the keyboard; The indicator light interface unit, the 4G communication unit and the Ethernet communication unit are respectively connected to the MCU main control unit for communication, and the 4G communication unit has a built-in 4G communication module; The hardware yellow flash unit is respectively connected to the light group detection unit and the MCU main control unit, and the light group detection unit is also connected to the signal light group and the road traffic signal controller.
[0005] The MCU main control unit is connected to the road traffic signal fault alarm system through the 4G communication unit.
[0006] The MCU main control unit is connected to the road traffic signal fault alarm system through the Ethernet communication unit.
[0007] The light group detection unit includes a red light signal detection circuit, a yellow light signal detection circuit and a green light signal detection circuit.
[0008] The red light signal detection circuit includes a current transformer T7, a resistor R27, an AC optical coupler OP7, a resistor R26 and a capacitor C13, wherein: The emitter of the AC optical coupler OP7 is connected to GND, and the collector of the current transformer T7 is connected to the power supply VCC_3V3 through the resistor R26; The third pin of the current transformer T7 is connected to the anode pin of the AC optocoupler OP7 through the resistor R27, and the fourth pin of the current transformer T7 is connected to the cathode pin of the AC optocoupler OP7; The first pin of the current transformer T7 is connected to the gas discharge tube G8 via the varistor RV8.
[0009] It also includes a power supply circuit for a road traffic signal controller and a hardware yellow flash unit. The power supply circuit for the road traffic signal controller and the hardware yellow flash unit includes a double-pole single-throw power relay J7, a photo-thyristor U3, a thyristor Q6, and an NPN transistor Q7, wherein: The double-pole single-throw power relay J7 is driven by the NPN transistor Q7 to switch the power supply; the L_IN pin and the N_IN pin of the double-pole single-throw power relay J7 are respectively connected to the live wire and the neutral wire of the input AC power; The L_OUT pin and N_OUT pin of the double-pole single-throw power relay J7 are respectively connected to the L and N of the AC power interface of the road traffic signal controller; The base of the NPN transistor Q7 is connected to a resistor R36 and a resistor R37.
[0010] When normal and without fault, the double-pole single-throw power relay J7 is in a normally closed state, the L_IN pin of the double-pole single-throw power relay J7 is connected to the L_OUT pin of the double-pole single-throw power relay J7, and the N_IN pin of the double-pole single-throw power relay J7 is connected to the N_OUT pin of the double-pole single-throw power relay J7.
[0011] When a fault occurs, the MCU main control unit controls the base HS_KA of the transistor Q7 to switch the power supply to the thyristor Q6 side that controls the yellow flash power supply; the photothyristor U3 is used to drive the bidirectional thyristor Q6. When the HS_OUT of pin 2 of the photothyristor U3 is at a low level, the conductive L_HS pin of the thyristor Q6 outputs AC power to connect the yellow light load of the signal light, and finally the current returns to the N_HS pin of the single-throw power relay J7 to form a complete circuit.
[0012] Also included is a timer circuit, which includes a NE555 timer U4, a diode D7, a diode D8, a capacitor C14, a capacitor C15, and a capacitor C16, wherein: The first pin of the NE555 timer U4 is connected to GND, the second pin of the NE555 timer U4 is connected to the third pin of the NE555 timer U4 via the diode D8, the resistor R31, the resistor R30, and the resistor R32 in sequence, and the third pin of the NE555 timer U4 is connected to the second pin of the photo-thyristor U3; The 7th and 8th pins of the NE555 timer U4 are connected to the anode and cathode of the diode D7, respectively. The anode of the diode D8 is connected to the cathode of the diode D7.
[0013] The charging circuit of the capacitor C15 is: the 5V_CON power supply charges the capacitor C15 through the resistor R30 and the diode D7; the discharging circuit of the capacitor C15 is: the current flows through the diode D8 and the resistor R31 to the 7th pin of the NE555 timer U4 to the ground.
[0014] Compared with the prior art, the beneficial effects of the present invention are as follows: the road traffic signal fault alarm terminal (which may be referred to as the terminal device) provided in the embodiment of the present invention is installed in series between the road traffic signal controller (which may be referred to as the signal machine) and the signal light group, and the phase, phase stage, transition and other parameters related to the operation of the signal machine are set on the terminal device. The current in the corresponding signal light group cable is collected through the current transformer to determine whether the light group is normal. If there is a light group fault, the power supply of the signal machine can be disconnected and the signal light can be taken over to the yellow flashing state. At the same time, the fault information is transmitted back to the cloud server and pushed to the user's mobile phone terminal; at the same time, the terminal device has flexible wiring, and can provide power to the signal machine according to user needs or not, and the signal machine can operate independently without power supply, which will not affect the normal light group fault detection. In special circumstances, when the terminal device itself fails, it will not affect the normal operation of the signal machine and the light group. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A hardware block diagram of a road traffic signal fault alarm terminal provided by an embodiment of the present invention; Figure 2 A software block diagram of a road traffic signal fault alarm terminal provided by an embodiment of the present invention; Figure 3 A red light signal detection circuit for one of the red, yellow, and green light channels in the light group detection unit provided in an embodiment of the present invention; Figure 4 The power supply circuit for the signal machine and the hardware yellow flash unit provided in the embodiment of the present invention; Figure 5 A timer circuit provided by an embodiment of the present invention; Figure 6 An independent yellow flashing yellow light power supply switching circuit provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0016] In order to make the purpose, 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 in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0017] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.
[0018] like Figures 1 to 6 As shown, an embodiment of the present invention provides a road traffic signal fault alarm terminal, including an MCU main control unit, a liquid crystal display unit, a keyboard, a light group detection unit, a hardware yellow flash unit, an Ethernet communication unit, a 4G communication unit, and an indicator light interface unit, wherein: The liquid crystal display unit and the keyboard are respectively connected to the MCU main control unit for communication. The liquid crystal display unit is used for human-computer interaction. The user can set and view operating parameters through the liquid crystal display unit, and can also view and clear fault information. The keyboard is used to cooperate with the liquid crystal display unit to perform human-computer interaction operations, and the user enters parameter information and views fault information through the keyboard; The indicator light interface unit, the 4G communication unit and the Ethernet communication unit are respectively connected to the MCU main control unit for communication, and the 4G communication unit has a built-in 4G communication module; The hardware yellow flash unit is respectively connected to the light group detection unit and the MCU main control unit, and the light group detection unit is also connected to the signal light group and the road traffic signal controller.
[0019] Specifically, the MCU (main control unit) acts as the brain of the terminal device, primarily controlling peripheral devices and analyzing and processing the light on / off data collected by the light detection unit to determine fault information and respond accordingly. It also stores and reads user-set operating parameters.
[0020] Liquid crystal display unit: used for Chinese display, facilitating human-computer interaction. The operating parameters can be viewed and set through the LCD screen, as well as fault information can be viewed and cleared. Similarly, the machine information can be viewed in the terminal device.
[0021] Keyboard: A matrix keyboard is used in conjunction with an LCD screen for human-computer interaction, making it convenient for users to enter parameter information and view fault information.
[0022] Light group detection unit: The input and output of each signal light corresponds to a current transformer, which converts the current signal into a level signal through the corresponding detection circuit and transmits it to the MCU main control unit.
[0023] Hardware yellow flash unit: The MCU main control unit can control the hardware yellow flash unit circuit. When a serious fault occurs, it can cut off the power supply of the signal machine and take over the signal light to enter the yellow flashing state. It can play the role of an independent hardware yellow flash without relying on the signal machine.
[0024] Ethernet communication unit: Built-in independent Ethernet network card, the network parameters of the hardware network card, such as IP, gateway, port number and other parameters, can be set through the keyboard screen, and the configuration parameters and fault alarm information can be transmitted through the wired network.
[0025] 4G communication unit: With built-in 4G communication module, users can choose wireless mode to configure parameters and upload fault alarm information, making it convenient for use at intersections without Internet access.
[0026] Indicator light interface unit: includes 4G network status indication, yellow flash status indication, fault and working status indication. Includes USB interface for easy parameter import and export, etc.
[0027] The MCU main control unit is connected to the road traffic signal fault alarm system through the 4G communication unit. Alternatively, the MCU main control unit is connected to the road traffic signal fault alarm system through the Ethernet communication unit.
[0028] like Figure 2As shown in the figure, in the road traffic fault alarm system, terminals have two network methods for uploading fault alarm messages. Generally, one of them is selected. In the case of a public security video dedicated network deployment, 4G transmission is generally abandoned. Under special requirements, the 4G dedicated network can be used to transmit to the command center. 4G transmission utilizes the 4G cellular network and cloud platform provided by the operator to upload alarm messages.
[0029] The light group detection unit includes a red light signal detection circuit, a yellow light signal detection circuit and a green light signal detection circuit.
[0030] The red light signal detection circuit includes a current transformer T7, a resistor R27, an AC optocoupler OP7, a resistor R26 and a capacitor C13, wherein: the emitter of the AC optocoupler OP7 is connected to GND, and the collector of the current transformer T7 is connected to the power supply VCC_3V3 through the resistor R26; the third pin of the current transformer T7 is connected to the anode pin of the AC optocoupler OP7 through the resistor R27, and the fourth pin of the current transformer T7 is connected to the cathode pin of the AC optocoupler OP7; the first pin of the current transformer T7 is connected to the gas discharge tube G8 through the varistor RV8.
[0031] In the embodiment of the present invention, a signal light group includes three signal lights: red, yellow, and green. Figure 3 The figure shows the red light signal detection circuit for one of the red, yellow, and green lines in the light group detection unit. T7 is a current transformer with a 100:1 input-to-output current ratio. LR_IN is connected to the red light output of the signal machine, and LR_OUT is connected to the live wire of the red light. If current flows through the primary winding of the current transformer (pins 1 and 2 of the current transformer are the primary winding), a proportional current will be generated in the secondary winding of the current transformer (pins 3 and 4 of the current transformer are the secondary winding). The secondary winding of the current transformer must not be left floating, otherwise it will damage the current transformer. Pins 3 and 4 of the current transformer are connected to the AC optocoupler OP7 via resistor R27. The emitter of the optocoupler is connected to GND, and the collector is connected to the power supply VCC_3V3 through resistor R26. When current flows through the optocoupler, the optocoupler's collector junction conducts, pulling the collector voltage low, meaning that point R_EC is low. Conversely, when there is no current flowing through the primary winding of the current transformer, the optocoupler's collector is pulled high, meaning that point R_EC is high. The R_EC is connected to the MCU via an IO expansion chip, or directly to the MCU if the MCU has sufficient IO ports. The MCU scans and receives the level data from each signal light detection circuit in real time, analyzes it, and determines whether the signal light group is faulty based on the operating parameters set by the user.
[0032] The embodiment of the present invention further includes a power supply circuit for a road traffic signal controller and a hardware yellow flash unit. The power supply circuit for the road traffic signal controller and the hardware yellow flash unit includes a double-pole single-throw power relay J7, a photo-thyristor U3, a thyristor Q6, and an NPN transistor Q7, wherein: The double-pole single-throw power relay J7 is driven by the NPN transistor Q7 to perform power switching; the L_IN pin and N_IN pin of the double-pole single-throw power relay J7 are respectively connected to the live wire and neutral wire of the input AC power; the L_OUT pin and N_OUT pin of the double-pole single-throw power relay J7 are respectively connected to the L and N of the AC power interface of the road traffic signal controller; the base of the NPN transistor Q7 is connected to the resistor R36 and the resistor R37.
[0033] When normal and without fault, the double-pole single-throw power relay J7 is in a normally closed state, the L_IN pin of the double-pole single-throw power relay J7 is connected to the L_OUT pin of the double-pole single-throw power relay J7, and the N_IN pin of the double-pole single-throw power relay J7 is connected to the N_OUT pin of the double-pole single-throw power relay J7.
[0034] When a fault occurs, the MCU main control unit controls the base HS_KA of the transistor Q7 to switch the power supply to the thyristor Q6 side that controls the yellow flash power supply; the photothyristor U3 is used to drive the bidirectional thyristor Q6. When the HS_OUT of pin 2 of the photothyristor U3 is at a low level, the conductive L_HS pin of the thyristor Q6 outputs AC power to connect the yellow light load of the signal light, and finally the current returns to the N_HS pin of the single-throw power relay J7 to complete the circuit.
[0035] like Figure 4 As shown, this circuit provides power for the signal light and the hardware yellow flash unit. Power switching is achieved through NPN transistor Q7, which drives double-pole, single-throw (DPST) power relay J7. L_IN and N_IN provide the AC live and neutral inputs for the terminal device, while L_OUT and N_OUT provide the AC power interface for the signal light. Under normal operating conditions, the relay is normally closed, with L_IN connected to L_OUT and N_IN connected to N_OUT. In the event of a fault, the MCU controls transistor Q7's base terminal HS_KA to switch power to triac Q6, which controls the yellow flash power supply. Phototriac U3 drives bidirectional thyristor Q6. When HS_OUT pin 2 of phototriac U3 is low, thyristor Q6 conducts through its L_HS pin, outputting AC power to the yellow light load. The current then returns to relay J7's N_HS pin, completing the circuit.
[0036] The present invention also includes a timer circuit, which includes a NE555 timer U4, a diode D7, a diode D8, a capacitor C14, a capacitor C15, and a capacitor C16, wherein: The first pin of the NE555 timer U4 is connected to GND, the second pin of the NE555 timer U4 is connected to the third pin of the NE555 timer U4 via the diode D8, the resistor R31, the resistor R30, and the resistor R32 in sequence, and the third pin of the NE555 timer U4 is connected to the second pin of the photo-thyristor U3; The 7th and 8th pins of the NE555 timer U4 are connected to the anode and cathode of the diode D7, respectively. The anode of the diode D8 is connected to the cathode of the diode D7.
[0037] The charging circuit of the capacitor C15 is as follows: the 5V_CON power supply charges the capacitor C15 through the resistor R30 and the diode D7; the discharging circuit of the capacitor C15 is as follows: the current flows through the diode D8 and the resistor R31 to the 7th pin of the NE555 timer and then to the ground.
[0038] like Figure 5 As shown, this is a timer circuit that provides the clock for the yellow light to flash. The HS_OUT pin is connected to pin 2 of the U3 photo-thyristor, regularly controlling the thyristor's conduction and cutoff. The timing, or the duration of the high and low levels on the output pin HS_OUT, can be adjusted by modifying the values of resistors R30, R31, and capacitor C15 according to the formula T=0.693RC. The charging circuit for capacitor C15 is the 5V_CON power supply, which charges the capacitor through resistor R30 and diode D7. The discharge circuit for capacitor C15 is the current flowing through diode D8 and resistor R31 to pin 7 of the NE555 timer and then to ground. The charging and discharging circuit components have consistent parameters, and the output square wave has a 50% duty cycle. According to the formula, the charge and discharge cycle is 1.1 seconds, ensuring the yellow light stays on for 500ms and off for 500ms, thus entering the yellow flashing state.
[0039] like Figure 6 As shown, this is an independent yellow flashing yellow light power supply switching circuit. Double-pole single-throw relay J6 controls the switching of two yellow light signals. This section describes the operating principle of the yellow light switching circuit. LY_IN1 is connected to the primary input pin of the AC transformer in the signal light detection circuit, and Y_IN1 is connected to the signal light's yellow light output pin. Under normal conditions, double-pole single-throw relay J6 is normally closed, connecting LY_IN1 and Y_IN1 for yellow light signal detection. When a signal light fault is detected, the MCU controls the base pin Y15 of NPN transistor Q5 to a high level, driving double-pole single-throw relay J6, connecting LY_IN1 and Y_IN1. This disconnects the signal light's yellow light output, and the terminal device takes over and controls the yellow light, which enters the yellow flashing state.
[0040] The present invention provides a road traffic signal fault alarm terminal. The terminal software uses the FreeRTOS multi-tasking operating system. The system has five tasks: 128*64 pixel LCD screen display and key processing tasks, TCA6424A chip data acquisition tasks, 4G module communication tasks, public data processing tasks, and detection tasks. The functions of each task are as follows: 1. 128*64 pixel LCD screen display and key processing tasks: display current time, view and set terminal operation parameters; 2. TCA6424A chip data collection task: Use the hardware timer to set the timer to 50 milliseconds. When the timer is up, the red, yellow, and green data of the light groups read from the chip are arranged in the order of 1-16 light groups and stored in the cache for processing. A semaphore is also sent to the fault detection task. 3. Public data processing tasks: read the clock chip to obtain the time, modify the parameters on the host computer or the terminal device using the screen to modify the parameters, reload the terminal device parameters, handle the fault, flash yellow or turn off the light; 4. Communication tasks of the Quectel EC801E 4G module: Communicate with the host computer software, issue commands to control the terminal to flash yellow or turn off the light, and remotely set and query terminal parameters via 4G; 5. Fault detection task: The detection task is to analyze the fault cause based on the configured parameters and the data collected by the TCA6424A chip.
[0041] The terminal software detection process is as follows: Step 1: After the device is powered on, the configuration parameters are read from the EEPROM. The TCA6424A chip is timed for 50 milliseconds according to the hardware timer. When the timer expires, it starts to acquire data and saves it in the cache array in the red, yellow, and green order of the 1-16 light groups, and sends a semaphore to the detection task.
[0042] Cache data array [0] = red light of light group 1 Cache data array [1] = yellow light of light group 1 Cache data array [2] = Green light of light group 1... ... Cache data array
[46] = red light of light group 16 Cache data array
[47] = yellow light of light group 16 Cache data array
[48] = green light of light group 16 Step 2: After the detection task obtains the signal, it begins detection. First, it reads the actual color of the light group, then determines the light group usage in the configured parameters. If the light group parameters are configured to be used or not turned off, they are saved in the light group usage cache. Based on the actual color of each light group, it is determined whether there are any light groups that are off. If there are light groups that are off, the software timer for the corresponding light group is turned on. If the software timer for the corresponding light group is turned on but the timer has not expired and the light group is not off, the software timer must be turned off and the timeout flag must be set to 0.
[0043] Light group actual color array [0] = cache data array [0] << 2 | cache data array [1] << 1 | cache data array [2] Light group actual color array
[16] = cache data array
[46] << 2 | cache data array
[47] << 1 | cache data array
[48] If (light group uses cache [0] != 0 && light group whether to allow light off cache [0] != 0)->light group actually uses cache [0] = 1 Step 3: Determine the red-green conflict and red-yellow-green conflict faults. If the actual color of the light group shows red and green lights or red, yellow and green are on at the same time, the faults of red and green being on at the same time and red, yellow and green being on at the same time will be determined.
[0044] If (actual color array of light group == red and green are on|| actual color array of light group == red, yellow and green are on) -> red and green are on|| red, yellow and green are on.
[0045] Step 4: Determine the green conflict fault. Based on the phase conflict parameters in the configuration parameters and the actual light color, loop through the 1-32 phase conflict table to determine if two phases conflict in the conflict table and the actual light colors of both phases are green, then it is a green conflict fault. Then, perform fault processing and fault reporting.
[0046] Step 5: Determine the yellow and green simultaneous lighting fault and determine the current status of the light group: If (actual color array of light group == red light on)->red light color status value++ If (actual color array of light group == yellow light on) -> yellow light color status value ++ If (actual color array of light group == green light on)->green light color status value++ If (actual color array of light group == off)-> off light color state value++ If (actual color array of light group == red and yellow)->red and yellow light color status value++ If (actual color array of light group == yellow and green are both on) -> yellow and green are both on fault.
[0047] Step 6. Compare the theoretical light color of each stage in the stage library with the actual light color, and use fuzzy comparison to determine the currently running stage. First, calculate the theoretical light colors of all stages in the stage library, when this stage is the theoretical light color of green light, the theoretical light color of yellow light, the theoretical light color of light off, and the theoretical light color of red and yellow light, and save the calculated theoretical light colors to the cache array. Then compare the theoretical light color of each light group in each stage with the actual light color of the light group, and find the stage with the largest number of light groups with the same color. This stage is the stage currently in use.
[0048] The first situation: when there is no fault; If the actual light colors of the light groups are: 1-8 light groups are green, green, red, red, red, red, red, red There are two stages in the stage library: Stage 1 calls phases 1 and 2, that is, two light groups 1 and 2, and Stage 2 calls two light groups 3 and 4; Then the theoretical light color of stage 1 in the stage library is: when the light is green -> green, green, red, red, red, red, red, red, red, red, red, red, When the light is yellow -> yellow, yellow, red, red, red, red, red, red, red, red, red, When the lights are off->off, off, red, red, red, red, red, red, red, red, red, Theoretical light colors in stage 2: When the light is green -> red, red, green, green, red, red, red, red, red, red, red, When the light is yellow -> red, red, yellow, yellow, red, red, red, red, red, red, red, When the lights are off -> red, red, off, off, red, red, red, red, red, red, red.
[0049] Then, by comparing the theoretical light colors with the actual light colors in the two stages, we can conclude that the number of lights with the same color in stage 1 is 8, and the number of lights with the same color in stage 2 is 4, so we can conclude that the stage currently in use is stage 1. The second situation: when there is a fault, one red light goes out; If the actual light colors of the light groups are 1-8 light groups red, red, green, green, red, off, red, red; There are two stages in the stage library: Stage 1 calls phases 1 and 2, which are light groups 1 and 2, and Stage 2 calls light groups 3 and 4.
[0050] Then the theoretical light color of stage 1 in the stage library is: when the light is green -> green, green, red, red, red, red, red, red, red, When the light is yellow -> yellow, yellow, red, red, red, red, red, red, When the lights are off->off, off, red, red, red, red, red, red, Theoretical light color in stage 2: when the light is green -> red, red, green, green, red, red, red, red, red, When the light is yellow -> red, red, yellow, yellow, red, red, red, red, When the lights are off -> red, red, off, off, red, red, red, red.
[0051] Then, by comparing the theoretical light colors with the actual light colors in the two stages, we can conclude that the number of lights with the same color in stage 1 is 4 and the number of lights with the same color in stage 2 is 7, so we can conclude that the stage currently in use is stage 2.
[0052] Step 7. After the stage of use is determined in step 6, it is started to determine whether a fault will occur when the signal is running normally. First, determine whether there is a green light in the actual color of the light group. If there is a green light, determine the following situations: the first situation: determine whether the current actual light color only has three colors: green, red and off. If so, determine whether the software timer of the light group where the light is currently off has timed out, and whether the timeout flag is 1. If it times out, determine which light in the current light group is off based on the obtained stage. The second situation: determine whether the current actual light color only has two colors: green and off. If so, determine whether the software timer of the light group where the light is currently off has timed out, and whether the timeout flag is 1. If it times out, determine which light in the current light group is off based on the obtained stage. The third situation: determine whether the current actual light color only has four colors: red, green, yellow and off. If so, assign the current actual light color of green to yellow. If there are no above three situations, proceed to the next step to determine whether the signal is currently running a green flash transition. The specific detection principle is as follows: First case: Is the current actual light color limited to green, red, and off?
[0053] Assume that the actual colors of the current light groups are: 1-8 light groups are green, off, red, red, red, red, red, red; The current light colors are green, off, and red. Check whether the software timer corresponding to the light group currently off has timed out, and whether the software timer timeout flag corresponding to light group 2 is 1. If timeout occurs, the theoretical light color is calculated based on the determined stage and compared with the current theoretical light color to determine the fault. The theoretical light colors are: green, green, red, red, red, red, red, red for light groups 1-8, respectively. Comparing the actual light colors with the theoretical light colors, it is determined that the green light of light group 2 is off.
[0054] Second case: The actual light colors of the current light group are only green and off. Assume that the actual colors of the current light group are: 1-8 light groups are green, green, green, green, off, off, off, off; The current light colors are only green and off. Determine whether the software timer corresponding to the light group with the current light color off has timed out, and whether the software timer timeout flag corresponding to light groups 5, 6, 7, and 8 is 1. If timeout occurs, calculate the theoretical light color based on the determined phase: light groups 1-8 are green, green, green, green, red, red, red, red, and red, respectively. By comparing the theoretical light colors with the actual light colors, it is determined that the red lights of light groups 5, 6, 7, and 8 are off. Then determine the current phase of the off light group. If this phase only calls this light, then the fault is a serious fault: the red light of the phase is off. If this phase also calls other light groups, then the fault is a general fault: the red light of the light group is off.
[0055] The third case: Determine whether the current light colors are red, green, yellow, and off. If so, assign the current green light color to yellow. A fault is generated when the yellow light transitions. Assuming the actual light colors for groups 1-8 are green, yellow, red, red, red, off, red, red, then assign the current light colors for groups 1-8 to yellow, yellow, red, red, red, off, red, red.
[0056] Step 8: When it is determined in step 7 that there is no green light in the actual light color of the light group, the green flash transition is determined in sequence. First, it is determined whether the green flash transition is set in the transition parameters. If the green flash transition is set, it is determined whether the actual color of the current light group is only off and red. If it is, it is determined whether the software timer of the light group that is currently off has timed out. If the status of the corresponding light group software timer is running and the software timer timeout flag is not equal to 1, no fault is given. If there is no such situation, the light group off fault is directly given. If the green flash transition is not set, then continue to determine the yellow light transition. The specific detection principle is as follows.
[0057] Assuming that the actual light colors of the current light groups are 1-8: off, off, red, red, red, red, red, red, and the software timer timeout flag corresponding to light groups 1 and 2 is 1, then the light group 1 and 2 off fault will be directly given.
[0058] Step 9. When it is determined that the green flash transition is not set in step 8 or the green flash transition is set but the actual colors of the light group include yellow, red and off, it is determined in order whether a fault occurs when the signal is running the yellow light transition. First, determine whether the yellow light transition is set in the parameters. If it is set, then determine the fault according to the following two situations. The first situation: determine whether the actual light group colors are only yellow, red and off. If there are only yellow, red and off lights, determine whether the software timer corresponding to the light group with the current light color of off has timed out and whether the timeout flag is 1. If it times out, calculate the theoretical light color based on the determined stage and compare it with the current actual light color to determine the fault. The second situation: determine whether the actual light colors are only yellow and off lights. If there are only yellow and off lights, determine whether the software timer corresponding to the light group with the current light color of off has timed out and whether the timeout flag is 1. If it times out, calculate the theoretical light color based on the determined stage and compare it with the current actual light color to determine the fault. If the yellow light transition is not set, proceed to the next step to determine whether the signal is currently running a full red transition.
[0059] The first case: The current actual light colors are only yellow, red, and off. Assume that the actual colors of the current light groups are: yellow, yellow, red, off, red, red, red, red, red; light group 4 is off and the software timer timeout flag of light group 4 is 1. According to the determined phase, the theoretical light colors are calculated as follows: yellow, yellow, red, red, red, red, red, red, red, red. Comparing the theoretical light colors with the actual light colors, it is determined that the fault is that the red light of light group 4 is off. Then determine the current phase of the light group that turned off the red light. If this phase only calls this light, then the fault is a serious fault: the red light of the phase is off. If this phase also calls other light groups, then the fault is a general fault: the red light of the light group is off.
[0060] The second situation: The current actual light colors are only yellow and off. Assume that the actual colors of the current light groups are: light groups 1-8 are yellow, yellow, yellow, yellow, off, off, off, off, respectively. Light groups 5, 6, 7, and 8 are off and the software timer timeout flag of light groups 5, 6, 7, and 8 is 1. According to the determined stage, the theoretical light colors are calculated as follows: light groups 1-8 are yellow, yellow, yellow, yellow, red, red, red, and red. Comparing the theoretical light colors with the actual light colors, it is concluded that the red lights of light groups 5, 6, 7, and 8 are off. Then determine the current phase of the light group that turned red. If this phase only calls this light, then the fault is a serious fault: the red light of the phase is off. If this phase also calls other light groups, then the fault is a general fault: the red light of the light group is off.
[0061] Step 10: When it is determined that the yellow light transition is not set in step 9 or there is a yellow light transition but there is no yellow light in the actual color of the light group, the full red transition is judged in sequence. Only when the actual colors of the current light groups are all red lights will the step of judging the full red transition be entered. As long as there are light groups with lights off, step 8 will be entered to judge the green flashing transition. If the software timer of the corresponding light group times out and the timeout flag is 1, a light group off fault will be given.
[0062] Step 11. When it is determined that the full red transition is not set in step 10, the red and yellow transition is determined in sequence. First, determine whether the red and yellow transition is set in the transition parameters. If the red and yellow transition is set, determine whether the actual colors of the current light group are only red and yellow lights, red light and off light. Then, determine in sequence whether there is a fault when the signal machine runs the red and yellow light transition. The fault is determined according to the following two situations. The first situation: determine whether the actual light group colors are only red and yellow lights, red light and off light. If there are only red and yellow lights, red light and off light colors, determine whether the software timer corresponding to the light group whose current light color is off light has timed out, and whether the timeout flag is 1. If it times out, calculate the theoretical light color based on the determined theoretical stage, and compare it with the current actual light color to derive the fault. The second scenario determines whether the current actual light colors are only red, yellow, and off. If so, the software timer corresponding to the light group currently off is checked to see if it has timed out and if the timeout flag is 1. If so, the theoretical light color is calculated based on the determined theoretical phase and compared with the current actual light color to determine a fault. If no red-yellow transition is set, data collection is restarted, and testing begins from the beginning. The specific testing principle is as follows.
[0063] The first case: The current actual light colors are only red and yellow, red, and off. Assume that the actual colors of the current light groups are: light groups 1-8 are red and yellow, red and yellow, red, off, red, red, red, red, red; light group 4 is off and the software timer timeout flag of light group 4 is 1. According to the determined phase, the theoretical light colors are calculated as follows: light groups 1-8 are red and yellow, red and yellow, red, red, red, red, red, red, red. Comparing the theoretical light colors with the actual light colors, it is determined that the fault is that the red light of light group 4 is off. Then determine the current phase of the light group that turned off the red light. If this phase only calls this light, then the fault is a serious fault: the red light of the phase is off. If this phase also calls other light groups, then the fault is a general fault: the red light of the light group is off.
[0064] The second situation: The current actual light colors are only red, yellow, and off. Assume that the actual colors of the current light groups are: light groups 1-8 are red and yellow, red and yellow, red and yellow, red and yellow, off, off, off, off, off, respectively. Light groups 5, 6, 7, and 8 are off, and the software timer timeout flag of light groups 5, 6, 7, and 8 is 1. According to the determined stage, the theoretical light colors are calculated as follows: light groups 1-8 are red and yellow, red and yellow, red and yellow, red and yellow, red, red, red, red, and red. Comparing the theoretical light colors with the actual light colors, it is concluded that the red lights of light groups 5, 6, 7, and 8 are off. Then determine the current phase of the light group that turned red. If this phase only calls this light, then the fault is a serious fault: the red light of the phase is off. If this phase also calls other light groups, then the fault is a general fault: the red light of the light group is off.
[0065] Step 12: Fault Analysis Calculate the theoretical light color based on the stage number used, and then compare it with the actual light color. If the comparison results are different, there is a fault.
[0066] The embodiment of the present invention provides a road traffic signal fault alarm terminal, which is a road traffic signal fault alarm terminal (hereinafter referred to as the terminal device) developed in conjunction with Internet of Things technology. The terminal device is installed in series between the signal machine and the signal light. Parameters such as phase, phase stage, and transition related to the operation of the signal machine are set on the terminal device. The current in the corresponding light group cable is collected through a current transformer to determine whether the light group is normal. If there is a light group fault, the power supply of the signal machine can be disconnected and the signal light can be taken over to enter the yellow flashing state. At the same time, the fault information is transmitted back to the cloud server and pushed to the user's mobile terminal. The terminal device has flexible wiring. It can provide power to the signal machine according to user needs or not, and the signal machine can operate independently without affecting normal light group fault detection. In special circumstances, a fault in the terminal device itself will not affect the normal operation of the signal machine and the light group. The terminal device also takes network security into consideration. If it is connected to the public security network, it can send configuration parameters and fault alarm data via wired Ethernet.
[0067] Finally, it should be noted that the embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A road traffic signal fault alarm terminal, characterized in that: It includes MCU main control unit, LCD display unit, keyboard, light group detection unit, hardware yellow flash unit, Ethernet communication unit, 4G communication unit and indicator light interface unit, among which: The liquid crystal display unit and the keyboard are respectively connected to the MCU main control unit for communication. The liquid crystal display unit is used for human-computer interaction. The user can set and view operating parameters through the liquid crystal display unit, and can also view and clear fault information. The keyboard is used to cooperate with the liquid crystal display unit to perform human-computer interaction operations, and the user enters parameter information and views fault information through the keyboard; The indicator light interface unit, the 4G communication unit and the Ethernet communication unit are respectively connected to the MCU main control unit for communication, and the 4G communication unit has a built-in 4G communication module; The hardware yellow flash unit is respectively connected to the light group detection unit and the MCU main control unit, and the light group detection unit is also connected to the signal light group and the road traffic signal controller.
2. The road traffic signal failure alarm terminal according to claim 1, characterized in that: The MCU main control unit is connected to the road traffic signal fault alarm system through the 4G communication unit.
3. The road traffic signal failure alarm terminal according to claim 1, characterized in that: The MCU main control unit is connected to the road traffic signal fault alarm system through the Ethernet communication unit.
4. The road traffic signal failure alarm terminal according to claim 1, characterized in that: The light group detection unit includes a red light signal detection circuit, a yellow light signal detection circuit and a green light signal detection circuit.
5. The road traffic signal failure alarm terminal according to claim 4, characterized in that: The red light signal detection circuit includes a current transformer T7, a resistor R27, an AC optical coupler OP7, a resistor R26 and a capacitor C13, wherein: The emitter of the AC optical coupler OP7 is connected to GND, and the collector of the current transformer T7 is connected to the power supply VCC_3V3 through the resistor R26; The third pin of the current transformer T7 is connected to the anode pin of the AC optocoupler OP7 through the resistor R27, and the fourth pin of the current transformer T7 is connected to the cathode pin of the AC optocoupler OP7; The first pin of the current transformer T7 is connected to the gas discharge tube G8 via the varistor RV8.
6. The road traffic signal failure alarm terminal according to claim 4, characterized in that: It also includes a power supply circuit for a road traffic signal controller and a hardware yellow flash unit. The power supply circuit for the road traffic signal controller and the hardware yellow flash unit includes a double-pole single-throw power relay J7, a photo-thyristor U3, a thyristor Q6, and an NPN transistor Q7, wherein: The double-pole single-throw power relay J7 is driven by the NPN transistor Q7 to switch the power supply; the L_IN pin and the N_IN pin of the double-pole single-throw power relay J7 are respectively connected to the live wire and the neutral wire of the input AC power; The L_OUT pin and N_OUT pin of the double-pole single-throw power relay J7 are respectively connected to the L and N of the AC power interface of the road traffic signal controller; The base of the NPN transistor Q7 is connected to a resistor R36 and a resistor R37.
7. The road traffic signal failure alarm terminal according to claim 6, characterized in that: When normal and without fault, the double-pole single-throw power relay J7 is in a normally closed state, the L_IN pin of the double-pole single-throw power relay J7 is connected to the L_OUT pin of the double-pole single-throw power relay J7, and the N_IN pin of the double-pole single-throw power relay J7 is connected to the N_OUT pin of the double-pole single-throw power relay J7.
8. The road traffic signal failure alarm terminal according to claim 6, characterized in that: When a fault occurs, the MCU main control unit controls the base HS_KA of the transistor Q7 to switch the power supply to the thyristor Q6 side that controls the yellow flash power supply; the photothyristor U3 is used to drive the bidirectional thyristor Q6. When the HS_OUT of pin 2 of the photothyristor U3 is at a low level, the conductive L_HS pin of the thyristor Q6 outputs AC power to connect the yellow light load of the signal light, and finally the current returns to the N_HS pin of the single-throw power relay J7 to form a complete circuit.
9. The road traffic signal failure alarm terminal according to claim 8, characterized in that: Also included is a timer circuit, which includes a NE555 timer U4, a diode D7, a diode D8, a capacitor C14, a capacitor C15, and a capacitor C16, wherein: The first pin of the NE555 timer U4 is connected to GND, the second pin of the photo-thyristor U4 is connected to the third pin of the NE555 timer U4 via the diode D8, the resistor R31, the resistor R30, and the resistor R32 in sequence, and the third pin of the NE555 timer U4 is connected to the second pin of the photo-thyristor U3; The 7th and 8th pins of the NE555 timer U4 are connected to the anode and cathode of the diode D7, respectively. The anode of the diode D8 is connected to the cathode of the diode D7.
10. The road traffic signal failure alarm terminal according to claim 9, characterized in that: The charging circuit of the capacitor C15 is: the 5V_CON power supply charges the capacitor C15 through the resistor R30 and the diode D7; the discharging circuit of the capacitor C15 is: the current flows through the diode D8 and the resistor R31 to the 7th pin of the NE555 timer U4 to the ground.
Citation Information
Patent Citations
Intelligent detection and alarming method for failure of traffic light
CN103337190A
Traffic signal lamp abnormal state processing and returning method, and traffic signal lamp
CN108550270A
Signal lamp state real-time monitoring system based on software and hardware double-layer architecture
CN114596719A
Traffic signals controller that possesses extra independent signal lamp failure detector circuit
CN204537462U
A control circuit for signal lamp is yellow to be dodged
CN205265979U