Simulation method and system for signal phase data
By triggering a signal simulation task request through the front-end device, the back-end device generates and transmits signal phase timing and light change data to the front-end device for display, thus solving the problems of complexity and failure rate in the signal data simulation process and achieving efficient signal data simulation support.
Patent Information
- Application Number
- CN202310095864.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-10
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2043-02-10
AI Technical Summary
Existing traffic signal control systems suffer from problems such as complex equipment deployment, high failure rate, and frequent configuration errors during the simulation of signal phase data, which prevents development, testing, and demonstration activities from proceeding normally.
A method and system for simulating traffic signal phase data are provided. The system triggers a traffic signal simulation task request through a front-end device, generates traffic signal phase timing data and traffic light change simulation data through a back-end device, and finally displays the simulation data on the front-end device. The system supports simultaneous simulation of one or more traffic signals.
It enables rapid and stable simulation of signal phase data, supporting application scenarios such as signal research and development, testing, demonstration and stress testing, and improving the efficiency and reliability of signal data simulation.
Smart Images

Figure CN116110235B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data simulation technology, and in particular to a method and system for simulating traffic signal phase data. Background Technology
[0002] Traffic signal control systems are an important component of intelligent transportation. By using traffic signal control systems, traffic flow can be effectively managed and the smooth flow of traffic on urban roads can be improved.
[0003] To obtain various advanced road traffic management solutions and achieve real-time traffic flow data collection and optimized timing control through traffic signal control systems to reduce vehicle congestion, it is typically necessary to deploy a corresponding number of devices to generate signal phase data to support various scenarios such as development or demonstration. This requires powering on, configuring, and testing the devices until they are operating normally and producing real data. Only after a series of complex and correct operations and configurations can the corresponding application scenarios be ultimately supported. Furthermore, in actual operation, equipment failures, configuration errors, and other factors may occur, preventing development, testing, and demonstration activities from proceeding normally. Summary of the Invention
[0004] This invention provides a method and system for simulating traffic signal phase data, which can efficiently and stably support signal control-related application scenarios such as signal research and development, testing, demonstration, and stress testing.
[0005] According to one aspect of the present invention, a method for simulating traffic signal phase data is provided, the method comprising:
[0006] The front-end device triggers at least one signal machine simulation task request and transmits the triggered at least one signal machine simulation task request to the back-end device.
[0007] The backend device executes at least one signal simulation task request sent by the frontend device to generate corresponding signal phase timing data by performing a signal simulation task.
[0008] The backend device generates simulated data of traffic light changes based on the phase timing data of the signal controller;
[0009] The back-end device transmits the signal phase timing data and signal light change simulation data to the front-end device for simulation display.
[0010] According to another aspect of the present invention, a device for simulating traffic signal phase data is provided, the device comprising:
[0011] The transmission request module is used to trigger at least one signal machine simulation task request through the front-end device and transmit the triggered at least one signal machine simulation task request to the back-end device.
[0012] The timing data generation module is used to generate corresponding signal phase timing data by executing a signal simulation task based on at least one signal simulation task request sent by the front-end device through the back-end device.
[0013] The simulation data generation module is used to generate simulated signal light change data based on the signal phase timing data from the back-end device.
[0014] The analog display module is used to transmit the phase timing data of the signal machine and the analog data of the signal light changes to the front-end device for analog display through the back-end device.
[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0016] At least one processor; and
[0017] A memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the traffic signal phase data simulation method according to any embodiment of the present invention.
[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the method for simulating traffic signal phase data according to any embodiment of the present invention.
[0020] The technical solution of this invention involves a front-end device triggering at least one traffic signal simulation task request, which is then transmitted to a back-end device. The back-end device executes the simulation task based on the front-end device, generating traffic signal phase timing data. A back-end traffic signal simulator then uses this phase timing data to generate simulated traffic light changes. Finally, the back-end device transmits both the phase timing data and the simulated traffic light changes to the front-end device for simulation display. This method allows the back-end to quickly generate traffic signal phase timing data and simulated traffic light changes based on the front-end device's simulated task request, and displays the phase timing data at the front-end. This method supports simultaneous simulation of single and multiple traffic signals and can quickly and stably simulate traffic signal phase timing data, supporting applications such as traffic signal research and development, testing, demonstration, and stress testing.
[0021] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a flowchart of a method for simulating traffic signal phase data according to Embodiment 1 of the present invention;
[0024] Figure 2 This is a flowchart of a method for simulating traffic signal phase data according to Embodiment 2 of the present invention;
[0025] Figure 3 This is a schematic diagram of the first configuration information generated by the signal machine simulator applicable to this embodiment of the invention;
[0026] Figure 4 This is a signal phase timing diagram including second configuration information applicable to the embodiments of the present invention;
[0027] Figure 5 This is a scene diagram of a signal waiting for simulated data provided according to an embodiment of the present invention;
[0028] Figure 6 This is a flowchart of the assembly process of signal phase timing data and signal light change simulation data according to an embodiment of the present invention, as well as a flowchart of front-end and back-end data interaction.
[0029] Figure 7 This is a schematic diagram of the structure of a traffic signal phase data simulation device according to Embodiment 3 of the present invention;
[0030] Figure 8 This is a schematic diagram of the structure of an electronic device that implements the method for simulating traffic signal phase data according to an embodiment of the present invention. Detailed Implementation
[0031] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0032] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0033] Example 1
[0034] Figure 1 This is a flowchart illustrating a method for simulating traffic signal phase data according to Embodiment 1 of the present invention. This embodiment is applicable to simulating traffic signal phase data. The method can be executed by a traffic signal phase data simulation device, which can be implemented in hardware and / or software. This traffic signal phase data simulation device can be configured in any electronic device with network communication capabilities. Figure 1 As shown, the method may include:
[0035] S110. Trigger at least one signal machine simulation task request through the front-end device, and transmit the triggered at least one signal machine simulation task request to the back-end device.
[0036] Specifically, at least one triggered signal simulating task request is determined from the front-end device's memory. The signal simulating task request send start button is clicked, and the triggered signal simulating task request is sent to the back-end device through the front-end push data interface.
[0037] For example, at least one signal machine to be pushed is selected from the data list stored in the front-end storage. The front-end calling program adds the signal machine to be pushed to the data push queue of the push data interface. The front-end push data interface sends the signal machine simulation task request data to the back-end device in the first-in-first-out order of the queue storage.
[0038] S120. Based on at least one signal simulation task request sent by the front-end device, the back-end device executes the signal simulation task to generate the corresponding signal phase timing data.
[0039] Specifically, after receiving at least one signal simulation task request sent by the front-end device, the back-end device puts at least one signal simulation task request into the cache, executes the signal simulation task request, and generates the corresponding signal phase timing data.
[0040] For example, the backend device will receive the signal simulator task request data sent by the frontend device, store the data in the backend cache, and start a push thread to push at least one signal simulator task request. The backend device will traverse the list of signal simulator task request data to be pushed and assemble it into the corresponding signal phase timing data.
[0041] S130. The back-end device generates simulated signal light change data based on the signal phase timing data.
[0042] Specifically, the backend equipment determines whether the current signal phase timing data has changed phase. If the signal phase timing data has changed phase, it obtains the current phase number and assembles the signal light change simulation data based on the current phase number.
[0043] For example, the backend device determines whether the current phase timing data of the signal has changed by using a timer and the phase period pattern of the signal. If the phase timing data of the signal has changed, the device determines the current phase number based on the current timer runtime and assembles the signal light change simulation data.
[0044] S140. The signal phase timing data and signal light change simulation data are transmitted from the back-end device to the front-end device for simulation display.
[0045] Specifically, the front-end device acquires the signal phase timing data assembled by the back-end device, generates traffic light change simulation data based on the signal phase timing data, and transmits the signal phase timing data and traffic light change simulation data to the front-end device for simulation display.
[0046] For example, the backend generates traffic light change simulation data from the phase timing data of the signal that has undergone a phase change. Clicking the signal push button pushes the currently assembled signal phase timing data and traffic light simulation data to the frontend device. The push frequency is once per second.
[0047] This application provides a method for simulating traffic signal phase data. A front-end device triggers at least one traffic signal simulation task request, which is then transmitted to a back-end device. The back-end device executes the simulation task based on the request, generating traffic signal phase timing data. A back-end traffic signal simulator then uses this data to generate simulated traffic light change data. Finally, the back-end device transmits both the phase timing data and the simulated traffic light change data to the front-end device for simulation display. This method allows the back-end to quickly generate traffic signal phase timing data and simulated traffic light change data based on the front-end's simulated task request, and displays the phase timing data at the front-end. This method supports simultaneous simulation of single and multiple traffic signals and can quickly and stably simulate traffic signal phase timing data, supporting applications such as traffic signal research and development, testing, demonstration, and stress testing.
[0048] Example 2
[0049] Figure 2 This is a flowchart illustrating a method for simulating traffic signal phase data according to Embodiment 2 of the present invention. This embodiment further refines the front-end device simulation and display steps of the above embodiment. Figure 2 As shown, the method may include:
[0050] S210. Trigger at least one signal machine simulation task request through the front-end device, and transmit the triggered at least one signal machine simulation task request to the back-end device.
[0051] Specifically, determine at least one signal machine simulation task request that needs to be pushed from the data list stored in the front-end device, click the start push button, and transmit at least one signal machine simulation task request to the back-end device.
[0052] Optionally, the trigger signal for at least one signal controller is obtained through the front-end device, and a corresponding signal controller simulation task request is generated based on the triggered signal controller when the back-end device is detected not pushing signal controller phase data.
[0053] For example, the data list of the front-end device records the trigger signal of at least one signal controller control. When the back-end device does not push signal controller phase data, a corresponding signal controller simulation task request will be generated based on each triggered signal controller control.
[0054] S220. Based on at least one signal simulation task request sent by the front-end device, the back-end device executes the signal simulation task to generate the corresponding signal phase timing data.
[0055] As an optional but not limited implementation, performing a signal simulation task to generate the corresponding signal phase timing data may include steps A1-A3:
[0056] Step A1: Generate the first configuration information of the signal by performing a signal simulation task through the signal simulator. The first configuration information includes the signal number and the latitude and longitude of the signal.
[0057] For example, according to S110, based on the trigger signal of at least one signal controller control obtained by the front-end device, a signal controller simulation task request corresponding to the triggered signal controller control is generated. The signal controller simulation task is executed through the signal controller simulator, and the first configuration information of the signal controller is generated by executing the signal controller simulation task, such as... Figure 3 As shown, the first configuration information includes the signal number and the latitude and longitude of the signal.
[0058] Step A2: Generate the second configuration information of the signal by executing the signal simulator. The second configuration information includes the signal phase and the corresponding direction, flow direction, signal mode and signal type.
[0059] For example, according to S110, based on the trigger signal of at least one signal controller control obtained by the front-end device, when the back-end does not push signal controller phase data, the front-end generates a corresponding signal controller simulation task according to the trigger signal of the signal controller control. The signal controller simulator executes the signal controller simulation task to generate the second configuration information of the signal controller, such as... Figure 4 As shown, the second configuration information includes the stage, flow direction, signal mode, and signal type corresponding to the signal phase.
[0060] Step A3: Generate signal phase timing data of the signal machine based on the first configuration information and the second configuration information. The signal phase timing data is used to describe the execution order of the signal machine phases and the duration of different phase stages corresponding to the phases.
[0061] For example, according to steps A1-A2, the first configuration information and the second configuration information are obtained, and the signal phase timing data of the signal is assembled according to the first configuration information and the second configuration information of the signal. The signal phase timing data describes the execution order of the signal phase and the duration of different phase stages corresponding to the phase. The signal phase can be an eight-phase four-stage signal, and the execution order of the signal phase can be the display order of the eight-phase four-stage signal at the traffic intersection. The duration of different phase stages can be the cycle duration of the eight-phase four-stage information cyclically executed at the traffic intersection. When a signal executes the phase timing data, it will specify the green light duration, yellow light duration, red light duration, all-red time, phase description, total cycle duration, maximum green light duration, and minimum green light duration corresponding to a certain phase.
[0062] S230. The back-end device generates simulated signal light change data based on the signal phase timing data.
[0063] For example, the backend receives at least one signal simulator task request sent by the frontend, and the backend generates signal phase timing data based on the signal simulator task request, such as... Figure 5 As shown, the traffic light change simulation data is waiting for the backend to generate based on the traffic light phase timing data.
[0064] As an optional but not limited implementation, generating simulated traffic light change data based on the traffic light phase timing data may include steps B1-B2:
[0065] Step B1: Generate simulated signal light groups corresponding to the signal lights by executing the signal light simulator. Each simulated signal light group includes signal lights for three directions: left turn, straight ahead, and right turn.
[0066] For example, a traffic signal simulator is used to perform a traffic signal simulation task to generate a simulated traffic light group corresponding to the traffic signal. By default, four simulated traffic light groups are generated for each intersection, and each simulated traffic light group generates traffic lights for three directions: left turn, straight ahead, and right turn.
[0067] Step B2: Load the phase timing data of the signal machine into the analog signal light group corresponding to the signal machine, and control the analog signal light group to adjust the light color to obtain analog data of signal light change.
[0068] For example, S220 learns that the signal simulator generates signal phase timing data by performing a signal simulation task, and loads the signal phase timing data into the corresponding simulated signal light group. In this way, the light color adjustment of a certain number signal at a certain station can be specified, and the signal light change simulation data can be obtained. The signal light change simulation data specifies the green light duration, yellow light duration, red light duration, all-red time, phase description, total cycle duration, maximum green light duration, and minimum green light duration for a certain number signal at a certain station.
[0069] S240, Trigger at least one signal controller data push task request by selecting at least one signal controller control on the front-end device.
[0070] Specifically, by clicking the signal push button, the front-end device selects at least one signal control and triggers at least one signal data push task. The front-end calls the push data interface, establishing a channel binding relationship between the front-end device and the back-end device, and sends the signal data push task request to the back-end to prepare to obtain the signal phase timing data and traffic light change simulation data from the back-end. The back-end device then transmits the signal phase timing data and traffic light change simulation data generated by simulating the signal task through the signal simulator to the front-end device.
[0071] S250. Receive the signal data push task request sent by the front-end device through the back-end device, and start the signal data push thread in response to the signal data push task request.
[0072] Specifically, the backend device receives the signal data push task request sent by the frontend device and responds to the signal data push task request. The backend device retrieves the signal to be pushed and the corresponding data of the signal from the cache and starts the signal data push thread.
[0073] S260. The signal phase timing data and traffic light change simulation data are pushed to the front-end device through the signal data push thread, so that the front-end device can perform signal phase simulation display and traffic light change simulation display according to the signal phase timing data and traffic light change simulation data.
[0074] As an optional but not limited implementation, pushing signal phase timing data and traffic light change simulation data to the front-end device through a signal data push thread may include steps C1-C2:
[0075] Step C1: The signal data push thread iterates through the list of signals corresponding to the signal data push task request and assembles the phase timing data and signal light change simulation data of the signals to be pushed.
[0076] Specifically, the signal data push thread starts executing, iterates through the list of signals corresponding to the signal data push task request, and assembles the phase timing data and signal light change simulation data corresponding to the signal to be pushed.
[0077] As an optional but not limited implementation, assembling the signal phase timing data and traffic light change simulation data to be pushed may include steps C11-C12:
[0078] Step C11: Analyze the phase timing data of the signal controller and the simulated data of signal light changes that need to be pushed.
[0079] Specifically, the traffic lights that need to be pushed are identified, and the phase timing data and traffic light change simulation data of the traffic lights that need to be pushed are analyzed.
[0080] Step C12: Based on the analysis results, assemble the signal phase timing data and the traffic light change simulation data into a data structure that the front-end device can recognize.
[0081] Specifically, the signal phase timing data and traffic light change simulation data that generate the analysis results are assembled into a data structure that can be recognized by the front-end equipment.
[0082] Step C2: Push the signal phase timing data and signal light change simulation data to the data channel corresponding to the data push task request established between the front-end device and the back-end device for transmission to the front-end device.
[0083] As an optional but not limited implementation, after pushing the signal phase timing data and traffic light change simulation data to the data channel corresponding to the data push task request established between the front-end and back-end devices, steps C21-C22 may be included:
[0084] Step C21: Obtain signal phase timing data and signal light change simulation data from the data push task request corresponding to the data channel established between the front-end device and the back-end device through the front-end device.
[0085] Specifically, by clicking the signal push button, the front-end device can obtain the phase timing data of the assembled signal and the simulated data of the signal light changes from the channels of the front-end device and the back-end device.
[0086] Step C22: The front-end device draws the signal phase timing diagram and displays the signal light group according to the signal phase timing data and the signal light change simulation data.
[0087] For example, the front-end device acquires assembled data of signal phase timing data and signal light change simulation data, and plots the phase timing diagram of the signal at that station, such as... Figure 4 The display shows the phase timing diagram of the signal lights, and the contents of the phase timing diagram are displayed through the corresponding signal light groups.
[0088] In the implementation of this application embodiment, at least one signal simulation task request is triggered by the front-end device, and the back-end device receives at least one signal simulation task request sent by the front-end. A binding relationship is established between the front-end and back-end channels. The front-end sends a signal data push task request to the back-end. The back-end determines whether there is a signal scheme corresponding to the signal data push task request. If there is such a scheme, the back-end assembles the signal phase timing data and signal light change simulation data into data that the front-end device can recognize. The back-end pushes the assembled data into the data channel between the front-end and back-end. The front-end obtains the assembled data from this data channel and draws the signal phase timing diagram, as well as sets the signal light group to display the phase timing diagram content. The above process is as follows: Figure 6 As shown, Figure 6 This document describes the assembly process of signal phase timing data and traffic light change simulation data, as well as the data interaction process between the front-end and back-end.
[0089] This application provides a method for simulating traffic signal phase data. A front-end device triggers at least one traffic signal simulation task request, which is then transmitted to a back-end device. The back-end device executes the simulation task based on the front-end device, generating traffic signal phase timing data. A back-end traffic signal simulator then uses this phase timing data to generate simulated traffic light change data. Finally, the back-end device transmits both the traffic signal phase timing data and the simulated traffic light change data to the front-end device for simulation display. This method allows the back-end to quickly generate traffic signal phase timing data and simulated traffic light change data based on one or more traffic signal simulation task requests sent by the front-end device, and displays the phase timing data of one or more traffic signals at the front-end. This method supports simultaneous simulation of single and multiple traffic signals and can quickly and stably simulate traffic signal phase timing data, supporting applications such as traffic signal research and development, testing, demonstration, and stress testing.
[0090] Example 3
[0091] Figure 7 This is a schematic diagram of the structure of a traffic signal phase data simulation device provided in Embodiment 3 of the present invention. Figure 7 As shown, the device includes:
[0092] The transmission request module 310 is used to trigger at least one signal machine simulation task request through the front-end device and transmit the triggered at least one signal machine simulation task request to the back-end device.
[0093] The timing data generation module 320 is used to generate corresponding signal phase timing data by executing a signal simulation task based on at least one signal simulation task request sent by the front-end device through the back-end device.
[0094] The simulation data generation module 330 is used to generate simulated signal light change data based on the signal phase timing data by the back-end device;
[0095] The analog display module 340 is used to transmit the signal phase timing data and signal light change analog data to the front-end device for analog display via the back-end device.
[0096] Furthermore, the transmission request module includes:
[0097] The task request generation unit is used to obtain the trigger signal for at least one signal controller control through the front-end device, and generate the corresponding signal controller simulation task request based on the triggered at least one signal controller control when it is detected that the back-end device has not pushed the signal controller phase data.
[0098] Furthermore, the time-series data generation module includes:
[0099] The first configuration information generation unit is used to generate the first configuration information of the signal by performing a signal simulation task through a signal simulator. The first configuration information includes the signal number and the latitude and longitude of the signal.
[0100] The second configuration information generation unit is used to generate second configuration information of the signal by executing a signal simulation task through a signal simulator. The second configuration information includes the signal phase and the corresponding direction, flow direction, signal mode and signal type.
[0101] The timing data generation unit is used to generate signal phase timing data of the signal machine based on the first configuration information and the second configuration information. The signal phase timing data is used to describe the execution order of the signal machine phases and the duration of different phase stages corresponding to the phases.
[0102] Furthermore, the simulation data generation module includes:
[0103] The simulated traffic light group generation unit is used to generate simulated traffic light groups corresponding to the traffic lights by performing traffic light simulation tasks through a traffic light simulator. Each simulated traffic light group includes traffic lights for three directions: left turn, straight ahead, and right turn.
[0104] The timing data loading unit is used to load the phase timing data of the signal machine into the analog signal light group corresponding to the signal machine, and control the analog signal light group to adjust the light color to obtain the analog signal light change data.
[0105] Furthermore, the analog display module includes:
[0106] The task request triggering unit is used to trigger at least one signal data push task request by selecting at least one signal control on the front-end device;
[0107] The task request receiving unit is used to receive the signal data push task request sent by the front-end device through the back-end device, and to start the signal data push thread in response to the signal data push task request.
[0108] The analog display unit is used to push the signal phase timing data and signal light change simulation data to the front-end device through the signal data push thread, so that the front-end device can perform signal phase simulation display and signal light change simulation display according to the signal phase timing data and signal light change simulation data.
[0109] Furthermore, the analog display unit is used for:
[0110] The signal data push thread iterates through the list of signal machines corresponding to the signal data push task requests and assembles the phase timing data and signal light change simulation data of the signal machines that need to be pushed.
[0111] The signal phase timing data and traffic light change simulation data are pushed to the data channel corresponding to the data push task request established between the front-end device and the back-end device for transmission to the front-end device.
[0112] Furthermore, the signal phase timing data and traffic light change simulation data that need to be pushed are analyzed; based on the analysis results, the signal phase timing data and traffic light change simulation data are assembled into a data structure that the front-end device can recognize.
[0113] The traffic signal phase data simulation device provided in this embodiment of the invention can execute the traffic signal phase data simulation method provided in any of the above embodiments of the invention, and has the corresponding functions and beneficial effects of executing the traffic signal phase data simulation method. For details, please refer to the relevant operations of the traffic signal phase data simulation method in the foregoing embodiments.
[0114] Example 4
[0115] Figure 8A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0116] like Figure 8 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0117] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0118] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the simulation method of traffic signal phase data.
[0119] In some embodiments, the method for simulating traffic signal phase data can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the method for simulating traffic signal phase data described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the method for simulating traffic signal phase data by any other suitable means (e.g., by means of firmware).
[0120] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0121] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0122] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0123] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0124] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0125] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0126] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0127] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for simulating traffic signal phase data, applicable to simulating traffic signal phase data, characterized in that, include: The front-end device triggers at least one signal machine simulation task request and transmits the triggered at least one signal machine simulation task request to the back-end device. The backend device executes at least one signal simulation task request sent by the frontend device to generate corresponding signal phase timing data by performing a signal simulation task. The backend device generates simulated data of traffic light changes based on the phase timing data of the signal controller; The back-end device transmits the signal phase timing data and signal light change simulation data to the front-end device for simulation display. The process of performing signal simulation tasks generates corresponding signal phase timing data, including: The signal simulator performs a signal simulation task to generate the first configuration information of the signal, which includes the signal number and the latitude and longitude of the signal. The signal simulator performs a signal simulation task to generate the second configuration information of the signal. The second configuration information includes the signal phase and the corresponding direction, flow direction, signal mode and signal type. Based on the first configuration information and the second configuration information, signal phase timing data of the signal is generated. The signal phase timing data is used to describe the execution order of the signal phase and the duration of different phase stages corresponding to the phase.
2. The method according to claim 1, characterized in that, Trigger at least one signal emulator simulation task request through the front-end device, including: The system obtains trigger signals for at least one signal controller control through the front-end device, and generates a corresponding signal controller simulation task request based on the triggered signal controller control when it detects that the back-end device has not pushed signal controller phase data.
3. The method according to claim 1, characterized in that, Based on the signal phase timing data, simulated data of traffic light changes is generated, including: The signal simulator generates simulated signal light groups corresponding to the signal lights by performing signal simulation tasks. Each simulated signal light group includes signal lights for three directions: left turn, straight ahead, and right turn. The phase timing data of the signal machine is loaded into the analog signal light group corresponding to the signal machine, and the analog signal light group is controlled to adjust and change the light color to obtain analog data of signal light change.
4. The method according to claim 1, characterized in that, The backend device transmits the signal phase timing data and signal light change simulation data to the frontend device for simulation display, including: Trigger at least one signal controller data push task request by selecting at least one signal controller control on the front-end device; The backend device receives the signal data push task request sent by the frontend device and responds to the signal data push task request to start the signal data push thread; The signal controller data push thread pushes the signal controller phase timing data and the signal light change simulation data to the front-end device, so that the front-end device can perform signal controller phase simulation display and signal light change simulation display according to the signal controller phase timing data and the signal light change simulation data.
5. The method according to claim 4, characterized in that, The signal controller phase timing data and simulated signal light change data are pushed to the front-end equipment through the signal controller data push thread, including: The signal data push thread iterates through the list of signal machines corresponding to the signal data push task requests and assembles the phase timing data and signal light change simulation data of the signal machines that need to be pushed. The signal phase timing data and traffic light change simulation data are pushed to the data channel corresponding to the data push task request established between the front-end device and the back-end device for transmission to the front-end device.
6. The method according to claim 5, characterized in that, The required signal phase timing data and traffic light change simulation data are assembled, including: Analyze the phase timing data of the signal controllers and the simulated data of signal light changes that need to be pushed; Based on the analysis results, the signal phase timing data and traffic light change simulation data are assembled into a data structure that the front-end device can recognize.
7. The method according to claim 5, characterized in that, After pushing the signal phase timing data and traffic light change simulation data to the data channel corresponding to the data push task request established between the front-end and back-end devices, the process also includes: The front-end device obtains signal phase timing data and traffic light change simulation data from the data channel corresponding to the data push task request established between the front-end device and the back-end device. The front-end device draws and displays the signal phase timing diagram and the signal light group according to the signal phase timing data and the signal light change simulation data.
8. A device for simulating traffic signal phase data, suitable for simulating traffic signal phase data, characterized in that, include: The transmission request module is used to trigger at least one signal machine simulation task request through the front-end device and transmit the triggered at least one signal machine simulation task request to the back-end device. The timing data generation module is used to generate corresponding signal phase timing data by executing a signal simulation task based on at least one signal simulation task request sent by the front-end device through the back-end device. The simulation data generation module is used to generate simulated signal light change data based on the signal phase timing data from the back-end device. The analog display module is used to transmit the signal phase timing data and signal light change analog data from the back-end device to the front-end device for analog display. The time-series data generation module includes: The first configuration information generation unit is used to generate the first configuration information of the signal by performing a signal simulation task through a signal simulator. The first configuration information includes the signal number and the latitude and longitude of the signal. The second configuration information generation unit is used to generate second configuration information of the signal by executing a signal simulation task through a signal simulator. The second configuration information includes the signal phase and the corresponding direction, flow direction, signal mode and signal type. The timing data generation unit is used to generate signal phase timing data of the signal machine based on the first configuration information and the second configuration information. The signal phase timing data is used to describe the execution order of the signal machine phases and the duration of different phase stages corresponding to the phases.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform a method for simulating traffic signal phase data according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the method for simulating traffic signal phase data according to any one of claims 1-7.
Citation Information
Patent Citations
Hardware in-loop simulation test system for traffic signal control system
CN102645930A
Signal machine hardware-in-loop simulation test system and method
CN115047840A