CN109661087A - Control method, device, storage medium and the central controller of traffic controller - Google Patents
Control method, device, storage medium and the central controller of traffic controller Download PDFInfo
- Publication number
- CN109661087A CN109661087A CN201910064159.2A CN201910064159A CN109661087A CN 109661087 A CN109661087 A CN 109661087A CN 201910064159 A CN201910064159 A CN 201910064159A CN 109661087 A CN109661087 A CN 109661087A
- Authority
- CN
- China
- Prior art keywords
- traffic controller
- controller
- traffic
- control
- sent
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/175—Controlling the light source by remote control
- H05B47/18—Controlling the light source by remote control via data-bus transmission
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Traffic Control Systems (AREA)
Abstract
The present invention discloses control method, device, storage medium and the central controller of a kind of traffic controller, is used for central controller, comprising: the determining period with multiple traffic controllers controls the time;The time is controlled according to the period, receives the state-detection data that each traffic controller is sent;According to the state-detection data that each traffic controller is sent, the time is controlled according to the period, control instruction is sent to each traffic controller and controls each traffic controller.Each traffic controller in the present invention can control the time according to the period, it is communicated according to the activity duration for determining respectively affiliated with central processing unit, allow each traffic controller that work is individually performed, and each traffic controller is mutual, the resource of bus is not seized, communication is successfully completed without waiting for an adjacent upper traffic controller, work could be executed, the safety of road traffic can be improved, it can also be improved the working efficiency of each traffic controller, real-time is preferable.
Description
Technical field
The present invention relates to traffic signal controlling machine technical fields, and in particular to a kind of control method of signal lamp, is deposited device
Storage media and central controller.
Background technique
Traffic signal controlling machine (abbreviation semaphore) is used as road traffic signal controller, is the important of Traffic Systems
Component part has played important function for the normal orderly passage of urban road.Traffic signaling equipment is mainly by control cabinet, distribution list
Member composition, wherein control cabinet mainly include central controller, lamp box driver, wagon detector composition, central controller according to
After crossing state generates lamp state, lamp box controller is issued to by bus and carries out traffic control, traffic signals come driving signal lamp
Control machine is connect with control centre's platform, it can be achieved that region control and traffic optimization.
Tradition carries out the control method of signal lamp using traffic signal controlling machine at present, is communicatively coupled using RS485,
Using central controller as host node, by all lamp box controllers (from node) connected in the host node control bus, utilize
The host node successively controls respectively from node, specifically, when host node complete to the 1st control from node, just can be to the 2nd
It is controlled from node, according to this, control mode is all from node until just calculating last 1 control from node completion one by one
Control, wherein if host node fails to the 1st from node control, remaining will be constantly in etc. to be controlled from node
State, host node can not continue to be controlled from node subsequent.Therefore, the controlling party of traditional Signalized control machine
Method be will affect and be controlled from the delay of node lower 1 when host node is not successfully completed to wherein 1 control from node, be held
Easily there is a phenomenon where traffic congestions, and then lead to traffic accident, and lower to the utilization rate of bus, and real-time is poor.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of control method of traffic controller, to solve traditional letter
Signal lamp controls the control method of machine, when host node is not successfully completed to wherein 1 control from node, will affect to lower 1
Controlled from the delay of node, the phenomenon that being easy to happen traffic congestion, and then lead to traffic accident, and to the utilization rate of bus compared with
It is low, the poor problem of real-time.
According in a first aspect, the embodiment of the invention provides a kind of control method of traffic controller, for center control
Device processed, includes the following steps:
The determining period with multiple traffic controllers controls the time;
The time is controlled according to the period, receives the state-detection data that each traffic controller is sent;
According to the state-detection data that each traffic controller is sent, time, Xiang Suoshu are controlled according to the period
Each traffic controller sends control instruction and controls each traffic controller.Beneficial effect
With reference to first aspect, described to control the time according to the period in first aspect first embodiment, it receives each
The step of state-detection data that traffic controller is sent further include:
Time, distribution activity duration corresponding with each traffic controller are controlled according to the period;
According to the activity duration corresponding with each traffic controller, the shape that each traffic controller is sent is received
State detection data.
With reference to first aspect, described to be sent according to each traffic controller in first aspect second embodiment
State-detection data, control the time according to the period, sent described in control instruction control to each traffic controller
The step of each traffic controller further include:
Time, distribution activity duration corresponding with each traffic controller are controlled according to the period;
According to the activity duration corresponding with each traffic controller, control is sent to each traffic controller and is referred to
It enables and controls each traffic controller.
First embodiment or first aspect second embodiment with reference to first aspect, in first aspect third embodiment
In, described to control the time according to the period, distribution is also wrapped the step of corresponding with each traffic controller activity duration
It includes:
Determine the first activity duration of the central controller;
Calculate the time difference of the control time and first activity duration in period;
Each traffic controller corresponding second activity duration is respectively obtained to the time difference.
With reference to first aspect, in the 4th embodiment of first aspect, further includes:
It establishes and communicates to connect by CAN bus and each traffic controller;
By the CAN bus, the state-detection data that each traffic controller is sent are received, or, to described each
Traffic controller sends control instruction and controls each traffic controller.
With reference to first aspect, in the 5th embodiment of first aspect, by the CAN bus, each signal is received
The state-detection data that lamp controller is sent, or, sending control instruction to each traffic controller controls each signal
The step of lamp controller further include:
Using each tie point of the CAN bus and each lamp box controller as each communication node;
Obtain the network address and communication protocol of each communication node;
Each letter is received by the CAN bus according to the network address and communication protocol of each communication node
The state-detection data that signal lamp controller is sent, or, sending control instruction to each traffic controller controls each signal lamp
Controller.
According to second aspect, the embodiment of the invention provides a kind of control devices of traffic controller, for center control
Device processed, comprising:
Determining module controls the time for the determining period with multiple traffic controllers;
Receiving module receives the state-detection number that each traffic controller is sent for controlling the time according to the period
According to;
Control module, the state-detection data for being sent according to each traffic controller, is controlled according to the period
Time processed sends control instruction to each traffic controller and controls each traffic controller.
In conjunction with second aspect, in second aspect first embodiment, further includes:
Communication building block, for establishing and communicating to connect by CAN bus and each traffic controller;
Communication module, for receiving the state-detection number that each traffic controller is sent by the CAN bus
According to or, sending control instruction to each traffic controller controls each traffic controller.
According to the third aspect, the embodiment of the invention provides a kind of storage mediums, are stored thereon with computer instruction, this refers to
Enable the control that traffic controller described in first aspect or first aspect any embodiment is realized when being executed by processor
The step of method.
According to fourth aspect, the embodiment of the invention provides a kind of central controllers, including memory, processor and storage
On a memory and the computer program that can run on a processor, the processor realize first aspect when executing described program
Or traffic controller described in first aspect any embodiment control method the step of.
Technical solution of the present invention has the advantages that
The present invention provides control method, device, storage medium and the central controller of a kind of traffic controller, is used for
Entreat controller, comprising: the determining period with multiple traffic controllers controls the time;The time is controlled according to the period, receives each letter
The state-detection data that signal lamp controller is sent;According to the state-detection data that each traffic controller is sent, controlled according to the period
Time processed sends control instruction to each traffic controller and controls each traffic controller.Each Signalized control in the present invention
Device can control the time according to the period, be communicated according to the activity duration for determining respectively affiliated with central processing unit, so that
Work can be individually performed in each traffic controller, and each traffic controller is mutual, do not seize the resource of bus, nothing
It needs to wait for an adjacent upper traffic controller and successfully completes communication, work could be executed, the peace of road traffic can be improved
Quan Xing, can also be improved the working efficiency of each traffic controller, and real-time is preferable.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the first pass figure of the control method of traffic controller in the embodiment of the present invention;
Fig. 2 is the circuit connection diagram of central controller and each traffic controller;
Fig. 3 is the second flow chart of the control method of traffic controller in the embodiment of the present invention;
Fig. 4 is the third flow chart of the control method of traffic controller in the embodiment of the present invention;
Fig. 5 is the circulation process figure that the period controls the time in the embodiment of the present invention;
Fig. 6 is the 4th flow chart of the control method of traffic controller in the embodiment of the present invention;
Fig. 7 is the 5th flow chart of the control method of traffic controller in the embodiment of the present invention;
Fig. 8 is the schematic diagram of CAN bus identification mistake in the embodiment of the present invention;
Fig. 9 is the structural block diagram of the control device of traffic controller in the embodiment of the present invention;
Figure 10 is the hardware structural diagram of central controller of the embodiment of the present invention.
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 skilled in the art are not having
Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
Embodiment 1
The embodiment of the present invention provides a kind of control method of traffic controller, is used for central controller, as shown in Figure 1,
Include the following steps:
Step S1: the determining period with multiple traffic controllers controls the time.The control time in period herein is one
The time of the multiple traffic controllers of control in fixed cycle time, can will control the time period is set as T1.As shown in Fig. 2,
Central controller is connect with multiple traffic controllers, and each traffic controller is connected in parallel on central controller respectively,
In Fig. 2, central controller 1 is believed with the 1st traffic controller 41, No. 2 respectively by the direct current supply line 2 and CAN bus 3 of 5V
Signal lamp controller 42, the 3rd traffic controller 43, No. 4 traffic controller 44, the 5th traffic controller 45 and the 6th signal
Lamp controller 46 connects, and the 1st traffic controller 41 is connect with the 1st signal lamp 51, the 2nd traffic controller 42 and the 2nd signal
Lamp 52 connects, and the 3rd traffic controller 43 is connect with the 3rd signal lamp 53, and the 4th traffic controller 44 and the 4th signal lamp 54 connect
It connecing, the 5th traffic controller 45 is connect with No. 5 signal lamp 55, and the 6th traffic controller 46 is connect with the 6th signal lamp 56,
The communication node of CAN bus 3 and each traffic controller is respectively A, B, C, D, E, F.Specifically, central controller passes through respectively
The direct current supply line of CAN bus and 5V are connect with each traffic controller, and each traffic controller distinguishes corresponding signal
Lamp connection, under the control of central controller, each traffic controller can control signal lamp connected to it, each signal lamp control
Device processed is connect by the direct current supply line and CAN bus of 5V with central controller, and each traffic controller is allowed to carry out electricity
Air bound between each traffic controller and central controller according to the period from order to avoid there is electrical Interference between each other, and controlling
Time processed works, and works respectively so that each traffic controller can control in the time in the period, and then ensure each letter
The signal lamp of signal lamp controller connection can execute work within the control time in period, in order to avoid traffic occurs and gathers around because of delays time to control
Stifled phenomenon and serious traffic accident.
Step S2: controlling the time according to the period, receives the state-detection data that each traffic controller is sent.Period control
Time is that each traffic controller executes period of work respectively, still, within this period each traffic controller with
Communication between central controller needs to execute work according to respective timing node.
In one embodiment, above-mentioned steps S2 is during execution, as shown in figure 3, may particularly include following step
It is rapid:
Step S31: the time is controlled according to the period, distributes the activity duration corresponding with each traffic controller.Such as: the period
The control time be 400ms, can by the period of this 400ms control the time be allocated, and then determine central controller and
Each traffic controller executes the activity duration of work respectively, and certainly, the control time in period can also be other time, not with this
The control time in period of 400ms is limitation.Specifically, above-mentioned steps S31 is during execution, as shown in figure 4, can specifically wrap
Include following steps:
Step S311: the first activity duration of central controller is determined.Central controller is the core control in the present embodiment
Control equipment executes work and is also required to take a certain time, therefore central controller is executed the time of work as the first operation
Time, if the first activity duration was T2.Such as: the period controls time T1For 400ms, time T is controlled in the period1In middle first acquisition
Entreating the time of controller execution work is 40ms between 0ms-40ms, therefore by the first activity duration of central controller.
Step S312: the time difference of calculating cycle control time and the first activity duration.Such as: center control among the above
First activity duration T of device processed2For 40ms, the period among the above controls time T1For 400ms, time difference is set as △ T12=
T1-T2, therefore △ T12=400-40=360ms.
Step S313: each traffic controller corresponding second activity duration is respectively obtained to time difference.
The second activity duration herein is the time that work can be individually performed in each traffic controller, by second activity duration, respectively
Traffic controller can individually be communicated with central controller according to the second respectively exclusive activity duration, between each other
And there is no interference, bus resource is not also seized mutually, is successfully completed without the adjacent upper traffic controller of waiting
Communication work just starts to execute work, therefore improves communication efficiency.More importantly each traffic controller is according to respective
Exclusive the second activity duration execute work and nor affected on other even if wherein some traffic controller breaks down
Communication between traffic controller and central controller, so that the utilization rate of bus is also higher, reliability is also higher.
Such as: in Fig. 2, traffic controller shares 6, so time difference is divided equally, each signal lamp control
The activity duration of device processed is 60ms, specifically, as shown in figure 5, the first activity duration that central controller executes work is 40ms,
The second activity duration that each traffic controller executes work is 60ms, and the control time in period in a cycle control time is
400ms, such as: in 0ms-40ms, belong to the first activity duration that central processing unit executes work, in 41ms-100ms,
Belong to the second activity duration that the 1st traffic controller executes work, the 2nd traffic controller is belonged in 101ms-160ms
The second activity duration for executing work, when belonging to the second operation of the 3rd traffic controller execution work in 161ms-220ms
Between, the second activity duration that the 4th traffic controller executes work is belonged in 221ms-280ms, is belonged in 280ms-340ms
The second activity duration of work is executed in the 5th traffic controller, the 6th traffic controller is belonged in 341ms-400ms and is held
Second activity duration of row work, next cycle control time still cycle operation in this manner.
Step S32: according to the activity duration corresponding with each traffic controller, the shape that each traffic controller is sent is received
State detection data.State-detection data herein include that each signal controller is obtaining detected signal lamp connected to it just
Normal electrical parameter (current parameters and/or voltage parameter) or failure electrical parameter (current parameters and/or voltage parameter), in Fig. 2,
Belong in the second activity duration of the 1st traffic controller, receives the state-detection parameter that the 1st traffic controller is sent,
Belong in the second activity duration of No. 2 traffic controller, receive the state-detection parameter that the 2nd traffic controller is sent,
Within the second activity duration for belonging to the 3rd traffic controller, the state-detection parameter that the 3rd traffic controller is sent is received,
Within the second activity duration for belonging to the 4th traffic controller, the state-detection parameter that the 4th traffic controller is sent is received,
Within the second activity duration for belonging to the 5th traffic controller, the state-detection parameter that the 5th traffic controller is sent is received,
Within the second activity duration for belonging to the 6th traffic controller, the state-detection parameter that the 6th traffic controller is sent is received.
Step S3: the state-detection data sent according to each traffic controller control the time according to the period, to each signal
Lamp controller sends control instruction and controls each traffic controller.
In one embodiment, above-mentioned steps S3 is during execution, as shown in fig. 6, may particularly include following step
It is rapid:
Step S61: the time is controlled according to the period, distributes the activity duration corresponding with each traffic controller.Such as: the period
The control time be 400ms, can by the period of this 400ms control the time be allocated, and then determine central controller and
Each traffic controller executes the activity duration of control respectively.Specifically, above-mentioned steps S61 is during execution, such as Fig. 7 institute
Show, may particularly include following steps:
Step S611: the first activity duration of central controller is determined.Central controller is the core control in the present embodiment
Control equipment executes work and is also required to take a certain time, therefore central controller is executed the time of work as the first operation
Time, if the first activity duration was T2.Such as: the period controls time T1For 400ms, time T is controlled in the period1In middle first acquisition
Entreating the time of controller execution work is 40ms between 0ms-40ms, therefore by the first activity duration of central controller.
Step S612: the time difference of calculating cycle control time and the first activity duration.Such as: center control among the above
First activity duration T of device processed2For 40ms, the period among the above controls time T1For 400ms, time difference is set as △ T12=
T1-T2, therefore △ T12=400-40=360ms.
Step S613: each traffic controller corresponding second activity duration is respectively obtained to time difference.
The second activity duration herein is the time that work can be individually performed in each traffic controller, by second activity duration, respectively
Traffic controller can individually be communicated with central controller according to the second respectively exclusive activity duration, between each other
And there is no interference, bus resource is not also seized mutually, is successfully completed without the adjacent upper traffic controller of waiting
Communication work just starts to execute work, therefore improves communication efficiency.More importantly each traffic controller is according to respective
Exclusive the second activity duration execute work and nor affected on other even if wherein some traffic controller breaks down
Communication between traffic controller and central controller, so that the utilization rate of bus is also higher, reliability is also higher.
Such as: in Fig. 2, traffic controller shares 6, so time difference is divided equally, each signal lamp control
The activity duration of device processed is 60ms, specifically, as shown in figure 5, the first activity duration that central controller executes work is 40ms,
The second activity duration that each traffic controller executes work is 60ms, and the control time in period in a cycle control time is
400ms, such as: in 0ms-40ms, belong to the first activity duration that central processing unit executes work, in 41ms-100ms,
Belong to the second activity duration that the 1st traffic controller executes work, the 2nd traffic controller is belonged in 101ms-160ms
The second activity duration for executing work, when belonging to the second operation of the 3rd traffic controller execution work in 161ms-220ms
Between, the second activity duration that the 4th traffic controller executes work is belonged in 221ms-280ms, is belonged in 280ms-340ms
The second activity duration of work is executed in the 5th traffic controller, the 6th traffic controller is belonged in 341ms-400ms and is held
Second activity duration of row work, next cycle control time still cycle operation in this manner.
Step S62: according to the activity duration corresponding with each traffic controller, control is sent to each traffic controller and is referred to
It enables and controls each traffic controller.Control instruction herein includes normal control instruction and Fault Control instruction, in Fig. 2,
Belong in the second activity duration of the 1st traffic controller, the control instruction sent to the 1st traffic controller is belonging to the 2nd
In second activity duration of number traffic controller, control instruction is sent to the 2nd traffic controller, is belonging to the 3rd signal lamp
In second activity duration of controller, control instruction is sent to the 3rd traffic controller, is belonging to the 4th traffic controller
In second activity duration, control instruction is sent to the 4th traffic controller, in the second operation for belonging to the 5th traffic controller
In time, control instruction is sent to the 5th traffic controller, within the second activity duration for belonging to the 6th traffic controller, to
6th traffic controller sends control instruction.
Specifically, above-mentioned steps S3: the state-detection data sent according to each traffic controller, when being controlled according to the period
Between, control instruction, which is sent, to each traffic controller controls each traffic controller.It is respectively corresponded in conjunction with each traffic controller
The second activity duration, according to each traffic controller send state-detection data, can be in the second affiliated activity duration
It is interior to send each traffic controller of control instruction control to central controller.
Such as: in Fig. 2, the 1st traffic controller, the 2nd traffic controller, the 3rd traffic controller send shape
State detection data is normal electrical parameter, illustrates that central controller can be corresponding to the normal electrical parameter according to normal electrical parameter
Normal control instruction is sent in second activity duration belonging to each traffic controller and then controls each traffic controller holds
The corresponding work of row, and the 4th traffic controller and No. 5 traffic controller are sent in the second activity duration belonging to it
State-detection data be failure electrical parameter, illustrate that central controller can be according to failure electrical parameter, to the normal electrical parameter pair
Fault Control is sent in second activity duration belonging to each traffic controller answered instructs and then control each Signalized control
Device executes corresponding work.Such as: the 1st traffic controller, the 2nd traffic controller and the 3rd signal lamp control among the above
What device processed was sent to central controller in the second activity duration belonging to it is normal electrical parameter, therefore central controller can root
According to normal electrical parameter, to the 1st traffic controller, the 2nd traffic controller and the 3rd traffic controller belonging to it
The 1st traffic controller of normal control instruction control, the 2nd traffic controller and the 3rd signal lamp are sent in two activity durations
Controller, then, the 1st traffic controller, the 2nd traffic controller and the 3rd traffic controller can be according to normal controls
System instruction control the 1st signal lamp connected to it, the 2nd signal lamp, the 3rd signal lamp are lighted, the 4th Signalized control among the above
The state-detection data that device, the 5th traffic controller are sent in the second activity duration belonging to it are failure electrical parameters, therefore in
Entreat controller can be according to failure electrical parameter, to the second work of the 4th traffic controller, the 5th traffic controller belonging to it
Fault Control instruction control the 4th traffic controller, the 5th traffic controller, then, the 4th signal lamp control are sent in the industry time
Device processed, the 5th traffic controller can instruct according to Fault Control and control the 4th signal lamp connected to it, the 5th signal lamp be put out
It goes out.
In a preferred embodiment, the control method of the traffic controller in the embodiment of the present invention, further includes:
It is communicated to connect firstly, being established by CAN bus and each traffic controller.CAN bus herein is the world ISO mark
The serial communication protocol of standardization has the function of error detection mechanism, such as: terminal resistance is in parallel excessive, differential level amplitude
The too small mistake for leading to receiving node recognition failures, such as: bus branch line is too long, and level failing edge step is excessively high, leads to bit wide
The mistake of imbalance is spent, such as: when truck opens/closes headlight, the interference being coupled in CAN bus, caused mistake, such as:
Baud rate is abnormal (bit width suddenly becomes 1.6us from 2us), leads to bit-errors, such as: the erroneous frame of CAN bus can be divided into position
Mistake, position fill-error, crc error, format error, five major class of response mistake, every class mistake it is specific as shown in Figure 8, in Fig. 8
In, it is succinctly bright to present various mistakes.There is communication mistake in CAN message transmission process, erroneous frame can be sent, it is above-described
According to its error identifier difference in erroneous frame type, " active error " and " passive wrong " can be divided into, wherein active error is
Detection mistake actively reports an error, and issues error identifier (continuous 6 dominant bits) and mistake defines symbol (continuous 8 stealthy positions), mesh
Be " active " notification error, even if other node does not find this mistake.Passive mistake is detection mistake, passively waits it
His node sends error identifier (continuous 6 stealthy positions) and error identifier (continuous 8 stealthy positions) after reporting an error, purpose exists
In identification mistake, active error is responded.Bus-off is that node is not involved in bus communication, in order to avoid some equipment is because of itself
Reason (such as hardware damage) leads to not normal sending and receiving data and constantly destroys data frame, to influence other normal nodes
It communicates, provides that each CAN controller has a transmission error counter and a reception error count in CAN-bus specification
Device.Since CAN bus has high-performance and reliability, so CAN bus is applied in many different technical fields, such as: CAN
Bus is simultaneously widely used in the technical fields such as industrial automation, ship, Medical Devices, industrial equipment.Therefore, the present embodiment
It is preferred that CAN bus and each traffic controller are established and communicated to connect, communication mistake can be identified in time, it can be ensured that central controller
It is constantly in normal communication state with each traffic controller, it, can be by the communication failure if CAN bus identifies communication failure
It is reported to central controller or each traffic controller, central controller or each traffic controller are believed according to the communication failure
Breath can send out warning message and carry out warning note, in case the mistake of the communication failure because of somewhere, leads to CAN bus
Route paralysis, can not continue to communicate, lead to even more serious traffic accident with each traffic controller.
Then, by CAN bus, the state-detection data that each traffic controller is sent are received, or, to each signal lamp control
Device processed sends control instruction and controls each traffic controller.
Specifically, above by CAN bus, the state-detection data that each traffic controller is sent are received, or, to each letter
Signal lamp controller sends the step of control instruction controls each traffic controller further include:
Firstly, using each tie point of CAN bus and each lamp box controller as each communication node.In Fig. 2, CAN bus
It is A with the communication node of the 1st traffic controller, the communication node of CAN bus and the 2nd traffic controller is B, CAN bus
It is C with the communication node of the 3rd traffic controller, the communication node of CAN bus and the 4th traffic controller is D, CAN bus
It is E with the communication node of the 5th traffic controller, the communication node of CAN bus and the 6th traffic controller is F.
Then, the network address and communication protocol of each communication node are obtained.Each communication node in Fig. 2 all includes it
Corresponding network address and communication protocol, by the network address and communication protocol, using CAN bus could respectively with each signal
Lamp controller, central controller establish communication connection, and CAN bus can recognize that according to network address and communication protocol
Fault message at each communication node.
Finally, by CAN bus, receiving each signal lamp control according to the network address and communication protocol of each communication node
The state-detection data that device processed is sent, or, sending control instruction to each traffic controller controls each traffic controller.In net
Network address and communication protocol are established in associated situation, can receive the state that each traffic controller is sent by CAN bus
Detection data and to each traffic controller send control instruction.
The control method of traffic controller in the embodiment of the present invention, each traffic controller are in parallel with central controller
Connection carries out electrical isolation using CAN bus and direct current supply line, so that there is no interference between each traffic controller, and
And some traffic controller breaks down, and has no effect on other signals lamp controller normal work, and combine CAN bus sheet
The communication failure that each communication section is pointed out, multiple signal lamps can be recognized accurately in error detection mechanism function possessed by body
Controller works within the control time in the same period, and each traffic controller executes work according to the affiliated activity duration respectively
Make, therefore, work can be individually performed in each traffic controller, and each traffic controller is mutual, and it is total not seize CAN
The resource of line successfully completes communication without waiting for an adjacent upper traffic controller, could execute work, in the present embodiment
The control method of traffic controller the safety of road traffic can be improved, can also be improved the work of each traffic controller
Make efficiency.
Embodiment 2
The embodiment of the present invention provides a kind of control device of traffic controller, is used for central controller, as shown in figure 9,
Include:
Determining module 91 controls the time for the determining period with multiple traffic controllers.
Receiving module 92 receives the state-detection data that each traffic controller is sent for controlling the time according to the period.
Control module 93, the state-detection data for being sent according to each traffic controller control the time according to the period,
Control instruction, which is sent, to each traffic controller controls each traffic controller.
The control device of traffic controller in the embodiment of the present invention, in Fig. 9, receiving module 92 further include:
First distribution sub module 921 distributes operation corresponding with each traffic controller for controlling the time according to the period
Time;
Receiving submodule 922, for receiving each Signalized control according to the activity duration corresponding with each traffic controller
The state-detection data that device is sent.
The control device of traffic controller in the embodiment of the present invention, control module 93 further include:
Second distribution sub module, for controlling the time according to the period, when distributing operation corresponding with each traffic controller
Between;
Sending submodule, for being sent out to each traffic controller according to the activity duration corresponding with each traffic controller
Control instruction is sent to control each traffic controller.
The control device of traffic controller in the embodiment of the present invention, the first distribution sub module 921 or the second distribution
Module further include:
Determination unit, for determining the first activity duration of central controller;
Computing unit, the time difference for the calculating cycle control time and the first activity duration;
Equal sub-unit, when for respectively being obtained corresponding second operation of each traffic controller to time difference
Between.
The control device of traffic controller in the embodiment of the present invention, further includes:
Communication building block is communicated to connect for being established by CAN bus and each traffic controller;
Communication module, for the state-detection data that each traffic controller is sent being received, or, to each by CAN bus
Traffic controller sends control instruction and controls each traffic controller.
The control device of traffic controller in the embodiment of the present invention, communication module further include:
Communication node determines submodule, for using each tie point of CAN bus and each lamp box controller as each communication section
Point;
Acquisition submodule, for obtaining the network address and communication protocol of each communication node;
Submodule is communicated, is received for the network address and communication protocol according to each communication node by CAN bus
The state-detection data that each traffic controller is sent, or, sending control instruction to each traffic controller controls each signal lamp
Controller.
The control device of traffic controller in the embodiment of the present invention, each traffic controller are in parallel with central controller
Connection carries out electrical isolation using CAN bus and direct current supply line, so that there is no interference between each traffic controller, and
And some traffic controller breaks down, and has no effect on other signals lamp controller normal work, and combine CAN bus sheet
The communication failure that each communication section is pointed out, multiple signal lamps can be recognized accurately in error detection mechanism function possessed by body
Controller works within the control time in the same period, and each traffic controller executes work according to the affiliated activity duration respectively
Make, therefore, work can be individually performed in each traffic controller, and each traffic controller is mutual, and it is total not seize CAN
The resource of line successfully completes communication without waiting for an adjacent upper traffic controller, could execute work, in the present embodiment
The control method of traffic controller the safety of road traffic can be improved, can also be improved the work of each traffic controller
Make efficiency.
Embodiment 3
The embodiment of the present invention provides a kind of storage medium, is stored thereon with computer instruction, which is executed by processor
The step of method in Shi Shixian embodiment 1.Control time in period, state-detection data, the are also stored on the storage medium
One activity duration, distribution second activity duration corresponding with each traffic controller etc..Wherein, storage medium can be magnetic disk, light
Disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory,
RAM), flash memory (Flash Memory), hard disk (Hard Disk Drive, abbreviation: HDD) or solid state hard disk (Solid-
State Drive, SSD) etc.;The storage medium can also include the combination of the memory of mentioned kind.
It is that can lead to it will be understood by those skilled in the art that realizing all or part of the process in above-described embodiment method
Computer program is crossed to instruct relevant hardware and complete, program can be stored in a computer-readable storage medium, the journey
Sequence is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium can for magnetic disk, CD, read-only deposit
Store up memory body (ROM) or random access memory (RAM) etc..
Embodiment 4
The embodiment of the present invention provides a kind of central controller, as shown in Figure 10, the central controller include memory 1020,
Processor 1010 and it is stored in the computer program that can be run on memory 1020 and on processor 1010, processor 1010 is held
The step of method in embodiment 1 is realized when line program.
Figure 10 is a kind of the hard of central controller of the processing method of execution list items operation provided in an embodiment of the present invention
Part structural schematic diagram, as shown in Figure 10, the central controller include one or more processors 1010 and memory 1020, figure
In 10 by taking a processor 1010 as an example.
The central controller for executing the processing method of list items operation can also include: input unit 1030 and output device
1040。
Processor 1010, memory 1020, input unit 1030 and output device 1040 can by bus or other
Mode connects, in Figure 10 for being connected by bus.
Processor 1010 can be central processing unit (Central Processing Unit, CPU).Processor 1010 is also
It can be other general processors, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity
Road (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
The combination of the chips such as discrete hardware components or above-mentioned all kinds of chips.
Obviously, the above embodiments are merely examples for clarifying the description, and does not limit the embodiments.It is right
For those of ordinary skill in the art, can also make on the basis of the above description it is other it is various forms of variation or
It changes.There is no necessity and possibility to exhaust all the enbodiments.And it is extended from this it is obvious variation or
It changes still within the protection scope of the invention.
Obviously, the above embodiments are merely examples for clarifying the description, and does not limit the embodiments.It is right
For those of ordinary skill in the art, can also make on the basis of the above description it is other it is various forms of variation or
It changes.There is no necessity and possibility to exhaust all the enbodiments.And it is extended from this it is obvious variation or
It changes still within the protection scope of the invention.
Claims (10)
1. a kind of control method of traffic controller is used for central controller, which comprises the steps of:
The determining period with multiple traffic controllers controls the time;
The time is controlled according to the period, receives the state-detection data that each traffic controller is sent;
According to the state-detection data that each traffic controller is sent, the time is controlled according to the period, to each letter
Signal lamp controller sends control instruction and controls each traffic controller.
2. the control method of traffic controller according to claim 1, which is characterized in that described to be controlled according to the period
Time processed, the step of receiving the state-detection data that each traffic controller is sent further include:
Time, distribution activity duration corresponding with each traffic controller are controlled according to the period;
According to the activity duration corresponding with each traffic controller, the state inspection that each traffic controller is sent is received
Measured data.
3. the control method of traffic controller according to claim 1, which is characterized in that described according to each signal
The state-detection data that lamp controller is sent control the time according to the period, send control to each traffic controller
Instruction controls the step of each traffic controller further include:
Time, distribution activity duration corresponding with each traffic controller are controlled according to the period;
According to the activity duration corresponding with each traffic controller, control instruction control is sent to each traffic controller
Make each traffic controller.
4. the control method of traffic controller according to claim 2 or 3, which is characterized in that described according to the week
The step of phase controls the time, distribution corresponding with each traffic controller activity duration further include:
Determine the first activity duration of the central controller;
Calculate the time difference of the control time and first activity duration in period;
Each traffic controller corresponding second activity duration is respectively obtained to the time difference.
5. the control method of traffic controller according to claim 1, which is characterized in that further include:
It establishes and communicates to connect by CAN bus and each traffic controller;
By the CAN bus, the state-detection data that each traffic controller is sent are received, or, to each signal
Lamp controller sends control instruction and controls each traffic controller.
6. the control method of traffic controller according to claim 5, which is characterized in that by the CAN bus, connect
The state-detection data that each traffic controller is sent are received, or, sending control instruction control to each traffic controller
The step of making each traffic controller further include:
Using each tie point of the CAN bus and each lamp box controller as each communication node;
Obtain the network address and communication protocol of each communication node;
Each signal lamp is received by the CAN bus according to the network address and communication protocol of each communication node
The state-detection data that controller is sent, or, sending control instruction to each traffic controller controls each Signalized control
Device.
7. a kind of control device of traffic controller is used for central controller characterized by comprising
Determining module controls the time for the determining period with multiple traffic controllers;
Receiving module receives the state-detection data that each traffic controller is sent for controlling the time according to the period;
Control module, the state-detection data for being sent according to each traffic controller, when being controlled according to the period
Between, control instruction, which is sent, to each traffic controller controls each traffic controller.
8. the control device of traffic controller according to claim 7, which is characterized in that further include:
Communication building block, for establishing and communicating to connect by CAN bus and each traffic controller;
Communication module, for receiving the state-detection data that each traffic controller is sent by the CAN bus, or,
Control instruction, which is sent, to each traffic controller controls each traffic controller.
9. a kind of storage medium, is stored thereon with computer instruction, which is characterized in that realize power when the instruction is executed by processor
Benefit requires the step of control method of the described in any item traffic controllers of 1-6.
10. a kind of central controller including memory, processor and stores the meter that can be run on a memory and on a processor
Calculation machine program, which is characterized in that the processor realizes signal lamp described in any one of claims 1-6 when executing described program
The step of control method of controller.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910064159.2A CN109661087A (en) | 2019-01-23 | 2019-01-23 | Control method, device, storage medium and the central controller of traffic controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910064159.2A CN109661087A (en) | 2019-01-23 | 2019-01-23 | Control method, device, storage medium and the central controller of traffic controller |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109661087A true CN109661087A (en) | 2019-04-19 |
Family
ID=66120555
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910064159.2A Pending CN109661087A (en) | 2019-01-23 | 2019-01-23 | Control method, device, storage medium and the central controller of traffic controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109661087A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110708806A (en) * | 2019-09-20 | 2020-01-17 | 上海溢德行工业科技有限公司 | Street lamp state detection method and device, server, street lamp and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101206625A (en) * | 2006-12-22 | 2008-06-25 | 普天信息技术研究院 | Data processing master control equipment, secondary equipment, system and method |
JP2008191909A (en) * | 2007-02-05 | 2008-08-21 | Masahiro Watanabe | Method for estimating traffic signal state |
CN102664781A (en) * | 2012-04-10 | 2012-09-12 | 安徽科力信息产业有限责任公司 | Method for controlling multi-node RS485 bus data transmission right |
CN103269297A (en) * | 2013-05-10 | 2013-08-28 | 航天东方红卫星有限公司 | Communication method of application layer of FlexRay bus for small satellite |
CN103345845A (en) * | 2013-06-15 | 2013-10-09 | 汕头市鼎安电子科技有限公司 | Traffic signal control system with self-healing function |
CN103491677A (en) * | 2013-09-10 | 2014-01-01 | 湖北华航光电股份有限公司 | Control system of sequence flashing lamps and sub control devices thereof |
CN104408945A (en) * | 2014-11-14 | 2015-03-11 | 南京蓝泰交通设施有限责任公司 | Carrier wave communication-based bus type road signal system and working method thereof |
CN107170248A (en) * | 2017-05-05 | 2017-09-15 | 深圳市哈工大交通电子技术有限公司 | Distributed signal control system based on CAN |
CN108469747A (en) * | 2018-02-28 | 2018-08-31 | 北京智行鸿远汽车有限公司 | Communication management method, system and computer readable storage medium |
CN109035838A (en) * | 2018-09-03 | 2018-12-18 | 华北科技学院 | A kind of device of traffic signal light fault detection |
-
2019
- 2019-01-23 CN CN201910064159.2A patent/CN109661087A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101206625A (en) * | 2006-12-22 | 2008-06-25 | 普天信息技术研究院 | Data processing master control equipment, secondary equipment, system and method |
JP2008191909A (en) * | 2007-02-05 | 2008-08-21 | Masahiro Watanabe | Method for estimating traffic signal state |
CN102664781A (en) * | 2012-04-10 | 2012-09-12 | 安徽科力信息产业有限责任公司 | Method for controlling multi-node RS485 bus data transmission right |
CN103269297A (en) * | 2013-05-10 | 2013-08-28 | 航天东方红卫星有限公司 | Communication method of application layer of FlexRay bus for small satellite |
CN103345845A (en) * | 2013-06-15 | 2013-10-09 | 汕头市鼎安电子科技有限公司 | Traffic signal control system with self-healing function |
CN103491677A (en) * | 2013-09-10 | 2014-01-01 | 湖北华航光电股份有限公司 | Control system of sequence flashing lamps and sub control devices thereof |
CN104408945A (en) * | 2014-11-14 | 2015-03-11 | 南京蓝泰交通设施有限责任公司 | Carrier wave communication-based bus type road signal system and working method thereof |
CN107170248A (en) * | 2017-05-05 | 2017-09-15 | 深圳市哈工大交通电子技术有限公司 | Distributed signal control system based on CAN |
CN108469747A (en) * | 2018-02-28 | 2018-08-31 | 北京智行鸿远汽车有限公司 | Communication management method, system and computer readable storage medium |
CN109035838A (en) * | 2018-09-03 | 2018-12-18 | 华北科技学院 | A kind of device of traffic signal light fault detection |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110708806A (en) * | 2019-09-20 | 2020-01-17 | 上海溢德行工业科技有限公司 | Street lamp state detection method and device, server, street lamp and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20130286820A1 (en) | Communication Device For An Industrial Communication Network Which Can Be Operated In A Redundant Manner And Method For Operating A Communication Device | |
US9356830B2 (en) | Communication device for a redundantly operable industrial communication network and method for operating the communication device | |
US9413609B2 (en) | Communication device and method for transmitting messages in a redundantly operable industrial communication network | |
CN100558051C (en) | Two-way conversion link is carried out the method for fault detect | |
CN103631251B (en) | Portable instrument safeguards servicing unit, system and method | |
CN101536427B (en) | Link aggregation | |
CN109104348A (en) | Train network data transmission method, system and its apparatus based on CANopen agreement | |
US8812759B2 (en) | Bus subscriber device for connection to a line-redundant data bus, and method for controlling the communication of a bus subscriber with a line-redundant serial data bus | |
CN107864094B (en) | Traffic routing method, traffic routing device and machine-readable storage medium | |
CN106549774A (en) | A kind of link failure report method and forwarding unit based on software defined network | |
CN104468390B (en) | The method of multi-controller load balancing based on distribution centralized architecture model in software defined network | |
CN111988191A (en) | Fault detection method and device for distributed communication network | |
CN103346944A (en) | Multi-channel looped network node device with multi-point collaboration detection and detection method | |
CN105379201A (en) | Path switching method and device | |
US10491317B2 (en) | Method for operating a network arrangement, network system and network arrangement | |
US11522762B2 (en) | Coordination device and method for providing control applications via a communication network for transmitting time-critical data | |
CN100596357C (en) | Data translation device and system based on ethernet and serial communication technology | |
CN109661087A (en) | Control method, device, storage medium and the central controller of traffic controller | |
CN101815027A (en) | Method and device for determining availability of bundled link | |
CN105591786A (en) | Service chain management method, drainage point, controller and value-added service node | |
CN109302436B (en) | Train gateway forwarding strategy configuration method and device | |
CN103379008B (en) | Change the method and device specifying forwarding unit | |
JP2016119654A (en) | Technique for synchronous execution of command in network fabric node | |
CN108259352B (en) | SDN and non-SDN interworking method and device | |
CN104780097B (en) | Hot spare method and first routing device under non-fully-connected network topological condition |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190419 |