CN110390823A - A kind of semaphore and Signalized control method - Google Patents

A kind of semaphore and Signalized control method Download PDF

Info

Publication number
CN110390823A
CN110390823A CN201810349905.8A CN201810349905A CN110390823A CN 110390823 A CN110390823 A CN 110390823A CN 201810349905 A CN201810349905 A CN 201810349905A CN 110390823 A CN110390823 A CN 110390823A
Authority
CN
China
Prior art keywords
control module
main control
light control
module
semaphore
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.)
Granted
Application number
CN201810349905.8A
Other languages
Chinese (zh)
Other versions
CN110390823B (en
Inventor
郭孝仙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201810349905.8A priority Critical patent/CN110390823B/en
Publication of CN110390823A publication Critical patent/CN110390823A/en
Application granted granted Critical
Publication of CN110390823B publication Critical patent/CN110390823B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/07Controlling traffic signals
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/097Supervising of traffic control systems, e.g. by giving an alarm if two crossing streets have green light simultaneously

Abstract

It includes main control module and multiple light control modules that the application, which provides a kind of semaphore and Signalized control method, the semaphore, in which: the light control module, for when monitoring the main control module exception, determining whether itself is to act on behalf of main control module;The light control module, the main control module for being also used to, when determining itself to act on behalf of main control module, be saved according to itself is lighted or is extinguished in the Signalized control instruction control corresponding signal lamp of abnormal preceding transmission, and sends Signalized control instruction to other light control modules;The light control module is also used to when determining itself for non-proxy main control module, lighting or extinguish according to the Signalized control instruction control corresponding signal lamp received.The stability and reliability of semaphore can be improved in the program.

Description

A kind of semaphore and Signalized control method
Technical field
This application involves intelligent transport technology more particularly to a kind of semaphore and Signalized control methods.
Background technique
Currently, common semaphore generally comprises main control module, Huang dodges module and several light control modules, wherein master control Module is responsible for the operation of system, connects light control module by RS485 bus (a kind of universal serial bus) and controls external signal lamp, according to Existing control logic control signal lamp is lighted or is extinguished.Huang dodges module and is used for when main control module exception to external signal lamp It carries out forcing yellow sudden strain of a muscle, the generation to avoid traffic accident with traffic jam.
As it can be seen that Huang, which dodges module, can carry out external signal lamp to force yellow sudden strain of a muscle when the main control module exception of existing semaphore, To which semaphore is unable to control normally lighting or extinguish for signal lamp, vehicle pass-through is influenced.
Summary of the invention
In view of this, the application provides a kind of semaphore and Signalized control method.
Specifically, the application is achieved by the following technical solution:
According to the embodiment of the present application in a first aspect, provide a kind of semaphore, including main control module and multiple lamp control moulds Block, in which:
The light control module, for when monitoring the main control module exception, determining whether itself is to act on behalf of master control mould Block;
The light control module is also used to the main control module when determining itself to act on behalf of main control module, saved according to itself It lights or extinguishes in the Signalized control instruction control corresponding signal lamp of abnormal preceding transmission, and send and believe to other light control modules Signal lamp control instruction;
The light control module is also used to when determining itself is non-proxy main control module, according to the signal lamp control received System instruction control corresponding signal lamp is lighted or is extinguished.
Optionally, the light control module, it is true according to Self address specifically for when monitoring the main control module exception Whether fixed itself is to act on behalf of main control module.
Optionally, the light control module, specifically for when monitor main control module exception, and determine itself for position near When the light control module of the nearly main control module, itself is determined to act on behalf of main control module;Otherwise, it determines itself is non-proxy master control mould Block.
Optionally, the semaphore further includes yellow sudden strain of a muscle module;
The light control module, for when an exception occurs, it is corresponding complete to control the semaphore by the yellow sudden strain of a muscle module Portion's signal lamp carries out forcing yellow sudden strain of a muscle.
Optionally, it is described it is yellow dodge module by multichannel and door respectively with the main control module and the multiple lamp control mould Block connection;
The main control module is also used to when working normally, and not monitoring light control module exception, alternatively, different when occurring Chang Shi, Xiang Suoshu multichannel and door export high level;
The light control module is also used to when working properly, and Xiang Suoshu multichannel and door export high level;Work as abnormal work When, Xiang Suoshu multichannel and door export low level;
The yellow sudden strain of a muscle module is also used to control the signal when receiving the low level of the multichannel and door output The corresponding whole signal lamps of machine carry out forcing yellow sudden strain of a muscle.
Optionally, the main control module includes first control unit, the first pulse width modulation (PWM) conversion circuit and non- Door;Wherein:
The first control unit, for occurring alternatively, working as when working normally, and not monitoring light control module exception When abnormal, the first PWM conversion circuit of Xiang Suoshu exports non-designated square wave;
The first PWM conversion circuit, for when receiving non-designated square wave, Xiang Suoshu NOT gate to export low level;When When receiving specified square wave, Xiang Suoshu NOT gate exports high level;
The NOT gate, for when receiving low level, Xiang Suoshu multichannel and door to export high level;It is high electric when receiving Usually, Xiang Suoshu multichannel and door export low level.
Optionally, the first control unit is also used to when working normally, and monitoring light control module exception, to institute It states the first PWM conversion circuit and exports specified square wave.
Optionally, the light control module includes: the second control unit and the 2nd PWM conversion circuit;Wherein:
Second control unit, for when working properly, the 2nd PWM conversion circuit of Xiang Suoshu to export specified square wave; When an exception occurs, the 2nd PWM conversion circuit of Xiang Suoshu exports non-designated square wave;
The 2nd PWM conversion circuit, for when receiving specified square wave, Xiang Suoshu multichannel and door output to be high electric It is flat;When receiving non-designated square wave, Xiang Suoshu multichannel and door export high level.
Optionally, the main control module is led to by controller local area network's CAN bus and the multiple light control module Letter connection.
According to the second aspect of the embodiment of the present application, a kind of Signalized control method is provided, is applied to include main control module And the semaphore of multiple light control modules, this method comprises:
When the light control module monitors main control module exception, determine whether itself is to act on behalf of main control module;
When the light control module determines itself to act on behalf of main control module, the main control module saved according to itself is before exception The Signalized control instruction control corresponding signal lamp of transmission is lighted or is extinguished, and sends Signalized control to other light control modules Instruction;
When it is non-proxy main control module that the light control module, which determines itself, according to the Signalized control instruction control received Corresponding signal lamp processed is lighted or is extinguished.
Optionally, the semaphore further includes yellow sudden strain of a muscle module;
The method also includes:
When the light control module exception, by it is described it is yellow dodge module control the corresponding whole signal lamps of the semaphore into Row forces yellow dodge.
The semaphore of the embodiment of the present application, by main control module exception, by one of them in multiple light control modules For light control module as lighting or extinguishing for main control module control signal lamp is acted on behalf of, avoid semaphore main control module leads to letter extremely Signal lamp can not work normally, and improve the stability and reliability of semaphore.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of semaphore shown in one exemplary embodiment of the application;
Fig. 2 is a kind of structural schematic diagram of semaphore shown in the application another exemplary embodiment;
Fig. 3 is a kind of structural schematic diagram of main control module shown in one exemplary embodiment of the application;
Fig. 4 is a kind of structural schematic diagram of light control module shown in one exemplary embodiment of the application;
Fig. 5 is a kind of structural schematic diagram of semaphore shown in one exemplary embodiment of the application;
Fig. 6 is a kind of flow diagram of Signalized control method shown in one exemplary embodiment of the application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.
In order to make those skilled in the art more fully understand technical solution provided by the embodiments of the present application, and keep the application real The above objects, features, and advantages for applying example can be more obvious and easy to understand, with reference to the accompanying drawing to technical side in the embodiment of the present application Case is described in further detail.
It referring to Figure 1, is a kind of structural schematic diagram of semaphore provided by the embodiments of the present application, as shown in Figure 1, the signal Machine may include main control module 110 and multiple light control modules 120;Wherein:
Light control module 120, for determining whether itself is to act on behalf of main control module when monitoring that main control module 110 is abnormal;
Light control module 120 is also used to when determining itself to act on behalf of main control module, and the main control module saved according to itself exists The Signalized control instruction control corresponding signal lamp of abnormal preceding transmission is lighted or is extinguished, and sends signal to other light control modules Lamp control instruction;
Light control module 120 is also used to when determining itself is non-proxy main control module, is referred to according to the signal control received Enable lighting or extinguishing for control corresponding signal lamp.
In the embodiment of the present application, in order to avoid semaphore main control module exception when, semaphore can not normal control signal Lighting or extinguishing for lamp, can be by one of light control module in light control module in main control module exception, adapter tube master control mould The work that block control signal lamp is lighted or extinguished.
For ease of description, the light control module that will take over the work that main control module control signal lamp is lighted or extinguished herein claims To act on behalf of main control module.
Correspondingly, in the embodiment of the present application, when light control module 120 (can be any light control module 120 in semaphore) When monitoring that main control module 110 is abnormal, light control module 120 can determine whether itself is to act on behalf of master control mould according to preset strategy Block.
Wherein, when main control module 110 and light control module 120 work normally, main control module 110 and light control module 120 Between can monitor the state of other side by periodically message (being properly termed as keep alive Packet) interaction, and when continuously presetting Quantity (such as 3) does not receive the keep alive Packet of other side's transmission in the period when, determine that other side is abnormal.
The application in one embodiment, light control module 120, can be specifically used for when monitor main control module exception When, determine whether itself is to act on behalf of main control module according to Self address.
In this embodiment, when light control module 120 monitors that main control module 110 is abnormal, light control module 120 can basis Self address determines whether itself is to act on behalf of main control module.
Wherein, the address of light control module 120 can be the slot number or other preparatory of 120 place slot position of light control module The address of configuration.
In one example, light control module 120 can monitor that main control module 110 is abnormal specifically for working as, and determine certainly When body position is near the light control module 120 of main control module 110, itself is determined to act on behalf of main control module;Otherwise, it determines itself is Non-proxy main control module.
Specifically, it is contemplated that the distance between light control module 120 and main control module 110 are closer, light control module can more and When to perceive main control module 110 abnormal, and then adapter tube main control module 110 can control signal lamp more in time and light or extinguish Work, therefore, when the address information of light control module 120 can identify the distance between light control module 120 and main control module 110 When, for example, the address of light control module 120 is the slot number of 120 place slot position of light control module, it can preset and act on behalf of master control mould Block determines strategy as position to be determined as acting on behalf of main control module near the light control module of main control module.
Correspondingly, when light control module 120 monitors that main control module 110 is abnormal, light control module 120 can be according to itself ground Location determines whether itself is light control module 120 of the position near main control module 110;If so, determining itself to act on behalf of master control Module;Otherwise, it determines itself is non-proxy main control module.
It should be appreciated that the above-mentioned light control module 120 by position near main control module 110 is determined as acting on behalf of main control module Implementation be only to determine to act on behalf of a kind of specific example of main control module in the embodiment of the present application, and be not to the application The restriction of protection scope, namely in the embodiment of the present application, can also be determined as otherwise and act on behalf of main control module Light control module 120, for example, being determined as the smallest light control module 120 in address to act on behalf of main control module etc..
In the embodiment of the present application, when light control module 120 determines itself to act on behalf of main control module, light control module 120 can be with Signalized control instruction control corresponding signal lamp by the main control module 110 itself saved in abnormal preceding transmission is lighted or is put out It goes out, and sends Signalized control instruction to other light control modules 120.
Specifically, it is contemplated that for semaphore, the control strategy that control signal lamp is lighted or extinguished usually changes Frequency can be relatively low, i.e., usually can all remain unchanged within one long time, therefore, when main control module 110 is abnormal, It can be directly according to the Signalized control of the abnormal preceding transmission of main control module 110 as the light control module 120 for acting on behalf of main control module 120 Instruction control signal lamp is lighted or is extinguished.
Correspondingly, in the embodiment of the present application, when light control module 120 receives the signal lamp control of the transmission of main control module 110 When system instruction, light control module 120 can save Signalized control instruction, such as save in memory.
Preferably, the Signalized control that light control module 120 can only save that recently received main control module 110 is sent refers to It enables, i.e., when light control module 120 receives the Signalized control instruction of the transmission of main control module 110 each time, saves and this time receive The Signalized control instruction arrived, and the Signalized control instruction that the last time for deleting itself preservation receives.
It wherein, include the signal for being directed to each light control module 120 respectively in the Signalized control instruction that main control module 110 is sent Lamp control instruction;It, can be according to for certainly when light control module 120 receives the Signalized control instruction of the transmission of main control module 110 Signalized control instruction (such as the Signalized control instruction of corresponding self identification) control corresponding signal lamp of body is lighted or is extinguished.
As an example it is assumed that including 4 light control modules 120 (respectively light control module 1~4), then master control mould in semaphore The Signalized control instruction that block 110 is sent can be with are as follows:
Light control module 1- Signalized control instruction 1
Light control module 2- Signalized control instruction 2
Light control module 3- Signalized control instruction 3
Light control module 4- Signalized control instruction 4
When light control module 120 receives the Signalized control instruction of main control module transmission, the letter for itself can be determined Signal lamp control instruction is Signalized control instruction 1 as light control module 1 can determine that the Signalized control for itself instructs, and Lighting or extinguish according to the 1 corresponding signal lamp of control of Signalized control instruction.
Wherein, light control module 120 and the corresponding relationship of the signal lamp controlled can be preset, usual lamp control mould Block 120 controls the signal lamp of one, crossing direction (such as south orientation, north orientation).
In the embodiment of the present application, when light control module 120 monitors that main control module 110 is abnormal, and determine itself for agency master When controlling module, 120 one side of light control module can according to the main control module that itself is saved abnormal preceding transmission Signalized control Instruction control corresponding signal lamp is lighted or is extinguished, and Signalized control instruction on the other hand can be sent to other light control modules 120.
When other light control modules 120 as non-proxy main control module receive the signal lamp control acting on behalf of main control module and sending It, can lighting or extinguish according to the Signalized control instruction control corresponding signal lamp received when signaling processed.
For example, for the still above example, it is assumed that light control module 1 is to act on behalf of main control module, then 1 one side of light control module Face can control lighting or extinguishing for corresponding signal lamp according to Signalized control signaling 1;It on the other hand can be by " light control module 2- Signalized control instruction 2, light control module 3- Signalized control instruction 3, light control module 4- Signalized control instruction 4 " are sent to it Its light control module (light control module 2~4).When light control module 2 receives Signalized control instruction, the available letter for itself Signal lamp control instruction, and lighting or extinguish according to 2 control corresponding signal lamps of Signalized control instruction.
Similarly, the processing of light control module 3 and light control module 4 can participate in light control module 2.
As it can be seen that, when main control module exception, signal lamp module can adapter tube main control module in semaphore shown in Fig. 1 The work lighting or extinguishes of control signal lamp, avoiding main control module and directly resulting in signal lamp extremely can not work normally, raising The stability and reliability of semaphore.
Further, as shown in Fig. 2, the application in one embodiment, semaphore can also include yellow dodging module 130;Wherein:
Light control module 120, can be also used for when an exception occurs, and it is corresponding complete to dodge the control semaphore of module 130 by Huang Portion's signal lamp carries out forcing yellow sudden strain of a muscle.
In this embodiment, in order to guarantee in the case where 110 exception of main control module, when there is 120 exception of light control module, Huang sudden strain of a muscle module 130 can control corresponding whole yellow dodge of signal lamps progress of semaphore and control, and light control module 120 can be in exception When, the corresponding whole signals of the control semaphore of module 130 are dodged by Huang and carry out forcing yellow sudden strain of a muscle, realize 120 pairs of Huangs of light control module The control of sudden strain of a muscle.
For example, when light control module 120 (any one light control module 120) is abnormal, which can be to Huang sudden strain of a muscle module 130 sends yellow dodge and instructs and (such as export low level to Huang sudden strain of a muscle module 130), and Huang sudden strain of a muscle module 130 receives Huang sudden strain of a muscle and refers to When enabling, it can control the corresponding whole signals of semaphore and carry out forcing yellow sudden strain of a muscle.
As it can be seen that in the embodiment of the present application, may be implemented when main control module 110 is abnormal, by 120 pairs of light control module yellow sudden strains of a muscle It is controlled, in the case where avoiding 110 exception of main control module, due to the abnormal caused signal lamp bright light punching of light control module 120 It is prominent, further improve the reliability of semaphore.
In a kind of embodiment of the embodiment, Huang dodges module 130 (can not shown in figure by multichannel and door It is connect respectively with main control module 110 and multiple light control modules 120 out);
Correspondingly, main control module 110 can be also used for when working normally, and not monitoring that light control module 120 is abnormal, Alternatively, when an exception occurs, exporting high level to multichannel and door;
Light control module 120, can be also used for when working properly, export high level to multichannel and door;Work as abnormal work When, low level is exported to multichannel and door;
Huang dodges module 130, is also used to when receiving the low level of multichannel and door output, control semaphore is corresponding complete Portion's signal lamp carries out forcing yellow sudden strain of a muscle.
In this embodiment, it is yellow dodge module 130 can by multichannel and door respectively with main control module 110 and multiple Light control module 120 connects.
When main control module 110 and each light control module 120 work normally, main control module 110 and each light control module 120 can export high level to multichannel and door;At this point, multichannel and Men Xianghuang, which dodge module 130, exports high level, Huang Shanmo Block 130 can not work, and each signal lamp is lighted or extinguished normal.
When main control module 110 works normally, and at least one light control module 120 is abnormal, abnormal light control module 120 can To export low level to multichannel and door, at this point, multichannel with door can receive multiple low levels, (multichannel is received with door Can be determined when low level in the presence of etc. control module 120 it is abnormal, similarly hereinafter), dodge module 130 to Huang and export low level, Huang dodges module 130 It controls the corresponding whole signal lamps of semaphore and forces yellow sudden strain of a muscle, avoid the light control module being abnormal 120 that signal lamp bright light is caused to be rushed It is prominent.
When main control module 110 is abnormal, when each light control module 120 works normally, main control module 110 is exported to multichannel and door High level, each light control module 120 also export high level to multichannel and door, export at this point, multichannel and Men Xianghuang dodge module 130 High level, Huang, which dodges module 130, to work, and each signal lamp is lighted or extinguished normal.
When main control module 110 is abnormal, and at least one light control module 120 is abnormal, abnormal light control module 120 is to multi-pass Road and door export low level, at this point, multichannel and Men Xianghuang, which dodge module 130, exports low level, Huang dodges module 130 and controls semaphore Corresponding whole signal lamp forces yellow sudden strain of a muscle, and the light control module being abnormal 120 is avoided to lead to signal lamp bright light conflict.
Optionally, in this embodiment, in order to further increase the reliability of semaphore, guarantee that light control module 120 is different Chang Shi, Huang dodge module 130 can control the corresponding whole signal lamps of semaphore force it is yellow dodge, when main control module 110 works normally, And when monitoring that light control module 120 is abnormal, main control module 110 can export low level to multichannel and door, in turn, in master control mould Block 110 works normally, and in the case where at least one 120 exception of light control module, main control module 110 and abnormal light control module 120 Low level can be exported to multichannel and door, guarantee that Huang sudden strain of a muscle module 130 controls the corresponding whole signal lamps of semaphore and forces Huang It dodges, avoids the abnormal caused signal lamp bright light of light control module 120 abnormal.
Fig. 3 is referred to, in one example, above-mentioned main control module 110 may include first control unit 111, the first PWM (Pulse Width Modulation, pulse width modulation) conversion circuit 112 and with door 113;Wherein:
First control unit 111 is used for when working normally, and not monitoring light control module exception, alternatively, different when occurring Chang Shi exports non-designated square wave to the first PWM conversion circuit 112;
First PWM conversion circuit 112, for when receiving non-designated square wave, Xiang Feimen 113 to export low level;When connecing When receiving specified square wave, Xiang Feimen 113 exports high level;
NOT gate 113, for exporting high level to multichannel and door when receiving low level;When receiving high level, Low level is exported to multichannel and door.
Specifically, in order to guarantee main control module 110 can according to strategy described in above embodiment export high level Or low level, can be arranged in main control module 110 first control unit 111, the first PWM conversion circuit 112 and with door 113。
First control unit 111 can work normally, and when not monitoring that light control module 120 is abnormal, alternatively, when occurring When abnormal, non-designated square wave is exported.
For example, specified square wave can be fixed frequency, the square wave of duty ratio 50%, then non-designated square wave be specified square wave it Outer random waveform.
First PWM conversion circuit 112 only when receiving specified square wave, just exports high level;It is non-designated when receiving When square wave, low level is exported.
The level of first PWM conversion circuit 112 output is by exporting to multichannel and door after NOT gate 113.
Thus, when main control module 110 works normally, and does not monitor that light control module 120 is abnormal, alternatively, main control module When 110 exception, main control module 110 steadily can export high level to multichannel and door.
Optionally, in this example, first control unit 111 can be also used for when normal work, and monitor lamp control mould When block exception, specified square wave is exported to the first PWM conversion circuit 112.
Correspondingly, the high level of the first PWM conversion circuit 112 output to multichannel and door by exporting after NOT gate 113 Low level avoids light control module 120 abnormal so that yellow sudden strain of a muscle module 130 controls the corresponding whole signal lamps of semaphore and forces yellow sudden strain of a muscle Caused signal lamp bright light is abnormal.
Similarly, refer to Fig. 4, in one example, above-mentioned light control module 120 may include: the second control unit 121 with And the 2nd PWM conversion circuit 122;Wherein:
Second control unit 121, can be used for when working properly, export designated parties to the 2nd PWM conversion circuit 122 Wave;When an exception occurs, non-designated square wave is exported to the 2nd PWM conversion circuit 122;
2nd PWM conversion circuit 122, for exporting high level to multichannel and door when receiving specified square wave;When connecing When receiving non-designated square wave, high level is exported to multichannel and door.
Specifically, in order to guarantee light control module 120 can according to strategy described in above embodiment export high level Or low level, the second control unit 121 and the 2nd PWM conversion circuit 122 can be set in light control module 120.
Second control unit 121 can refer to when light control module 120 is worked normally to the output of the 2nd PWM conversion circuit 122 Determine square wave;When light control module 120 is abnormal, non-designated square wave is exported to the 2nd PWM conversion circuit.
2nd PWM conversion circuit 122 only when receiving specified square wave, just exports high level;It is non-designated when receiving When square wave, low level is exported.
Thus, when light control module 120 works normally, high level steadily can be exported to multichannel NAND gate;Work as lamp When controlling 120 exception of module, low level steadily can be exported to multichannel NAND gate.
It should be noted that above-mentioned first PWM conversion circuit 112 and the 2nd PWM conversion circuit 122 can be identical PWM conversion circuit.
Preferably, in the embodiment of the present application, in order to improve the reliability and working efficiency of semaphore, main control module 110 It can be communicated by CAN (Controller Area Network, control area net(CAN)) bus with multiple light control modules 120.
In order to make those skilled in the art more fully understand technical solution provided by the embodiments of the present application, below with reference to specific The working principle of semaphore provided by the embodiments of the present application is briefly described in example.
Fig. 5 is referred to, is a kind of structural schematic diagram of semaphore provided by the embodiments of the present application, as shown in figure 5, in the reality Apply in example, semaphore may include main control module, it is yellow dodge module and multiple light control modules, main control module by CAN bus with Multiple light control modules are communicated, and Huang dodges module and connected respectively with main control module and multiple light control modules by multichannel and door It connects.
Wherein, main control module may include first control unit (with CPU (Center Process Unit, center in figure Processing unit) for), PWM conversion circuit and with door;Light control module may include the second control unit (with MCU in figure For (Microcontroller Unit, micro-control unit)) and PWM conversion circuit.
Wherein, only in the GPIO of CPU or MCU (General Purpose Input Output, universal input/defeated Export fixed frequency out), when square wave (hereinafter referred to specified square wave) that duty ratio is 50%, PWM conversion circuit can just be exported High level, and when the GPIO of the CPU or MCU other waveforms of output, PWM conversion circuit can export low level 0.
In this embodiment, the working principle of semaphore is as follows:
(1), when main control module and each light control module work normally, the CPU of main control module does not export specified square wave, PWM conversion circuit exports low level, exports high level to multichannel and door after NOT gate;The MCU output of light control module is specified Square wave, PWM conversion circuit export high level to multichannel and door;At this point, multichannel and Men Xianghuang, which dodge module, exports high level, it is yellow Module is dodged not work.Main control module allows light control module to control external signal lamp according to normal work-based logic by CAN bus It lights or extinguishes.
(2), main control module is abnormal, and when each light control module is normal, the CPU of main control module does not export specified square wave, and PWM turns Circuit output low level is changed, exports high level to multichannel and door after NOT gate;The MCU of light control module exports specified square wave, PWM conversion circuit exports high level to multichannel and door;At this point, multichannel and Men Xianghuang, which dodge module, exports high level, Huang Shanmo Block does not work.After one of light control module determines itself to act on behalf of main control module, according to the Signalized control of itself preservation Instruction control external signal lamp is lighted or is extinguished.
(3) after main control module CPU exception, when at least one light control module also occurs abnormal, the CPU of main control module is not Specified square wave is exported, PWM conversion circuit exports low level, exports high level to multichannel and door after NOT gate;Abnormal lamp The MCU for controlling module exports non-designated square wave, and PWM conversion circuit exports low level to multichannel and door, at this point, multichannel and door to Huang dodges module and exports low level, and Huang, which dodges module control external signal lamp, forces yellow dodge.
(4) main control module is normal, and when at least one light control module exception, the MCU of abnormal light control module exports non-finger Determine square wave, PWM conversion circuit exports low level to multichannel and door, at this point, multichannel and Men Xianghuang, which dodge module, exports low level, Huang, which dodges module control external signal lamp, forces yellow dodge.Wherein, when main control module monitors light control module exception, can also pass through CPU exports specified square wave, thus, the PWM conversion circuit of main control module exports high level, after NOT gate, to multichannel with Door output low level, so that the yellow module control external signal lamp that dodges forces yellow dodge.
As it can be seen that in this embodiment, it, can be by lamp control mould when main control module is abnormal, and each light control module is not abnormal The work that block adapter tube main control module control signal lamp is lighted or extinguished, improves the reliability and stability of semaphore;In addition, working as When main control module exception, light control module also can control the yellow work for dodging module, lead in the case where there is light control module exception It crosses the yellow corresponding whole signal lamps of module control signal machine that dodge to carry out forcing yellow sudden strain of a muscle, avoids the extremely caused signal of light control module Lamp bright light conflict.
Wherein, since CPU or MCU belong to ARM (Advanced RISC (Reduced Instruction Set Computer, Reduced Instruction Set Computer) Machines, advanced reduced instruction set machine) framework controller, as CPU or MCU GPIO pin may export high level 1, low level 0 in an exceptional case, it is also possible to some intermediate levels are exported, but cannot Fixed frequency is exported, therefore the square wave that duty ratio is 50% when the CPU exception of main control module, can be exported to PWM conversion circuit Non-designated square wave, and then high level is exported to multichannel and door by NOT gate, yellow module of dodging will not be controlled and enter yellow sudden strain of a muscle mode, from And main control module is abnormal, but in the normal situation of each light control module, semaphore still can be in the control for acting on behalf of main control module Lower normal work;When the CPU exception of light control module, non-designated square wave can be exported to PWM conversion circuit, and then to multichannel and door Low level is exported, yellow sudden strain of a muscle module is controlled and enters yellow sudden strain of a muscle mode, the corresponding whole external signal lamps of control semaphore are forced yellow sudden strain of a muscle, kept away Exempt from due to the extremely caused signal lamp bright light conflict of light control module.
It should be noted that in practical applications, semaphore provided by the embodiments of the present application is in addition to may include above-mentioned master It controls except the modules such as module, light control module and yellow sudden strain of a muscle module, can also include display module, key module and car test module Etc. one or more of modules, each module for including in semaphore can by the corresponding connector that is arranged on backboard with Backboard connection, and realizes the interconnected communication between each module by each connector, wherein the display module, key module and The concrete function of the modules such as car test module may refer to the function description of corresponding module in the existing semaphore including this kind of module, The embodiment of the present application does not repeat them here this.
Fig. 6 is referred to, is a kind of flow diagram of Signalized control method provided by the embodiments of the present application, wherein should Signalized control method can be applied to above-mentioned semaphore, as shown in fig. 6, the Signalized control method may include following step It is rapid:
Step S600, when light control module monitors main control module exception, determine whether itself is to act on behalf of main control module.If It is to go to step S610;Otherwise, step S620 is gone to.
In the embodiment of the present application, in order to avoid semaphore main control module exception when, semaphore can not normal control signal Lamp is lighted or is extinguished, and can lead by one of light control module in light control module in main control module exception as agency The work that control module adapter tube main control module control signal lamp is lighted or extinguished.
Correspondingly, in the embodiment of the present application, when light control module (can be any light control module in semaphore) monitors When main control module exception, light control module can determine whether itself is to act on behalf of main control module according to preset strategy.
The application in one embodiment, can be according to itself when light control module monitors main control module exception Address determines whether itself is to act on behalf of main control module.
In this embodiment, when light control module monitors main control module exception, light control module can be according to Self address Determine whether itself is to act on behalf of main control module.
Wherein, the address of light control module can be the slot number or other preconfigured of slot position where light control module Address.
In one example, when light control module monitor main control module exception, and determine self-position near master control mould When the light control module of block, light control module can determine itself to act on behalf of main control module;Otherwise, it determines itself is non-proxy master control mould Block.
Specifically, it is contemplated that the distance between light control module and main control module are closer, and light control module can be felt more in time Know main control module exception, and then the work that signal lamp is lighted or extinguished can be controlled by adapter tube main control module more in time, therefore, When the address information of light control module can identify the distance between light control module and main control module, for example, the ground of light control module Location be light control module where slot position slot number, can preset act on behalf of main control module determine strategy for by position near The light control module of main control module is determined as acting on behalf of main control module.
Correspondingly, when light control module monitors main control module exception, light control module can determine certainly according to Self address Whether body is light control module of the position near main control module;If so, determining itself to act on behalf of main control module;Otherwise, it determines It itself is non-proxy main control module.
Step S610, Signalized control of the light control module according to the main control module itself saved in abnormal preceding transmission instructs Control corresponding signal lamp is lighted or is extinguished, and sends Signalized control instruction to other light control modules.
In the embodiment of the present application, when light control module determines itself to act on behalf of main control module, light control module can be by itself The main control module of preservation is lighted or is extinguished in the Signalized control instruction control corresponding signal lamp of abnormal preceding transmission, and to other Light control module sends Signalized control instruction.
Specifically, it is contemplated that for semaphore, the control strategy that control signal lamp is lighted or extinguished usually changes Frequency can be relatively low, i.e., usually can all remain unchanged within one long time, therefore, when main control module exception, makees Control letter directly can be instructed according to the Signalized control of the extremely preceding transmission of main control module to act on behalf of the light control module of main control module Signal lamp is lighted or is extinguished.
Correspondingly, in the embodiment of the present application, when light control module receives the Signalized control instruction of main control module transmission When, light control module can save Signalized control instruction, such as save in memory.
Preferably, light control module can only save the Signalized control instruction that recently received main control module is sent, i.e., When light control module receives the Signalized control instruction of main control module transmission each time, the signal lamp control this time received is saved System instruction, and the Signalized control instruction that the last time for deleting itself preservation receives.
It wherein, include the Signalized control for being directed to each light control module respectively in the Signalized control instruction that main control module is sent Instruction;It, can be according to the signal lamp control for itself when light control module receives the Signalized control instruction of main control module transmission System instruction (such as the Signalized control instruction of corresponding self identification) control corresponding signal lamp is lighted or is extinguished.
In the embodiment of the present application, when light control module monitors main control module exception, and determine itself to act on behalf of main control module When, on the one hand light control module can control phase in the Signalized control instruction of abnormal preceding transmission according to the main control module that itself is saved Induction signal lamp is lighted or is extinguished, and Signalized control instruction on the other hand can be sent to other light control modules.
Step S620, the light control module lighting or put out according to the Signalized control instruction control corresponding signal lamp received It goes out.
In the embodiment of the present application, the light control module as non-proxy main control module receives the letter for acting on behalf of main control module transmission It, can lighting or extinguish according to the Signalized control instruction control corresponding signal lamp received when signal lamp control signaling.
Further, the application in one embodiment, when above-mentioned semaphore further include it is yellow dodge module when, lamp control mould Block can also dodge the corresponding whole signal lamps of module control signal machine by Huang and carry out forcing yellow sudden strain of a muscle when being abnormal.
In this embodiment, in order to guarantee in the case where main control module exception, when there is light control module exception, Huang Shanmo Block can control the corresponding whole signal lamps of semaphore and carry out yellow sudden strain of a muscle control, and light control module can pass through Huang Shanmo when abnormal The corresponding whole signals of block control signal machine carry out forcing yellow sudden strain of a muscle, realize the control that light control module dodges Huang.
For example, the light control module can dodge module to Huang when light control module (any one light control module) is abnormal It sends yellow dodge to instruct and (such as export low level to yellow module of dodging), when Huang sudden strain of a muscle module receives Huang sudden strain of a muscle instruction, can control signal The corresponding whole signals of machine carry out forcing yellow sudden strain of a muscle.
It should be noted that in the embodiment of the present application, the specific knot of main control module and light control module in semaphore Structure may refer to the associated description in above-described embodiment, and details are not described herein for the embodiment of the present application.
In the embodiment of the present application, by main control module exception, by one of lamp control mould in multiple light control modules Block as lighting or extinguishing for main control module control signal lamp is acted on behalf of, avoid semaphore main control module extremely and cause signal lamp without Method works normally, and improves the stability and reliability of semaphore.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (11)

1. a kind of semaphore, which is characterized in that including main control module and multiple light control modules, in which:
The light control module, for when monitoring the main control module exception, determining whether itself is to act on behalf of main control module;
The light control module is also used to when determining itself to act on behalf of main control module, and the main control module saved according to itself is different The Signalized control instruction control corresponding signal lamp sent before often is lighted or is extinguished, and sends signal lamp to other light control modules Control instruction;
The light control module is also used to be referred to when determining itself is non-proxy main control module according to the Signalized control received Enable lighting or extinguishing for control corresponding signal lamp.
2. semaphore according to claim 1, which is characterized in that
The light control module, specifically for whether determining itself according to Self address when monitoring the main control module exception To act on behalf of main control module.
3. semaphore according to claim 2, which is characterized in that
The light control module monitors main control module exception specifically for working as, and determines itself to be position near the master control When the light control module of module, itself is determined to act on behalf of main control module;Otherwise, it determines itself is non-proxy main control module.
4. semaphore according to claim 1, which is characterized in that the semaphore further includes yellow sudden strain of a muscle module;
The light control module, for when an exception occurs, being controlled by the yellow sudden strain of a muscle module, the semaphore is corresponding all to be believed Signal lamp carries out forcing yellow sudden strain of a muscle.
5. semaphore according to claim 4, which is characterized in that it is described it is yellow dodge module by multichannel and door respectively with institute State main control module and the connection of the multiple light control module;
The main control module is also used to when working normally, and not monitoring light control module exception, alternatively, when an exception occurs, High level is exported to the multichannel and door;
The light control module is also used to when working properly, and Xiang Suoshu multichannel and door export high level;When abnormal work, Low level is exported to the multichannel and door;
The yellow sudden strain of a muscle module is also used to control the semaphore pair when receiving the low level of the multichannel and door output The whole signal lamps answered carry out forcing yellow sudden strain of a muscle.
6. semaphore according to claim 5, which is characterized in that the main control module includes first control unit, first Pulse width modulation (PWM) conversion circuit and NOT gate;Wherein:
The first control unit, for being abnormal alternatively, working as when working normally, and not monitoring light control module exception When, the first PWM conversion circuit of Xiang Suoshu exports non-designated square wave;
The first PWM conversion circuit, for when receiving non-designated square wave, Xiang Suoshu NOT gate to export low level;Work as reception When to specified square wave, Xiang Suoshu NOT gate exports high level;
The NOT gate, for when receiving low level, Xiang Suoshu multichannel and door to export high level;When receiving high level When, Xiang Suoshu multichannel and door export low level.
7. semaphore according to claim 6, which is characterized in that
The first control unit is also used to when working normally, and monitoring light control module exception, and the first PWM of Xiang Suoshu turns It changes circuit output and specifies square wave.
8. semaphore according to claim 5, which is characterized in that the light control module include: the second control unit and 2nd PWM conversion circuit;Wherein:
Second control unit, for when working properly, the 2nd PWM conversion circuit of Xiang Suoshu to export specified square wave;Work as hair When raw abnormal, the 2nd PWM conversion circuit of Xiang Suoshu exports non-designated square wave;
The 2nd PWM conversion circuit, for when receiving specified square wave, Xiang Suoshu multichannel and door to export high level;When When receiving non-designated square wave, Xiang Suoshu multichannel and door export high level.
9. semaphore according to claim 1-8, which is characterized in that the main control module passes through controller local Network C AN bus is communicatively coupled with the multiple light control module.
10. a kind of Signalized control method, which is characterized in that applied to the signal for including main control module and multiple light control modules Machine, this method comprises:
When the light control module monitors main control module exception, determine whether itself is to act on behalf of main control module;
When the light control module determines itself to act on behalf of main control module, according to the main control module itself saved in abnormal preceding transmission Signalized control instruction control corresponding signal lamp light or extinguish, and send Signalized control to other light control modules and refer to It enables;
When it is non-proxy main control module that the light control module, which determines itself, according to the Signalized control instruction control phase received Induction signal lamp is lighted or is extinguished.
11. according to the method described in claim 10, it is characterized in that, the semaphore further includes yellow sudden strain of a muscle module;
The method also includes:
When the light control module exception, it is strong that the corresponding whole signal lamps progress of the semaphore are controlled by the yellow sudden strain of a muscle module Manufacture-yellow is dodged.
CN201810349905.8A 2018-04-18 2018-04-18 Signal machine and signal lamp control method Active CN110390823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810349905.8A CN110390823B (en) 2018-04-18 2018-04-18 Signal machine and signal lamp control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810349905.8A CN110390823B (en) 2018-04-18 2018-04-18 Signal machine and signal lamp control method

Publications (2)

Publication Number Publication Date
CN110390823A true CN110390823A (en) 2019-10-29
CN110390823B CN110390823B (en) 2020-12-29

Family

ID=68283189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810349905.8A Active CN110390823B (en) 2018-04-18 2018-04-18 Signal machine and signal lamp control method

Country Status (1)

Country Link
CN (1) CN110390823B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110996464A (en) * 2019-11-29 2020-04-10 通号城市轨道交通技术有限公司 System and method for controlling signal lamp

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1263871A (en) * 1969-01-16 1972-02-16 Omron Tateisi Electronics Co Road traffic signal control system
JPH0955963A (en) * 1995-08-14 1997-02-25 Nippon Telegr & Teleph Corp <Ntt> Circuit for transmitting and receiving optical signal
CN2879308Y (en) * 2005-12-01 2007-03-14 张永军 New traffic signal machine
CN201577225U (en) * 2009-11-05 2010-09-08 无锡职业技术学院 Self-check protection device of traffic light
CN201733485U (en) * 2010-05-20 2011-02-02 深圳市远舟科技实业有限公司 LED navigation light and signal light controller for ship
JP2011087011A (en) * 2009-10-13 2011-04-28 Fujitsu Ltd Optical transmission device and dispersion compensation method
WO2011105670A1 (en) * 2010-02-26 2011-09-01 Park Jae-Soon Surface-mounted light-emitting unit array, method for repairing same, and light-emitting unit for repairing same
CN102622898A (en) * 2012-04-10 2012-08-01 安徽科力信息产业有限责任公司 Unique yellow-flash controller of signaler and signaler with same
CN203038470U (en) * 2012-10-12 2013-07-03 段宏伟 Dual-computer hot-standby traffic signal lamp control system
CN103247182A (en) * 2013-04-26 2013-08-14 青岛海信网络科技股份有限公司 Traffic signal controller and signal light control method thereof
CN204463445U (en) * 2015-03-31 2015-07-08 安徽超远信息技术有限公司 A kind of traffic signal controlling machine with standby controller module system
CN204537455U (en) * 2015-04-24 2015-08-05 李元祥 A kind of emergent Multifunctional traffic signal lamp
CN204614226U (en) * 2015-05-08 2015-09-02 浙江浙大中控信息技术有限公司 Modularization intelligent network traffic teleseme
CN105679075A (en) * 2016-04-20 2016-06-15 保定维特瑞交通设施工程有限责任公司 Traffic signal instrument
CN106373409A (en) * 2016-11-22 2017-02-01 安徽科力信息产业有限责任公司 Signal machine monitoring circuit
CN106485933A (en) * 2016-10-24 2017-03-08 浙江宇视科技有限公司 Signal lamp detection method, device and equipment
CN107424427A (en) * 2016-05-23 2017-12-01 天津市双舟通信工程有限公司 A kind of traffic lights instruction communication system of automatic switchover
CN107610485A (en) * 2017-10-20 2018-01-19 杭州普乐科技有限公司 A kind of radio communication traffic-control unit and control method

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1263871A (en) * 1969-01-16 1972-02-16 Omron Tateisi Electronics Co Road traffic signal control system
JPH0955963A (en) * 1995-08-14 1997-02-25 Nippon Telegr & Teleph Corp <Ntt> Circuit for transmitting and receiving optical signal
CN2879308Y (en) * 2005-12-01 2007-03-14 张永军 New traffic signal machine
JP2011087011A (en) * 2009-10-13 2011-04-28 Fujitsu Ltd Optical transmission device and dispersion compensation method
CN201577225U (en) * 2009-11-05 2010-09-08 无锡职业技术学院 Self-check protection device of traffic light
WO2011105670A1 (en) * 2010-02-26 2011-09-01 Park Jae-Soon Surface-mounted light-emitting unit array, method for repairing same, and light-emitting unit for repairing same
CN201733485U (en) * 2010-05-20 2011-02-02 深圳市远舟科技实业有限公司 LED navigation light and signal light controller for ship
CN102622898A (en) * 2012-04-10 2012-08-01 安徽科力信息产业有限责任公司 Unique yellow-flash controller of signaler and signaler with same
CN203038470U (en) * 2012-10-12 2013-07-03 段宏伟 Dual-computer hot-standby traffic signal lamp control system
CN103247182A (en) * 2013-04-26 2013-08-14 青岛海信网络科技股份有限公司 Traffic signal controller and signal light control method thereof
CN204463445U (en) * 2015-03-31 2015-07-08 安徽超远信息技术有限公司 A kind of traffic signal controlling machine with standby controller module system
CN204537455U (en) * 2015-04-24 2015-08-05 李元祥 A kind of emergent Multifunctional traffic signal lamp
CN204614226U (en) * 2015-05-08 2015-09-02 浙江浙大中控信息技术有限公司 Modularization intelligent network traffic teleseme
CN105679075A (en) * 2016-04-20 2016-06-15 保定维特瑞交通设施工程有限责任公司 Traffic signal instrument
CN107424427A (en) * 2016-05-23 2017-12-01 天津市双舟通信工程有限公司 A kind of traffic lights instruction communication system of automatic switchover
CN106485933A (en) * 2016-10-24 2017-03-08 浙江宇视科技有限公司 Signal lamp detection method, device and equipment
CN106373409A (en) * 2016-11-22 2017-02-01 安徽科力信息产业有限责任公司 Signal machine monitoring circuit
CN107610485A (en) * 2017-10-20 2018-01-19 杭州普乐科技有限公司 A kind of radio communication traffic-control unit and control method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110996464A (en) * 2019-11-29 2020-04-10 通号城市轨道交通技术有限公司 System and method for controlling signal lamp
CN110996464B (en) * 2019-11-29 2022-04-19 通号城市轨道交通技术有限公司 System and method for controlling signal lamp

Also Published As

Publication number Publication date
CN110390823B (en) 2020-12-29

Similar Documents

Publication Publication Date Title
CN201867968U (en) Solar wireless road traffic signal control machine
CN103763833B (en) A kind of control method and system controlling LED street lamp based on supply line
CN103052209B (en) A kind of LED illumination wireless synchronization master
CN107331185B (en) Abnormal state processing method of traffic signal lamp machine, host and slave
CN207302344U (en) A kind of intelligent traffic lamp real-time control system
CN204463445U (en) A kind of traffic signal controlling machine with standby controller module system
CN110390823A (en) A kind of semaphore and Signalized control method
CN103500153B (en) Control-module-based serial communication framework of serial power supply device
CN104022817B (en) A kind of method and device of ONU equipment registration lighting
CN202904890U (en) GPS-based bus signal priority control system
CN106020149B (en) A kind of intelligent radio sensing monitoring system and method for road lamp network
CN107633696A (en) A kind of system of Contrast tuned imaging traffic lights
CN204086384U (en) One can cascade distribution branch current pick-up unit
CN201773493U (en) Traffic signal controller
CN102331762B (en) Control method for master station write-in of address codes by RS-485 buses
CN205302271U (en) Send again single many times and carry out communication system
CN205812471U (en) A kind of Intelligent road lamp energy-saving control system
CN208796102U (en) A kind of load box
CN103996275A (en) Communication device and method based on streetlamp control system
CN103118471B (en) Failure monitoring device for controller of illuminator
CN207398930U (en) A kind of power ground fault data receive-transmit system
CN201294605Y (en) Information centralization platform for road safety information perception enhancement and dangerous early-warning system
CN206713140U (en) A kind of wisdom street lamp total management system
CN204518188U (en) A kind of intellectualized LED lamp control system
CN109922451A (en) A kind of switchgear house intelligence Mining and Control Device and system

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
GR01 Patent grant
GR01 Patent grant