CN110390823B - Signal machine and signal lamp control method - Google Patents

Signal machine and signal lamp control method Download PDF

Info

Publication number
CN110390823B
CN110390823B CN201810349905.8A CN201810349905A CN110390823B CN 110390823 B CN110390823 B CN 110390823B CN 201810349905 A CN201810349905 A CN 201810349905A CN 110390823 B CN110390823 B CN 110390823B
Authority
CN
China
Prior art keywords
control module
lamp control
main control
signal
module
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.)
Active
Application number
CN201810349905.8A
Other languages
Chinese (zh)
Other versions
CN110390823A (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

Images

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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The application provides a semaphore and signal lamp control method, this semaphore includes host system and a plurality of lamp control module, wherein: the lamp control module is used for determining whether the lamp control module is an agent main control module when the abnormality of the main control module is monitored; the lamp control module is also used for controlling the corresponding signal lamp to be turned on or off according to the signal lamp control instruction sent by the main control module stored by the lamp control module before the abnormity when the lamp control module is determined to be the proxy main control module, and sending the signal lamp control instruction to other lamp control modules; and the lamp control module is also used for controlling the corresponding signal lamp to be turned on or turned off according to the received signal lamp control instruction when the lamp control module is determined to be the non-proxy main control module. The scheme can improve the stability and reliability of the signal machine.

Description

Signal machine and signal lamp control method
Technical Field
The application relates to an intelligent traffic technology, in particular to a signal machine and a signal lamp control method.
Background
At present, a common signal generally includes a main control module, a yellow flashing module and a plurality of lamp control modules, wherein the main control module is responsible for the operation of the system, and is connected with the lamp control modules through an RS485 bus (a serial bus) to control an external signal lamp, and the signal lamp is controlled to be turned on or turned off according to the existing control logic. The yellow flashing module is used for forcibly flashing yellow of an external signal lamp when the main control module is abnormal, so that traffic accidents and traffic jams are avoided.
It is thus clear that, when the host system of current semaphore was unusual, yellow flashing module can carry out the forced yellow flashing to outside signal lamp to the normal lighting or the extinguishing of the unable control signal lamp of semaphore influences the vehicle current.
Disclosure of Invention
In view of the above, the present application provides a signal and a signal control method.
Specifically, the method is realized through the following technical scheme:
according to a first aspect of the embodiments of the present application, there is provided a signal, including a main control module and a plurality of lamp control modules, wherein:
the lamp control module is used for determining whether the lamp control module is an agent main control module when the abnormality of the main control module is monitored;
the lamp control module is also used for controlling the corresponding signal lamp to be turned on or off according to the signal lamp control instruction sent by the main control module stored by the lamp control module before the abnormity when the lamp control module is determined to be the proxy main control module, and sending the signal lamp control instruction to other lamp control modules;
and the lamp control module is also used for controlling the corresponding signal lamp to be turned on or turned off according to the received signal lamp control instruction when the lamp control module is determined to be the non-proxy main control module.
Optionally, the lamp control module is specifically configured to determine whether the lamp control module is an agent main control module according to its address when it is monitored that the main control module is abnormal.
Optionally, the light control module is specifically configured to determine that the light control module is an agent main control module when it is monitored that the main control module is abnormal and the light control module is determined to be the light control module whose position is closest to the main control module; otherwise, determining the self as a non-agent main control module.
Optionally, the signal further includes a yellow flash module;
and the lamp control module is used for controlling all signal lamps corresponding to the annunciator to carry out forced yellow flashing through the yellow flashing module when abnormality occurs.
Optionally, the yellow flashing module is respectively connected with the main control module and the plurality of lamp control modules through a multi-channel and gate;
the main control module is also used for outputting a high level to the multichannel AND gate when the main control module works normally and the lamp control module is not monitored to be abnormal or when the lamp control module is abnormal;
the lamp control module is also used for outputting high level to the multichannel AND gate when the lamp control module works normally; when the multi-channel AND gate works abnormally, outputting a low level to the multi-channel AND gate;
and the yellow flashing module is also used for controlling all signal lamps corresponding to the annunciator to forcibly flash yellow when receiving the low level output by the multi-channel AND gate.
Optionally, the main control module includes a first control unit, a first PWM conversion circuit, and a not gate; wherein:
the first control unit is used for outputting non-specified square waves to the first PWM conversion circuit when the first PWM conversion circuit works normally and the lamp control module is not monitored to be abnormal or when the lamp control module is abnormal;
the first PWM conversion circuit is used for outputting a low level to the NOT gate when receiving a non-specified square wave; when a specified square wave is received, outputting a high level to the NOT gate;
the NOT gate is used for outputting a high level to the multichannel AND gate when receiving a low level; and when receiving the high level, outputting the low level to the multichannel AND gate.
Optionally, the first control unit is further configured to output a specified square wave to the first PWM conversion circuit when the first PWM conversion circuit works normally and the lamp control module is monitored to be abnormal.
Optionally, the lamp control module includes: a second control unit and a second PWM conversion circuit; wherein:
the second control unit is used for outputting a specified square wave to the second PWM conversion circuit when the second PWM conversion circuit works normally; when abnormality occurs, outputting non-specified square waves to the second PWM conversion circuit;
the second PWM conversion circuit is used for outputting a high level to the multichannel AND gate when receiving a specified square wave; and when receiving the non-specified square wave, outputting a low level to the multichannel AND gate.
Optionally, the master control module is in communication connection with the plurality of lamp control modules through a controller area network CAN bus.
According to a second aspect of the embodiments of the present application, there is provided a signal lamp control method, applied to a signal machine including a main control module and a plurality of lamp control modules, the method including:
when the lamp control module monitors that the main control module is abnormal, determining whether the lamp control module is an agent main control module;
when the lamp control module determines that the lamp control module is the proxy main control module, controlling the corresponding signal lamp to be turned on or turned off according to a signal lamp control instruction sent by the main control module stored by the lamp control module before the abnormity, and sending a signal lamp control instruction to other lamp control modules;
and when the lamp control module determines that the lamp control module is a non-proxy main control module, controlling the corresponding signal lamp to be turned on or turned off according to the received signal lamp control instruction.
Optionally, the signal further includes a yellow flash module;
the method further comprises the following steps:
when the lamp control module is abnormal, all signal lamps corresponding to the annunciator are controlled by the yellow flashing module to carry out forced yellow flashing.
The semaphore of this application embodiment through when host system is unusual, by one of them lamp accuse module in a plurality of lamp accuse modules as the lighting or extinguishing of agent host system control signal lamp, has avoided semaphore host system to lead to the unable normal work of signal lamp unusually, has improved the stability and the reliability of semaphore.
Drawings
Fig. 1 is a schematic diagram of a signal shown in an exemplary embodiment of the present application;
FIG. 2 is a schematic diagram of a signal shown in yet another exemplary embodiment of the present application;
fig. 3 is a schematic structural diagram of a master control module according to an exemplary embodiment of the present application;
FIG. 4 is a schematic diagram of a lamp control module according to an exemplary embodiment of the present application;
FIG. 5 is a schematic diagram of a semaphore shown in an exemplary embodiment of the present application;
fig. 6 is a schematic flowchart illustrating a signal lamp control method according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In order to make the technical solutions provided in the embodiments of the present application better understood and make the above objects, features and advantages of the embodiments of the present application more comprehensible, the technical solutions in the embodiments of the present application are described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a schematic structural diagram of a traffic signal provided in an embodiment of the present application is shown in fig. 1, where the traffic signal may include a main control module 110 and a plurality of lamp control modules 120; wherein:
the lamp control module 120 is configured to determine whether the lamp control module is an agent main control module when it is monitored that the main control module 110 is abnormal;
the lamp control module 120 is further configured to, when determining that the self is the proxy main control module, control lighting or extinguishing of a corresponding signal lamp according to a signal lamp control instruction sent by the self-stored main control module before the abnormality, and send a signal lamp control instruction to another lamp control module;
the lamp control module 120 is further configured to control the corresponding signal lamp to be turned on or turned off according to the received signal control instruction when the module is determined to be the non-proxy main control module.
In this application embodiment, in order to avoid the master control module of semaphore to be unusual, the unable normal control signal lamp of semaphore lights or goes out, can take over the work that master control module controlled signal lamp lighted or goes out by one of them lamp control module in the lamp control module when master control module is unusual.
For convenience of description, the lamp control module that takes over the operation of the main control module to control the lighting or extinguishing of the signal lamps is referred to as a proxy main control module herein.
Accordingly, in this embodiment of the application, when the light control module 120 (which may be any light control module 120 in the traffic signal) monitors that the main control module 110 is abnormal, the light control module 120 may determine whether itself is an agent main control module according to a preset policy.
When the main control module 110 and the lamp control module 120 both work normally, the state of the other party can be monitored through periodic message (which may be called keep-alive message) interaction between the main control module 110 and the lamp control module 120, and when the keep-alive message sent by the other party is not received within a continuous preset number (e.g. 3) of cycles, it is determined that the other party is abnormal.
In one embodiment of the present application, the lamp control module 120 may be specifically configured to determine whether the lamp control module is an agent main control module according to its own address when it is monitored that the main control module is abnormal.
In this embodiment, when the light control module 120 monitors that the main control module 110 is abnormal, the light control module 120 may determine whether itself is a proxy main control module according to its own address.
The address of the light control module 120 may be a slot number of a slot in which the light control module 120 is located, or another preconfigured address.
In an example, the light control module 120 may be specifically configured to determine that the light control module 120 itself is an agent main control module when it is detected that the main control module 110 is abnormal and the light control module 120 whose position is closest to the main control module 110 is determined; otherwise, determining the self as a non-agent main control module.
Specifically, considering that the closer the distance between the lamp control module 120 and the main control module 110 is, the more timely the lamp control module can sense the abnormality of the main control module 110, and then can take over the work of the main control module 110 controlling the turn-on or turn-off of the signal lamp more timely, therefore, when the address information of the lamp control module 120 can identify the distance between the lamp control module 120 and the main control module 110, for example, the address of the lamp control module 120 is the slot number of the slot where the lamp control module 120 is located, the determination policy of the proxy main control module may be preset to determine the lamp control module located closest to the main control module as the proxy main control module.
Correspondingly, when the lamp control module 120 monitors that the main control module 110 is abnormal, the lamp control module 120 may determine whether the lamp control module 120 is the lamp control module 120 whose position is closest to the main control module 110 according to its address; if yes, determining the self as a proxy main control module; otherwise, determining the self as a non-agent main control module.
It should be appreciated that the implementation manner of determining the lamp control module 120 located closest to the master control module 110 as the proxy master module is only a specific example of determining the proxy master module in the embodiment of the present application, and is not a limitation to the scope of the present application, that is, in the embodiment of the present application, the lamp control module 120 as the proxy master module may also be determined in other manners, for example, the lamp control module 120 with the smallest address is determined as the proxy master module, and the like.
In this embodiment, when the lamp control module 120 determines that it is the proxy main control module, the lamp control module 120 may control the lighting or extinguishing of the corresponding signal lamp by using the signal lamp control instruction sent by the main control module 110 stored in the lamp control module 120 before the abnormality, and send the signal lamp control instruction to the other lamp control modules 120.
Specifically, considering that, for a traffic signal, the frequency of the control strategy for controlling the turn-on or turn-off of the traffic signal is usually low, that is, the control strategy is usually kept unchanged for a long time, so when the main control module 110 is abnormal, the lamp control module 120 serving as the proxy main control module 120 may directly control the turn-on or turn-off of the traffic signal according to the traffic signal control command sent before the main control module 110 is abnormal.
Accordingly, in this embodiment of the application, when the lamp control module 120 receives the signal lamp control instruction sent by the main control module 110, the lamp control module 120 may store the signal lamp control instruction, for example, in the memory.
Preferably, the lamp control module 120 may only store the signal lamp control instruction sent by the main control module 110 that is received most recently, that is, each time the lamp control module 120 receives a signal lamp control instruction sent by the main control module 110, the signal lamp control instruction received this time is stored, and the signal lamp control instruction received last time that is stored by itself is deleted.
The signal lamp control instruction sent by the main control module 110 includes signal lamp control instructions for the respective lamp control modules 120; when the lamp control module 120 receives the signal lamp control instruction sent by the main control module 110, the corresponding signal lamp may be controlled to be turned on or turned off according to the signal lamp control instruction for the lamp control module (e.g., the signal lamp control instruction corresponding to the identifier of the lamp control module).
For example, if the traffic signal includes 4 light control modules 120 (light control modules 1 to 4, respectively), the signal light control command sent by the main control module 110 may be:
lamp control module 1-Signal Lamp control instruction 1
Lamp control module 2-signal lamp control instruction 2
Lamp control module 3-signal lamp control instruction 3
Lamp control module 4-signal lamp control instruction 4
When the lamp control module 120 receives the signal lamp control instruction sent by the main control module, it may determine the signal lamp control instruction for itself, for example, the lamp control module 1 may determine that the signal lamp control instruction for itself is signal lamp control instruction 1, and control the corresponding signal lamp to be turned on or turned off according to the signal lamp control instruction 1.
The corresponding relationship between the lamp control modules 120 and the controlled signal lamps can be preset, and usually one lamp control module 120 controls the signal lamps at the intersection in one direction (such as south, north, etc.).
In this embodiment, when the lamp control module 120 monitors that the main control module 110 is abnormal and determines that the lamp control module is an agent main control module, on one hand, the lamp control module 120 may control the corresponding signal lamp to be turned on or turned off according to a signal lamp control instruction sent by the main control module stored in the lamp control module before the abnormality, and on the other hand, may send a signal lamp control instruction to another lamp control module 120.
When the other lamp control modules 120 serving as non-proxy main control modules receive the signal lamp control signaling sent by the proxy main control module, the lamp control modules may control the corresponding signal lamps to be turned on or turned off according to the received signal lamp control instruction.
For example, still in the above example, assuming that the lamp control module 1 is a proxy main control module, on one hand, the lamp control module 1 may control the corresponding signal lamp to be turned on or turned off according to the signal lamp control signaling 1; on the other hand, the 'lamp control module 2-signal lamp control instruction 2, the lamp control module 3-signal lamp control instruction 3 and the lamp control module 4-signal lamp control instruction 4' can be sent to other lamp control modules (lamp control modules 2-4). When the lamp control module 2 receives the signal lamp control instruction, the signal lamp control instruction for the lamp control module 2 can be acquired, and the corresponding signal lamp is controlled to be turned on or turned off according to the signal lamp control instruction 2.
Similarly, the processing of the lamp control modules 3 and 4 may be performed in the lamp control module 2.
It can be seen that, in the signaling machine shown in fig. 1, when the main control module is abnormal, the signal lamp module can take over the work of the main control module for controlling the signal lamp to be turned on or turned off, so that the situation that the signal lamp cannot normally work due to the fact that the main control module is abnormal directly is avoided, and the stability and the reliability of the signaling machine are improved.
Further, as shown in fig. 2, in one embodiment of the present application, the signal may further include a yellow flash module 130; wherein:
the lamp control module 120 may further be configured to control all signal lamps corresponding to the annunciator to perform forced yellow flashing through the yellow flashing module 130 when an abnormality occurs.
In this embodiment, in order to ensure that under the abnormal condition of the main control module 110, when the lamp control module 120 is abnormal, the yellow flashing module 130 can control all signal lamps corresponding to the annunciator to perform yellow flashing control, and the lamp control module 120 can control all signal lamps corresponding to the annunciator to perform forced yellow flashing through the yellow flashing module 130 when the lamp control module 120 is abnormal, so that the control of the lamp control module 120 on the yellow flashing is realized.
For example, when the lamp control module 120 (any one of the lamp control modules 120) is abnormal, the lamp control module 120 may send a yellow flashing instruction to the yellow flashing module 130 (for example, output a low level to the yellow flashing module 130), and when the yellow flashing module 130 receives the yellow flashing instruction, the yellow flashing module may control all signals corresponding to the annunciator to perform forced yellow flashing.
Therefore, in the embodiment of the present application, when the main control module 110 is abnormal, the light control module 120 can control the yellow flashing, so that the signal lamp lighting conflict caused by the abnormality of the light control module 120 under the condition that the main control module 110 is abnormal is avoided, and the reliability of the signal machine is further improved.
In an implementation manner of this embodiment, the yellow flashing module 130 may be respectively connected to the main control module 110 and the plurality of lamp control modules 120 through a multi-channel and gate (not shown in the figure);
correspondingly, the main control module 110 may be further configured to output a high level to the multi-channel and gate when the lamp control module 120 is not monitored to be abnormal and is normally operated, or when the lamp control module is abnormal;
the lamp control module 120 may also be configured to output a high level to the multi-channel and gate when the multi-channel and gate works normally; when the multi-channel AND gate works abnormally, outputting low level to the multi-channel AND gate;
and the yellow flashing module 130 is further configured to control all signal lamps corresponding to the signaler to perform forced yellow flashing when receiving the low level output by the multi-channel and gate.
In this embodiment, the yellow flashing module 130 can be connected to the main control module 110 and the plurality of lamp control modules 120 through a multi-channel and gate.
When the main control module 110 and each lamp control module 120 work normally, the main control module 110 and each lamp control module 120 can output high level to the multichannel and gate; at this time, the multi-channel and gate outputs a high level to the yellow flashing module 130, the yellow flashing module 130 may not operate, and each signal lamp is normally turned on or off.
When the main control module 110 normally works and at least one lamp control module 120 is abnormal, the abnormal lamp control module 120 can output a low level to the multichannel and gate, at this time, the multichannel and gate can receive a plurality of low levels (when the multichannel and gate receives a low level, it can be determined that the equal control module 120 is abnormal, the same applies below), output a low level to the yellow flashing module 130, the yellow flashing module 130 controls all signal lamps corresponding to the annunciator to intensify yellow flashing, and the occurrence of the collision of the signal lamps caused by the abnormal lamp control module 120 is avoided.
When the main control module 110 is abnormal and each lamp control module 120 works normally, the main control module 110 outputs a high level to the multi-channel and gate, each lamp control module 120 also outputs a high level to the multi-channel and gate, at this time, the multi-channel and gate outputs a high level to the yellow flashing module 130, the yellow flashing module 130 may not work, and each signal lamp lights or goes out normally.
When the main control module 110 is abnormal and at least one lamp control module 120 is abnormal, the abnormal lamp control module 120 outputs a low level to the multi-channel and gate, at this time, the multi-channel and gate outputs a low level to the yellow flashing module 130, the yellow flashing module 130 controls all signal lamps corresponding to the annunciator to force yellow flashing, and the condition that the abnormal lamp control module 120 causes the signal lamp lighting conflict is avoided.
Optionally, in this embodiment, in order to further improve the reliability of the traffic signal, when it is ensured that the lamp control module 120 is abnormal, the yellow flashing module 130 may control all signal lamps corresponding to the traffic signal to force yellow flashing, when the main control module 110 normally operates and the lamp control module 120 is monitored to be abnormal, the main control module 110 may output a low level to the multi-channel and gate, and further, when the main control module 110 normally operates and at least one lamp control module 120 is abnormal, both the main control module 110 and the abnormal lamp control module 120 may output a low level to the multi-channel and gate, it is ensured that all signal lamps corresponding to the traffic signal controlled by the yellow flashing module 130 force yellow flashing, and abnormal lighting of signal lamps caused by abnormal lamp control module 120 is avoided.
Referring to fig. 3, in an example, the main control module 110 may include a first control unit 111, a first PWM (Pulse Width Modulation) conversion circuit 112, and an and gate 113; wherein:
the first control unit 111 is configured to output an unspecified square wave to the first PWM conversion circuit 112 when the lamp control module is normally operated and is not monitored to be abnormal, or when the lamp control module is abnormal;
a first PWM conversion circuit 112 for outputting a low level to the not gate 113 when receiving the non-specified square wave; when receiving a specified square wave, outputs a high level to the not gate 113;
a not gate 113 for outputting a high level to the multi-channel and gate when receiving a low level; when receiving the high level, the low level is output to the multi-channel AND gate.
Specifically, in order to ensure that the main control module 110 can output a high level or a low level according to the strategy described in the above embodiment, a first control unit 111, a first PWM conversion circuit 112, and an and gate 113 may be provided in the main control module 110.
The first control unit 111 may output an unspecified square wave when it is operated normally and the abnormality of the lamp control module 120 is not detected, or when the abnormality occurs.
For example, the designated square wave may be a fixed frequency, 50% duty cycle square wave, and the non-designated square wave may be any waveform other than the designated square wave.
The first PWM conversion circuit 112 outputs a high level only when receiving a prescribed square wave; when a non-specified square wave is received, a low level is output.
The level output from the first PWM conversion circuit 112 is output to the multi-channel and gate after passing through the not gate 113.
Therefore, when the main control module 110 operates normally and the lamp control module 120 is not monitored to be abnormal, or when the main control module 110 is abnormal, the main control module 110 can stably output a high level to the multi-channel and gate.
Optionally, in this example, the first control unit 111 may be further configured to output a specified square wave to the first PWM conversion circuit 112 when the lamp control module is normally operated and is detected to be abnormal.
Correspondingly, after the high level output by the first PWM conversion circuit 112 passes through the not gate 113, the low level is output to the multi-channel and gate, so that the yellow flashing module 130 controls all signal lamps corresponding to the signaler to force yellow flashing, and abnormal lighting of the signal lamps caused by abnormal lighting of the lamp control module 120 is avoided.
Similarly, referring to fig. 4, in an example, the lamp control module 120 may include: a second control unit 121 and a second PWM conversion circuit 122; wherein:
a second control unit 121 that may be configured to output a specified square wave to the second PWM conversion circuit 122 when operating normally; when an abnormality occurs, an unspecified square wave is output to the second PWM conversion circuit 122;
the second PWM conversion circuit 122 is configured to output a high level to the multichannel and gate when receiving a specified square wave; and when the non-specified square wave is received, outputting a low level to the multichannel AND gate.
Specifically, in order to ensure that the lamp control module 120 can output a high level or a low level according to the strategy described in the above embodiment, a second control unit 121 and a second PWM conversion circuit 122 may be provided in the lamp control module 120.
The second control unit 121 may output a specified square wave to the second PWM conversion circuit 122 when the lamp control module 120 normally operates; when the lamp control module 120 is abnormal, an unspecified square wave is output to the second PWM conversion circuit.
The second PWM conversion circuit 122 outputs a high level only when receiving a prescribed square wave; when a non-specified square wave is received, a low level is output.
Therefore, when the lamp control module 120 works normally, a high level can be stably output to the multi-channel nand gate; when the lamp control module 120 is abnormal, a low level can be stably output to the multi-channel nand gate.
It should be noted that the first PWM conversion circuit 112 and the second PWM conversion circuit 122 may be the same PWM conversion circuit.
Preferably, in this embodiment of the application, in order to improve reliability and work efficiency of the annunciator, the main control module 110 may communicate with the plurality of lamp control modules 120 through a CAN (Controller Area Network) bus.
In order to make those skilled in the art better understand the technical solutions provided in the embodiments of the present application, the following briefly describes the operating principle of the semaphore provided in the embodiments of the present application with reference to specific examples.
Referring to fig. 5, a schematic structural diagram of an annunciator provided in an embodiment of the present disclosure is shown in fig. 5, in this embodiment, the annunciator may include a main control module, a yellow flashing module and a plurality of lamp control modules, the main control module communicates with the plurality of lamp control modules through a CAN bus, and the yellow flashing module is respectively connected to the main control module and the plurality of lamp control modules through a multi-channel and gate.
The main control module may include a first control Unit (for example, a CPU (central processing Unit), a PWM conversion circuit, and an and gate; the lamp control module may include a second control Unit (in the figure, an MCU (micro controller Unit) is taken as an example) and a PWM conversion circuit.
The PWM conversion circuit outputs a high level only when a square wave (hereinafter referred to as a designated square wave) with a duty ratio of 50% and a fixed frequency is Output by a GPIO (General Purpose Input/Output) of the CPU or the MCU, and outputs a low level of 0 when the GPIO of the CPU or the MCU outputs other waveforms.
In this embodiment, the operation principle of the semaphore is as follows:
(1) when the main control module and each lamp control module work normally, a CPU of the main control module does not output a specified square wave, the PWM conversion circuit outputs a low level, and a high level is output to the multichannel AND gate after passing through the NOT gate; the MCU of the lamp control module outputs a specified square wave, and the PWM conversion circuit outputs a high level to the multichannel AND gate; at the moment, the multi-channel AND gate outputs high level to the yellow flashing module, and the yellow flashing module does not work. The main control module enables the lamp control module to control the on or off of the external signal lamp according to the normal working logic through the CAN bus.
(2) When the main control module is abnormal and each lamp control module is normal, the CPU of the main control module does not output the specified square wave, the PWM conversion circuit outputs low level, and high level is output to the multichannel AND gate after passing through the NOT gate; the MCU of the lamp control module outputs a specified square wave, and the PWM conversion circuit outputs a high level to the multichannel AND gate; at the moment, the multi-channel AND gate outputs high level to the yellow flashing module, and the yellow flashing module does not work. After one of the lamp control modules determines that the lamp control module is the proxy main control module, the lamp control module controls the external signal lamp to be turned on or turned off according to the signal lamp control instruction stored in the lamp control module.
(3) After the CPU of the main control module is abnormal and at least one lamp control module is also abnormal, the CPU of the main control module does not output a specified square wave, the PWM conversion circuit outputs a low level, and a high level is output to the multichannel AND gate after passing through the NOT gate; the MCU of unusual lamp control module outputs non-appointed square wave, and PWM converting circuit exports the low level to multichannel AND gate, and at this moment, multichannel AND gate exports the low level to yellow flashing module, and yellow flashing module control outside signal lamp forces yellow flashing.
(4) The main control module is normal, when at least one lamp control module is abnormal, the MCU of the abnormal lamp control module outputs an unspecified square wave, the PWM conversion circuit outputs a low level to the multichannel AND gate, at the moment, the multichannel AND gate outputs a low level to the yellow flashing module, and the yellow flashing module controls an external signal lamp to forcibly flash yellow. When the master control module monitors that the lamp control module is abnormal, the specified square wave can be output through the CPU, so that the PWM conversion circuit of the master control module outputs a high level, and outputs a low level to the multichannel AND gate after passing through the NOT gate, so that the yellow flashing module controls an external signal lamp to force yellow flashing.
Therefore, in the embodiment, when the main control module is abnormal and each lamp control module is not abnormal, the lamp control module can take over the work of the main control module for controlling the signal lamp to be turned on or turned off, so that the reliability and the stability of the signal machine are improved; in addition, when master control module is unusual, the work of yellow flashing module also can be controlled to the lamp control module, and the whole signal lamps that correspond through yellow flashing module control semaphore carry out the strong yellow flashing under the unusual circumstances of lamp control module appearing, have avoided the signal lamp that the lamp control module leads to unusually to light the lamp conflict.
Because the CPU or the MCU belongs to an ARM (Advanced RISC (Reduced Instruction Set Computer) Machines) architecture controller, when the CPU or the MCU is abnormal, the GPIO pin may output a high level 1, a low level 0, or some intermediate levels, but cannot output a square wave with a fixed frequency and a duty ratio of 50%, so that when the CPU of the main control module is abnormal, an unspecified square wave is output to the PWM conversion circuit, and then a high level is output to the multichannel and gate through the not gate, the yellow flash module is not controlled to enter the yellow flash mode, and thus the main control module is abnormal, but each lamp control module is normal, the annunciator can still work normally under the control of the proxy main control module; when the CPU of lamp control module is unusual, can be to the non-appointed square wave of PWM converting circuit output, and then to multichannel AND gate output low level, control yellow flashing module gets into yellow flashing mode, and the bright conflict of signal lamp because lamp control module leads to unusually is avoided to yellow flashing of all outside signal lamps that control signal machine corresponds.
It should be noted that, in practical applications, the annunciator provided in the embodiment of the present application may include one or more of modules such as the display module, the key module, and the vehicle inspection module, in addition to the modules such as the above-mentioned main control module, the lamp control module, and the yellow flash module, and each module included in the annunciator may be connected to the backplane through a corresponding connector provided on the backplane, and the interconnection communication between each module is realized through each connector, where specific functions of the modules such as the display module, the key module, and the vehicle inspection module may refer to functional descriptions of corresponding modules in the existing annunciator including such modules, and this embodiment of the present application is not described herein again.
Referring to fig. 6, a schematic flow chart of a signal lamp control method according to an embodiment of the present disclosure is shown, where the signal lamp control method can be applied to the signal, as shown in fig. 6, the signal lamp control method can include the following steps:
step S600, when the lamp control module monitors that the main control module is abnormal, whether the lamp control module is the proxy main control module is determined. If yes, go to step S610; otherwise, go to step S620.
In this embodiment of the application, in order to avoid the master control module of semaphore to be unusual, the unable normal control signal lamp of semaphore lights or goes out, can be by one of them lamp control module in the lamp control module when master control module is unusual, as the work of taking over master control module control signal lamp and lighting or going out of acting on the master control module.
Correspondingly, in this embodiment of the application, when the lamp control module (which may be any lamp control module in the traffic signal) monitors that the main control module is abnormal, the lamp control module may determine whether itself is the proxy main control module according to a preset policy.
In one embodiment of the present application, when the lamp control module monitors that the main control module is abnormal, it may be determined whether the lamp control module is the proxy main control module according to the address of the lamp control module.
In this embodiment, when the lamp control module monitors that the main control module is abnormal, the lamp control module may determine whether the lamp control module is the proxy main control module according to its own address.
The address of the lamp control module may be a slot number of a slot where the lamp control module is located, or other pre-configured addresses.
In one example, when the lamp control module monitors that the main control module is abnormal and determines that the lamp control module is closest to the main control module, the lamp control module may determine that the lamp control module is the proxy main control module; otherwise, determining the self as a non-agent main control module.
Specifically, considering that the closer the distance between the lamp control module and the main control module is, the more timely the lamp control module can sense the abnormality of the main control module, and then can take over the work of the main control module for controlling the turn-on or turn-off of the signal lamp, therefore, when the address information of the lamp control module can identify the distance between the lamp control module and the main control module, for example, the address of the lamp control module is the slot number of the slot where the lamp control module is located, the determination strategy of the agent main control module can be preset to determine the lamp control module located closest to the main control module as the agent main control module.
Correspondingly, when the lamp control module monitors that the main control module is abnormal, the lamp control module can determine whether the lamp control module is the lamp control module with the position closest to the main control module according to the address of the lamp control module; if yes, determining the self as a proxy main control module; otherwise, determining the self as a non-agent main control module.
And step S610, the lamp control module controls the corresponding signal lamp to be turned on or turned off according to the signal lamp control instruction sent by the main control module stored by the lamp control module before the abnormity, and sends the signal lamp control instruction to other lamp control modules.
In this embodiment of the application, when the lamp control module determines that the lamp control module is the proxy main control module, the lamp control module may control the turn-on or turn-off of the corresponding signal lamp according to the signal lamp control instruction sent by the main control module stored in the lamp control module before the abnormality, and send the signal lamp control instruction to other lamp control modules.
Specifically, considering that, for a traffic signal, a control strategy for controlling the turn-on or turn-off of a signal lamp is usually changed at a relatively low frequency, that is, usually, the control strategy is kept unchanged for a relatively long time, so that when the main control module is abnormal, the lamp control module serving as the proxy main control module can directly control the turn-on or turn-off of the signal lamp according to a signal lamp control instruction sent before the main control module is abnormal.
Accordingly, in this embodiment of the application, when the lamp control module receives the signal lamp control instruction sent by the main control module, the lamp control module may store the signal lamp control instruction, for example, in the memory.
Preferably, the lamp control module may only store the signal lamp control instruction sent by the latest main control module, that is, when the lamp control module receives the signal lamp control instruction sent by the main control module each time, the signal lamp control instruction received this time is stored, and the signal lamp control instruction received last time stored by the lamp control module is deleted.
The signal lamp control instructions sent by the main control module comprise signal lamp control instructions respectively aiming at each lamp control module; when the lamp control module receives the signal lamp control instruction sent by the main control module, the lamp control module can control the corresponding signal lamp to be turned on or turned off according to the signal lamp control instruction (such as the signal lamp control instruction corresponding to the self identification) aiming at the lamp control module.
In the embodiment of the application, when the lamp control module monitors that the main control module is abnormal and determines that the lamp control module is the proxy main control module, the lamp control module can control the corresponding signal lamp to be turned on or turned off according to the signal lamp control instruction sent by the main control module stored in the lamp control module before the abnormality, and can send the signal lamp control instruction to other lamp control modules.
And S620, the lamp control module controls the corresponding signal lamp to be turned on or turned off according to the received signal lamp control instruction.
In the embodiment of the application, when the lamp control module serving as the non-proxy main control module receives the signal lamp control signaling sent by the proxy main control module, the lamp control module can control the corresponding signal lamp to be turned on or turned off according to the received signal lamp control instruction.
Further, in one of the embodiments of this application, when above-mentioned semaphore still includes yellow and dodges the module, the lamp control module can also be when taking place unusually, dodges yellow through all signal lamps that yellow and dodge module control semaphore correspondence and force.
In this embodiment, in order to guarantee under the unusual condition of host system, when the lamp control module is unusual, the yellow flashing module can control all signal lamps that the semaphore corresponds and carry out yellow flashing control, and the lamp control module can be when unusual, carries out the forced yellow flashing through all signals that the yellow flashing module control semaphore corresponds, has realized the control of lamp control module to yellow flashing.
For example, when the lamp control module (any one lamp control module) is abnormal, the lamp control module can send a yellow flashing instruction (for example, output a low level to the yellow flashing module) to the yellow flashing module, and when the yellow flashing module receives the yellow flashing instruction, the yellow flashing module can control all signals corresponding to the annunciator to perform forced yellow flashing.
It should be noted that, in the embodiment of the present application, specific structures of the main control module and the lamp control module in the traffic signal may refer to relevant descriptions in the foregoing embodiment, and no further description is given in this embodiment of the present application.
In the embodiment of the application, one of the plurality of lamp control modules is used as the agent main control module to control the signal lamp to be turned on or turned off when the main control module is abnormal, so that the signal machine main control module is prevented from abnormally causing the signal lamp to work normally, and the stability and the reliability of the signal machine are improved.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (7)

1. The utility model provides a signal machine, its characterized in that includes host system module and a plurality of lamp control module, wherein:
the lamp control module is used for determining whether the lamp control module is an agent main control module when the abnormality of the main control module is monitored;
the lamp control module is also used for controlling the corresponding signal lamp to be turned on or off according to the signal lamp control instruction sent by the main control module stored by the lamp control module before the abnormity when the lamp control module is determined to be the proxy main control module, and sending the signal lamp control instruction to other lamp control modules;
the lamp control module is also used for controlling the corresponding signal lamp to be turned on or turned off according to the received signal lamp control instruction when the lamp control module is determined to be a non-proxy main control module;
the lamp control module is specifically used for determining whether the lamp control module is an agent main control module according to the address of the lamp control module when the abnormality of the main control module is monitored;
the annunciator also comprises a yellow flash module; the yellow flashing module is respectively connected with the main control module and the lamp control module;
the lamp control module is used for controlling all signal lamps corresponding to the annunciator to carry out forced yellow flashing through the yellow flashing module when the main control module is abnormal and the lamp control module is abnormal;
the lamp control module is specifically used for determining that the lamp control module is an agent main control module when the abnormality of the main control module is monitored and the lamp control module is determined to be the lamp control module with the position closest to the main control module; otherwise, determining the self as a non-agent main control module.
2. The signal of claim 1, wherein the yellow flash module is connected to the main control module and the plurality of lamp control modules through a multi-channel and gate;
the main control module is also used for outputting a high level to the multichannel AND gate when the main control module works normally and the lamp control module is not monitored to be abnormal or when the lamp control module is abnormal;
the lamp control module is also used for outputting high level to the multichannel AND gate when the lamp control module works normally; when the multi-channel AND gate works abnormally, outputting a low level to the multi-channel AND gate;
and the yellow flashing module is also used for controlling all signal lamps corresponding to the annunciator to forcibly flash yellow when receiving the low level output by the multi-channel AND gate.
3. The signal of claim 2, wherein the master control module comprises a first control unit, a first PWM conversion circuit, and a not gate; wherein:
the first control unit is used for outputting non-specified square waves to the first PWM conversion circuit when the first PWM conversion circuit works normally and the lamp control module is not monitored to be abnormal or when the lamp control module is abnormal;
the first PWM conversion circuit is used for outputting a low level to the NOT gate when receiving a non-specified square wave; when a specified square wave is received, outputting a high level to the NOT gate;
the NOT gate is used for outputting a high level to the multichannel AND gate when receiving a low level; and when receiving the high level, outputting the low level to the multichannel AND gate.
4. The signal of claim 3,
the first control unit is further configured to output a specified square wave to the first PWM conversion circuit when the first PWM conversion circuit works normally and the lamp control module is monitored to be abnormal.
5. The signal of claim 2, wherein the lamp control module comprises: a second control unit and a second PWM conversion circuit; wherein:
the second control unit is used for outputting a specified square wave to the second PWM conversion circuit when the second PWM conversion circuit works normally; when abnormality occurs, outputting non-specified square waves to the second PWM conversion circuit;
the second PWM conversion circuit is used for outputting a high level to the multichannel AND gate when receiving a specified square wave; and when receiving the non-specified square wave, outputting a low level to the multichannel AND gate.
6. The signal of any one of claims 1-5, wherein the master control module is communicatively coupled to the plurality of light control modules via a Controller Area Network (CAN) bus.
7. A signal lamp control method is characterized by being applied to a signal machine comprising a main control module and a plurality of lamp control modules, and the method comprises the following steps:
when the lamp control module monitors that the main control module is abnormal, determining whether the lamp control module is an agent main control module;
when the lamp control module determines that the lamp control module is the proxy main control module, controlling the corresponding signal lamp to be turned on or turned off according to a signal lamp control instruction sent by the main control module stored by the lamp control module before the abnormity, and sending a signal lamp control instruction to other lamp control modules;
when the lamp control module determines that the lamp control module is a non-proxy main control module, controlling the corresponding signal lamp to be turned on or turned off according to the received signal lamp control instruction;
when monitoring that the master control module is abnormal, the lamp control module determines whether the lamp control module is an agent master control module according to the address of the lamp control module;
the annunciator also comprises a yellow flash module; the yellow flashing module is respectively connected with the main control module and the lamp control module;
the method further comprises the following steps:
when the main control module is abnormal and the lamp control module is abnormal, the yellow flashing module controls all signal lamps corresponding to the annunciator to carry out forced yellow flashing;
when monitoring that the master control module is abnormal, the lamp control module determines whether the lamp control module is an agent master control module according to the address of the lamp control module, and the method comprises the following steps:
when the abnormality of the master control module is monitored and the master control module is determined to be the lamp control module which is closest to the master control module, the master control module is determined to be the proxy master control module; otherwise, determining the self as a non-agent main control module.
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 CN110390823A (en) 2019-10-29
CN110390823B true 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)

Families Citing this family (1)

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

Citations (10)

* 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
CN201733485U (en) * 2010-05-20 2011-02-02 深圳市远舟科技实业有限公司 LED navigation light and signal light controller for ship
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
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
CN107610485A (en) * 2017-10-20 2018-01-19 杭州普乐科技有限公司 A kind of radio communication traffic-control unit and control method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2879308Y (en) * 2005-12-01 2007-03-14 张永军 New traffic signal machine
JP5375508B2 (en) * 2009-10-13 2013-12-25 富士通株式会社 Optical transmission apparatus and dispersion compensation method
CN201577225U (en) * 2009-11-05 2010-09-08 无锡职业技术学院 Self-check protection device of traffic light
KR101064146B1 (en) * 2010-02-26 2011-09-16 박재순 Surface mount light emitting unit array, repair method thereof and light emitting unit for repair
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
CN204537455U (en) * 2015-04-24 2015-08-05 李元祥 A kind of emergent Multifunctional traffic signal lamp
CN107424427A (en) * 2016-05-23 2017-12-01 天津市双舟通信工程有限公司 A kind of traffic lights instruction communication system of automatic switchover

Patent Citations (10)

* 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
CN201733485U (en) * 2010-05-20 2011-02-02 深圳市远舟科技实业有限公司 LED navigation light and signal light controller for ship
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
CN204614226U (en) * 2015-05-08 2015-09-02 浙江浙大中控信息技术有限公司 Modularization intelligent network traffic teleseme
CN105679075A (en) * 2016-04-20 2016-06-15 保定维特瑞交通设施工程有限责任公司 Traffic signal instrument
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

Also Published As

Publication number Publication date
CN110390823A (en) 2019-10-29

Similar Documents

Publication Publication Date Title
CN110737192A (en) Automobile driving redundancy control system and method thereof
JPH02306743A (en) On-vehicle multiplex transmitter
JP7040841B2 (en) Segmented controller
EP3840538B1 (en) System and method for providing alternative communication path for management of lighting network elements
KR20200121395A (en) Apparatus and method for outputting platooning information of vehicle
CN108633129B (en) Fault monitoring system and monitoring processing method for LED tail lamp circuit
CN209454773U (en) Train grade control unit and train network control system
CN110390823B (en) Signal machine and signal lamp control method
CN109094643A (en) A kind of fault alarm method and system of electric boosting steering system
CN106201964B (en) The on-line automatic addressing of RDM driver and RDM bus short circuit positioning device and method
CN113347758A (en) Modular headlamp LED driver messaging system
CN104299427A (en) Remote program updating method for traffic signal instrument
CN105101593A (en) System and method for detecting street lamp fault
CN217197936U (en) Self-checking system for vehicle lighting and signal device
CN214592086U (en) Microwave induction controller and multi-lamp linkage lighting system
CN114924321A (en) Synchronous in-place detection circuit and synchronous transmission mechanism limiting alarm device
JP3321117B2 (en) Driving method of in-vehicle electronic unit with inspection function
CN112700677A (en) Traffic signal control method and device and traffic control system
CN116959280B (en) Running state self-checking method, system and equipment for traffic signal lamp
CN110164149A (en) Traffic signal light control device and method based on direct current signal
CN111724609A (en) Traffic sign control system and control method thereof
CN214084035U (en) Vehicle lamp control system
CN113406947B (en) Traffic signal controller and traffic signal control method
CN117998703B (en) LED driving power supply control expansion system and method
KR20030062100A (en) device and method for action controlling of car using Local Net Works

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