Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.
The present invention can describe in the general context of computer-executable instructions executed by a computer, such as program
Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, member
Part, data structure etc..The present invention can also be practiced in a distributed computing environment, in these distributed computing environments, by
Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with
In the local and remote computer storage media including storage equipment.
In the present invention, " module ", " device ", " system " etc. refer to the related entities applied to computer, as hardware,
Combination, software or software in execution of hardware and software etc..In detail, for example, element can with but be not limited to run on
Process, processor, object, executable element, execution thread, program and/or the computer of processor.In addition, running on service
Application program or shell script, server on device can be elements.One or more elements can execution process and/or
In thread, and element can be localized and/or be distributed between two or multiple stage computers on one computer, and can be with
It is run by various computer-readable mediums.Element can also be according to the signal with one or more data packets, for example, coming from one
It is a to interact with another element in local system, distributed system, and/or network in internet passes through signal and other systems
The signal of interactive data is communicated by locally and/or remotely process.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise", not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or equipment institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence " including ... ", it is not excluded that including described want
There is also other identical elements in the process, method, article or equipment of element.
As shown in Fig. 2, the method for controlling traffic signal lights of one embodiment of the invention, comprising:
S10, the status signal and pre-stored correct traffic lights uploaded according to multichannel traffic lights
State judges whether there is the abnormal traffic lights of display;
S20, when determining that the multichannel traffic lights show normal, control the multichannel traffic lights to indicate
The traveling of vehicle;
S30, when determining certain traffic lights display being abnormal all the way, certain described its except traffic lights all the way of control
Its road traffic lights is shown as red light to forbid vehicle driving indicated by other road traffic lights.
The status signal that multichannel traffic lights in the present embodiment are uploaded has been included at least for determining multichannel traffic
The identification information of signal lamp identity and status information for determining corresponding road display state of traffic signal lamp.It is pre-stored
Correct traffic signal light condition be stored when each secondary control multichannel traffic lights carry out state change, and
Next secondary control traffic lights be updated when state change.
The embodiment of the present invention passes through the status signal that is uploaded according to multichannel traffic lights and pre-stored correct
The traffic signal light condition method that judges whether there is the abnormal traffic lights of display, can be to multichannel traffic lights
It carries out determining whether there is emergency light before normal control, rather than blindness according to scheduled rule executes traffic signals
The display of lamp.Also, when determining there are when the signal lamp of abnormal show, by control other signals lamp to indicate other road vehicles
The method that no through traffic, which ensures, to be not in multiple directions wagon flow while importing the even traffic thing of congestion caused by traffic intersection
Therefore.Therefore, the embodiment of the present invention is it is possible to prevente effectively from traffic congestion caused by traffic signal light fault or traffic accident.
As shown in figure 3, the method for controlling traffic signal lights of one embodiment of the invention
S21, control multichannel traffic lights are to indicate the straight of mutually opposing the first ascending pathway and the first downlink road
Vehicle driving on runway, and carry out first time timing;
S22, after the first time timing reaches preset duration, control the multichannel traffic lights to indicate described
Vehicle driving on the left turn lane of one ascending pathway and the first downlink road, and carry out second of timing;
S23, after second of timing reaches the preset duration, control the multichannel traffic lights to indicate phase
The mutually vehicle driving on the left turn lane of reversed the second ascending pathway and the second downlink road, and carry out third time timing;
S24, after the third time timing reaches the preset duration, control the multichannel traffic lights to indicate
The vehicle driving on the Through Lane of the second ascending pathway and the second downlink road is stated, and carries out the 4th timing;
S25, after the 4th timing reaches the preset duration, repetitive sequence execute above-mentioned steps S21-S25.
The beneficial effect of the embodiment of the present invention is: passing through the embodiment of the present invention for controlling realization to traffic lights
Method and system, which avoid same a road section two neighboring period, the case where vehicle drives into, to alleviate the friendship of traffic intersection
Logical pressure;In addition, also avoiding that current turn right to crossing right-turning vehicles is waited to pass through among pedestrian and non motorized vehicle row to road
Influence and the even traffic accident of the traffic jam that causes because scrambling for roads of both sides, therefore avoid the traffic thus caused and gather around
It is stifled, improve traffic safety.
Following will be combined with the drawings in the embodiments of the present invention 4A-4F, technical solution in the embodiment of the present invention carry out clear
Chu is fully described by.
In some embodiments, by re-optimization designed for the phase between the lamp group of instruction different directions driving vehicle
Mutually cooperation reduces to the greatest extent or avoids to indicate vehicle in continuous two or more periods in a traffic lights instruction cyclic process
Drive into same a road section.Alternatively, reducing to the greatest extent or avoiding to indicate vehicle at continuous two in a traffic lights instruction cyclic process
Or drive into that a certain vehicle is more or easy congested link in multiple periods, improve crossing traffic efficiency.For example, certain be provided with straight trip and
The crossroad of left-turning traffic indicator light can avoid traffic light from indicating within continuous two periods by the following method
Vehicle drives into same a road section: the first step, controls traffic lights with the through vehicles travelled on north-south road of letting pass and pedestrian
(such as Fig. 4 A);Second step, certain time control traffic lights later to forbid the through vehicles travelled on the road of north-south logical
It goes, the left turning vehicle (such as Fig. 4 B) travelled on the road of clearance north-south;Third step controls traffic lights after a certain period of time to prohibit
The left turning vehicle only travelled on the road of north-south, the left turning vehicle (such as Fig. 4 C) travelled on clearance East and West direction road;4th step, one
Traffic lights are controlled after fixing time to forbid the left turning vehicle travelled on East and West direction road, are travelled on clearance East and West direction road
Through vehicles and pedestrian (such as Fig. 4 D);5th step, then the repeatedly first step, controls traffic lights to let pass on the road of north-south
The through vehicles and pedestrian (such as Fig. 4 A) of traveling;Circuit sequentially the vehicle travelled on (4A → 4B → 4C → 4D → 4A) clearance road
.
Sometimes, at a crossing, be not four direction be both provided with left-hand rotation indicator light (possible only one or two or
Left-hand rotation indicator light is provided on three directions.Not all crossing road in all directions or vehicle flowrate are all similar, some
Crossing only may set up left-hand rotation indicator light in the big side of vehicle flowrate, and straight trip indicator light is only arranged in other directions.For example,
Certain crossroad, the road on north-south belong to traffic major trunk roads, and road is broad, vehicle flowrate is larger, and in East and West direction upper track
Road is relatively narrower, vehicle is few, and in traffic lights setting, left-hand rotation indicator light is arranged on the road in north-south, and in east
Straight trip indicator light is only arranged on road for west), with " reduce to the greatest extent or avoid vehicle in a traffic lights instruction cyclic process,
Instruction vehicle drives into same a road section in continuous two or more periods, alternatively, reducing to the greatest extent or avoiding to refer in a traffic lights
Show in cyclic process, instruction vehicle drives into that a certain vehicle is more or easy congested link within continuous two or more periods " and " use up
Amount keeps pedestrian and non motorized vehicle current according to traffic lights instruction order, from current order, avoid or reduce make a dash across the red light it is lucky
Good fortune psychology and chance " is principle, reasonable arrangement traffic instruction sequence.
In some embodiments, order is indicated by reasonable design traffic lights, reduces or prevent pedestrian and non motorized vehicle
The idea of leaving things to chance, chance and violation of law for not passing through crossing according to traffic lights instruction, reduce road traffic accident, ensure road
It is smooth.Existing traffic lights is easy the chance made a dash across the red light to pedestrian and non motorized vehicle in primary complete instruction circulation.It is logical
Redesign traffic lights instruction order is crossed, reduction is made a dash across the red light across the opportunity at crossing, as far as possible to pedestrian and non motorized vehicle
It forces pedestrian and non motorized vehicle current according to traffic lights instruction order, reduces road accident and blocking, guarantee that road is smooth.Example
Such as, a certain crossing for being provided with straight trip, left-hand rotation and right-hand rotation traffic light can be reduced by following traffic light order and be gone
The idea of leaving things to chance and chance that people and non power driven vehicle make a dash across the red light: the first step controls traffic lights to let pass on the road of north-south
The through vehicles of traveling and pedestrian (such as Fig. 4 A);Second step controls traffic lights after a certain period of time to forbid north-south road
The through vehicles of upper traveling are current, and traveling is turned left and right-turning vehicles (such as Fig. 4 E) on the road of clearance north-south;Third step, a timing
Between after control traffic lights to forbid on the road of north-south traveling to turn left and right-turning vehicles, travelled on clearance East and West direction road
Turn left and right-turning vehicles (such as Fig. 4 F);4th step controls traffic lights after a certain period of time to forbid travelling on East and West direction road
Left-hand rotation and right-turning vehicles, the through vehicles travelled on clearance East and West direction road and pedestrian (such as Fig. 4 D);5th step repeats first
Step controls traffic lights with the through vehicles travelled on north-south road of letting pass and pedestrian (such as Fig. 4 A);Circuit sequentially (4A →
4E → 4F → 4D → 4A) vehicle that travels on clearance road.
It sometimes, is not that four direction is both provided with right-hand rotation indicator light (such as only one or both direction at a crossing
On be provided with right-hand rotation indicator light.Some crossings are not that road or the vehicle flowrate of all directions are all similar.For example, certain four crossway
Mouthful, north-south road belongs to traffic major trunk roads, and road is broad, vehicle flowrate is larger, and possible road is relatively narrow by one in East and West direction
A bit, vehicle is few.In traffic lights setting, setting left-hand rotation, right-hand rotation indicator light on the road in north-south, and in East and West direction road
Road only setting straight trip indicator light) or even some direction left-hand rotation indicator light do not have yet (on such as some direction only straight trip instruction
Lamp can keep straight on, can turn left, it might even be possible to turn right when the straight trip indicator light green light lights).It should be " to make pedestrian and non-as far as possible
Motor vehicles are current according to traffic lights instruction order, from current order, avoid or reduce the idea of leaving things to chance and chance made a dash across the red light "
" reduce to the greatest extent or avoid vehicle in a traffic lights instruction cyclic process, instruction vehicle is when continuous two or more
Section drives into same a road section, alternatively, reducing to the greatest extent or avoiding to indicate vehicle continuous two in a traffic lights instruction cyclic process
Drive into that a certain vehicle is more or easy congested link in a or multiple periods " for principle, reasonable arrangement traffic instruction sequence.For the right side
Turn indicator light, can not also being let pass according to above-mentioned order, (e.g., certain places, right-turning vehicles are less or right-turn lane
It is less, it can just be let pass a right-turning vehicles using certain time interval, without as mentioning in literary, in a traffic lights
A section is only let pass a right-turning vehicles in instruction circulation, but can be let pass in the cyclic process of a traffic light
Right-turning vehicles several times).
In some embodiments, the traffic lights include portable lighter on the first uplink lamp group, the first downlink lamp group, second
Group and the second downlink lamp group;The method for controlling traffic signal lights further include:
Send Traffic signal control signal to the first uplink lamp group, the first downlink lamp group, the second uplink lamp group and
Second downlink lamp group is to control the traveling that the multichannel traffic lights indicate vehicle;The Traffic signal control signal includes
Lamp group state transfer array is used for the first uplink lamp group, the first downlink lamp group, the second uplink lamp group and the second downlink lamp group
Identification is to convert current state.
The method for controlling traffic signal lights of the present embodiment can be executed by Traffic signal control server, and traffic is believed
Signal lamp control signal is sent to each lamp group.Each lamp group in the present embodiment includes at least processor and connect with processor
Multiple lamps, processor for receive Traffic signal control signal transmitted by traffic lights server and identify with corresponding
Change or keep the state of this lamp group.By sending Traffic signal control letter to all lamp groups respectively in the present embodiment
Number method, the long connection between all lamp groups can be kept, monitored in real time in all lamp groups with the presence or absence of abnormal lamp group.When
When failure lamp group, the smooth passage to guarantee vehicle can be found and safeguarded in time.In addition, also avoiding all lamps
The drawbacks of control between group dependent on clock synchronous between each other to carry out traffic lights, is (when clock between multiple lamp groups
Occur will lead to lamp group display chaotic situation when deviation, out-of-sequence so as to cause traffic, congestion even results in traffic accident).
In some embodiments, the lamp group state transfer array includes:
For indicating in the first uplink lamp group, the first downlink lamp group, the second uplink lamp group and the second downlink lamp group
The data bit of any lamp group;
For indicating the data bit of driving mode, the driving mode includes straight trip, turns left, turns right.
In some embodiments, the method for controlling traffic signal lights further include:
The first uplink lamp group and the first downlink lamp group are divided into the first lamp group in advance, by the second uplink lamp group
The second lamp group is divided into the second downlink lamp group;
The lamp group state transfer array is binary array;
Primary two kinds of values of the binary array respectively indicate the first lamp group or the second lamp group;
Deputy two kinds of values of the binary array are used to determine first of the binary array and determine
Lamp group be uplink lamp group or downlink lamp group;
Two kinds of values of the third position of the binary array are for indicating the driving mode.
For there is the crossing of straight and turning left indicator light
The green indicator light for controlling instruction north-south road straight trip in traffic lights first lights (according to crossing vehicle
Situation sets time green, that amber light is bright as required, it is assumed that it is 3s that green light, which is 30s, amber light), other traffic lights are red
Color (at this moment the passage situation at crossing is as indicated by arrow in Fig. 4 A);After 30s, road straight trip in north-south in traffic lights is controlled
Green indicator light extinguish, amber light lights or flashes, and other traffic lights are red;After 3s, north and south in traffic lights is controlled
The green indicator light to turn left on road lights, and other traffic lights are red (at this moment arrow in the passage situation at crossing such as Fig. 4 B
Indicated by head);The green indicator light that north-south road turns left in traffic lights is controlled after 30s to extinguish, amber light is lighted or is flashed,
Other traffic lights are red;After 3s, the green indicator light to turn left on East and West direction road is lighted, other traffic lights are red
(at this moment the passage situation at crossing is as indicated by arrow in Fig. 4 C);After 30s, control what East and West direction road in traffic lights turned left
Green indicator light extinguishes, and amber light is lighted or flashed, and other traffic lights are red;After 3s, the green of East and West direction road straight trip refers to
Show that lamp lights, other indicator lights are red (at this moment the passage situation at crossing is as indicated by arrow in Fig. 4 D);After 30s, control
The green indicator light that East and West direction road is kept straight in traffic lights extinguishes, and amber light is lighted or flashed, and other traffic lights are red;
After 3s, the green indicator light of north-south road straight trip is lighted, other traffic lights are red (the at this moment passage situation at crossing such as figure
In 4A indicated by arrow).
The state of the traffic lights for the vehicle driving being used to indicate on different directions can be indicated with set of number.Example
Such as, the indicator light that north-south road is kept straight on is indicated with 1, the indicator light that north-south road turns left is indicated with 2, and East and West direction road is left
The indicator light turned indicates that the indicator light of East and West direction road straight trip is indicated with 4 with 3.Indicate north-south road instruction by north southward with 1
The indicator light of traveling, use 2 indicate north-south road instruction from south toward the indicator light of north traveling, and use 1 indicates north-south road instruction
The indicator light of left-hand rotation is southward travelled by north, use 2 indicates the indicator light that north-south road instruction is turned left from south toward north traveling, with 1 table
Show that East and West direction road instruction is westerly travelled the indicator light of left-hand rotation by east, use 2 indicates that East and West direction road instruction sails a left side from west toward eastbound
The indicator light turned, use 1 indicate East and West direction road instruction by the indicator light that westerly travels of east, use 2 indicate East and West direction road instruction by
The past eastbound indicator light sailed in west.Green light is indicated with 1, and 2 indicate that amber light is bright, and 3 indicate that red light is bright.
The number group determined by above-mentioned number indicates the state of corresponding traffic lights.For example, 123 indicate north-south road
Road instruction is red from south toward the traffic lights in north straight trip direction, and 323 indicate instruction East and West direction road, and by east, westerly traveling is turned left
Indicator light be red, 422 indicate on instruction East and West direction roads from west toward the traffic lights of eastern driving direction to be yellow.Any one group
When (identical the first number is one group) indicator light green light (third digit is 1) or amber light bright (third digit is 2), instruction
All indicator lights whether other directions are current are illustrated as red, i.e., when one group of indicator light is 111 and 121, other instructions
The third digit of lamp is 3 (i.e. red light lights).Example as above, after 111 and 121 continue 30s, 112 and 122 continue 3s;211 with
After 221 continue 30s, 212 and 222 continue 3s;After 311 and 321 continue 30s, 312 and 322 continue 3s;411 and 421 continue
3s;After 111 and 121 continue 30s, 112 and 122 continue 3s.Alternatively, indicating red light with 0,1 indicates that (default is first shown non-red light
Green light shows amber light afterwards).In example as above, after 111 and 121 displays 33,211 and 221 display 33s;311 and 321 display later
33s, later 411 and 421 display 33 111 and 121 show 33s later.
For example, the indicator light that north-south road is kept straight on is indicated with 1, the indicator light that north-south road turns left is indicated with 2, east
West indicates that the indicator light of East and West direction road straight trip is indicated with 4 to the indicator light that road turns left with 3;Green light is indicated with 1, and 2 indicate
Amber light is bright, and 3 indicate that red light is bright.For example, 12 indicate that the traffic lights in instruction straight trip direction on the road of north-south is yellow, 31 indicate to refer to
Show that the indicator light for indicating to turn left on East and West direction road is green, 43 indicate the traffic in instruction straight trip direction on instruction East and West direction road
Lamp is red.Any one group of (the first number identical be one group) indicator light green light (the second digit is 1) or amber light bright (the
When two digits are 2), other all indicator lights are illustrated as red, i.e., when one group of indicator light is 11, indicate that other directions are current
Whether indicator light the second digit be 3 (i.e. red light lights).In example as above, after 11 continue 30s, 12 continue 3s;Then 21
After continuing 30s, 22 continue 3s;Then after 31 lasting 30s, 32 continue 3s;Then after 41 lasting 30s, 42 continue 3s;So
11 continue 30s afterwards.
For example, the indicator light that north-south road is kept straight on is indicated with 1, the indicator light that north-south road turns left is indicated with 2, east
West indicates that the indicator light of East and West direction road straight trip is indicated with 4 to the indicator light that road turns left with 3;0 indicates that red light is bright, and 1 indicates non-
Red light (including green light and amber light, green light 30s is first shown in setting, then turns to display amber light 3s).In example as above, 11 continue
After 33s;21 continue 33s;Then after 31 lasting 33s;41 continue 33s;Then 11 continue 33s.
Each bit digital in above-mentioned any embodiment can be indicated with corresponding multiple binary digits, for example, first
Number can indicate (00,01,10,11) with two binary digits, second-order digit can be indicated with a binary digit (0,
1), third bit digital can indicate (00,01,10,11) with two binary digits.For example, 323 with being represented in binary as 11111,
31 with being represented in binary as 101.
For have straight trip, left-hand rotation, right-hand rotation indicator light crossing
Traffic lights are controlled first so that the green indicator light of instruction north-south road straight trip lights (according to crossing vehicle
The case where, set time green, that amber light is bright as required, it is assumed that it is 3s that green light, which is 30s, amber light), other traffic lights are equal
For red (such as Fig. 4 A);After 30s, control traffic lights are so that the green indicator light extinguishing that north-south road is kept straight on, amber light
It lights or flashes, other traffic lights are red;After 3s, control traffic lights so that on the road of north-south turn left and turn right
Green indicator light lights, and other traffic lights are red (such as Fig. 4 E);After 30s, traffic lights are controlled so that north-south road
The green indicator light for turning left and turning right extinguishes, and amber light is lighted or flashed, and other traffic lights are red;After 3s, control traffic letter
For signal lamp so that the green indicator light for turning left on East and West direction road and turning right lights, other traffic lights are red (such as Fig. 4 F);30s
Afterwards, traffic lights are controlled so that the green indicator light that East and West direction road turns left and turns right extinguishes, amber light is lighted or flashed, other
Traffic lights is red;After 3s, control traffic lights so that East and West direction road straight trip green indicator light light, other instructions
Lamp is red (such as Fig. 4 D);After 30s, control traffic lights are yellow so that the green indicator light extinguishing that East and West direction road is kept straight on
Lamp is lighted or is flashed, and other traffic lights are red;After 3s, control traffic lights are so that the green of north-south road straight trip refers to
Show that lamp lights, other traffic lights are red (such as Fig. 4 A).
According to the actual situation, right-hand rotation indicator light can not light and extinguish simultaneously with left-hand rotation indicator light, as right-turning vehicles compared with
More crossings, can be in a traffic light circulation (alternatively, the traffic light circulation for not considering right-hand rotation indicator light)
The time lighted for increasing right-hand rotation indicator light in the process and (or) the number lighted are (right for example, when left-hand rotation green light in the same direction lights
Turning green light can be bright, and when straight trip green light in the same direction lights, right-hand rotation green light can also be lighted).
For example, the indicator light that north-south road is kept straight on is indicated with 1, the finger of the non-straight trip of north-south road (turn left and turn right)
Show that lamp is indicated with 2, the indicator light of the non-straight trip of East and West direction road (turn left and turn right) is indicated with 3, the instruction of East and West direction road straight trip
Lamp is indicated with 4;Green light is indicated with 1, and 2 indicate that amber light is bright, and 3 indicate that red light is bright.For example, 12 indicate that instruction is straight on the road of north-south
The traffic lights of line direction is yellow, and 31 indicate to indicate that the indicator light of non-straight trip (turn left and turn right) is green on instruction East and West direction road
Color, 43 indicate that the traffic lights in instruction straight trip direction on instruction East and West direction road is red.Any one group (the first number is identical to be
One group) indicator light green light (the second digit is 1) or when amber light bright (the second digit is 2), whether indicating that other directions are current
All indicator lights be illustrated as red, i.e., when one group of indicator light be 11 when, the second digit of other indicator lights is 3 (i.e. red
Lamp lights).In example as above, after 11 continue 30s, 12 continue 3s;Then after 21 lasting 30s, 22 continue 3s;Then 31 continue
After 30s, 32 continue 3s;Then after 41 lasting 30s, 42 continue 3s;Then 11 continue 30s.
For example, the indicator light that north-south road is kept straight on is indicated with 1, the finger of the non-straight trip of north-south road (turn left and turn right)
Show that lamp is indicated with 2, the indicator light of the non-straight trip of East and West direction road (turn left and turn right) is indicated with 3, the instruction of East and West direction road straight trip
Lamp is indicated with 4;0 indicates that red light is bright, and 1 indicates that bright (including green light and amber light first show green light 30s, then in setting for non-red light
Switch to show amber light 3s).For example, 10 indicate that the traffic lights in instruction straight trip direction on the road of north-south is that red light is bright.Any one group
(identical the first number is one group) indicator light is that non-red light lights, then indicates that the current indicator light in other directions is red light.
In example as above, after 11 continue 33,21 continue 33s;Then after 31 lasting 33s, 41 display 33s, then 11 continue 33s.
Each bit digital in above-mentioned any embodiment can be indicated with corresponding multiple binary digits, for example, first
Number can indicate (00,01,10,11) with two binary digits, second-order digit can be indicated with a binary digit (0,
1), third bit digital can indicate (00,01,10,11) with two binary digits.For example, 323 with being represented in binary as 11111.
For example, the indicator light that north-south road is kept straight on is indicated with 1, the indicator light that north-south road turns left is indicated with 2, east
West indicates that the indicator light of East and West direction road straight trip is indicated with 4, the finger that north-south road is turned right to the indicator light that road turns left with 3
Show that lamp is indicated with 5, the indicator light that East and West direction road is turned right is indicated with 6.Indicate what north-south road instruction was southward travelled by north with 1
Indicator light, use 2 indicate north-south road instruction from south toward the indicator light of north traveling, use 1 indicate north-south road instruction from it is northern toward
The indicator light that south traveling is turned left, use 2 indicate the indicator light that north-south road instruction is turned left from south toward north traveling, and use 1 indicates thing
The indicator light of left-hand rotation is westerly travelled by east to road instruction, use 2 indicates East and West direction road instruction from western toward the eastbound finger for sailing left-hand rotation
Show lamp, use 1 indicates the indicator light that East and West direction road instruction is westerly travelled by east, and use 2 indicates East and West direction road instruction from western toward east
The indicator light of traveling, use 1 indicate that north-south road instruction is southward travelled the indicator light of right-hand rotation by north, and use 2 indicates north-south road
Indicate the indicator light turned right from south toward north traveling, use 1 indicates that East and West direction road instruction is westerly travelled the indicator light of right-hand rotation by east, uses
2 indicate East and West direction road instruction from western toward the eastbound indicator light for sailing right-hand rotation.Green light is indicated with 1, and 2 indicate that amber light is bright, and 3 indicate red
Lamp is bright.For example, 123 indicate to indicate to be red, 323 expression instruction east from southern toward the traffic lights in north straight trip direction on the road of north-south
West is red by the eastern indicator light for westerly travelling left-hand rotation to road, and 422 indicate on instruction East and West direction roads from western toward the eastbound side of sailing
To traffic lights be yellow.Any one group of (the first number identical be one group) indicator light green light (third digit is 1) or
When amber light bright (third digit is 2), all indicator lights of other groups are illustrated as red, i.e., when one group of indicator light is 111 and 121
When, the third digit of other indicator lights is 3 (i.e. red light lights).
Example as above, after 111 and 121 continue 30s, 112 and 122 continue 3s;Then 211 and 221,511 and 521 continue
After 30s, 212 and 222,512 and 522 continue 3s;Then after 311 and 321,611 and 621 lasting 30s, 312 and 322,612
Continue 3s with 622;Then after 411 and 421 lasting 3s, 111 and 121 continue 30s, and then 112 and 122 continue 3s.
Alternatively, indicator light 5 and 6, is not fixed and is associated with a certain group of indicator light, when green time and red light is separately provided
Between.Alternatively, indicating red light with 0,1 indicates non-red light (default first shows green light, shows amber light afterwards).In example as above, 111 and 121
After continuing 33,211 and 221 continue 33s;Then after 311 and 321 lasting 33s, 411 and 421 continue 33;Then 111 with
After 121 continue 33s, it can be pressed with left-hand rotation indicator light in the same direction according to indicator light representated by crossing road conditions setting 5 and 6
It according to identical instruction while showing, can also not shown simultaneously with left-hand rotation indicator light according to circumstances.
The status information that multichannel traffic lights in the embodiment of the present invention are uploaded can equally be installed above-mentioned any one
Kind method is encoded with determination.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Movement merge, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
A kind of traffic light control system 500 of one embodiment of the application offer is provided, comprising:
Abnormality judging program module 510, status signal for being uploaded according to multichannel traffic lights and is deposited in advance
The correct traffic signal light condition of storage judges whether there is the abnormal traffic lights of display;
Normal signal lamp controls program module 520, for controlling when determining that the multichannel traffic lights show normal
The multichannel traffic lights are made to indicate the traveling of vehicle;
Abnormal signal lamp controls program module 530, for controlling institute when determining certain traffic lights display exception all the way
It states certain other road traffic lights all the way except traffic lights and is shown as red light to forbid other road traffic lights
Indicated vehicle driving.
The present embodiment passes through the status signal uploaded according to multichannel traffic lights and pre-stored correct friendship
Ventilating signal lamp state judges whether there is the abnormal traffic lights of display, can normally be controlled to multichannel traffic lights
It makes and determines whether there is emergency light before, rather than the display that traffic lights are executed according to scheduled rule of blindness.
Also, when determination is there are when the signal lamp of abnormal show, by control other signals lamp, to indicate other road vehicles, no through traffic,
It ensures and is not in multiple directions wagon flow while importing the even traffic accident of congestion caused by traffic intersection.Therefore, of the invention
Embodiment is it is possible to prevente effectively from traffic congestion caused by traffic signal light fault or traffic accident.
In some embodiments of the invention, traffic light control system, further includes:
Timing program module, for starting timing when controlling traffic lights instruction vehicle and starting and exercise;
Whether comparison program module reaches preset duration for timing module institute's timing length;
As shown in fig. 6, the normal signal lamp control in a kind of traffic light control system that one embodiment of the application provides
Program module 520 processed includes:
First Signalized control program module 521 indicates the first mutually opposing uplink for controlling traffic lights
Vehicle driving on the Through Lane of road and the first downlink road, and trigger the timing module and carry out first time timing;
Second signal lamp controls program module 522, for after the first time timing reaches preset duration, described in control
Vehicle driving on left turn lane of the traffic lights to indicate first ascending pathway and the first downlink road, and trigger institute
It states timing module and carries out second of timing;
Third Signalized control program module 523, for controlling after second of timing reaches the preset duration
Vehicle row on left turn lane of the traffic lights to indicate mutually opposing the second ascending pathway and the second downlink road
It sails, and triggers the timing module and carry out third time timing;
Fourth signal lamp controls program module 524, for controlling after the third time timing reaches the preset duration
Vehicle driving on Through Lane of the traffic lights to indicate second ascending pathway and the second downlink road, and touch
Sending out timing module described carries out the 4th timing;
Control function trigger module 525, for repeating suitable after the 4th timing reaches the preset duration
Sequence executes above-mentioned steps.
The system for the embodiment of the present invention that the embodiment of the present invention is realized by the control to traffic lights avoids same
There is the case where vehicle drives into the section two neighboring period, thus the link traffic pressure of traffic intersection;In addition, also avoiding going
Wait the current influence for turning right current to crossing right-turning vehicles and both sides because scrambling for roads among people and non power driven vehicle row to road
And the traffic jam caused even traffic accident, therefore the traffic congestion thus caused is avoided, improve traffic safety.
In some embodiments, the traffic lights include portable lighter on the first uplink lamp group, the first downlink lamp group, second
Group and the second downlink lamp group;The traffic light control system further include:
Signalling procedure module is controlled, for sending Traffic signal control signal to the first uplink lamp group, the
Once portable lighter group, the second uplink lamp group and the second downlink lamp group are to control the traveling that the traffic lights indicate vehicle;It is described
Traffic signal control signal includes lamp group state transfer array, is used for the first uplink lamp group, the first downlink lamp group, second
Uplink lamp group and the identification of the second downlink lamp group are to convert current state.
In some embodiments, the lamp group state transfer array includes: for indicating the first uplink lamp group, first
The data bit of downlink lamp group, the second uplink lamp group and any lamp group in the second downlink lamp group;For indicating the number of driving mode
According to position, the driving mode includes straight trip, turns left, turns right.
In some embodiments, the traffic light control system includes: traffic lights grouper module, is used for
The first uplink lamp group and the first downlink lamp group are divided into the first lamp group in advance, it will be under the second uplink lamp group and second
Portable lighter group is divided into the second lamp group;
The lamp group state transfer array is binary array;
Primary two kinds of values of the binary array respectively indicate the first lamp group or the second lamp group;
Deputy two kinds of values of the binary array are used to determine first of the binary array and determine
Lamp group be uplink lamp group or downlink lamp group;
Two kinds of values of the third position of the binary array are for indicating the driving mode.
The traffic light control system of the embodiments of the present invention can be used for executing the traffic signals of the embodiment of the present invention
Lamp control method, and the method for controlling traffic signal lights technical effect achieved for reaching the embodiments of the present invention accordingly,
Which is not described herein again.
Hardware processor (hardware processor) Lai Shixian correlation function mould can be passed through in the embodiment of the present invention
Block.
On the other hand, the embodiment of the present invention provides a kind of non-volatile computer readable storage medium storing program for executing, the storage medium
In to be stored with one or more include the programs executed instruction, described execute instruction can be by electronic equipment (including but not limited to
Computer, server or network equipment etc.) it reads and executes, with for executing the correlation step in above method embodiment,
Such as:
It controls on Through Lane of the traffic lights to indicate mutually opposing the first ascending pathway and the first downlink road
Vehicle driving, and carry out first time timing;
After the first time timing reaches preset duration, the traffic lights are controlled to indicate trade on described first
Vehicle driving on the left turn lane of road and the first downlink road, and carry out second of timing;
After second of timing reaches the preset duration, it is mutually opposing to indicate to control the traffic lights
Vehicle driving on the left turn lane of second ascending pathway and the second downlink road, and carry out third time timing;
After the third time timing reaches the preset duration, the traffic lights are controlled to indicate on described second
Vehicle driving on the Through Lane of trade road and the second downlink road, and carry out the 4th timing;
After the 4th timing reaches the preset duration, repetitive sequence executes above-mentioned steps.
On the other hand, a kind of electronic equipment is also disclosed in the embodiment of the present invention comprising:
At least one processor, and
The memory being connect at least one described processor communication, wherein the memory be stored with can by it is described extremely
The instruction that a few processor executes, described instruction are executed by least one described processor, so that at least one described processing
Device is able to carry out:
It controls on Through Lane of the traffic lights to indicate mutually opposing the first ascending pathway and the first downlink road
Vehicle driving, and carry out first time timing;
After the first time timing reaches preset duration, the traffic lights are controlled to indicate trade on described first
Vehicle driving on the left turn lane of road and the first downlink road, and carry out second of timing;
After second of timing reaches the preset duration, it is mutually opposing to indicate to control the traffic lights
Vehicle driving on the left turn lane of second ascending pathway and the second downlink road, and carry out third time timing;
After the third time timing reaches the preset duration, the traffic lights are controlled to indicate on described second
Vehicle driving on the Through Lane of trade road and the second downlink road, and carry out the 4th timing;
After the 4th timing reaches the preset duration, repetitive sequence executes above-mentioned steps.
Fig. 7 is the hardware configuration of the electronic equipment for the execution method for controlling traffic signal lights that another embodiment of the application provides
Schematic diagram, as shown in fig. 7, the equipment includes:
One or more processors 710 and memory 720, in Fig. 7 by taking a processor 710 as an example.
The equipment for executing method for controlling traffic signal lights can also include: input unit 730 and output device 740.
Processor 710, memory 720, input unit 730 and output device 740 can pass through bus or other modes
It connects, in Fig. 7 for being connected by bus.
Memory 720 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey
Sequence, non-volatile computer executable program and module, as the method for controlling traffic signal lights in the embodiment of the present application is corresponding
Program instruction/module.Processor 710 by operation be stored in memory 720 non-volatile software program, instruction and
Module, thereby executing the various function application and data processing of server, i.e. realization above method embodiment traffic lights
Control method.
Memory 720 may include storing program area and storage data area, wherein storing program area can store operation system
Application program required for system, at least one function;Storage data area can store the use according to traffic signal light control device
The data etc. created.In addition, memory 720 may include high-speed random access memory, it can also include non-volatile deposit
Reservoir, for example, at least a disk memory, flush memory device or other non-volatile solid state memory parts.In some implementations
In example, optional memory 720 includes the memory remotely located relative to processor 710, these remote memories can pass through
It is connected to the network to traffic signal light control device.The example of above-mentioned network includes but is not limited to internet, intranet, local
Net, mobile radio communication and combinations thereof.
Input unit 730 can receive the number or character information of input, and generate and traffic signal light control device
User setting and the related signal of function control.Output device 740 may include that display screen etc. shows equipment.
One or more of modules are stored in the memory 720, when by one or more of processors
When 710 execution, the method for controlling traffic signal lights in above-mentioned any means embodiment is executed.
Method provided by the embodiment of the present application can be performed in the said goods, has the corresponding functional module of execution method and has
Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to method provided by the embodiment of the present application.
The electronic equipment of the embodiment of the present application exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data
Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low
Hold mobile phone etc..
(2) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total
Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy
Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(3) other electronic devices with data interaction function.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member
It is physically separated with being or may not be, component shown as a unit may or may not be physics list
Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs
In some or all of the modules achieve the purpose of the solution of this embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It is realized by the mode of software plus general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, above-mentioned technology
Scheme substantially in other words can be embodied in the form of software products the part that the relevant technologies contribute, the computer
Software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions to
So that computer equipment (can be personal computer, server or the network equipment etc.) execute each embodiment or
Method described in certain parts of embodiment.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although
The application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution spirit and
Range.