Signal machine control logic editing platform for intersection multi-scene control requirement
Through the signal control logic editing platform and hardware-in-the-loop simulation verification, the problem that traditional signal solidification logic is difficult to cope with multi-scenario control of complex intersections is solved, flexibility and adaptability are improved, rapid response to traffic needs is achieved, and costs and Complexity.
Patent Information
- Application Number
- CN202410241734.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-04
- Publication Date
- 2024-09-03
AI Technical Summary
The solidified control logic of traditional traffic signals is difficult to meet the traffic control needs of multiple scenarios at complex intersections, resulting in insufficient flexibility and adaptability. Moreover, the customized development cycle is long and unstable, which may cause safety hazards and difficulty in functional iteration.
Provide a semaphore control logic editing platform that quickly iterates the semaphore control logic through control logic tools, uses a hardware-in-the-loop simulation platform to verify the logic reliability, and forms a dynamically updateable control logic library to achieve multi-scenario intelligent control.
It improves the flexibility and adaptability of traffic signals, quickly responds to intersection traffic control needs, reduces the cost and complexity of logic changes, and provides technical support for the intelligent iterative upgrade of traffic signals.
Smart Images

Figure CN118584850A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of traffic control technology and computer technology, and in particular to a signal control logic editing platform for multi-scenario control requirements at intersections. Background Art
[0002] As urban traffic becomes increasingly complex, problems such as traffic congestion and inefficiency frequently occur, and the need for complex traffic control at intersections becomes more prominent. Traditional traffic signals are often designed based on a fixed logic for traffic management. However, as urban traffic needs continue to change, traffic signal solutions are constrained by the fixed control logic of the signal and can no longer meet the management and control needs of different intersections. For example, the commonly used inductive control logic can no longer achieve effective control effects when facing long queues and overflow scenarios at intersections. In addition, the logic of traditional signal machines is fixed inside the machine, making it difficult to change its logic, which to some extent limits the flexibility and adaptability of the signal machine.
[0003] To solve the above problems, current technology often adopts a customized development approach to support the upgrade of the control logic functions of intersection signals, but this approach also brings two problems: First, due to the long cycle of redevelopment and testing of control logic, it cannot respond quickly to intersection control needs in terms of timeliness, and may cause safety hazards at intersections due to the immaturity of logical algorithms; second, due to the frequent modification of signal control programs, the signal function version is not fixed, which is not conducive to the stability of signal products and the iterative upgrade of functions.
[0004] Therefore, how to improve the flexibility and adaptability of traffic lights so that they can better cope with the complex multi-scenario traffic control needs at intersections has become an important topic in the field of traffic management and control. Summary of the invention
[0005] In order to make up for the shortcomings of the existing technical problems, the purpose of the present invention is to provide a signal control logic editing platform for multi-scenario control needs at intersections. Through the control logic tool, the current signal machine solidified control logic and customized development process are broken through, the signal machine control logic is quickly iterated offline editing, and the hardware-in-the-loop simulation platform is verified to ensure the reliability and stability of the logic. The online compiled control logic is imported into the signal machine in real time to form a logic library, and the control logic is directly called. This method can not only greatly improve the flexibility and adaptability of the signal machine to the signal control needs of complex intersections with multiple scenarios, and quickly respond to traffic control problems in multiple scenarios at intersections, but also greatly reduce the cost and complexity of changing the signal machine control logic, providing an important technical means for the intelligent iterative upgrade of traffic signals.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] A signal control logic editing platform for multi-scenario control requirements at intersections, including:
[0008] Control logic editing tool, which can carry out logic design and generate control logic algorithm files that can be recognized by signal machines;
[0009] Traffic lights, which store logic algorithm libraries and control scheme libraries. The control logic algorithm files generated by the control logic editing tool are imported into the traffic lights. The control logic algorithm files contain various defined detectors and signal light control functions, which generate corresponding control logics and accumulate to form the control logic algorithm library. The control scheme library realizes intelligent control of different scenes at the intersection by calling the control logic of the logic algorithm library.
[0010] The hardware-in-the-loop simulation platform is connected to the traffic light to verify in advance the reliability and effectiveness of the traffic light control logic designed by the intersection traffic light control logic editing tool under multi-scenario control requirements;
[0011] Detectors, which monitor intersections and feed traffic data to traffic lights;
[0012] Traffic lights, controlled by signal machines, are used to achieve intelligent control of different scenarios at intersections.
[0013] In the present invention, the development of the control logic editing tool is specifically as follows:
[0014] Firstly, the common functional modules in signal control were designed in advance, including functional functions, logical judgments and arithmetic operations, and the corresponding graphic blocks were encapsulated in the graphical programming language library module, so that the signal control logic flowchart can be designed under multi-scenario control requirements in the signal control logic editing area in the form of splicing flowcharts; then a system for processing user designs and requests was built to receive the designed control logic flowchart and convert it into recognizable and runnable code on the signal machine, and the control logic conversion code can be seen in real time in the signal machine control logic output interface.
[0015] In the present invention, the control logic algorithm library is an open, dynamically updated signal control logic library, which includes a series of preset signal control strategy modules verified by the hardware-in-the-loop simulation platform. Each module is designed for a specific traffic scenario. For different multi-scenarios, the corresponding control strategy module can be directly selected from the logic library and quickly applied to the intersection signal without writing code from scratch. This series of designs and researches not only breaks the traditional signal logic solidification mode, but also provides a more flexible, iterative and efficient solution for the multi-scenario traffic control needs of modern urban intersections.
[0016] The construction of the control logic algorithm library in the present invention is specifically as follows:
[0017] First, a certain traffic scenario is presupposed at the intersection. For the traffic scenario, the corresponding control logic is designed using the developed control logic editing tool. Then, it is verified through the constructed hardware-in-the-loop simulation platform. If it fails, the control logic is optimized through the control logic editing tool until it passes the verification of the hardware-in-the-loop simulation platform. If it can be successfully applied to the signal at the actual intersection and the problem of the traffic scenario is alleviated, it will be input into the signal control logic library and become a control strategy module. Then, control strategy modules corresponding to other traffic scenarios are added or the previous control strategy modules are iteratively updated. When multiple different control strategy modules are formed, a control logic algorithm library composed of multiple different control strategy modules for different control scenarios at intersections is formed.
[0018] The control scheme library in the present invention includes control period setting, detector parameter initialization, phase scheme initialization and signal control parameter initialization.
[0019] The hardware-in-the-loop simulation platform in the present invention utilizes the COM interface technology of the VISSIM simulation software, adopts the Python language to develop a communication service program, controls the loading, running and testing functions of the simulation software, and adopts the detector function defined in the simulation software to obtain the vehicle data collected by the simulation model detector, adopts the signal light control function to control the signal light in the simulation model, and transmits it to the signal machine in a predetermined protocol format, so as to provide a multi-scenario traffic simulation situation at the intersection for the execution of the signal machine control logic; the signal machine then runs the imported control logic code according to the detector data of the simulation model, and then sends the signal light status to the virtual signal machine of the simulation model through the communication service program, thereby forming a hardware-in-the-loop simulation data channel, and thus the hardware-in-the-loop simulation platform is used to monitor the operation results of each step of the control logic inside the signal machine in real time.
[0020] Compared with the prior art, the present invention has the following beneficial effects:
[0021] 1. The present invention breaks through the current fixed control logic and customized development process of signal machines through the signal machine control logic tool, and adopts a visual programming framework and programming language technology, so that users can freely design and modify the signal machine control logic through an intuitive flowchart editing interface, making the iterative optimization of the signal machine control logic simple, fast, flexible and controllable, realizing the deep integration of software and hardware and online editing and offline execution, and reaching a high level of intelligence.
[0022] 2. The present invention ensures the practicability and effectiveness of the newly designed logic and schemes through a hardware-in-the-loop simulation platform. It can not only test the new logic and schemes, but also simulate real multi-scenario traffic conditions, thereby providing strong support for further optimization of the logic and schemes.
[0023] 3. The present invention formulates signal control strategies for different traffic scenarios through the signal control logic library, meeting the intersection management needs of multiple scenarios.
[0024] 4. Through the rapid iteration of offline editing and hardware-in-the-loop simulation testing of the signal control logic, the newly designed signal control logic can be directly imported into the operation of intersection signals while ensuring quality, and respond quickly to actual problems at intersections, greatly improving the ability of traffic management departments to respond to changes in traffic control needs in multiple scenarios at intersections. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 This is the overall framework of the present invention.
[0026] Figure 2 A schematic diagram of developing a control logic editing tool for intersection signals of the present invention.
[0027] Figure 3 This is a schematic diagram of the interface of the intersection signal control logic editing tool of the present invention.
[0028] Figure 4 It is a schematic diagram of the principle of the hardware-in-the-loop simulation test platform for the intersection signal control logic of the present invention.
[0029] Figure 5 A flow chart is constructed for the signal control logic library of the present invention for multi-scenario control at intersections. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] Combine the following Figures 1 to 5 , the present invention is further described in detail.
[0032] like Figure 1As shown, the overall framework of the present invention is: for multi-scenario intersection traffic conditions, the developed intersection signal control logic editing tool is used to carry out logic design and generate a control logic algorithm file that can be recognized by the signal, and the algorithm file is imported into the signal through the developed interface; then the corresponding control logic is generated by various defined detectors and signal light control functions contained in the control logic algorithm file, so as to continuously accumulate and form a control logic algorithm library, and the signal control scheme library realizes intelligent control of different scenes at the intersection by calling the control logic of the logic algorithm library, wherein the control scheme library includes control period setting, detector parameter initialization, phase scheme initialization and signal control parameter initialization and other contents; then the test is carried out through the constructed hardware-in-the-loop simulation platform. After the test passes, the signal executes the corresponding control scheme according to the called control logic based on the access to the intersection traffic detector data, thereby controlling the actual signal light to meet the control requirements of different scenes at the intersection.
[0033] like Figure 2 As shown in the figure, the development of the intersection signal control logic editing tool is mainly divided into three parts. The first is front-end development, which uses the currently commonly used front-end framework to build the application interface and realize component development, such as toolbar, logic module list, code preview window, etc., and customizes and develops the graphical programming language library module, and the graphic block encapsulates the signal control logic function. The second is back-end development. First, build the back-end service, process hypertext requests, encapsulate the interface, and process the front-end process data submission, such as saving flowcharts and generating codes. Then build a syntax parsing pipeline, use tools such as parser generators to parse and convert the signal control logic flowchart data structure output by the graphical programming language library, generate code that can be recognized by the signal, and import it into the signal for execution. Since the logic editing tool and the signal have designed and developed defined detector data parsing and signal light control functions, the signal can perform effective traffic light control under multi-scenario control requirements according to the offline compiled logic. Finally, use resource management tools to ensure clear dependencies and modularization, introduce static code analysis, code formatting and other tools to unify the code style and improve code quality. The third is application generation, which includes resource management, configuration construction, deployment scripts and code compilation, and the use of packaging tools to build cross-platform desktop applications to form intersection signal control logic editing tools.
[0034] Since both the control logic editing tool and the signal machine have designed and developed defined detector functions and signal light control functions, the signal machine can effectively control traffic lights for multi-scenario traffic needs according to the logic compiled offline by the control logic editing tool. Take the detector function in Table 1 as an example, where:
[0035] (1) detection<No.> ) is used to determine the detector<No.> Occupancy status: if a vehicle occupies the corresponding detector, it returns 1, otherwise it returns 0. For example, detection(1) = 1 means that the detector numbered 1 near the stop line of the east straight entrance road is occupied by a vehicle, that is, there is a vehicle near the stop line.
[0036] (2)headway(<No.> ) for statistical detectors<No.> Idle time, when headway(<No.> )≥3s, it is considered that no vehicle has arrived near the stop line of the current flow direction. For example, headway(1)≥3s means that the idle time of the detector numbered 1 near the stop line of the east straight entrance road is at least 3s, and it is considered that no vehicle has arrived near the stop line of the east straight flow direction.
[0037] (3) occupancy<No.> ) for statistical detectors<No.> The duration of continuous occupation by the vehicle (s), when occupancy (<No.> )≥10s, it is considered that a vehicle queue occurs in the current flow direction. For example, occupancy(11)≥10s means that the detector numbered 11 on the east straight entrance road section is occupied by vehicles for at least 10s, and it is considered that a vehicle queue occurs in the east straight flow direction.
[0038] Table 1
[0039]
[0040] Take the signal light control function in Table 2 as an example, where:
[0041] (1)phaseActive(<No.> ) is used to determine the signal phase state. If the number is (<No.> ) is currently in the active state, returns true, otherwise returns false. For example, phaseActive(1) = true means that phase 1 is in the active state, that is, the east and west through signal light groups in phase 1 are in the green light state.
[0042] (2)phaseDuration(<No.> ) is used to count the running time (s) of the current signal phase from the start of operation (green light start time) to the current time. If it runs to the start time of the green light interval (yellow light + all red), the value is reset to zero. For example, phaseDuration(1) = 20s means that the green light of phase 1 has been running for 20s until the current time, that is, the green lights of the east and west straight lights in phase 1 have been running for 20s.
[0043] (3)runPhase(<No.> ) means that after the current green light interval operation is completed, the operation number will be (<No.> ). For example, runPhase(2) indicates running phase 2, that is, the east and west left turn signal groups in phase 2 run green lights.
[0044] (4) runAllRed() is used to control all traffic light groups at the intersection to run red lights and implement all-red control.
[0045] (5) allRedDuration() is used to count the running time (s) of the all-red control from the start to the current moment. If it runs to the start time of any phase, the value is reset to 0. For example, allRedDuration() = 10s means that the all-red control has run for 10s from the start to the current moment.
[0046] (6) allRedActive() is used to determine whether the current intersection is in a fully red control state. If the current intersection is in a fully red control state, true is returned, otherwise false is returned. For example, allRedActive() = true indicates that the current intersection is in a fully red control state.
[0047] Table 2
[0048]
[0049] like Figure 3 As shown in the figure, in the interface of the intersection signal control logic editing tool, the left side is the function menu, which includes function functions, logical judgments and arithmetic operations, and the corresponding modules are encapsulated in graphic blocks. Among them, each function in the function function corresponds to the functions listed in Table 1 and Table 2, and the specific meanings are described in Table 1 and Table 2. The conditional control module in the logical judgment means "if" a certain condition is met, then "execute" a certain result; the multiple condition module includes two aspects, one is that multiple conditions are all "and" relationships, and the other is that multiple conditions are all "or" relationships; the conditional connection module means that the two conditions are "and" or "or" relationships; the numerical comparison module refers to the comparison of the size relationship between numerical values. The assignment module in the algorithm operation refers to assigning a specific value to a variable, and the operation module refers to the operation between numerical values. Then in the middle signal control logic editing area, drag the corresponding encapsulation module in the function menu to the editing area, enter the relevant parameters in the module, and design the signal control logic in the form of splicing flowcharts. Different control logics can be designed for traffic conditions in multiple scenarios through the intersection signal control logic editing tool. Figure 3Taking the logic designed in as an example, a conditional control module is selected, which includes two setting parts, "if" and "execution". When the function function set in the "if" condition is met, that is, the condition of "running phase 1" is met, another conditional control module applied in the "execution" condition is run; in the applied conditional control module, the function function set in the "if" condition is composed of a multiple conditional module and a conditional connection module, wherein the condition set in the multiple conditional module is "the idle time of detector 1 ≥ 3 and the idle time of detector 2 ≥ 3 and the running time of phase 1 ≥ 10", and the conditional connection module connects the multiple conditional module and the condition of "the running time of phase 1 ≥ 50" in an "or" manner, that is, when the condition of "the idle time of detector 1 ≥ 3 and the idle time of detector 2 ≥ 3 and the running time of phase 1 ≥ 10" is met or the condition of "the running time of phase 1 ≥ 50" is met, the function function "running phase 2" set in the "execution" condition is run. Phase 1 represents east and west straight driving, phase 2 represents east and west left turning, detector 1 is located on the east straight driving lane, and detector 2 is located on the west straight driving lane. The whole logic means that if the current running phase is Phase 1 East-West straight, then when the detectors installed on the East-West straight and West-West straight lanes corresponding to Phase 1 do not detect a vehicle passing within 3 seconds and the running time of Phase 1 is greater than 10 seconds, or the running time of Phase 1 is greater than 50 seconds, Phase 1 ends and Phase 2 starts to run the green light for the east-west left turn. Finally, the signal control logic output interface on the right generates and displays the code that the signal can recognize in real time, and the generated code file can be imported into the signal for execution. Taking the code in the figure as an example, the specific content is as follows:
[0050]
[0051] Apart from Figure 3 In addition to the control logic and code shown in the figure, corresponding signal control logic and code can also be generated for other different traffic scenarios.
[0052] like Figure 4As shown in the figure, in order to verify the reliability and effectiveness of the signal control logic designed by the intersection signal control logic editing tool under the multi-scenario control requirements in advance, so as to avoid problems in the actual environment of the intersection, it is necessary to build a hardware-in-the-loop simulation test platform for the intersection signal control logic, and first test the feasibility of the signal control logic in the simulation environment. First, set the road network, detector and vehicle data and other information in the VISSIM traffic simulation software to simulate the multi-scenario traffic environment of the real intersection; then, through the COM interface technology in VISSIM, the vehicle data monitored by the detector in the simulation software can be transmitted to the Python communication service program; then the Python communication service program transmits the vehicle data monitored by the detector in the simulation software to the signal machine, and the signal machine receives the vehicle data and runs the signal machine control logic designed by the intersection signal machine control logic editing tool, as well as the control parameters and basic schemes corresponding to the control logic, and then the output signal light working status is fed back to the virtual signal machine of the simulation software through the Python communication service program, and finally the hardware-in-the-loop simulation test of the signal machine control logic is realized, so as to ensure the safety of the control logic running at the actual intersection under the multi-scenario control requirements.
[0053] like Figure 5 As shown in the figure, in the process of building a signal control logic library for multi-scenario control needs at intersections, it is first presupposed that there is a certain traffic scenario at the intersection. For this traffic scenario, the corresponding signal control logic is designed using the developed signal control logic editing tool; then it is verified through the constructed hardware-in-the-loop simulation platform. If it fails, the signal control logic is optimized through the signal control logic editing tool until it passes the verification of the hardware-in-the-loop simulation platform. If it can be successfully applied to the actual intersection signal and alleviates the problem of the traffic scenario, it is input into the signal control logic library to become a control strategy module; then the control strategy modules corresponding to other traffic scenarios are added or the previous control strategy modules are iteratively updated. When multiple different control strategy modules are formed, a control logic library consisting of multiple different control strategy modules for different control scenarios at intersections is formed. When a certain traffic scenario exists at a similar actual intersection, the traffic light can call the corresponding control strategy module in the logic library, and then quickly apply it to the intersection signal after modifying some control parameters accordingly according to the actual traffic conditions at the intersection, so as to quickly respond to problems in the traffic scenario at the intersection and avoid problems such as untimely response and system instability caused by the need to redevelop the signal control program when the intersection signal control logic does not meet the multi-scenario control requirements of the intersection.
[0054] What is described above is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A signal control logic editing platform for multi-scenario control requirements at intersections, characterized by: include: Control logic editing tool, which can carry out logic design and generate control logic algorithm files that can be recognized by signal machines; Traffic lights, which store logic algorithm libraries and control scheme libraries. The control logic algorithm files generated by the control logic editing tool are imported into the traffic lights. The control logic algorithm files contain various defined detectors and signal light control functions, which generate corresponding control logics and accumulate to form the control logic algorithm library. The control scheme library realizes intelligent control of different scenes at the intersection by calling the control logic of the logic algorithm library. The hardware-in-the-loop simulation platform is connected to the traffic light to verify in advance the reliability and effectiveness of the traffic light control logic designed by the intersection traffic light control logic editing tool under multi-scenario control requirements; Detectors, which monitor intersections and feed traffic data to traffic lights; Traffic lights, controlled by signal machines, are used to achieve intelligent control of different scenarios at intersections.
2. According to claim 1, the signal control logic editing platform for intersection multi-scenario control requirements is characterized in that: The development of the control logic editing tool is as follows: Firstly, the common functional modules in signal control were designed in advance, and the corresponding graphic blocks were encapsulated in the graphical programming language library module, so that the signal control logic flowchart under multi-scenario control requirements can be designed in the signal control logic editing area in the form of splicing flowcharts; then a system for processing user designs and requests was built to receive the designed control logic flowcharts and convert them into recognizable and executable codes on the signal machine. At the same time, the control logic conversion code can be seen in real time in the signal machine control logic output interface.
3. The signal control logic editing platform for intersection multi-scenario control requirements according to claim 1 is characterized in that: The functional module includes functional functions, logical judgments and arithmetic operations.
4. According to claim 1, the signal control logic editing platform for intersection multi-scenario control requirements is characterized by: The control logic algorithm library includes a series of preset signal control strategy modules that have been verified by the hardware-in-the-loop simulation platform. Each module is designed for a specific traffic scenario. The corresponding control strategy module can be directly selected from the logic library for different scenarios and quickly applied to the intersection signal.
5. According to claim 1, the signal control logic editing platform for intersection multi-scenario control requirements is characterized in that: The construction of the control logic algorithm library is as follows: First, a certain traffic scenario is presupposed at the intersection. For the traffic scenario, the corresponding control logic is designed using the developed control logic editing tool. Then, it is verified through the constructed hardware-in-the-loop simulation platform. If it fails, the control logic is optimized through the control logic editing tool until it passes the verification of the hardware-in-the-loop simulation platform. If it can be successfully applied to the signal at the actual intersection and the problem of the traffic scenario is alleviated, it will be input into the signal control logic library and become a control strategy module. Then, control strategy modules corresponding to other traffic scenarios are added or the previous control strategy modules are iteratively updated. When multiple different control strategy modules are formed, a control logic algorithm library composed of multiple different control strategy modules for different control scenarios at intersections is formed.
6. The signal control logic editing platform for intersection multi-scenario control requirements according to claim 1 is characterized in that: The control scheme library includes control period setting, detector parameter initialization, phase scheme initialization and signal control parameter initialization.
7. The signal control logic editing platform for intersection multi-scenario control requirements according to claim 1 is characterized in that: The hardware-in-the-loop simulation platform utilizes the COM interface technology of the VISSIM simulation software and adopts the Python language to develop a communication service program to control the loading, running and testing functions of the simulation software, and adopts the detector function defined in the simulation software to obtain the vehicle data collected by the simulation model detector, adopts the signal light control function to control the signal light in the simulation model, and transmits it to the signal machine in a predetermined protocol format, so as to provide a multi-scenario traffic simulation situation at the intersection for the execution of the signal machine control logic; the signal machine then runs the imported control logic code according to the detector data of the simulation model, and then sends the signal light status to the virtual signal machine of the simulation model through the communication service program, thereby forming a hardware-in-the-loop simulation data channel, and thus the hardware-in-the-loop simulation platform is used to monitor the operation results of each step of the control logic inside the signal machine in real time.
