Data acquisition system and method for traffic lights
By using data acquisition systems and methods, the working status of traffic lights can be quickly obtained, solving the problem of lagging traffic light maintenance in existing technologies and improving the reliability of traffic lights and the efficiency of traffic flow scheduling.
Patent Information
- Application Number
- CN202511859865.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-10
- Publication Date
- 2026-02-24
AI Technical Summary
Existing technology cannot quickly provide feedback on the working status of traffic lights, resulting in delays in traffic light maintenance and causing traffic chaos and congestion.
A data acquisition system is adopted, which includes a data acquisition module, an MCU module, a transmission module, and a magnetic lock control module. The data acquisition module obtains traffic light fault information, the MCU module numbers and transmits the information, the transmission module periodically reports fault information, and the magnetic lock control module controls the system status, thereby enabling rapid acquisition and feedback of the traffic light's working status.
It enables rapid and efficient acquisition of traffic light operating status, improves the reliability of traffic lights, ensures effective control and scheduling of traffic flow, and reduces traffic chaos and congestion.
Smart Images

Figure CN121565006A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of traffic signal technology, specifically to traffic signal data acquisition. Background Technology
[0002] Traffic lights can control traffic by displaying different signal phases and cycles. When traffic lights malfunction, traffic flow cannot be effectively controlled and scheduled, causing traffic chaos and congestion. In the current technology, the operation of traffic lights is usually monitored by routine inspections or monitoring equipment, but the working status of traffic lights cannot be quickly fed back, resulting in the delay of traffic light maintenance and causing traffic chaos.
[0003] Therefore, how to effectively and quickly acquire and report the working status of traffic lights and improve their reliability has become an urgent problem to be solved in this field. Summary of the Invention
[0004] To address the shortcomings of existing technologies, the purpose of this invention is to provide a data acquisition system and method for traffic lights that can effectively collect and report the working status of traffic lights.
[0005] To achieve the above objectives, the present invention provides a data acquisition system for traffic lights, used in conjunction with traffic lights, including an acquisition module, a magnetic lock control module, an MCU module, and a transmission module. The acquisition module consists of several boards and is configured to acquire fault information for each traffic light. The MCU module is configured to transmit the current board number and fault information of the acquisition module to the transmission module, and to number the indicator lights according to the current board number. The transmission module is configured to determine the timestamp of the current fault information when the reporting period arrives, and periodically report all fault information. The magnetic lock control module is configured to control the working state of the MCU module.
[0006] Furthermore, the transmission module is equipped with a timestamp threshold. If the timestamp of the current fault information is less than the timestamp threshold, the corresponding fault information is reported.
[0007] Furthermore, the transmission module is configured to report one data packet per cycle, and the data packet includes fault information corresponding to a maximum of four signal lights.
[0008] Furthermore, if there is still remaining fault information after reporting one packet of data, the transmission module will report the remaining fault information at intervals.
[0009] Furthermore, the magnetic lock control module transmits instructions to the MCU module through the transmission module to control the working state of the MCU module.
[0010] Furthermore, if the magnetic lock control module issues a magnetic lock control command, the transmission module transmits the magnetic lock control command to the MCU module, causing the MCU module to perform the switching action corresponding to the magnetic lock control command.
[0011] Furthermore, if the magnetic lock control module issues a reset command, the transmission module first transmits a power-off command to the MCU module, causing the MCU module to disconnect the power supply to the acquisition module, and then transmits a power-on command to the MCU module, causing the MCU module to restore the power supply to the acquisition module.
[0012] To achieve the above objectives, the present invention provides a data acquisition method for traffic lights, based on the aforementioned data acquisition system for traffic lights. The acquisition method includes a fault information reporting method and a control method. The fault information reporting method includes: The acquisition module collects fault information for each traffic light and transmits the fault information to the MCU module. The MCU module records the current board number of the acquisition module and transmits it to the transmission module. The MCU module receives the fault information, transmits the fault information for each indicator light sequentially to the transmission module, numbers the indicator lights according to the recorded current board number, and then saves the fault information and the corresponding timestamp. The transmission module receives fault information. When the reporting period arrives, it determines the timestamp of the current fault information. If the timestamp of the current fault information is less than the timestamp threshold, the corresponding fault information is reported. If the timestamp of the current fault information is greater than the timestamp threshold, it is no longer reported. The data packet reported by the transmission module in each period includes fault information corresponding to a maximum of 4 signal lights. If there is any remaining fault information, the remaining fault information is reported at intervals.
[0013] Furthermore, the control method includes: After the magnetic lock control module issues a magnetic lock control command, the transmission module transmits the magnetic lock control command to the MCU module, and the MCU module performs the switching action corresponding to the magnetic lock control command. If the magnetic lock control module issues a reset command, the transmission module first transmits a power-off command to the MCU module. The MCU module receives the power-off command and disconnects the power supply to the acquisition module. After the power supply to the acquisition module is completely disconnected, the transmission module transmits a power-on command to the MCU module. The MCU module receives the power-on command and restores the power supply to the acquisition module.
[0014] The present invention provides a data acquisition system and method for traffic lights, comprising an acquisition module, a magnetic lock control module, an MCU module, and a transmission module. The acquisition module collects fault information for each traffic light, enabling the MCU module to record and transmit the current board number of the acquisition module and number the traffic lights according to the current board number, thereby quickly identifying the corresponding board and the fault information for each traffic light. The transmission module can determine the timestamp of the current fault information and periodically report all fault information to obtain the most recently received fault information, effectively determining the working status of the traffic lights and enabling timely maintenance of the traffic lights, thereby improving the reliability of the traffic lights. Attached Figure Description
[0015] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.
[0016] Figure 1 This is a block diagram of a data acquisition system for traffic lights provided by the present invention; Figure 2 This is a flowchart of the fault information reporting method in this invention; Figure 3 This is a flowchart of the control method in this invention.
[0017] Figure label: 1. Acquisition module; 2. MCU module; 3. Transmission module; 4. Magnetic lock control module. Detailed Implementation
[0018] To make the technical means, creative features, objectives and effects of this invention easier to understand, the invention will be further described below with reference to specific illustrations.
[0019] See Figure 1 The image shows an example of a data acquisition system for traffic lights provided by the present invention.
[0020] As shown in the figure, the data acquisition system for traffic lights in this example mainly includes acquisition module 1, MCU module 2, transmission module 3, and magnetic lock control module 4.
[0021] The acquisition module 1 consists of several boards and is configured to acquire fault information for each traffic light. The MCU module 2 is configured to transmit the current board number and fault information of the acquisition module 1 to the transmission module 3 and number the traffic lights according to the current board number. The transmission module 3 is configured to determine the timestamp of the current fault information when the reporting cycle arrives and periodically report all fault information. The magnetic lock control module 4 is configured to control the working state of the MCU module 3, so that the acquisition module 1, MCU module 2, transmission module 3 and magnetic lock control module 4 can work together to effectively acquire the working state of the traffic lights, so as to quickly maintain the traffic lights and improve their reliability.
[0022] Combination Figure 2 Specifically, the acquisition module 1 consists of several boards, each of which is configured with multiple signal acquisition ports, enabling the acquisition module 1 to acquire fault information of each indicator light and transmit the fault information to the MCU module 2.
[0023] In conjunction with this, the MCU module 2 is configured to record the current board number of the fault signal transmitted in the acquisition module 1 and transmit the current board number to the transmission module 3. It can also renumber all the signal lights according to the current board number to obtain the fault information corresponding to each signal light. At the same time, it saves the fault information and the corresponding timestamp of each signal light.
[0024] Furthermore, MCU module 2 transmits the fault information of each signal light sequentially to transmission module 3, enabling transmission module 3 to process and judge the fault information of each signal light sequentially, thereby improving the stability of the cooperation between MCU module 2 and transmission module 3.
[0025] In conjunction with this, the transmission module 3 can receive fault information from each signal light and periodically report all fault information.
[0026] Specifically, the transmission module 3 is equipped with a timestamp threshold. When the reporting period arrives, the transmission module 3 compares the timestamp of the current fault information with the timestamp threshold, so that the transmission module 3 can report the most recently received fault information, thereby improving the timeliness of this data acquisition system.
[0027] As an example, in this instance, the timestamp threshold is configured to 60s. If the timestamp of the current fault information is less than the timestamp threshold, it indicates that the most recently received fault information is within the time threshold, and the transmission module 3 reports the corresponding fault information. If the timestamp of the previous fault information is greater than the timestamp threshold, the transmission module 3 will no longer report the corresponding fault information.
[0028] Furthermore, the transmission module 3 is configured to report one data packet per cycle, and the data packet includes fault information corresponding to a maximum of 4 traffic lights. This enables the transmission module 3 to transmit fault information in an orderly and efficient manner, and makes it easier for the platform receiving the fault information to process and parse the fault information, reducing the probability of fault information loss and errors, so as to effectively obtain the working status of the traffic lights.
[0029] If there is still fault information after the transmission module 3 reports a packet of data, the transmission module 3 will report the remaining fault information at intervals. Here, the interval is configured to be 2 seconds, so that the transmission module 3 can report all fault information and improve the stability of transmission.
[0030] Combination Figure 3 In order to effectively control the working state of MCU module 2, magnetic lock control module 4 is configured to transmit instructions to MCU module 2 through transmission module 3 to control the working state of MCU module 2.
[0031] Specifically, if the magnetic lock control module 4 issues a magnetic lock control command, the transmission module 3 transmits the magnetic lock control command to the MCU module 2, so that the MCU module 2 performs the corresponding magnetic lock control command action to realize the switching on and off of this data acquisition system.
[0032] Furthermore, if it is necessary to reset this data acquisition system, the magnetic lock control module 4 will issue a reset command. The transmission module 3 will first transmit a power-off command to the MCU module 2, causing the MCU module 2 to disconnect the power supply to the acquisition module 1. After the power supply to the acquisition module 1 is completely disconnected, the transmission module 3 will then transmit a power-on command to the MCU module 2, causing the MCU module 2 to restore the power supply to the acquisition module 1, thereby resetting this data acquisition system.
[0033] This constitutes the data acquisition system for traffic lights provided by the present invention.
[0034] The present invention also provides a data acquisition method for traffic lights. Based on the above scheme, the data acquisition system for traffic lights includes a fault information reporting method and a control method.
[0035] Combination Figure 2 The methods for reporting fault information include: The acquisition module 1 collects fault information for each signal light and transmits the fault information to the MCU module 2.
[0036] Next, MCU module 2 records the current board number of the fault information transmitted by acquisition module 1 and transmits the current board number to transmission module 3. At the same time, MCU module 2 receives the fault information, transmits the fault information of each signal light to transmission module 3 in sequence, and numbers the signal lights according to the recorded current board number to obtain the fault information corresponding to each signal light. Then, it saves the fault information and the corresponding timestamp.
[0037] Furthermore, the transmission module 3 receives fault information. When the reporting period arrives, it determines the timestamp of the current fault information. If the timestamp of the current fault information is less than the timestamp threshold, the corresponding fault information is reported. If the timestamp of the current fault information is greater than the timestamp threshold, it is no longer reported, so as to improve the timeliness of this data acquisition system.
[0038] Meanwhile, the data packet reported by the transmission module 3 in each cycle includes fault information corresponding to a maximum of 4 traffic lights. If there is any remaining fault information, it will be reported at intervals to improve transmission stability and thus effectively obtain the working status of the traffic lights.
[0039] Combination Figure 3 Furthermore, this data acquisition method also includes a control method, which includes: After the magnetic lock control module 4 issues the magnetic lock control command, the transmission module 3 transmits the magnetic lock control command to the MCU module 2, so that the MCU module 2 performs the corresponding magnetic lock control command switching action to control the switching of this data acquisition system.
[0040] Furthermore, when resetting this data acquisition system, the magnetic lock control module 4 issues a reset command, and the transmission module 3 first transmits a power-off command to the MCU module 2, so that the MCU module 2 receives the power-off command and disconnects the power supply to the acquisition module 1. After the power supply to the acquisition module 1 is completely disconnected, the transmission module 3 then transmits a power-on command to the MCU module 2, so that the MCU module receives the power-on command and restores the power supply to the acquisition module 1, thereby realizing the reset of this data acquisition system.
[0041] The data acquisition system and method for traffic lights provided by this invention, through the cooperation of acquisition module 1, MCU module 2, transmission module 3 and magnetic lock control module 4, can realize the switching and resetting of this data acquisition system, and can also collect fault information of all traffic lights and periodically report it to the platform, so as to effectively obtain the working status of all traffic lights, enable timely maintenance, and improve the reliability of traffic lights.
[0042] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely illustrative of the principles of the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the present invention as claimed. The scope of protection of this invention is defined by the appended claims and their equivalents.
Claims
1. A data acquisition system for traffic lights, used in conjunction with traffic lights, characterized in that, It includes a data acquisition module, a magnetic lock control module, an MCU module, and a transmission module. The acquisition module consists of several boards and is configured to acquire fault information for each traffic light. The MCU module is configured to transmit the current board number and fault information of the acquisition module to the transmission module, and to number the indicator lights according to the current board number. The transmission module is configured to determine the timestamp of the current fault information when the reporting period arrives, and periodically report all fault information. The magnetic lock control module is configured to control the working state of the MCU module.
2. The data acquisition system for traffic lights according to claim 1, characterized in that, The transmission module is equipped with a timestamp threshold. If the timestamp of the current fault information is less than the timestamp threshold, the corresponding fault information is reported.
3. The data acquisition system for traffic lights according to claim 2, characterized in that, The transmission module is configured to report one data packet per cycle, and one data packet includes fault information corresponding to a maximum of four signal lights.
4. The data acquisition system for traffic lights according to claim 3, characterized in that, If there is still remaining fault information after reporting one packet of data, the transmission module will report the remaining fault information at intervals.
5. The data acquisition system for traffic lights according to claim 1, characterized in that, The magnetic lock control module transmits instructions to the MCU module through the transmission module to control the working state of the MCU module.
6. The data acquisition system for traffic lights according to claim 5, characterized in that, If the magnetic lock control module issues a magnetic lock control command, the transmission module transmits the magnetic lock control command to the MCU module, causing the MCU module to perform the switching action corresponding to the magnetic lock control command.
7. The data acquisition system for traffic lights according to claim 5, characterized in that, If the magnetic lock control module issues a reset command, the transmission module first transmits a power-off command to the MCU module, causing the MCU module to disconnect the power supply to the acquisition module, and then transmits a power-on command to the MCU module, causing the MCU module to restore the power supply to the acquisition module.
8. A data acquisition method for traffic lights, characterized in that, The data acquisition system for traffic lights based on any one of claims 1 to 7, wherein the acquisition method includes a fault information reporting method and a control method. The fault information reporting method includes: The acquisition module collects fault information for each traffic light and transmits the fault information to the MCU module. The MCU module records the current board number of the acquisition module and transmits it to the transmission module. The MCU module receives the fault information, transmits the fault information for each indicator light sequentially to the transmission module, numbers the indicator lights according to the recorded current board number, and then saves the fault information and the corresponding timestamp. The transmission module receives fault information. When the reporting period arrives, it determines the timestamp of the current fault information. If the timestamp of the current fault information is less than the timestamp threshold, the corresponding fault information is reported. If the timestamp of the current fault information is greater than the timestamp threshold, it is no longer reported. The data packet reported by the transmission module in each period includes fault information corresponding to a maximum of 4 signal lights. If there is any remaining fault information, the remaining fault information is reported at intervals.
9. The data acquisition method for traffic lights according to claim 8, characterized in that, The control method includes: After the magnetic lock control module issues a magnetic lock control command, the transmission module transmits the magnetic lock control command to the MCU module, and the MCU module performs the switching action corresponding to the magnetic lock control command. If the magnetic lock control module issues a reset command, the transmission module first transmits a power-off command to the MCU module. The MCU module receives the power-off command and disconnects the power supply to the acquisition module. After the power supply to the acquisition module is completely disconnected, the transmission module transmits a power-on command to the MCU module. The MCU module receives the power-on command and restores the power supply to the acquisition module.