CN109808738B - Bidirectional train control method and device and computer readable storage medium - Google Patents

Bidirectional train control method and device and computer readable storage medium Download PDF

Info

Publication number
CN109808738B
CN109808738B CN201910122731.6A CN201910122731A CN109808738B CN 109808738 B CN109808738 B CN 109808738B CN 201910122731 A CN201910122731 A CN 201910122731A CN 109808738 B CN109808738 B CN 109808738B
Authority
CN
China
Prior art keywords
signal
level
input end
logic control
control unit
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
CN201910122731.6A
Other languages
Chinese (zh)
Other versions
CN109808738A (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.)
CRRC Zhuzhou Locomotive Co Ltd
Original Assignee
CRRC Zhuzhou Locomotive 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 CRRC Zhuzhou Locomotive Co Ltd filed Critical CRRC Zhuzhou Locomotive Co Ltd
Priority to CN201910122731.6A priority Critical patent/CN109808738B/en
Publication of CN109808738A publication Critical patent/CN109808738A/en
Application granted granted Critical
Publication of CN109808738B publication Critical patent/CN109808738B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Train Traffic Observation, Control, And Security (AREA)

Abstract

The embodiment of the invention discloses a bidirectional train control method, a bidirectional train control device and a computer readable storage medium, which realize bidirectional control of a train line under the condition of not additionally increasing communication cables among logic control units. Increasing a level transmission direction signal in the current logic control unit; when the current logic control unit does not lock the level transmission direction, the signal form of the direction signal is adjusted according to the level signal input condition of two input ends of the train line of the current logic control unit; when the train line function of the current logic control unit locks the transmission direction, the level of the output end corresponding to the input end is adjusted according to the direction type and the control instruction to which the direction signal belongs so as to ensure that the level of the output end of the current logic control unit is matched with the direction signal; and transmits the level signal of the target output terminal to the input terminal of the next logic control unit. And the ordered control of the whole bidirectional train can be realized by referring to the working mode of the current logic control unit.

Description

Bidirectional train control method and device and computer readable storage medium
Technical Field
The invention relates to the technical field of rail transit, in particular to a bidirectional train control method, a bidirectional train control device and a computer readable storage medium.
Background
At present, the rail transit vehicle control loop largely uses a relay as a control element of the control loop. The relay consists of a coil and a contact, and the on-off state of the contact can be changed by controlling the coil by electrifying, so that the vehicle control function is realized. However, because the mechanical contacts of the relay have the problems of short service life, easy aging, contact adhesion and the like, the application of a Logic Control Unit (LCU), which is a contactless Control technology, is also pushed up by the schedule.
The input and output of the LCU are two sets of independent circuits, and after the input signals are collected by the input board card and the operation is completed by the logic control unit, the output board card outputs the result. Therefore, the Processing sequence is a unidirectional process of Input-Processing-Output (IPO). Different from a relay contact, after the relay contact is closed, any one end of the relay contact is electrified, the other end of the relay contact is also electrified, and the logic control unit can only complete control in one direction through a pair of input and output. For the train line control of the rail train, usually, a non-occupied-end cab supplies power to an occupied-end cab, and when the occupation of the cab is switched, the power supply direction of the train line is also switched, which needs to realize the control of the rail train in two different directions. When the LCU is adopted to collect the input in two directions and transmit the output to the next vehicle, the logic control of parallel use of input and output needs to be processed correctly, if the logic is not processed correctly, the output signal of one path can be fed back to the input of the other path, so that the whole circuit can be powered on wrongly, and the error control of the train can be caused.
Therefore, how to realize the ordered control of the bidirectional train based on the logic control unit is a problem to be solved urgently by the technical personnel in the field.
Disclosure of Invention
The embodiment of the invention aims to provide a bidirectional train control method, a bidirectional train control device and a computer readable storage medium, which can realize the ordered control of bidirectional trains based on a logic control unit.
In order to solve the above technical problem, an embodiment of the present invention provides a bidirectional train control method, which is applicable to a logic control unit having multiple input and output channels, and the method includes:
judging whether the direction signal of the current logic control unit is not locked;
if so, adjusting the signal form of the direction signal according to the level signals of the two input ends of the current logic control unit;
if not, adjusting the level of the output end corresponding to the input end according to the direction type of the direction signal and the control signal in the current logic control unit;
and transmitting the level signal of the target output end to the input end of the next logic control unit.
Optionally, the adjusting the signal form of the direction signal according to the level signals of the two input ends of the current logic control unit includes:
judging whether the level signal of the first input end is high level and the level signal of the second input end is low level;
if yes, adjusting the direction signal into a positive effective signal;
if not, judging whether the level signal of the first input end is a low level and the level signal of the second input end is a high level;
if yes, adjusting the direction signal into a reverse effective signal;
if not, setting the level of a first output end corresponding to the first input end in the current logic control unit as a low level, and setting the level of a second output end corresponding to the second input end as a low level.
Optionally, the adjusting the level of the output terminal corresponding to the input terminal according to the direction type to which the direction signal belongs and the control signal in the current logic control unit includes:
when the direction signal is a positive effective signal, setting a level signal of a first output end according to the level signal of the first input end and the control signal; and setting the second output terminal to a low level;
when the direction signal is a reverse effective signal, setting a level signal of a second output end according to the level signal of the second input end and the control signal; and sets the first output terminal to a low level.
Optionally, the level signal of the first output end is set according to the level signal of the first input end and the control signal; and after setting the second output terminal to a low level, the method further comprises:
judging whether the first input end is at a low level;
when the first input end is at a high level, clearing the count value;
when the first input end is at a low level, adding one to the count value, and judging whether the second input end is at the low level or whether the count value is greater than or equal to a preset threshold value;
if yes, the direction signal is adjusted to be an invalid signal.
Optionally, the level signal of the second output end is set according to the level signal of the second input end and the control signal; and after setting the first output terminal to a low level, the method further comprises:
judging whether the second input end is at a low level;
when the second input end is at a high level, clearing the count value;
when the second input end is at a low level, adding one to the count value, and judging whether the first input end is at the low level or whether the count value is greater than or equal to a preset threshold value;
if yes, the direction signal is adjusted to be an invalid signal.
Optionally, after the setting the level of the first output terminal corresponding to the first input terminal in the current logic control unit to a low level, and the setting the level of the second output terminal corresponding to the second input terminal to a low level, the method further includes:
and clearing the count value.
Optionally, before the transmitting the level signal of the target output terminal to the input terminal of the next logic control unit, the method further includes:
judging whether the current logic control unit is an ultimate node unit or not;
if not, executing the step of transmitting the level signal of the target output end to the input end of the next logic control unit;
and if so, taking the level signal of the target output end as a comprehensive judgment result of the train line level.
The embodiment of the invention also provides a bidirectional train control device which is suitable for a logic control unit with multi-path input and output, and comprises a judgment unit, a first adjustment unit, a second adjustment unit and an output unit;
the judging unit is used for judging whether the direction signal of the current logic control unit does not lock the direction; if yes, triggering the first adjusting unit; if not, triggering the second adjusting unit;
the first adjusting unit is used for adjusting the signal form of the direction signal according to the level signals of the two input ends of the current logic control unit;
the second adjusting unit is used for adjusting the level of the output end corresponding to the input end according to the direction type of the direction signal and the control signal in the current logic control unit;
and the output unit is used for transmitting the level signal of the target output end to the input end of the next logic control unit.
Optionally, the first adjusting unit includes a first judging subunit, a forward adjusting subunit, a second judging subunit, a reverse adjusting subunit, and a resetting subunit;
the first judging subunit is configured to judge whether the level signal of the first input end is a high level and whether the level signal of the second input end is a low level; if yes, triggering the forward adjustment subunit; if not, triggering the second judgment subunit;
the forward adjusting subunit is configured to adjust the direction signal into a forward effective signal;
the second judging subunit is configured to judge whether the level signal of the first input end is a low level and whether the level signal of the second input end is a high level; if yes, triggering the reverse adjustment subunit; if not, triggering the reset subunit;
the reverse adjustment subunit is used for adjusting the direction signal into a reverse effective signal;
and the reset subunit is configured to set a level of a first output end, corresponding to the first input end, in the current logic control unit to a low level, and set a level of a second output end, corresponding to the second input end, in the current logic control unit to a low level.
Optionally, the second adjusting unit includes a first setting subunit and a second setting subunit;
the first setting subunit is configured to set a level signal of a first output end according to the level signal of the first input end and the control signal when the direction signal is a positive direction effective signal; and setting the second output terminal to a low level;
the second setting subunit is configured to set a level signal of a second output end according to the level signal of the second input end and the control signal when the direction signal is the reverse effective signal; and sets the first output terminal to a low level.
Optionally, the system further comprises a first input end judging unit, a zero clearing unit, an accumulation unit, a second input end judging unit and an invalid unit;
the first input end judging unit is used for setting a level signal of a first output end according to the level signal and the control signal of the first input end; after the second output end is set to be at a low level, judging whether the first input end is at the low level;
the zero clearing unit is used for clearing the count value when the first input end is at a high level;
the accumulation unit is used for adding one to the count value and triggering the second input end judgment unit when the first input end is at a low level;
the second input end judging unit is used for judging whether the second input end is in a low level or whether the count value is greater than or equal to a preset threshold value; if yes, triggering the invalid unit;
and the invalid unit is used for adjusting the direction signal into an invalid signal.
Optionally, the second input end determining unit is further configured to set a level signal of a second output end according to the level signal of the second input end and the control signal; after the first output end is set to be at a low level, judging whether the second input end is at the low level;
the zero clearing unit is also used for clearing the count value when the second input end is at a high level;
the accumulation unit is further used for adding one to the count value and triggering the first input end judgment unit when the second input end is at a low level;
the first input end judging unit is also used for judging whether the first input end is in a low level or whether the count value is greater than or equal to a preset threshold value; if yes, triggering the invalid unit;
the invalidation unit is further configured to adjust the direction signal to an invalidation signal.
Optionally, the zero clearing unit is further configured to clear the count value after setting the level of the first output terminal corresponding to the first input terminal in the current logic control unit to a low level and setting the level of the second output terminal corresponding to the second input terminal to a low level.
Optionally, the method further includes: a node judgment unit as a unit;
the node judging unit is used for judging whether the current logic control unit is an ultimate node unit or not before the level signal of the target output end is transmitted to the input end of the next logic control unit; if not, triggering the output unit to execute the step of transmitting the level signal of the target output end to the input end of the next logic control unit; if yes, triggering the acting unit;
and the acting unit is used for taking the level signal of the target output end as a comprehensive judgment result of the level of the train line.
An embodiment of the present invention further provides a bidirectional train control device, including:
a memory for storing a computer program;
a processor for executing said computer program to implement the steps of the bidirectional train control method as described above.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the bidirectional train control method are implemented.
According to the technical scheme, when the direction signal of the current logic control unit is not locked in the direction, the situation that the level of the preceding train line is not established at the current moment is indicated, and the current logic control unit does not output the level to the next carriage. At the moment, the signal form of the direction signal can be adjusted according to the change of the level signals of the two input ends of the current logic control unit; when the direction signal of the current logic control unit locks the direction, the level of the output end corresponding to the input end can be adjusted according to the direction type of the direction signal and the control signal in the current logic control unit so as to ensure that the level of the output end of the current logic control unit is matched with the direction signal; and transmits the level signal of the target output terminal to the input terminal of the next logic control unit. The bidirectional train comprises a plurality of carriages, each carriage is provided with a logic control unit, and the sequential control of the whole bidirectional train can be realized by referring to the working mode of the current logic control unit.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a bidirectional train control method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a connection relationship between logic control units of three cars in a train according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a logic control unit including two input/output terminals according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a bidirectional train control device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a bidirectional train control device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Next, a bidirectional train control method provided in an embodiment of the present invention is described in detail. Fig. 1 is a flowchart of a bidirectional train control method provided in an embodiment of the present invention, which is suitable for a logic control unit having multiple inputs and outputs, and the method includes:
s101: and judging whether the direction signal of the current logic control unit is not locked.
In the embodiment of the invention, a logic control unit can be arranged in each carriage, and multiple input and output can be included in each logic control unit. As shown in fig. 2, a schematic diagram of a connection relationship between logic control units of three cars in a train, namely, a car a, a car B, and a car C, each car corresponds to one logic control unit, the logic control units can simultaneously process multi-path bidirectional train line control, the upper half in the diagram is a connection relationship diagram of a train line closed by a right side door, and the lower half is a connection relationship diagram of a train line closed by a left side door.
Each part is composed of two input and output terminals, as shown IN fig. 3, which is a schematic structural diagram of a logic control unit including two input and output terminals, and it can be defined that IN1- > OUT1 is a voltage transmission direction from left to right, and IN2- > OUT2 is a voltage transmission direction from right to left. When the control signal (CTRL) is not locked in direction, i.e., the control signal is inactive, both OUT1 and OUT2 output a low level; when CTRL locks the direction, i.e., the control signal is active, detecting that one of the inputs IN1 or IN2 is active enables the corresponding output, while masking the output of the other input.
The direction signal is used to indicate the direction of transmission of the train line level. When the direction signal does not lock the direction, it indicates that the train line does not lock the voltage transmission direction at the previous time, and S102 may be performed.
When the direction signal locks the direction, the transmission direction of the train line voltage can be determined according to the specific form of the direction signal, so as to adjust the output end level of the corresponding logic control unit in the train, that is, to execute S103.
S102: and adjusting the signal form of the direction signal according to the level signals of the two input ends of the current logic control unit.
For convenience of description, in the embodiment of the present invention, a high level may be defined as an active signal, and a low level may be defined as an inactive signal. Each logic control unit is processed in a similar manner, and in the implementation of the present invention, any one of all logic control units of a train, i.e., the current logic control unit, is taken as an example for explanation.
When the direction signal of the current logic control unit is an invalid signal, the direction of the train line of the current logic control unit can be determined according to the level signal of the input end, so that the voltage transmission direction in each logic control unit is determined.
In order to realize the bidirectional control of the train, one path of input and output signals in the logic control unit is connected with the other path of input and output signals in parallel, and in order to avoid that the two paths of input and output ends form a closed loop, the level of the output end needs to be adjusted in time according to the level signal of the input end.
IN connection with the partial structure diagram of the logic control unit shown IN fig. 3, which includes two input terminals, for the sake of convenience of distinction, IN1 is referred to as a first input terminal, IN2 is referred to as a second input terminal, and correspondingly, OUT1 corresponding to IN1 is referred to as a first output terminal, and OUT2 corresponding to IN2 is referred to as a second output terminal.
For convenience of subsequent description, in the embodiment of the present invention, the voltage transmission directions between the logic control units in the train from left to right may be referred to as positive directions, and correspondingly, the voltage transmission directions between the logic control units in the train from right to left may be referred to as negative directions.
In a specific implementation, it may be determined whether the level signal of the first input terminal is at a high level and the level signal of the second input terminal is at a low level.
When the level signal of the first input end is at a high level and the level signal of the second input end is at a low level, it indicates that the logic control units in the train sequentially transmit voltage signals from left to right, and at this time, the direction signal can be adjusted to be a positive valid signal.
When the level signal of the first input end is at a low level or the level signal of the second input end is at a high level, it indicates that the voltage signals of the logic control units in the train are not transmitted in the forward direction, and at this time, it may be further determined whether the level signal of the first input end is at a low level and the level signal of the second input end is at a high level.
When the level signal of the first input end is a low level and the level signal of the second input end is a high level, it indicates that the voltage signals of the logic control units in the train are transmitted in the reverse direction, and at this time, the direction signal can be adjusted to be a reverse effective signal.
And when the level signal of the first input end and the level signal of the second input end are both low level or both high level, setting the level of a first output end corresponding to the first input end in the current logic control unit as low level, and setting the level of a second output end corresponding to the second input end as low level.
S103: and adjusting the level of the output end corresponding to the input end according to the direction type of the direction signal and the control signal in the current logic control unit.
When the direction signal is a valid signal, it may be a forward valid signal or a reverse valid signal. And different direction types are adopted, and the level setting modes of the output end in the logic control unit are different.
Specifically, when the direction signal is a positive effective signal, the level signal of the first output end is set according to the level signal of the first input end and the control signal; and setting the second output terminal to a low level; when the direction signal is a reverse effective signal, setting a level signal of a second output end according to the level signal of the second input end and the control signal; and sets the first output terminal to a low level.
Referring to fig. 3, when IN1 is at a high level, and when the logic control unit can normally operate, the control signal is also at a high level, i.e. an active signal, and the first input terminal IN1 and the first output terminal OUT1 are IN a conducting state, so as to avoid a closed loop formed by IN1- > OUT1- > IN2- > OUT2, which may cause abnormal operation of the logic control unit, the second output terminal OUT2 may be set to a low level. Similarly, when the IN2 is at a high level, and the current logic control unit can normally operate, the control signal is also at a high level, i.e. an active signal, and at this time, the second input terminal IN2 and the second output terminal OUT2 are IN a conducting state, so as to avoid a closed loop formed by IN2- > OUT2- > IN1- > OUT1, which would result IN abnormal operation of the logic control unit, and at this time, the first output terminal OUT1 can be set to a low level.
S104: and transmitting the level signal of the target output end to the input end of the next logic control unit.
The train comprises a plurality of logic control units, and after the output end voltage is determined by other logic control units except the logic control unit corresponding to the carriage occupied by the driver as the final node, the other logic control units need to transmit effective signals to the next logic control unit according to the voltage transmission direction.
For example, in conjunction with fig. 3, the logic control unit includes two output terminals OUT1 and OUT 2. Assuming that INI is high and OUT1 is high, the voltage transmission direction is positive, and OUT1 is the target output.
According to the technical scheme, when the direction signal of the current logic control unit is not locked in the direction, the situation that the level of the preceding train line is not established at the current moment is indicated, and the current logic control unit does not output the level to the next carriage. At the moment, the signal form of the direction signal can be adjusted according to the change of the level signals of the two input ends of the current logic control unit; when the direction signal of the current logic control unit locks the direction, the level of the output end corresponding to the input end can be adjusted according to the direction type of the direction signal and the control signal in the current logic control unit so as to ensure that the level of the output end of the current logic control unit is matched with the direction signal; and transmits the level signal of the target output terminal to the input terminal of the next logic control unit. The bidirectional train comprises a plurality of carriages, each carriage is provided with a logic control unit, and the sequential control of the whole bidirectional train can be realized by referring to the working mode of the current logic control unit.
In order to reduce the influence of the level jitter on the logic control unit, the count value may be set in consideration of the fact that the level jitter may exist in practical applications.
Taking the train running in the forward direction as an example, in a specific implementation, a level signal of a first output end is set according to a level signal of a first input end and a control signal; and after the second output terminal is set to the low level, whether the first input terminal is at the low level can be further judged.
When the first input end is at a high level, clearing the count value; and when the first input end is at a low level, adding one to the count value, and judging whether the second input end is at the low level or whether the count value is greater than or equal to a preset threshold value.
When the first input end and the second input end are both in low level or when the first input end is in low level and the counting value is greater than or equal to the preset threshold value, the direction signal is adjusted to be an invalid signal.
Taking train reverse driving as an example, in a specific implementation, a level signal of a second output end is set according to a level signal of a second input end and a control signal; and after the first output end is set to be at low level, whether the second input end is at low level can be further judged.
When the second input end is at high level, clearing the count value; and when the second input end is at a low level, adding one to the count value, and judging whether the first input end is at the low level or whether the count value is greater than or equal to a preset threshold value.
When the first input end and the second input end are both in low level or when the second input end is in low level and the counting value is greater than or equal to the preset threshold value, the direction signal is adjusted to be an invalid signal.
Wherein the preset threshold may be set to 2. When the first input end is at low level and the count value is greater than or equal to 2, it indicates that the logic control unit may make a mistake in determining the driving mode of the train due to the level jitter, and at this time, the direction signal may be set as an invalid signal.
When the count value is set, correspondingly, after the level of the first output terminal corresponding to the first input terminal in the current logic control unit is set to be the low level and the level of the second output terminal corresponding to the second input terminal is set to be the low level, the count value needs to be cleared to realize the reset of the logic control unit.
By setting the counting value, the misjudgment of the train running mode caused by the level jitter can be effectively reduced, and the working accuracy and safety of the logic control unit are further improved.
With reference to fig. 3, no matter the level IN the direction from IN1- > OUT1 or IN2- > OUT2, the logic control unit can correctly determine the direction of power supply and transmit the voltage to the next logic control unit after processing. In practical application, the power supply cabin supplies electric energy, and the electric energy is sequentially transmitted downwards through the logic control units in all the carriages and finally transmitted to the cabin where a driver is located. In the embodiment of the present invention, each logic control unit may be regarded as a node unit, and the logic control unit in the cabin where the driver is located may be set as the final node unit.
Specifically, before the level signal of the target output end is transmitted to the input end of the next logic control unit, it may be further determined whether the current logic control unit is the final node unit.
And if the current logic control unit is not the final node unit, transmitting the level signal of the target output end to the input end of the next logic control unit.
If the current logic control unit is the final node unit, the level signal does not need to be transmitted to the next logic control unit.
If the current logic control unit is the final node unit, it is described that the current logic control unit is disposed in a cabin where a driver is located, so that the driver can know the execution conditions of the logic control units in time, and the level signal of the target output end can be used as a comprehensive judgment result of the train line level.
When the level signal of the target output end is not a valid signal, the target output end does not receive the level signal transmitted by the corresponding input end.
The reason why the level signal is not received may be that the current logic control unit fails, or that the preceding node unit of the current logic control unit fails to transmit the level signal, and at this time, an alarm may be given.
The alarm prompting mode can be various, for example, audio is played, or the audio is displayed through a display screen, or the indicator light flickers, and the like.
The level signal of the target output end is used as the comprehensive judgment result of the train line level, so that a driver can know whether each logic control unit can normally work more visually, when the logic control unit goes wrong, the driver can be reminded of finding and solving the problem in time, and the overall working performance of the logic control unit is improved.
Fig. 4 is a schematic structural diagram of a bidirectional train control device according to an embodiment of the present invention, which is suitable for a logic control unit with multiple inputs and outputs, and the device includes a determining unit 41, a first adjusting unit 42, a second adjusting unit 43, and an output unit 44;
a judging unit 41, configured to judge whether the direction signal of the current logic control unit is not locked; if yes, the first adjusting unit 42 is triggered; if not, the second adjusting unit 43 is triggered;
a first adjusting unit 42, configured to adjust a signal form of the direction signal according to level signals of two input terminals of the current logic control unit;
a second adjusting unit 43, configured to adjust a level of an output end corresponding to the input end according to a direction type to which the direction signal belongs and a control signal in the current logic control unit;
and an output unit 44 for transmitting the level signal of the target output terminal to the input terminal of the next logic control unit.
Optionally, the first adjusting unit includes a first judging subunit, a forward adjusting subunit, a second judging subunit, a reverse adjusting subunit, and a resetting subunit;
the first judging subunit is used for judging whether the level signal of the first input end is at a high level or not and whether the level signal of the second input end is at a low level or not; if yes, triggering a forward adjustment subunit; if not, triggering a second judgment subunit;
the forward adjusting subunit is used for adjusting the direction signal into a forward effective signal;
the second judging subunit is used for judging whether the level signal of the first input end is at a low level or not and whether the level signal of the second input end is at a high level or not; if yes, triggering a reverse adjustment subunit; if not, triggering a reset subunit;
a reverse adjustment subunit, configured to adjust the direction signal into a reverse effective signal;
and the resetting subunit is used for setting the level of a first output end corresponding to the first input end in the current logic control unit to be low level and setting the level of a second output end corresponding to the second input end to be low level.
Optionally, the second adjusting unit includes a first setting subunit and a second setting subunit;
the first setting subunit is used for setting the level signal of the first output end according to the level signal of the first input end and the control signal when the direction signal is a positive effective signal; and setting the second output terminal to a low level;
the second setting subunit is used for setting the level signal of the second output end according to the level signal of the second input end and the control signal when the direction signal is the reverse effective signal; and sets the first output terminal to a low level.
Optionally, the system further comprises a first input end judging unit, a zero clearing unit, an accumulation unit, a second input end judging unit and an invalid unit;
the first input end judging unit is used for setting a level signal of a first output end according to the level signal of the first input end and the control signal; after the second output end is set to be at a low level, judging whether the first input end is at the low level;
the zero clearing unit is used for clearing the count value when the first input end is at a high level;
the accumulation unit is used for adding one to the count value and triggering the second input end judgment unit when the first input end is at a low level;
the second input end judging unit is used for judging whether the second input end is in a low level or whether the count value is greater than or equal to a preset threshold value; if yes, triggering an invalid unit;
and the invalid unit is used for adjusting the direction signal into an invalid signal.
Optionally, the second input end judging unit is further configured to set a level signal of the second output end according to the level signal of the second input end and the control signal; after the first output end is set to be at a low level, judging whether the second input end is at the low level;
the zero clearing unit is also used for clearing the count value when the second input end is at a high level;
the accumulation unit is also used for adding one to the count value and triggering the first input end judgment unit when the second input end is at a low level;
the first input end judging unit is also used for judging whether the first input end is in a low level or whether the count value is greater than or equal to a preset threshold value; if yes, triggering an invalid unit;
the invalidation unit is further configured to adjust the direction signal to an invalidation signal.
Optionally, the zero clearing unit is further configured to zero the count value after setting the level of the first output terminal corresponding to the first input terminal in the current logic control unit to a low level and setting the level of the second output terminal corresponding to the second input terminal to a low level.
Optionally, the method further includes: a node judgment unit as a unit;
the node judging unit is used for judging whether the current logic control unit is an ultimate node unit or not before transmitting the level signal of the target output end to the input end of the next logic control unit; if not, triggering the output unit to transmit the level signal of the target output end to the input end of the next logic control unit; if yes, triggering as a unit;
and the unit is used for taking the level signal of the target output end as the comprehensive judgment result of the train line level.
The description of the features in the embodiment corresponding to fig. 4 may refer to the related description of the embodiment corresponding to fig. 1, and is not repeated here.
According to the technical scheme, when the direction signal of the current logic control unit is not locked in the direction, the situation that the level of the preceding train line is not established at the current moment is indicated, and the current logic control unit does not output the level to the next carriage. At the moment, the signal form of the direction signal can be adjusted according to the change of the level signals of the two input ends of the current logic control unit; when the direction signal of the current logic control unit locks the direction, the level of the output end corresponding to the input end can be adjusted according to the direction type of the direction signal and the control signal in the current logic control unit so as to ensure that the level of the output end of the current logic control unit is matched with the direction signal; and transmits the level signal of the target output terminal to the input terminal of the next logic control unit. The bidirectional train comprises a plurality of carriages, each carriage is provided with a logic control unit, and the sequential control of the whole bidirectional train can be realized by referring to the working mode of the current logic control unit.
Fig. 5 is a schematic diagram of a hardware structure of a bidirectional train control device 50 according to an embodiment of the present invention, including:
a memory 51 for storing a computer program;
a processor 52 for executing a computer program to implement the steps of the bidirectional train control method described above.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program is executed by a processor to realize the steps of the bidirectional train control method.
The foregoing describes a bidirectional train control method, apparatus, and computer-readable storage medium provided by the embodiments of the present invention in detail. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

Claims (7)

1. A bi-directional train control method adapted for use with a logic control unit having multiple inputs and outputs, the method comprising:
judging whether the direction signal of the current logic control unit is not locked;
if so, adjusting the signal form of the direction signal according to the level signals of the two input ends of the current logic control unit;
if not, adjusting the level of the output end corresponding to the input end according to the direction type of the direction signal and the control signal in the current logic control unit;
transmitting the level signal of the target output end to the input end of the next logic control unit;
the adjusting the signal form of the direction signal according to the level signals of the two input ends of the current logic control unit comprises:
judging whether the level signal of the first input end is high level and the level signal of the second input end is low level;
if yes, adjusting the direction signal into a positive effective signal;
if not, judging whether the level signal of the first input end is a low level and the level signal of the second input end is a high level;
if yes, adjusting the direction signal into a reverse effective signal;
if not, setting the level of a first output end corresponding to the first input end in the current logic control unit as a low level, and setting the level of a second output end corresponding to the second input end as a low level;
the adjusting the level of the output end corresponding to the input end according to the direction type of the direction signal and the control signal in the current logic control unit comprises:
when the direction signal is a positive effective signal, setting a level signal of a first output end according to the level signal of the first input end and the control signal; and setting the second output terminal to a low level;
when the direction signal is a reverse effective signal, setting a level signal of a second output end according to the level signal of the second input end and the control signal; and setting the first output terminal to a low level;
setting a level signal of a first output end according to the level signal of the first input end and a control signal; and after setting the second output terminal to a low level, the method further comprises:
judging whether the first input end is at a low level;
when the first input end is at a high level, clearing the count value;
when the first input end is at a low level, adding one to the count value, and judging whether the second input end is at the low level or whether the count value is greater than or equal to a preset threshold value;
if yes, the direction signal is adjusted to be an invalid signal.
2. The method according to claim 1, wherein the level signal of the second output terminal is set according to the level signal of the second input terminal and the control signal; and after setting the first output terminal to a low level, the method further comprises:
judging whether the second input end is at a low level;
when the second input end is at a high level, clearing the count value;
when the second input end is at a low level, adding one to the count value, and judging whether the first input end is at the low level or whether the count value is greater than or equal to a preset threshold value;
if yes, the direction signal is adjusted to be an invalid signal.
3. The method of claim 2, further comprising, after the setting the level of the first output terminal corresponding to the first input terminal to a low level and the level of the second output terminal corresponding to the second input terminal to a low level in the current logic control unit:
and clearing the count value.
4. The method according to any one of claims 1 to 3, wherein before transmitting the level signal of the target output terminal to the input terminal of the next logic control unit, the method further comprises:
judging whether the current logic control unit is an ultimate node unit or not;
if not, executing the step of transmitting the level signal of the target output end to the input end of the next logic control unit;
and if so, taking the level signal of the target output end as a comprehensive judgment result of the train line level.
5. A bidirectional train control device is characterized by being suitable for a logic control unit with multiple input and output paths, and comprising a judging unit, a first adjusting unit, a second adjusting unit and an output unit;
the judging unit is used for judging whether the direction signal of the current logic control unit does not lock the direction; if yes, triggering the first adjusting unit; if not, triggering the second adjusting unit;
the first adjusting unit is used for adjusting the signal form of the direction signal according to the level signals of the two input ends of the current logic control unit;
the second adjusting unit is used for adjusting the level of the output end corresponding to the input end according to the direction type of the direction signal and the control signal in the current logic control unit;
the output unit is used for transmitting the level signal of the target output end to the input end of the next logic control unit;
the first adjusting unit comprises a first judging subunit, a forward adjusting subunit, a second judging subunit, a reverse adjusting subunit and a resetting subunit; the first judging subunit is configured to judge whether the level signal of the first input end is a high level and whether the level signal of the second input end is a low level; if yes, triggering the forward adjustment subunit; if not, triggering the second judgment subunit; the forward adjusting subunit is configured to adjust the direction signal into a forward effective signal; the second judging subunit is configured to judge whether the level signal of the first input end is a low level and whether the level signal of the second input end is a high level; if yes, triggering the reverse adjustment subunit; if not, triggering the reset subunit; the reverse adjustment subunit is used for adjusting the direction signal into a reverse effective signal; the reset subunit is configured to set a level of a first output end of the current logic control unit, which corresponds to the first input end, to a low level, and set a level of a second output end of the current logic control unit, which corresponds to the second input end, to a low level; the second adjusting unit comprises a first setting subunit and a second setting subunit; the first setting subunit is configured to set a level signal of a first output end according to the level signal of the first input end and the control signal when the direction signal is a positive direction effective signal; and setting the second output terminal to a low level; the second setting subunit is configured to set a level signal of a second output end according to the level signal of the second input end and the control signal when the direction signal is the reverse effective signal; and setting the first output terminal to a low level; the device also comprises a first input end judging unit, a zero clearing unit, an accumulation unit, a second input end judging unit and an invalid unit; the first input end judging unit is used for setting a level signal of a first output end according to the level signal and the control signal of the first input end; after the second output end is set to be at a low level, judging whether the first input end is at the low level; the zero clearing unit is used for clearing the count value when the first input end is at a high level; the accumulation unit is used for adding one to the count value and triggering the second input end judgment unit when the first input end is at a low level; the second input end judging unit is used for judging whether the second input end is in a low level or whether the count value is greater than or equal to a preset threshold value; if yes, triggering the invalid unit; and the invalid unit is used for adjusting the direction signal into an invalid signal.
6. A bi-directional train control device, comprising:
a memory for storing a computer program;
a processor for executing said computer program to implement the steps of the bidirectional train control method according to any of claims 1 to 4.
7. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the bidirectional train control method according to any one of claims 1 to 4.
CN201910122731.6A 2019-02-19 2019-02-19 Bidirectional train control method and device and computer readable storage medium Active CN109808738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910122731.6A CN109808738B (en) 2019-02-19 2019-02-19 Bidirectional train control method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910122731.6A CN109808738B (en) 2019-02-19 2019-02-19 Bidirectional train control method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109808738A CN109808738A (en) 2019-05-28
CN109808738B true CN109808738B (en) 2021-06-04

Family

ID=66606800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910122731.6A Active CN109808738B (en) 2019-02-19 2019-02-19 Bidirectional train control method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109808738B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112590872B (en) * 2020-12-29 2022-07-26 卡斯柯信号有限公司 Train running direction control system and method for bidirectional line section

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1021835A (en) * 1961-11-24 1966-03-09 Oerlikon Maschf Safety apparatus for use in controlling a railway vehicle
CN203775176U (en) * 2014-01-03 2014-08-13 北京润锋思创科技有限公司 Electric valve control circuit
CN104683174A (en) * 2013-12-02 2015-06-03 北车大连电力牵引研发中心有限公司 WTB (Wire Train bus) analysis device and method
CN205726572U (en) * 2016-06-20 2016-11-23 西京学院 A kind of railway car Lighting Control Assembly
CN106782334A (en) * 2016-12-19 2017-05-31 上海天马微电子有限公司 Scanning unit and gate drive circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1021835A (en) * 1961-11-24 1966-03-09 Oerlikon Maschf Safety apparatus for use in controlling a railway vehicle
CN104683174A (en) * 2013-12-02 2015-06-03 北车大连电力牵引研发中心有限公司 WTB (Wire Train bus) analysis device and method
CN203775176U (en) * 2014-01-03 2014-08-13 北京润锋思创科技有限公司 Electric valve control circuit
CN205726572U (en) * 2016-06-20 2016-11-23 西京学院 A kind of railway car Lighting Control Assembly
CN106782334A (en) * 2016-12-19 2017-05-31 上海天马微电子有限公司 Scanning unit and gate drive circuit

Also Published As

Publication number Publication date
CN109808738A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
US7975968B2 (en) Method and apparatus for detection of the occupied or free state of a track section
EP2754057B1 (en) Circuit and electronic module for automatic addressing
JP4416585B2 (en) Power supply for vehicle
CN109808738B (en) Bidirectional train control method and device and computer readable storage medium
CN111619593B (en) Safety control system and method under rail transit train fault
CN107248933A (en) A kind of method of the double main protection of rail traffic signal system
EP2347943A2 (en) Signalling system
KR20190133939A (en) Apparatus and Method for Fail-Proofing a Track Circuit
CN108832673B (en) Direct current charging system, PDU (Power distribution Unit) and starting charging detection method of charging path
JP2013023104A (en) Radio train control system
CN102394734B (en) RS 485 communication system with nonpolarized connection and control method thereof
CN112278019B (en) Semi-automatic block circuit and driving method of semi-automatic block circuit
RU2320509C1 (en) Method of and device to control track sections
US8654870B2 (en) Communication method, communication system and communication device
KR20070106072A (en) Controlling system of train in dead block and controlling method thereof
CN108235231B (en) Method and device for distinguishing train advancing direction in rail transit
JP6344302B2 (en) Battery controller
JP3458694B2 (en) Fail-safe system and railway operation management system
RU2310572C1 (en) Track circuit device
JP6152815B2 (en) Battery monitoring device
US20170155546A1 (en) Duplex control device and duplex system
JP2008278246A (en) Communication system, communication equipment and communication method
KR100978810B1 (en) Tester for a One to One Matching Type Frequency Transmitting and Receiving Card
KR100694511B1 (en) Device for controlling fault by using majority logic at onboard equipment of train in RCBTC system
CN114173293B (en) Network car booking message notification method, device, system, server and storage medium

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