A signal lamp control method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202311281314.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2026-10-20
- Estimated Expiration
- 2043-09-28
AI Technical Summary
由于信号灯之间的信号控制规则不同,因此难以对使用不同控制规则的信号灯进行统一的控制
[0034]上述第二方面至第五方面的有益效果可以参考第一方面的对应描述,不再赘述。
Smart Images

Figure CN117238147B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of traffic signal control, and more particularly to a method, device, electronic equipment, and storage medium for controlling traffic lights. Background Technology
[0002] With the development of the transportation and Internet of Things sectors, traffic lights (hereinafter referred to as traffic lights), as important traffic equipment on roads, are increasingly being integrated and networked for unified control, rather than being controlled independently by individual traffic lights.
[0003] However, due to differences in the construction phases and manufacturers of traffic light control equipment, the control methods for traffic lights currently in use are also inconsistent. For example, commonly used signal control rules mainly include ring-boundary based traffic signal control rules derived from NTCIP (National Transport Communications for ITS Protocol), and traffic signal control rules organized according to phase phase cycles (the data communication protocol between traffic signal controllers and host computers promoted by standard GB / T20999-2017). Because the signal control rules differ between traffic lights, it is difficult to uniformly control traffic lights using different control rules.
[0004] Therefore, how to uniformly control traffic lights with different control rules has become an urgent technical problem to be solved. Summary of the Invention
[0005] This application provides a control method, device, electronic device, and storage medium for traffic lights, used for unified control of traffic lights with different control rules.
[0006] In a first aspect, this application provides a traffic light control method, the method comprising: acquiring raw control data of a target traffic light, wherein the raw control data has any one of a variety of different data structures; determining target control data based on the raw control data, wherein the target control data includes control events in each control cycle of the target traffic light, time periods corresponding to each control event, and priority identifiers of each control event; the priority identifiers of the control events represent the preset priority of the control events; and controlling the target traffic light based on the target control data; wherein, if a time period corresponds to multiple control events, the control event with the highest preset priority corresponding to the time period is executed; if a time period corresponds to one control event, the control event corresponding to the time period is executed.
[0007] According to the above technical solution, the traffic light control method provided in this application first obtains the original control data of the target traffic light, and then determines the target control data based on the original control data, thereby enabling the control of the target traffic light according to the target control data. Since the original control data corresponding to different target traffic lights may be one of several different data structures, based on this method, traffic lights that originally used different original control data (such as stage structure control data or ring boundary structure control data) can all be uniformly controlled by determining the target control data based on the original control data. Furthermore, this method only needs to obtain the original control data of the target traffic light to determine the target control data, and then further control the target traffic light based on the target control data. Therefore, this method does not rely on the control logic and control platform of the target traffic light's original control data, and can uniformly control traffic lights using original control data with different data structures and different control platforms.
[0008] In one possible implementation, the target control data for a control cycle is a ring chart containing multiple concentric rings, each ring corresponding to at least one control event. The multiple concentric rings are located on different layers, and the layer where the concentric rings are located represents the preset priority of the control events corresponding to the concentric rings. Different sub-regions in the concentric rings correspond to different time periods in the control cycle, and the marked sub-regions in the concentric rings represent the time periods of the control events corresponding to the concentric rings.
[0009] In one possible implementation, the target control data for two control cycles is a ring diagram, which includes two sets of concentric ring regions that overlap. The control data for one control cycle is a set of concentric ring regions. For any set of concentric ring regions, there are multiple concentric ring regions, and one concentric ring region corresponds to one control event. The multiple concentric ring regions are located on different layers, and the layer where the concentric ring regions are located represents the preset priority of the control events corresponding to the concentric ring regions. Different sub-regions within the concentric ring regions correspond to different time periods in the control cycle. The marked sub-regions within the concentric ring regions represent the time period of the control events corresponding to the concentric ring regions.
[0010] In one possible implementation, controlling the target traffic light based on the target control data includes controlling the target traffic light based on the corresponding control event in the ring diagram of the target control data.
[0011] In one possible implementation, the original control data includes phase information of at least one phase corresponding to the target traffic light, the at least one phase corresponding to the target traffic light being arranged in chronological order, one phase corresponding to at least one clearance period for the traffic flow, and the phase information including phase duration and phase position; based on the original control data, target control data is determined, including: determining the time period of each phase corresponding to the target traffic light based on the phase information of each phase; determining the first control event corresponding to each phase, the time period corresponding to the first control event, and the priority identifier of the first control event based on the time period of each phase; wherein, the first control event is the control event corresponding to the clearance period; the time period corresponding to the first target control event is the time period of the target phase, the target phase is any phase corresponding to the target traffic light, the first target control event is the first control event corresponding to the target phase; and the priority identifier of the first control event is a first identifier.
[0012] In one possible implementation, the phase information further includes release period adjustment information, which includes adjustment type and adjustment duration. The adjustment type includes a first type, which indicates that the target phase has a second control event used to delay the start of the release period. If there is a period other than the phase within the control cycle, the target control data is determined based on the original control data, and further includes: for the target phase, if the adjustment type of the target phase is the first type, then based on the start time of the target phase's period and the adjustment duration of the target phase, the second control event corresponding to the target phase, the period corresponding to the second control event, and the priority identifier of the second control event are determined. If the target phase is discontinuous with other phases, the start time of the period corresponding to the second control event is the start time of the target phase's period. If the target phase is continuous with other phases, the start time of the period corresponding to the second control event is the earliest start time among the start time of the target phase's period and the start times of the periods of other continuous phases. The priority identifier of the second control event is a second identifier, and the preset priority represented by the second identifier is higher than the preset priority represented by the first identifier.
[0013] In one possible implementation, the phase information further includes release period adjustment information, which includes adjustment type and adjustment duration. The adjustment type also includes a second type, which indicates that the target phase has a third control event for early termination of the release period. If there are periods other than the phase within the control cycle, the target control data is determined based on the original control data, including: for the target phase, if the adjustment type of the target phase is the second type, then based on the end time of the target phase's period and the adjustment duration of the target phase, the third control event corresponding to the target phase, the period corresponding to the third control event, and the priority identifier of the third control event are determined. If the target phase is discontinuous with other phases, the end time of the period corresponding to the third control event is the end time of the target phase's period. If the target phase is continuous with other phases, the end time of the period corresponding to the second control event is the latest end time among the end times of the target phase's period and the end times of the periods of other continuous phases. The priority identifier of the third control event is a third identifier, where the preset priority represented by the third identifier is higher than the preset priority represented by the first identifier.
[0014] In one possible implementation, determining the target control data based on the original control data further includes: determining the time period of each non-release period based on the time period of each phase; the non-release period is the period other than the release period in each control cycle of the target traffic light; determining the fourth control event corresponding to each non-release period, the time period corresponding to the fourth control event, and the priority identifier of the fourth control event based on the time period of each non-release period; wherein, the time period corresponding to the target fourth control event is the time period of the target non-release period, the target non-release period is any non-release period, the target fourth control event is the fourth control event corresponding to the target non-release period; and the priority identifier corresponding to the fourth control event is the fourth identifier.
[0015] In one possible implementation, the original control data also includes right-of-way transition information corresponding to each non-release period, including the right-of-way transition type and the right-of-way transition duration; the adjustment type also includes a third type, which indicates that there is no second control event for the target phase; if there is a first phase adjacent to the target non-release period after the target non-release period, the target control data is determined based on the original control data, further including: for the target non-release period, if the right-of-way transition type corresponding to the target non-release period is the right-of-way acquisition transition type, then the fifth control event corresponding to the target non-release period, the time period corresponding to the fifth control event, and the fifth right-of-way transition duration are determined based on the time period and the right-of-way transition duration of the target non-release period. The priority identifier of the control event; the fifth control event is used to indicate that the non-release period is about to end and / or the release period is about to begin; the priority identifier of the fifth control event is the fifth identifier; wherein, if the adjustment type of the first phase is the first type, the end time of the time period corresponding to the fifth control event is the end time of the time period corresponding to the second control event of the first phase, and the preset priority represented by the fifth identifier is higher than the preset priority represented by the second identifier and the fourth identifier; if the adjustment type of the first phase is the third type, the end time of the time period corresponding to the fifth control event is the end time of the target non-release period, and the preset priority represented by the fifth identifier is higher than the preset priority represented by the fourth identifier.
[0016] In one possible implementation, the original control data also includes right-of-way transition information corresponding to each non-release period, including the right-of-way transition type and the right-of-way transition duration; the adjustment type also includes a fourth type, which indicates that the target phase does not have a second control event; if there is a second phase adjacent to the target non-release period before the target non-release period, the target control data is determined based on the original control data, further including: for the target non-release period, if the right-of-way transition type corresponding to the target non-release period is a lost right-of-way transition type, the sixth control event corresponding to the target non-release period, the time period corresponding to the sixth control event, and the right-of-way transition duration are determined based on the time period and the right-of-way transition duration of the target non-release period. The priority identifier for the sixth control event; the sixth control event is used to indicate that the non-release period is about to begin and / or the release period is about to end; the priority identifier for the sixth control event is the sixth identifier; wherein, if the adjustment type of the second phase is the second type, the end time of the time period corresponding to the sixth control event is the start time of the time period corresponding to the third control event of the second phase, and the preset priority represented by the sixth identifier is higher than the preset priority represented by the third identifier and the fourth identifier; if the adjustment type of the second phase is the fourth type, the end time of the time period corresponding to the sixth control event is the end time of the time period of the second phase, and the preset priority represented by the sixth identifier is higher than the preset priority represented by the fourth identifier.
[0017] In one possible implementation, the control events within the control cycle include a first control event, a second control event, a third control event, a fourth control event, a fifth control event, and a sixth control event; the first control event corresponds to the green light color, and the second, third, and fourth control events correspond to the red light color; the fifth and sixth control events correspond to at least one of the red, green, and yellow light colors.
[0018] In one possible implementation, the traffic light control method further includes: when the same light color is continuously timed, determining the remaining time of the target light color based on the duration of the time period corresponding to multiple control events where the corresponding light colors are all the target light color and the timing is consecutive; the target light color is any one of the light colors corresponding to the control events; when the same light color is not continuously timed, determining the remaining time of the target light color based on the duration of the time period corresponding to the control events of the corresponding target light color.
[0019] Secondly, this application provides a traffic light control device, comprising: a data acquisition unit for acquiring raw control data of a target traffic light, wherein the raw control data has any one of several different data structures; a target data generation unit for determining target control data based on the raw control data, wherein the target control data includes control events within each control cycle of the target traffic light, the time period corresponding to each control event, and the priority identifier of each control event. The priority identifier of the control event represents the preset priority of the control event; and a signal control unit for controlling the target traffic light according to the target control data. Wherein, if a time period corresponds to multiple control events, the control event with the highest preset priority corresponding to the time period is executed. If a time period corresponds to one control event, the control event corresponding to the time period is executed.
[0020] In one possible implementation, the target control data for a control cycle is a ring chart containing multiple concentric rings, each ring corresponding to at least one control event. The multiple concentric rings are located on different layers, and the layer where the concentric rings are located represents the preset priority of the control events corresponding to the concentric rings. Different sub-regions in the concentric rings correspond to different time periods in the control cycle, and the marked sub-regions in the concentric rings represent the time periods of the control events corresponding to the concentric rings.
[0021] In one possible implementation, the target control data for two control cycles is a ring diagram, which includes two sets of concentric ring regions that overlap. The control data for one control cycle is a set of concentric ring regions. For any set of concentric ring regions, there are multiple concentric ring regions, and one concentric ring region corresponds to one control event. The multiple concentric ring regions are located on different layers, and the layer where the concentric ring regions are located represents the preset priority of the control events corresponding to the concentric ring regions. Different sub-regions within the concentric ring regions correspond to different time periods in the control cycle. The marked sub-regions within the concentric ring regions represent the time period of the control events corresponding to the concentric ring regions.
[0022] In one possible implementation, the target data generation unit is specifically used to control the target traffic light based on the control event corresponding to the ring diagram of the target control data.
[0023] In one possible implementation, the original control data includes phase information of at least one phase corresponding to the target traffic light, the at least one phase corresponding to the target traffic light being arranged in chronological order, one phase corresponding to at least one release period for the traffic flow, and the phase information including phase duration and phase position; the target data generation unit is specifically used to determine the time period of each phase corresponding to the target traffic light based on the phase information of each phase corresponding to the target traffic light; and to determine the first control event corresponding to each phase, the time period corresponding to the first control event, and the priority identifier of the first control event based on the time period of each phase; wherein, the first control event is the control event corresponding to the release period; the time period corresponding to the first target control event is the time period of the target phase, the target phase is any phase corresponding to the target traffic light, the first target control event is the first control event corresponding to the target phase; and the priority identifier of the first control event is a first identifier.
[0024] In one possible implementation, the phase information further includes release period adjustment information, which includes adjustment type and adjustment duration. The adjustment type includes a first type, which indicates that there is a second control event for delaying the start of the release period in the target phase. The target data generation unit is further configured to, for the target phase, if the adjustment type of the target phase is the first type, determine the second control event corresponding to the target phase, the time period corresponding to the second control event, and the priority identifier of the second control event based on the start time of the time period of the target phase and the adjustment duration of the target phase. When the target phase is discontinuous with other phases, the start time of the time period corresponding to the second control event is the start time of the time period of the target phase. When the target phase is continuous with other phases, the start time of the time period corresponding to the second control event is the earliest start time among the start time of the time period of the target phase and the start times of the time periods of the other continuous phases. The priority identifier of the second control event is a second identifier, and the preset priority represented by the second identifier is higher than the preset priority represented by the first identifier.
[0025] In one possible implementation, the phase information further includes release period adjustment information, which includes adjustment type and adjustment duration. The adjustment type also includes a second type, which indicates that the target phase has a third control event for early termination of the release period. The target data generation unit is further configured to, in the case that there are time periods other than the phase in the control cycle, determine the third control event corresponding to the target phase, the time period corresponding to the third control event, and the priority identifier of the third control event based on the end time of the time period of the target phase and the adjustment duration of the target phase, if the adjustment type of the target phase is the second type. If the target phase is discontinuous with other phases, the end time of the time period corresponding to the third control event is the end time of the time period of the target phase. If the target phase is continuous with other phases, the end time of the time period corresponding to the second control event is the latest end time among the end times of the time period of the target phase and the end times of the time periods of other continuous phases. The priority identifier of the third control event is a third identifier, and the preset priority represented by the third identifier is higher than the preset priority represented by the first identifier.
[0026] In one possible implementation, the target data generation unit is further configured to determine the time periods of each non-release period based on the time periods of each phase; the non-release period is the period other than the release period in each control cycle of the target traffic light; based on the time periods of each non-release period, the unit determines the fourth control event corresponding to each non-release period, the time period corresponding to the fourth control event, and the priority identifier of the fourth control event; wherein, the time period corresponding to the target fourth control event is the time period of the target non-release period, the target non-release period is any non-release period, the target fourth control event is the fourth control event corresponding to the target non-release period; and the priority identifier corresponding to the fourth control event is the fourth identifier.
[0027] In one possible implementation, the raw control data also includes right-of-way transition information corresponding to each non-release period, which includes the right-of-way transition type and the right-of-way transition duration; the adjustment type also includes a third type, which indicates that the target phase does not have a second control event; the target data generation unit is further used to determine, in the case where there is a first phase adjacent to the target non-release period after the target non-release period, if the right-of-way transition type corresponding to the target non-release period is the right-of-way transition type, then, based on the time period and right-of-way transition duration of the target non-release period, the fifth control event corresponding to the target non-release period, the time period corresponding to the fifth control event, and the fifth control event's... Priority identifier; the fifth control event is used to indicate that the non-release period is about to end and / or the release period is about to begin; the priority identifier of the fifth control event is the fifth identifier; wherein, if the adjustment type of the first phase is the first type, the end time of the time period corresponding to the fifth control event is the end time of the time period corresponding to the second control event of the first phase, and the preset priority represented by the fifth identifier is higher than the preset priority represented by the second identifier and the fourth identifier; if the adjustment type of the first phase is the third type, the end time of the time period corresponding to the fifth control event is the end time of the target non-release period, and the preset priority represented by the fifth identifier is higher than the preset priority represented by the fourth identifier.
[0028] In one possible implementation, the raw control data also includes right-of-way transition information corresponding to each non-release period, including the right-of-way transition type and the right-of-way transition duration; the adjustment type also includes a fourth type, which indicates that there is no second control event for the target phase; the target data generation unit is further used to determine the sixth control event corresponding to the target non-release period, the time period corresponding to the sixth control event, and the sixth control event itself, based on the time period and the right-of-way transition duration of the target non-release period, if the right-of-way transition type corresponding to the target non-release period is a lost right-of-way transition type. The priority identifier of the sixth control event is used to indicate that the non-release period is about to begin and / or the release period is about to end. The priority identifier of the sixth control event is the sixth identifier. If the adjustment type of the second phase is the second type, the end time of the period corresponding to the sixth control event is the start time of the period corresponding to the third control event of the second phase, and the preset priority represented by the sixth identifier is higher than the preset priority represented by the third identifier and the fourth identifier. If the adjustment type of the second phase is the fourth type, the end time of the period corresponding to the sixth control event is the end time of the period of the second phase, and the preset priority represented by the sixth identifier is higher than the preset priority represented by the fourth identifier.
[0029] In one possible implementation, the control events within the control cycle include a first control event, a second control event, a third control event, a fourth control event, a fifth control event, and a sixth control event; the first control event corresponds to the green light color, and the second, third, and fourth control events correspond to the red light color; the fifth and sixth control events correspond to at least one of the red, green, and yellow light colors.
[0030] In one possible implementation, the traffic light control device further includes a timing unit, used to determine the remaining time of the target light color based on the duration of the time period corresponding to multiple control events where the corresponding light colors are all the target light color and the timing sequence is consecutive, when the same light color is continuously timed; the target light color is any one of the light colors corresponding to the control events; when the same light color is not continuously timed, the remaining time of the target light color is determined based on the duration of the time period corresponding to the control event of the corresponding target light color.
[0031] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, the computer program code including computer instructions; wherein, when the processor executes the computer instructions, it causes the electronic device to perform a control method for a signal light as described in the first aspect and any possible design thereof.
[0032] Fourthly, this application provides a computer-readable storage medium comprising: computer software instructions; when the computer software instructions are executed in a traffic light control device, the traffic light control device implements the method described in the first aspect.
[0033] Fifthly, this application provides a computer program product that, when run on a traffic light control device, causes the traffic light control device to execute the steps of the relevant method described in the first aspect above, so as to implement the method of the first aspect above.
[0034] The beneficial effects of the second to fifth aspects mentioned above can be referred to the corresponding description of the first aspect, and will not be repeated here. Attached Figure Description
[0035] Figure 1 A schematic diagram of the structure of a traffic light control system provided in this application;
[0036] Figure 2 A schematic diagram of the structure of the computing device included in the control device 11 of a traffic light control system provided in this application;
[0037] Figure 3 A flowchart illustrating a traffic light control method provided in this application;
[0038] Figure 4 A schematic diagram of the target control data for a traffic light control method provided in this application. Figure 1 ;
[0039] Figure 5 A schematic diagram of the control events executed by the target traffic light in a traffic light control method provided in this application;
[0040] Figure 6 A pie chart illustrating the target control data of a traffic light control method provided in this application. Figure 2 ;
[0041] Figure 7 A schematic diagram illustrating a traffic light control method provided in this application, where there is no target phase and other phases are continuous;
[0042] Figure 8 This is a schematic diagram of the structure of a signal light control device provided in this application. Detailed Implementation
[0043] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0044] It should be noted that in the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.
[0045] To facilitate a clear description of the technical solutions of the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish the same or similar items with essentially the same function and effect. Those skilled in the art can understand that the terms "first" and "second" are not intended to limit the quantity or execution order.
[0046] As can be seen from the above background, due to the different construction stages and manufacturers of traffic light control equipment, the control methods for traffic lights currently in use are also inconsistent. For example, the commonly used signal control rules mainly include the ring-boundary based traffic signal control rules derived from NTCIP (National Transport Communication Communications for ITS Protocol), and the traffic signal control rules organized according to phase phase cycles (the data communication protocol between the traffic signal controller and the host computer promoted by standard GB / T 20999-2017).
[0047] In the field of traffic signal control, the time required for a complete cycle of traffic lights to cycle through the preset directions, sequences, and times of traffic flow is called a signal cycle. The phase corresponds to the signal display status of one or more traffic flows that simultaneously have the right-of-way within a signal cycle.
[0048] For traffic signal control rules based on ring-boundary structures, the control data for the corresponding ring-boundary structure can include one or more (usually one or two) rings within a signal cycle. Each ring can include one or more phases. Phases with conflicting traffic releases need to be isolated and belong to different boundaries. When multiple rings exist, each ring within the same boundary operates concurrently, and the next boundary can only begin operation after all phases in each ring have finished running.
[0049] For traffic signal control rules based on phase phase organization cycles, the corresponding phase structure control data can include multiple phase phases in a signal cycle, and a phase phase can include one or more phases, with different phases in the same phase phase operating concurrently.
[0050] In today's increasingly complex traffic flow, unified control of traffic signals is crucial for urban management. However, due to differences in the construction phase and manufacturers of traffic lights and their corresponding control platforms, both types of control data are widely used. The control data structures and control logics of these two traffic signal control rules differ, making it difficult to uniformly control traffic lights using different control rules. Furthermore, each traffic light manufacturer has its own closed traffic signal control platform, further complicating the direct control of traffic lights with different control rules.
[0051] Therefore, how to uniformly control traffic lights with different control rules has become an urgent technical problem to be solved.
[0052] To address the aforementioned problems, this application provides a control method, apparatus, electronic device, and storage medium for traffic lights.
[0053] In one possible embodiment, the traffic light control method provided in this application can be applied to, for example... Figure 1 The traffic light control system shown includes a control device 11 and a traffic light 12, which are communicatively connected.
[0054] It should be noted that the number of control devices 11 and target signal lights 12 is unlimited. Figure 1 The following explanation uses a control device 11 and a target signal light 12 as an example.
[0055] The control device 11 can acquire the original control data of the target traffic light 12. The data structure of the original control data can be any of a variety of different data structures. Based on the original control data, the target control data is determined. The target control data includes the control events in each control cycle of the target traffic light 12, the time period corresponding to each control event, and the priority identifier of each control event. The priority identifier of the control event represents the preset priority of the control event. Based on the target control data, the target traffic light 12 is controlled. If a time period corresponds to multiple control events, the control event with the highest preset priority corresponding to the time period is executed. If a time period corresponds to one control event, the control event corresponding to the time period is executed.
[0056] In one possible embodiment, the control device 11 can also control the target signal light 12 based on the control event corresponding to the ring diagram of the target control data.
[0057] In one possible embodiment, the control device 11 can also determine the time period of each phase corresponding to the target traffic light 12 based on the phase information of each phase corresponding to the target traffic light 12; and determine the first control event corresponding to each phase, the time period corresponding to the first control event, and the priority identifier of the first control event based on the time period of each phase; wherein, the first control event is the control event corresponding to the release period; the time period corresponding to the first target control event is the time period of the target phase, the target phase is any phase corresponding to the target traffic light 12, the first target control event is the first control event corresponding to the target phase; and the priority identifier of the first control event is a first identifier.
[0058] In one possible embodiment, the control device 11 can further determine, for the target phase, a second control event corresponding to the target phase, a time period corresponding to the second control event, and a priority identifier of the second control event based on the start time of the time period of the target phase and the adjustment duration of the target phase, if the adjustment type of the target phase is a first type. If the target phase is discontinuous with other phases, the start time of the time period corresponding to the second control event is the start time of the time period of the target phase. If the target phase is continuous with other phases, the start time of the time period corresponding to the second control event is the earliest start time among the start time of the time period of the target phase and the start times of the time periods of the other continuous phases. The priority identifier of the second control event is a second identifier, and the preset priority represented by the second identifier is higher than the preset priority represented by the first identifier.
[0059] In one possible embodiment, the control device 11 may further determine, for the target phase, a third control event corresponding to the target phase, a time period corresponding to the third control event, and a priority identifier of the third control event based on the end time of the time period of the target phase and the adjustment duration of the target phase if the adjustment type of the target phase is the second type; if the target phase is discontinuous with other phases, the end time of the time period corresponding to the third control event is the end time of the time period of the target phase; if the target phase is continuous with other phases, the end time of the time period corresponding to the second control event is the latest end time among the end times of the time period of the target phase and the end times of the time periods of other continuous phases; the priority identifier of the third control event is a third identifier, and the preset priority represented by the third identifier is higher than the preset priority represented by the first identifier.
[0060] In one possible embodiment, the control device 11 can also determine the time period of each non-release period according to the time period of each phase; the non-release period is the period other than the release period in each control cycle of the target signal light 12; according to the time period of each non-release period, determine the fourth control event corresponding to each non-release period, the time period corresponding to the fourth control event, and the priority identifier of the fourth control event; wherein, the time period corresponding to the target fourth control event is the time period of the target non-release period, the target non-release period is any non-release period, the target fourth control event is the fourth control event corresponding to the target non-release period; the priority identifier corresponding to the fourth control event is the fourth identifier.
[0061] In one possible embodiment, the control device 11 can further determine, for a target non-release period, if the right-of-way transition type corresponding to the target non-release period is the right-of-way acquisition transition type, a fifth control event corresponding to the target non-release period, the time period corresponding to the fifth control event, and a priority identifier of the fifth control event based on the time period of the target non-release period and the right-of-way transition duration; the fifth control event is used to indicate that the non-release period is about to end and / or the release period is about to begin; the priority identifier of the fifth control event is the fifth identifier; wherein, if the adjustment type of the first phase is the first type, the end time of the time period corresponding to the fifth control event is the end time of the time period corresponding to the second control event of the first phase, and the preset priority represented by the fifth identifier is higher than the preset priority represented by the second identifier and the fourth identifier; if the adjustment type of the first phase is the third type, the end time of the time period corresponding to the fifth control event is the end time of the time period of the target non-release period, and the preset priority represented by the fifth identifier is higher than the preset priority represented by the fourth identifier.
[0062] In one possible embodiment, the control device 11 can further determine, for a target non-release period, if the right-of-way transition type corresponding to the target non-release period is a lost right-of-way transition type, a sixth control event corresponding to the target non-release period, the time period corresponding to the sixth control event, and a priority identifier of the sixth control event based on the time period of the target non-release period and the right-of-way transition duration; the sixth control event is used to indicate that the non-release period is about to start and / or the release period is about to end; the priority identifier of the sixth control event is the sixth identifier; wherein, if the adjustment type of the second phase is the second type, the end time of the time period corresponding to the sixth control event is the start time of the time period corresponding to the third control event of the second phase, and the preset priority represented by the sixth identifier is higher than the preset priority represented by the third identifier and the fourth identifier; if the adjustment type of the second phase is the fourth type, the end time of the time period corresponding to the sixth control event is the end time of the time period of the second phase, and the preset priority represented by the sixth identifier is higher than the preset priority represented by the fourth identifier.
[0063] In one possible embodiment, the control device 11 can also determine the remaining time of the target light color based on the duration of the time period corresponding to multiple control events where the corresponding light colors are all the target light color and the timing is consecutive, when the same light color is continuously timed; the target light color is any one of the light colors corresponding to the control events; when the same light color is not continuously timed, the remaining time of the target light color is determined based on the duration of the time period corresponding to the control event of the corresponding target light color.
[0064] The control device 11 in this application embodiment can be a controller, desktop computer, tablet computer, laptop computer, handheld computer, wearable electronic device, handheld computer, Ultra-mobile Personal Computer (UMPC), netbook, or other electronic device. This application embodiment does not impose any restrictions on this.
[0065] The target traffic light 12 in this application embodiment can be any one of the following traffic lights: motor vehicle traffic light, non-motor vehicle traffic light, pedestrian crossing traffic light, lane traffic light, direction indicator traffic light, and flashing warning traffic light. This application embodiment does not impose any restrictions on this.
[0066] The control device 11 in this embodiment may include, for example: Figure 2 The computing device shown includes a processor 101, a memory 102, a communication interface 103, and a bus 104. The processor 101, the memory 102, and the communication interface 103 are connected via the bus 104.
[0067] Processor 101 is the control center of the computing device. It can be a single processor or a collective term for multiple processing elements. For example, processor 101 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.
[0068] As some embodiments, processor 101 may include one or more CPUs, for example Figure 2 CPU 0 and CPU 1 are shown in the diagram.
[0069] The memory 102 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or an electrically lyerasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.
[0070] In some possible implementations, the memory 102 can exist independently of the processor 101. The memory 102 can be connected to the processor 101 via a bus 104 and is used to store instructions or program code. When the processor 101 calls and executes the instructions or program code stored in the memory 102, it can implement the model deployment method provided in the embodiments of this application.
[0071] In this embodiment, the software programs stored in memory 102 differ for each control device, resulting in different functions. The functions performed by each device will be described in conjunction with the following flowchart.
[0072] In another possible implementation, the memory 102 can also be integrated with the processor 101.
[0073] The communication interface 103 is used for connecting the computing device to other devices via a communication network, which may be Ethernet, radio access network (RAN), wireless local area network (WLAN), etc. The communication interface 103 may include a receiving unit for receiving data and a transmitting unit for transmitting data.
[0074] Bus 104 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 2 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0075] It should be pointed out that, Figure 2 The structure shown does not constitute a limitation on the computing device, except Figure 2 In addition to the components shown, the computing device may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.
[0076] In one possible embodiment, Figure 3 This is a flowchart illustrating a traffic light control method provided in an embodiment of this application. Exemplarily, the traffic light control method provided in this embodiment can be applied to... Figure 1 The control system of the signal lights shown or Figure 2The configuration device 11 in the control system of the signal light shown. For example... Figure 3 As shown, the signal light control method provided in this application embodiment may specifically include the following steps S101 to S103.
[0077] S101, Obtain the raw control data of the target traffic light.
[0078] The original control data can be any of a variety of different data structures.
[0079] It should be understood that the aforementioned raw control data is the control data for the target traffic light. For example, the raw control data may be stage structure control data or ring boundary structure control data. For different target traffic lights, the corresponding control data may have different data structures. Therefore, for one target traffic light, its control data may be either stage structure control data or ring boundary structure control data.
[0080] S102, Determine the target control data based on the original control data.
[0081] The target control data includes control events within each control cycle of the target traffic light, the time period corresponding to each control event, and the priority identifier of each control event. The priority identifier of the control event indicates the preset priority of the control event.
[0082] Within a single control cycle, there are multiple control events. For example, for traffic lights, the most common control events are those corresponding to the green light period and those corresponding to the non-green light period. During the green light period, the traffic light is usually green, indicating that the corresponding traffic flow direction can proceed. During the non-green light period, the traffic light is usually red, indicating that the corresponding traffic flow direction cannot proceed. Of course, traffic light colors during the green light period and the non-green light period can also be other colors, such as yellow or flashing yellow, etc., which are not specifically limited here.
[0083] For these control events, such as the control events corresponding to the release period, since the release period is a time-limited period, the corresponding control events are also time-limited periods. Furthermore, in traffic control, the events corresponding to the release periods of different traffic flows at the same intersection have a certain sequence. Therefore, the duration of the control events is still a time-sequential period within the control cycle.
[0084] In addition to the green light and non-green light periods, other control events may also affect and control traffic lights. For example, some intersections introduce a period commonly known as delayed start and early stop in traffic light switching to reduce conflicts between different traffic flows. Delayed start refers to the postponement of the opening of a green light phase, while early stop refers to the early termination of a green light phase. It is evident that the time periods corresponding to delayed start (delayed opening) and early stop (early termination) control events overlap, cover, and adjust the original green light period. Therefore, for these overlapping control events, this method does not modify the duration of the control event's time period corresponding to the original green light period. Instead, it introduces the concept of preset priority. Different control events correspond to different preset priorities, allowing the selection of the target traffic light to execute at the current moment based on the preset priority of multiple control events occurring simultaneously when their time periods overlap.
[0085] Of course, in addition to the aforementioned time periods corresponding to delayed opening and early closing, which may overlap with the time periods of the release period, other control time periods may also overlap. Similar to the above method, the control time of a target traffic light during the overlapping time can be determined based on the preset priority of the control event. No specific limitations are made here.
[0086] S103 controls the target signal light based on the target control data.
[0087] If a time period corresponds to multiple control events, the control event with the highest preset priority corresponding to that time period will be executed. If a time period corresponds to only one control event, the control event corresponding to that time period will be executed.
[0088] For example, multiple traffic flows at the same intersection are typically released sequentially, meaning they take turns receiving release periods, and the phases corresponding to each release period are usually interconnected. For control data in a ring-boundary structure, within a single ring, based on the phase order and the description of each phase's duration in the green light ratio table, the duration of the target phase corresponding to the target traffic light within the cycle can be determined. For instance, if the target traffic light indicates southbound straight-ahead traffic, and the northbound straight-ahead phase is the second phase in a 300-second control cycle with a phase duration of 30 seconds, and if the first phase in the control cycle also has a phase duration of 30 seconds, then the control time corresponding to the release period of the southbound straight-ahead phase of the target traffic light is from the 30th to the 60th second of the control cycle. If, from the 30th to the 60th second of the control cycle, the target traffic light only corresponds to the control event of that release period, then the target traffic light executes the control event corresponding to the release period, such as displaying a green light. If the target traffic light corresponds to other control events during this period, the preset priorities of the multiple control events are compared, and the target traffic light is controlled according to the control event with the highest preset priority.
[0089] As can be seen from the above technical solution, the traffic light control method provided in this application first obtains the original control data of the target traffic light, and then determines the target control data based on the original control data, thereby enabling the control of the target traffic light according to the target control data. Since the original control data corresponding to different target traffic lights may be one of several different data structures, based on this method, traffic lights that originally used different original control data (such as stage structure control data or ring boundary structure control data) can all be uniformly controlled by determining the target control data based on the original control data. Furthermore, this method only needs to obtain the original control data of the target traffic light to determine the target control data, and then further control the target traffic light based on the target control data. Therefore, this method does not rely on the control logic and control platform of the original control data of the target traffic light, and can uniformly control traffic lights using original control data with different data structures and different control platforms.
[0090] In one possible implementation, the target control data for a control cycle is a pie chart containing multiple concentric rings, each ring corresponding to at least one control event. The multiple concentric rings are located on different layers, and the layer where the concentric rings are located represents the preset priority of the control events corresponding to those rings. Different sub-regions within the concentric rings correspond to different time periods within the control cycle, and the marked sub-regions within the concentric rings represent the time periods of the control events corresponding to those rings.
[0091] In one possible implementation, controlling the target traffic light based on target control data includes controlling the target traffic light based on the corresponding control event in the ring diagram of the target control data.
[0092] In the traffic light control method provided in this application embodiment, one concentric ring corresponds to at least one control event, and multiple concentric rings are located on different layers. Therefore, this method has a corresponding layer for each control event, or for each type of control event's concentric rings. For example, the layer corresponding to the concentric ring of a control event corresponding to a release period can be called the release period layer, and the layer corresponding to the concentric ring of a control event not corresponding to a release period can be called the non-release period layer. Similarly, the layer corresponding to the concentric ring of a control event with delayed start (delayed opening) can be called the late start layer. The layer corresponding to the concentric ring of a control event with early termination (early end) can be called the early end layer. The layer corresponding to the concentric ring of a control event during the transition period of losing right-of-way (switching from a release period to a non-release period) can be called the lost right-of-way layer. The layer corresponding to the concentric ring of a control event during the transition period of gaining right-of-way (switching from a non-release period to a release period) can be called the gain right-of-way layer.
[0093] Since the target data for a control cycle is a pie chart, the rings in the pie chart also represent the time of the control cycle. The pie chart can be approximated as a ring representing time. The sub-regions marked by the control event in the concentric rings also represent the time period corresponding to the control event in the control cycle, that is, the start time, end time and duration of the control event in the control cycle.
[0094] The layer containing the concentric rings represents the preset priority of the control events corresponding to those rings. Therefore, within the same time period, the control event in the layer with the higher preset priority will override the control event in the layer with the lower preset priority. That is, for two control events within the same time period, the target traffic light will execute the control event with the higher priority. The preset priorities in different layers can be represented by the layer order, for example, the outermost rings correspond to higher preset priorities. Of course, other methods can also be used, and this application does not specifically limit this.
[0095] For example, such as Figure 4 As shown, this annular diagram contains multiple concentric rings. Each concentric ring corresponds to one layer, meaning that control events within the same concentric ring that mark a sub-region have the same priority. The outermost concentric rings have higher priority. Since the target traffic light is controlled according to the annular diagram, it only executes the control time with the highest preset priority within the same time period. Therefore, the control events executed by the target traffic light are as follows: Figure 5 As shown. In Figure 5Within the circular array, the highest-priority control events corresponding to each given moment are represented. Starting from the beginning of the cycle, if the control cycle time is represented clockwise along the circular array from morning to night, then... Figure 5 In this context, the control events executed within a control cycle are, in sequence, the fifth control event, the first control event, the sixth control event, the third control event, and the fourth control event. (Comparison) Figure 4 and Figure 5 As can be seen, during overlapping periods in the control cycle, only the event with the highest preset priority will be executed. For example, in Figure 4 The fifth control event is located on the outermost ring of the concentric circles and has the highest preset priority, therefore... Figure 5 As can be seen, during the overlapping periods between the second control event, the fourth control event, and the first control event, only the fifth control event will be executed.
[0096] As can be seen from the above technical solution, in the traffic light control method provided in this application embodiment, the target control data for each control cycle is a ring diagram. Based on the highest priority control time period corresponding to the sub-region marked by the concentric rings in the ring diagram at the corresponding time, the target traffic light can be controlled.
[0097] In one possible implementation, the target control data for two control cycles is a ring chart, which includes two sets of concentric ring-shaped regions that overlap. The control data for one control cycle is one set of concentric ring-shaped regions. For any set of concentric ring-shaped regions, there are multiple concentric ring-shaped regions, and each concentric ring-shaped region corresponds to a control event. These multiple concentric ring-shaped regions are located on different layers, and the layer where the concentric ring-shaped regions are located represents the preset priority of the control events corresponding to those regions. Different sub-regions within the concentric ring-shaped regions correspond to different time periods within the control cycle. The marked sub-regions within the concentric ring-shaped regions represent the time period of the control events corresponding to those regions.
[0098] Because traffic light control sometimes requires switching from one pre-set control sequence to another, or requiring two control sequences to alternately control the traffic lights, there may be situations where two control cycles overlap to form a ring diagram. In this case, half of each ring represents one control cycle, and the other half represents the other control cycle. That is, a control cycle is one of two concentric ring regions overlapping in the ring diagram.
[0099] For example, such as Figure 6 As shown in the annular diagram of the target control data, the upper concentric annular region represents the first control cycle, and the lower concentric annular region represents the second control cycle. Control event A in the diagram belongs to the first control cycle, while control events B and C are control events in the second control cycle.
[0100] In one possible implementation, the raw control data includes phase information of at least one phase corresponding to the target traffic light. The at least one phase corresponding to the target traffic light is arranged in chronological order, and each phase corresponds to at least one permitted traffic period. The phase information includes phase duration and phase position. Based on the raw control data, target control data is determined, including: determining the time period for each phase corresponding to the target traffic light based on the phase information of each phase; and determining the first control event, the time period corresponding to the first control event, and the priority identifier of the first control event based on the time period of each phase. The first control event is the control event corresponding to the permitted traffic period. The time period corresponding to the first target control event is the time period of the target phase, the target phase is any phase corresponding to the target traffic light, and the first target control event is the first control event corresponding to the target phase. The priority identifier of the first control event is a first identifier.
[0101] It should be understood that the description of phases in control data for ring-boundary structures and stage structures is typically a description of each release period. For example, in the control data for a ring-boundary structure, the phase chain describes the information of each phase's release period, including the phase duration (i.e., the release period duration) and the phase order (i.e., the phase's position among multiple phases). Therefore, based on the phase duration and phase order, the first control event of the corresponding release period can be determined, and the corresponding time period within the control cycle can be identified. For stage structure control data, it includes a stage chain, stage duration, phase, and phase time—that is, the phase's position within the stage and phase time—thus determining the corresponding time period. The priority identifier corresponds to a preset priority, which is related to what type of control event the control event is. Therefore, this method can determine the first control event corresponding to each phase, the time period corresponding to the first control event, and the priority identifier of the first control event for control data of different structures.
[0102] In one possible implementation, the phase information further includes release period adjustment information, which includes adjustment type and adjustment duration. The adjustment type includes a first type, indicating that a second control event exists for delaying the start of the release period in the target phase. If there are time periods other than the phase within the control cycle, the target control data is determined based on the original control data, and further includes: for the target phase, if the adjustment type of the target phase is the first type, then based on the start time of the target phase's time period and the adjustment duration of the target phase, the second control event corresponding to the target phase, the time period corresponding to the second control event, and the priority identifier of the second control event are determined. If the target phase is discontinuous with other phases, the start time of the time period corresponding to the second control event is the start time of the target phase's time period. If the target phase is continuous with other phases, the start time of the time period corresponding to the second control event is the earliest start time among the start time of the target phase's time period and the start times of the time periods of the other continuous phases. The priority identifier of the second control event is a second identifier, and the preset priority represented by the second identifier is higher than the preset priority represented by the first identifier.
[0103] Because some clearance periods lack corresponding events for delayed opening or early termination, it's necessary to determine the existence of a second control event based on the actual situation in the phase information. For example, for phased control data, phase information can include the phase's delayed start time and early termination time within that phase. The delayed start time corresponds to the adjustment duration of the first type and the target phase. For ring boundary structures, the delayed start time of the following phase is also included in the specific information. Furthermore, since the second control event is used to delay the opening of the clearance period, i.e., extending the period of impassable passage, the control cycle must include periods outside the phase (i.e., clearance periods) for a second control event to occur. If all periods in the control cycle corresponding to the target control data are clearance periods, then no second control event will occur.
[0104] The delayed release period should start from the beginning time of the release period. If the target phase is discontinuous with other phases, the starting time of the target phase is the starting time of the release period. Therefore, the starting time of the time period corresponding to the second control event is the starting time of the time period for the target phase. For example... Figure 7As shown, when the target phase is continuous with other phases, for example, if there is a continuous phase A preceding the target phase, since phase A also corresponds to a release period and is continuous with the target phase, the two continuous phases will constitute a longer release period. The starting time of phase A is the true starting time of this release period, therefore, the starting time of phase A should be used as the starting time of the second control event. That is, when the target phase is continuous with other phases, the earliest starting time of these two phases is taken as the starting time of the second control event. After determining the duration and starting time of the second control event, the corresponding time period can be determined. Since the second control event is an adjustment to the first control event, the preset priority of the second control event will be higher than the preset priority of the first control event. This allows the second control event to be executed instead of the first control event when the time periods of the two control events overlap, thereby adjusting the time period of the first control event.
[0105] In one possible implementation, the phase information also includes release period adjustment information, which includes adjustment type and adjustment duration. The adjustment type also includes a second type, indicating that a third control event exists for the target phase to prematurely end the release period. If there are periods other than the target phase within the control cycle, the target control data is determined based on the original control data, including: for the target phase, if the adjustment type of the target phase is the second type, then based on the end time of the target phase's period and the adjustment duration of the target phase, the third control event corresponding to the target phase, the period corresponding to the third control event, and the priority identifier of the third control event are determined. If the target phase is discontinuous with other phases, the end time of the period corresponding to the third control event is the end time of the target phase's period. If the target phase is continuous with other phases, the end time of the period corresponding to the second control event is the latest end time among the end times of the target phase's period and the end times of the periods of the other continuous phases. The priority identifier of the third control event is a third identifier, where the preset priority represented by the third identifier is higher than the preset priority represented by the first identifier.
[0106] Similar to the second control event described above, since the third control event is used to prematurely end the clearance period, that is, to prematurely begin the event of impassable passage, there must be a period outside the phase (i.e., the clearance period) in the control cycle for the third control event to occur. If every period in the control cycle corresponding to the target control data is a clearance period, then there will be no third control event.
[0107] Early termination should use the end time of the release period as the endpoint. When the target phase is discontinuous with other phases, the endpoint of the target phase is the endpoint of the release period. Therefore, the endpoint of the time period corresponding to the third control event is the endpoint of the target phase's time period. However, if the target phase is continuous with other phases (e.g., there is a continuous phase B after the target phase), since phase B also corresponds to a release period and is continuous with the target phase, the two continuous phases will constitute a longer release period. Therefore, the endpoint of phase B is the true endpoint of this release period, and should be used as the endpoint of the second control event. That is, when the target phase is continuous with other phases, the earliest endpoint of these two phases is used as the endpoint of the third control event. After determining the duration and endpoint of the third control event, the time period corresponding to the third control event can be determined. Since the third control event is an adjustment to the first control event, its preset priority is higher than that of the first control event. This allows the third control event to be executed instead of the first control event when the time periods of the two control events overlap, thus adjusting the time period of the first control event.
[0108] In one possible implementation, determining the target control data based on the original control data further includes: determining the time periods of each non-release period based on the time periods of each phase. A non-release period is the period outside the release period in each control cycle of the target traffic light. Based on the time periods of each non-release period, determining the fourth control event corresponding to each non-release period, the time period corresponding to the fourth control event, and the priority identifier of the fourth control event. Specifically, the time period corresponding to the target fourth control event is the time period of the target non-release period, the target non-release period is any non-release period, and the target fourth control event is the fourth control event corresponding to the target non-release period. The priority identifier corresponding to the fourth control event is the fourth identifier.
[0109] Corresponding to the release period of the phase of the first control event, all other time periods in the control cycle, except for the release period corresponding to the phase of the first control event, are non-release periods. Therefore, the time period of the fourth control event (a non-release period) can be determined based on the time period of the first control event and the time of the control cycle. Since the fourth control event is outside the time period corresponding to the first control event in the control cycle, there is no overlap between the first and fourth control events in terms of time periods. Therefore, the preset priority of the fourth control event does not need to be higher or lower than that of the first control event. The same logic applies to the preset priority relationships between the fourth control event and the second and third control events.
[0110] In one possible implementation, the original control data also includes right-of-way transition information corresponding to each non-release period, including the right-of-way transition type and the right-of-way transition duration. The adjustment type also includes a third type, which indicates that the target phase does not have a second control event. If a first phase adjacent to the target non-release period exists after the target non-release period, the target control data is determined based on the original control data, further including: for the target non-release period, if the right-of-way transition type corresponding to the target non-release period is the right-of-way acquisition transition type, then the fifth control event corresponding to the target non-release period, the time period corresponding to the fifth control event, and the priority identifier of the fifth control event are determined based on the time period and right-of-way transition duration of the target non-release period. The fifth control event is used to indicate that the non-release period is about to end and / or the release period is about to begin. The priority identifier of the fifth control event is the fifth identifier. Wherein, if the adjustment type of the first phase is the first type, the end time of the time period corresponding to the fifth control event is the end time of the time period corresponding to the second control event of the first phase, and the preset priority represented by the fifth identifier is higher than the preset priorities represented by the second identifier and the fourth identifier. If the adjustment type of the first phase is the third type, the end time of the time period corresponding to the fifth control event is the end time of the non-release period of the target, and the preset priority of the fifth identifier is higher than the preset priority of the fourth identifier.
[0111] In one possible implementation, the original control data also includes right-of-way transition information corresponding to each non-release period, including the right-of-way transition type and the right-of-way transition duration. The adjustment type also includes a fourth type, which indicates that the target phase does not have a second control event. If a second phase adjacent to the target non-release period exists before the target non-release period, the target control data is determined based on the original control data, further including: for the target non-release period, if the right-of-way transition type corresponding to the target non-release period is a lost right-of-way transition type, determining the sixth control event corresponding to the target non-release period, the time period corresponding to the sixth control event, and the priority identifier of the sixth control event based on the time period and the right-of-way transition duration of the target non-release period. The sixth control event is used to indicate that the non-release period is about to begin and / or the release period is about to end. The priority identifier of the sixth control event is the sixth identifier. Wherein, if the adjustment type of the second phase is the second type, the end time of the time period corresponding to the sixth control event is the start time of the time period corresponding to the third control event of the second phase, and the preset priority represented by the sixth identifier is higher than the preset priorities represented by the third and fourth identifiers. If the adjustment type of the second phase is the fourth type, the end time of the time period corresponding to the sixth control event is the end time of the time period of the second phase, and the preset priority represented by the sixth identifier is higher than the preset priority represented by the fourth identifier.
[0112] In the phased control data, the phase states corresponding to a phase include phase not released, phase being released, and phase transition. For phase transitions, there is a corresponding configuration table for the phase, including the duration of the right-of-way transition from the release period to the non-release period, and the duration of the right-of-way transition from the non-release period to the release period. Since both the right-of-way transition type (loss of right-of-way and transition of right-of-way) should indicate the switch between the release period and the non-release period, a fifth control event corresponding to the right-of-way transition type (acquisition of right-of-way) only exists if there is a first phase adjacent to the target non-release period after the target non-release period. Similarly, a sixth control event corresponding to the right-of-way transition type (loss of right-of-way) only exists if there is a second phase adjacent to the target non-release period before the target non-release period.
[0113] In determining the information related to the fifth control event (right-of-way transition type) in the target control data, if the first phase adjacent to the non-release period corresponds to a second control event (i.e., the adjustment type is type one), and the phase's start is delayed, then the non-release period is effectively extended, thus prolonging the time period corresponding to the second control event. Since the end time corresponding to the fifth control event should be the latest end time of the entire non-release period (including multiple consecutive non-release periods), for the first phase with adjustment type one, the end time of the time period corresponding to the fifth control event is the end time of the time period corresponding to the second control event for the first phase. Furthermore, because the fifth control event, as a right-of-way transition type, can provide more information to pedestrians and vehicles when controlling traffic lights, it will prioritize controlling the target traffic lights; that is, the preset priority of the fifth sign representation corresponding to the fifth control event is higher than the preset priorities of the second and fourth sign representations. If the adjustment type of the first phase is type three, meaning the phase's release period is not delayed, then the end time of the time period corresponding to the fifth control event is the end time of the target non-release period, and the preset priority of the fifth sign representation is higher than the preset priority of the fourth sign representation.
[0114] In determining the information related to the sixth control event (right-of-way transition type) in the target control data, if the second phase adjacent to the non-release period corresponds to a third control event (i.e., the adjustment type is type two), and that phase ends early, it is equivalent to increasing the non-release period and extending the time period corresponding to the third control event. Since the start time of the sixth control event should be the end time of the previous release period adjacent to the non-release period, for the second phase with adjustment type two, the start time of the third control event is the end time of the allowed passage event. Therefore, the end time of the time period corresponding to the sixth control event is the start time of the time period corresponding to the third control event of the second phase. Furthermore, since the sixth control event, as a right-of-way transition type, can remind pedestrians and vehicles of more information when controlling traffic lights, the sixth control event will prioritize controlling the target traffic lights. That is, the preset priority of the sixth sign represented by the sixth control event is higher than the preset priority of the third and fourth signs represented by the third sign. If the adjustment type of the second phase is the fourth type, that is, the release period of the phase has not ended in advance, then the starting time of the time period corresponding to the sixth control event is the starting time of the time period of the target non-release period, and the preset priority represented by the sixth identifier is higher than the preset priority represented by the fourth identifier.
[0115] In one possible implementation, the control events within the control cycle include a first control event, a second control event, a third control event, a fourth control event, a fifth control event, and a sixth control event. The first control event corresponds to the green light color, and the second, third, and fourth control events correspond to the red light color. The fifth and sixth control events correspond to at least one of the red, green, and yellow light colors.
[0116] It should be understood that different control events correspond to different light colors in the traffic light domain. For example, the first control event corresponding to the green light represents the clearance period, while the control event corresponding to the red light may be a non-clearance period or an early termination control event (flashing red light), etc.
[0117] Since the target control data in this scheme is a ring representing a control cycle, once the target control data, i.e. the ring diagram, is constructed, the control events corresponding to each moment and the time periods corresponding to each control event are determined. Therefore, when controlling the target traffic light, if it is necessary to calculate the remaining duration of the current traffic light color, the ring diagram can be approximated as a clock, and the current moment can be approximated as the hour hand pointing to the corresponding moment in the control cycle.
[0118] Based on the start time T1 of at least one control event corresponding to the current light color, the duration T2 of at least one control event corresponding to the current light color, and the corresponding time T3 in the control cycle, the remaining time T of the light color can be obtained as T = (T1 + T2) - T3.
[0119] As can be seen, the traffic light control method provided in this application embodiment is relatively simple to calculate the remaining time of the light color, and involves fewer parameters. Of the three parameters involved in the calculation, only the current time corresponds to the time T3 in the control cycle, which changes constantly. The others are fixed parameters that are determined when the target control data is determined. Therefore, this method can calculate the remaining time of the traffic light relatively simply and dynamically, which is convenient for timing the traffic light.
[0120] In one possible implementation, the traffic light control method in this embodiment further includes: when the same light color is continuously timed, determining the remaining time of the target light color based on the duration of the time interval corresponding to multiple control events where the corresponding light colors are all the target light color and the timing is consecutive. The target light color is any one of the light colors corresponding to the control events. When the same light color is not continuously timed, determining the remaining time of the target light color based on the duration of the time interval corresponding to the control event of the corresponding target light color.
[0121] For example, the fifth control event corresponding to the right-of-way transition usually overlaps and continues in time with the fourth control event corresponding to the non-release period. The fifth control event may have the same light color as the fourth control event, but in the calculation of the remaining time, it may or may not be continuous. Therefore, for multiple consecutive control events with the same light color, but the same light color may not be counted continuously, it is necessary to determine the remaining time of the target light color based on whether the same light color is counted continuously.
[0122] In one possible embodiment, such as Figure 8 As shown, this application provides a traffic light control device, which includes a data acquisition unit 201, a target data generation unit 202, and a signal control unit 203.
[0123] The data acquisition unit 201 is used to acquire the raw control data of the target traffic light. The raw control data can be any of a variety of different data structures.
[0124] The target data generation unit 202 is used to determine target control data based on the original control data. The target control data includes control events within each control cycle of the target traffic light, the time period corresponding to each control event, and the priority identifier of each control event. The priority identifier of the control event represents the preset priority of the control event.
[0125] The signal control unit 203 is used to control the target traffic light according to the target control data. Where a time period corresponds to multiple control events, the control event with the highest preset priority corresponding to the time period is executed. If a time period corresponds to one control event, the concentric rings of control events corresponding to the time period are executed, each corresponding to one event.
[0126] In one possible embodiment, the target control data for a control cycle is a ring chart containing multiple concentric rings and a control event; the multiple concentric rings are located on different layers, and the layer where the concentric rings are located represents the preset priority of the control event corresponding to the concentric rings; different sub-regions in the concentric rings correspond to different time periods in the control cycle, and the marked sub-regions in the concentric rings represent the time periods of the control events corresponding to the concentric rings.
[0127] In one possible embodiment, the target control data for two control cycles is a ring chart, which includes two sets of concentric ring regions that overlap. The control data for one control cycle is one set of concentric ring regions. For any set of concentric ring regions, there are multiple concentric ring regions, and one concentric ring region corresponds to one control event. The multiple concentric ring regions are located on different layers, and the layer where the concentric ring regions are located represents the preset priority of the control event corresponding to the concentric ring region. Different sub-regions in the concentric ring regions correspond to different time periods in the control cycle. The marked sub-regions in the concentric ring regions represent the time period of the control event corresponding to the concentric ring region.
[0128] In one possible embodiment, the target data generation unit 202 is specifically used to control the target traffic light according to the control event corresponding to the ring diagram of the target control data.
[0129] In one possible embodiment, the original control data includes phase information of at least one phase corresponding to the target traffic light, the at least one phase corresponding to the target traffic light being arranged in chronological order, one phase corresponding to at least one release period of the traffic flow, and the phase information including phase duration and phase position; the target data generation unit 202 is specifically used to determine the time period of each phase corresponding to the target traffic light based on the phase information of each phase corresponding to the target traffic light; and to determine the first control event corresponding to each phase, the time period corresponding to the first control event, and the priority identifier of the first control event based on the time period of each phase; wherein, the first control event is the control event corresponding to the release period; the time period corresponding to the first target control event is the time period of the target phase, the target phase is any phase corresponding to the target traffic light, the first target control event is the first control event corresponding to the target phase; and the priority identifier of the first control event is a first identifier.
[0130] In one possible embodiment, the phase information further includes release period adjustment information, which includes adjustment type and adjustment duration; the adjustment type includes a first type, which indicates that there is a second control event for delaying the start of the release period in the target phase; the target data generation unit 202 is further configured to, for the target phase, if the adjustment type of the target phase is the first type, determine the second control event corresponding to the target phase, the time period corresponding to the second control event, and the priority identifier of the second control event based on the start time of the time period of the target phase and the adjustment duration of the target phase; when the target phase is discontinuous with other phases, the start time of the time period corresponding to the second control event is the start time of the time period of the target phase; when the target phase is continuous with other phases, the start time of the time period corresponding to the second control event is the earliest start time among the start time of the time period of the target phase and the start time of the time periods of the other continuous phases; the priority identifier of the second control event is a second identifier, and the preset priority represented by the second identifier is higher than the preset priority represented by the first identifier.
[0131] In one possible embodiment, the phase information further includes release period adjustment information, which includes adjustment type and adjustment duration; the adjustment type further includes a second type, which indicates that the target phase has a third control event for early termination of the release period; the target data generation unit 202 is further configured to, when there is a period other than the phase in the control cycle, for the target phase, if the adjustment type of the target phase is the second type, determine the third control event corresponding to the target phase, the period corresponding to the third control event, and the priority identifier of the third control event based on the end time of the period of the target phase and the adjustment duration of the target phase; when the target phase is not continuous with other phases, the end time of the period corresponding to the third control event is the end time of the period of the target phase; when the target phase is continuous with other phases, the end time of the period corresponding to the second control event is the latest end time among the end times of the period of the target phase and the end times of the periods of the other continuous phases; the priority identifier of the third control event is a third identifier, and the preset priority represented by the third identifier is higher than the preset priority represented by the first identifier.
[0132] In one possible embodiment, the target data generation unit 202 is further configured to determine the time period of each non-release period based on the time period of each phase; the non-release period is the period other than the release period in each control cycle of the target traffic light; based on the time period of each non-release period, determine the fourth control event corresponding to each non-release period, the time period corresponding to the fourth control event, and the priority identifier of the fourth control event; wherein, the time period corresponding to the target fourth control event is the time period of the target non-release period, the target non-release period is any non-release period, the target fourth control event is the fourth control event corresponding to the target non-release period; and the priority identifier corresponding to the fourth control event is the fourth identifier.
[0133] In one possible embodiment, the raw control data further includes right-of-way transition information corresponding to each non-release period, the right-of-way transition information including right-of-way transition type and right-of-way transition duration; the adjustment type also includes a third type, the third type indicating that there is no second control event in the target phase; the target data generation unit 202 is further configured to, in the case that there is a first phase adjacent to the target non-release period after the target non-release period, determine the fifth control event corresponding to the target non-release period, the time period corresponding to the fifth control event, and the fifth control event based on the time period and right-of-way transition duration of the target non-release period, if the right-of-way transition type corresponding to the target non-release period is the right-of-way transition type acquisition. The priority identifier of the fifth control event is used to indicate that the non-release period is about to end and / or the release period is about to begin. The priority identifier of the fifth control event is the fifth identifier. If the adjustment type of the first phase is the first type, the end time of the time period corresponding to the fifth control event is the end time of the time period corresponding to the second control event of the first phase, and the preset priority represented by the fifth identifier is higher than the preset priority represented by the second identifier and the fourth identifier. If the adjustment type of the first phase is the third type, the end time of the time period corresponding to the fifth control event is the end time of the target non-release period, and the preset priority represented by the fifth identifier is higher than the preset priority represented by the fourth identifier.
[0134] In one possible embodiment, the raw control data further includes right-of-way transition information corresponding to each non-release period, the right-of-way transition information including right-of-way transition type and right-of-way transition duration; the adjustment type further includes a fourth type, the fourth type representing that there is no second control event in the target phase; the target data generation unit 202 is further configured to, in the case that there is a second phase adjacent to the target non-release period before the target non-release period, determine the sixth control event corresponding to the target non-release period, the time period corresponding to the sixth control event, and the sixth control event duration based on the time period and right-of-way transition duration of the target non-release period, if the right-of-way transition type corresponding to the target non-release period is a lost right-of-way transition type. The priority identifier of the event; the sixth control event is used to indicate that the non-release period is about to begin and / or the release period is about to end; the priority identifier of the sixth control event is the sixth identifier; wherein, if the adjustment type of the second phase is the second type, the end time of the time period corresponding to the sixth control event is the start time of the time period corresponding to the third control event of the second phase, and the preset priority represented by the sixth identifier is higher than the preset priority represented by the third identifier and the fourth identifier; if the adjustment type of the second phase is the fourth type, the end time of the time period corresponding to the sixth control event is the end time of the time period of the second phase, and the preset priority represented by the sixth identifier is higher than the preset priority represented by the fourth identifier.
[0135] In one possible embodiment, the control events within the control cycle include a first control event, a second control event, a third control event, a fourth control event, a fifth control event, and a sixth control event; the first control event corresponds to the green light color, and the second, third, and fourth control events correspond to the red light color; the fifth and sixth control events correspond to at least one of the red, green, and yellow light colors.
[0136] In one possible embodiment, the traffic light control device further includes a timing unit, used to determine the remaining time of the target light color based on the duration of a time period corresponding to multiple control events where the corresponding light colors are all the target light color and the timing sequence is consecutive, when the same light color is continuously timed; the target light color is any one of the light colors corresponding to the control events; and to determine the remaining time of the target light color based on the duration of a time period corresponding to the control event of the corresponding target light color when the same light color is not continuously timed.
[0137] Through the above description of the implementation methods, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the signal light control device can be divided into different functional modules to complete all or part of the functions described above.
[0138] This application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be executed by computer instructions instructing related hardware. The program can be stored in the computer-readable storage medium, and when executed, it can include the processes of the above method embodiments. The computer-readable storage medium can be any of the foregoing embodiments or memory. The computer-readable storage medium can also be an external storage device for the traffic light control device, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the traffic light control device. Further, the computer-readable storage medium can include both internal storage units of the traffic light control device and external storage devices. The computer-readable storage medium is used to store the computer program and other programs and data required by the traffic light control device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
[0139] This application also provides a computer program product, which includes a computer program that, when run on a computer, causes the computer to execute any of the signal light control methods provided in the above embodiments.
[0140] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, disclosure, and appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple instances. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.
[0141] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of this application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and modifications of this application fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and modifications.
[0142] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for controlling a traffic light, characterized in that, include: Acquire the raw control data of the target traffic light, wherein the raw control data can be any of a variety of different data structures; Based on the original control data, target control data is determined. The target control data includes control events within each control cycle of the target traffic light, the time period corresponding to each control event, and the priority identifier of each control event. The priority identifier of the control event represents the preset priority of the control event. The target traffic light is controlled according to the target control data; wherein, if a time period corresponds to multiple control events, the control event with the highest preset priority corresponding to the time period is executed; if a time period corresponds to one control event, the control event corresponding to the time period is executed. The original control data includes phase information of at least one phase corresponding to the target traffic light. The at least one phase corresponding to the target traffic light is arranged in chronological order, and one phase corresponds to at least one clearance period for the traffic flow. The phase information includes phase duration and phase order. The step of determining the target control data based on the original control data includes: determining the time period of each phase corresponding to the target traffic light based on the phase information of each phase corresponding to the target traffic light; Based on the time period of each phase, determine the first control event corresponding to each phase, the time period corresponding to the first control event, and the priority identifier of the first control event; wherein, the first control event is the control event corresponding to the release period; the time period corresponding to the first target control event is the time period of the target phase, the target phase is any phase corresponding to the target traffic light, the first target control event is the first control event corresponding to the target phase; the priority identifier of the first control event is the first identifier; The phase information also includes release period adjustment information, which includes adjustment type and adjustment duration; the adjustment type includes a first type, which indicates that the target phase has a second control event for delaying the start of the release period; if there is a period other than the phase in the control cycle, determining the target control data based on the original control data further includes: For the target phase, if the adjustment type of the target phase is the first type, then based on the start time of the time period of the target phase and the adjustment duration of the target phase, the second control event corresponding to the target phase, the time period corresponding to the second control event, and the priority identifier of the second control event are determined.
2. The traffic light control method according to claim 1, characterized in that, The target control data for one control cycle is a ring chart containing multiple concentric rings, each concentric ring corresponding to at least one control event; the multiple concentric rings are located on different layers, and the layer where the concentric ring is located represents the preset priority of the control event corresponding to the concentric ring; different sub-regions in the concentric rings correspond to different time periods in the control cycle, and the marked sub-regions in the concentric rings represent the time periods of the control events corresponding to the concentric rings.
3. The traffic light control method according to claim 1, characterized in that, The target control data for two control cycles is a ring diagram, which includes two sets of concentric ring regions that overlap. The control data for one control cycle is one set of the concentric ring regions. For any set of concentric ring regions, there are multiple concentric ring regions, and one concentric ring region corresponds to at least one control event. The multiple concentric ring regions are located on different layers, and the layer where the concentric ring region is located represents the preset priority of the control event corresponding to the concentric ring region. Different sub-regions in the concentric ring regions correspond to different time periods in the control cycle. The marked sub-regions in the concentric ring regions represent the time period of the control event corresponding to the concentric ring region.
4. The traffic light control method according to claim 2 or 3, characterized in that, The step of controlling the target traffic light according to the target control data includes: The target traffic light is controlled according to the control event corresponding to the ring diagram of the target control data.
5. The traffic light control method according to claim 1, characterized in that, When the target phase is discontinuous with other phases, the start time of the time period corresponding to the second control event is the start time of the time period of the target phase; when the target phase is continuous with other phases, the start time of the time period corresponding to the second control event is the earliest start time among the start time of the time period of the target phase and the start times of the time periods of other continuous phases; the priority identifier of the second control event is a second identifier, and the preset priority represented by the second identifier is higher than the preset priority represented by the first identifier.
6. The traffic light control method according to claim 5, characterized in that, The phase information also includes release period adjustment information, which includes adjustment type and adjustment duration; the adjustment type also includes a second type, which indicates that there is a third control event in the target phase for early termination of the release period; If a period other than the phase exists within the time period of the control cycle, the step of determining the target control data based on the original control data further includes: For the target phase, if the adjustment type of the target phase is the second type, then based on the end time of the time period of the target phase and the adjustment duration of the target phase, the third control event corresponding to the target phase, the time period corresponding to the third control event, and the priority identifier of the third control event are determined. When the target phase is discontinuous with other phases, the end time of the time period corresponding to the third control event is the end time of the time period of the target phase; when the target phase is continuous with other phases, the end time of the time period corresponding to the second control event is the latest end time among the end times of the time period of the target phase and the end times of the time periods of other continuous phases; the priority identifier of the third control event is a third identifier, and the preset priority represented by the third identifier is higher than the preset priority represented by the first identifier.
7. The traffic light control method according to claim 6, characterized in that, The step of determining the target control data based on the original control data further includes: Based on the time periods of each phase, the time periods of each non-release period are determined; the non-release period is the period other than the release period in each control cycle of the target traffic light; Based on the time periods of each non-release period, determine the fourth control event corresponding to each non-release period, the time period corresponding to the fourth control event, and the priority identifier of the fourth control event; Wherein, the time period corresponding to the target fourth control event is the time period of the target non-release period, the target non-release period is any non-release period, the target fourth control event is the fourth control event corresponding to the target non-release period; the priority identifier corresponding to the fourth control event is the fourth identifier.
8. The traffic light control method according to claim 7, characterized in that, The original control data also includes right-of-way transition information corresponding to each non-release period, the right-of-way transition information including right-of-way transition type and right-of-way transition duration; the adjustment type also includes a third type, the third type indicating that the target phase does not have the second control event; In the case that a first phase adjacent to the target non-release period exists after the target non-release period, the step of determining the target control data based on the original control data further includes: For the target non-release period, if the right-of-way transition type corresponding to the target non-release period is the right-of-way acquisition transition type, then the fifth control event corresponding to the target non-release period, the time period corresponding to the fifth control event, and the priority identifier of the fifth control event are determined according to the time period of the target non-release period and the right-of-way transition duration; the fifth control event is used to indicate that the non-release period is about to end and / or the release period is about to begin; the priority identifier of the fifth control event is the fifth identifier; Wherein, if the adjustment type of the first phase is the first type, the end time of the time period corresponding to the fifth control event is the end time of the time period corresponding to the second control event of the first phase, and the preset priority represented by the fifth identifier is higher than the preset priority represented by the second identifier and the fourth identifier; if the adjustment type of the first phase is the third type, the end time of the time period corresponding to the fifth control event is the end time of the time period of the target non-release period, and the preset priority represented by the fifth identifier is higher than the preset priority represented by the fourth identifier.
9. The control method for a traffic light according to any one of claims 8, characterized in that, The original control data also includes right-of-way transition information corresponding to each non-release period, the right-of-way transition information including right-of-way transition type and right-of-way transition duration; the adjustment type also includes a fourth type, the fourth type indicating that the target phase does not have the second control event; If a second phase adjacent to the target non-release period exists before the target non-release period, the step of determining the target control data based on the original control data further includes: For the target non-release period, if the right-of-way transition type corresponding to the target non-release period is the lost right-of-way transition type, the sixth control event corresponding to the target non-release period, the time period corresponding to the sixth control event, and the priority identifier of the sixth control event are determined according to the time period of the target non-release period and the right-of-way transition duration; the sixth control event is used to indicate that the non-release period is about to start and / or the release period is about to end; the priority identifier of the sixth control event is the sixth identifier; Wherein, if the adjustment type of the second phase is the second type, the end time of the time period corresponding to the sixth control event is the start time of the time period corresponding to the third control event of the second phase, and the preset priority represented by the sixth identifier is higher than the preset priority represented by the third identifier and the fourth identifier; if the adjustment type of the second phase is the fourth type, the end time of the time period corresponding to the sixth control event is the end time of the time period of the second phase, and the preset priority represented by the sixth identifier is higher than the preset priority represented by the fourth identifier.
10. The control method for a traffic light according to any one of claims 1 to 3, characterized in that, The control events within the control cycle include a first control event, a second control event, a third control event, a fourth control event, a fifth control event, and a sixth control event; the first control event corresponds to the green light color, the second control event, the third control event, and the fourth control event correspond to the red light color; the fifth control event and the sixth control event correspond to at least one of the red light color, the green light color, and the yellow light color.
11. The traffic light control method according to claim 10, characterized in that, The method further includes: When the same light color is continuously timed, the remaining time of the target light color is determined according to the duration of the time period corresponding to the control events where multiple corresponding light colors are all the target light color and the timing is consecutive; the target light color is any one of the light colors corresponding to the control events. When the same light color is not timed consecutively, the remaining time of the target light color is determined according to the duration of the time period corresponding to the control event of the target light color.
12. A control device for a traffic light, characterized in that, The device includes: The data acquisition unit is used to acquire the raw control data of the target traffic light, wherein the data structure of the raw control data can be any one of a variety of different data structures; The target data generation unit is used to determine target control data based on the original control data. The target control data includes control events in each control cycle of the target traffic light, the time period corresponding to each control event, and the priority identifier of each control event. The priority identifier of the control event represents the preset priority of the control event. A signal control unit is used to control the target traffic light according to the target control data; wherein, if a time period corresponds to multiple control events, the control event with the highest preset priority corresponding to the time period is executed; if a time period corresponds to one control event, the control event corresponding to the time period is executed. The original control data includes phase information of at least one phase corresponding to the target traffic light. The at least one phase corresponding to the target traffic light is arranged in chronological order, and one phase corresponds to at least one clearance period for the traffic flow. The phase information includes phase duration and phase order. The target data generation unit is specifically configured to determine the time period of each phase corresponding to the target traffic light based on the phase information of each phase corresponding to the target traffic light; and to determine the first control event corresponding to each phase, the time period corresponding to the first control event, and the priority identifier of the first control event based on the time period of each phase; wherein, the first control event is the control event corresponding to the release period; the time period corresponding to the first target control event is the time period of the target phase, the target phase is any phase corresponding to the target traffic light, the first target control event is the first control event corresponding to the target phase; and the priority identifier of the first control event is a first identifier. The phase information also includes release period adjustment information, which includes adjustment type and adjustment duration. The adjustment type includes a first type, which indicates that the target phase has a second control event for delaying the start of the release period. If there is a time period other than the phase in the control cycle, determining the target control data based on the original control data includes: for the target phase, if the adjustment type of the target phase is the first type, then determining the second control event corresponding to the target phase, the time period corresponding to the second control event, and the priority identifier of the second control event based on the start time of the time period of the target phase and the adjustment duration of the target phase.
13. An electronic device, characterized in that, The system includes a processor and a memory, wherein the memory is used to store computer instructions, and the processor is used to retrieve and execute the computer instructions from the memory to implement the traffic light control method according to any one of claims 1-11.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes: computer software instructions; when the computer software instructions are executed in the traffic light control device, the traffic light control device causes the traffic light control device to implement the traffic light control method as described in any one of claims 1-11.
Citation Information
Patent Citations
Traffic signal control method and device and electronic equipment
CN111681434A
Circular timeline displays of timestamped event data
US20170083585A1