|
(11) | EP 3 895 958 A1 |
| (12) | EUROPEAN PATENT APPLICATION |
| published in accordance with Art. 153(4) EPC |
|
|
|
|
|||||||||||||||||||||||||||||||||||
| (54) | METHOD FOR PROCESSING TRAIN INTERFACE DATA OF HOT-STANDBY VEHICLE-MOUNTED DEVICE |
| (57) This invention provides a method for processing train interface data of hot standby
on-board equipment, wherein a second main control unit is used for hot backup of a
first main control unit, power is supplied to the first main control unit and the
second main control unit concurrently; the first main control unit and the second
main control unit receive input signals transmitted by a train interface, and control
the input signals to maintain consistent. The problems that when the first main control
unit which is operating fails, the trains are required to stop so as to switch from
the first main control unit to the second main control unit due to that existing on-board
equipment generally adopts the second main control unit for cold backup or warm backup
of the first main control unit are solved. |
TECHNICAL FIELD
BACKGROUND
SUMMARY
a second main control unit is used for hot backup of a first main control unit, power is supplied to the first main control unit and the second main control unit concurrently;
the first main control unit and the second main control unit receive input signals transmitted by a train interface, and control the input signals to maintain consistent;
when the on-board equipment loses power, or the first main control unit and the second main control unit both fail, the on-board equipment transmits a safety command to the train interface;
when at least one of the first main control unit and the second main control unit is in a normal operating state, the on-board equipment determines whether to transmit a safety command to the train interface according to an operating situation.
S1: the second main control unit receives a currently collected first input signal transmitted by the first main control unit;
S2: the second main control unit compares the first input signal with a currently collected second input signal; if signal content of the first input signal and signal content of the second input signal are consistent, the first main control unit uses the currently collected first input signal as input and the second main control unit uses the currently collected second input signal as input; if signal content of the first input signal and signal content of the second input signal are inconsistent, the first main control unit discards the first input signal and the second main control unit discards the second input signal, the first main control unit and the second main control unit maintain previous consistent signals as input.
the first main control unit receives a current input signal, and transmits the input signal to the second main control unit;
the second main control unit receives the input signal as its own input signal.
when the first main control unit fails or has no power, the second main control unit determines according to needs whether to transmit a safety command to the train interface;
or, when the second main control unit fails or has no power, the first main control unit determines according to needs whether to transmit a safety command to the train interface;
or, when the first main control unit and the second main control unit are both operating normally, the second main control unit continues to transmit a safety command to a circuit module within the on-board equipment; the first main control unit determines according to needs whether to transmit a safety command to the circuit module; a safety command is transmitted to the train interface if the circuit module receives the safety command of the second main control unit and the safety command of the first main control unit; no safety command is transmitted to the train interface if the circuit module only receives the safety command of the second main control unit.
when the first main control unit fails or has no power, the second main control unit determines according to needs whether to transmit a safety command to the train interface;
or, when the second main control unit fails or has no power, the first main control unit determines according to needs whether to transmit a safety command to the train interface;
or, when the first main control unit and the second main control unit are both operating normally, the first main control unit or the second main control unit determines whether to transmit a safety command to the train interface according to states of a local end and a peer end.
T1: initially, both the local end and the peer end are in an idle state;
T2: when the local end transmits a safety command to the train interface, it is determined whether a transmitting state of the safety command changes; in the case where the transmitting state of the safety command changes, a first timer is started, a state of monitoring a peer end is entered, step T3 is executed; in the case where a transmitting state of the safety command does not change, it is determined whether safety command information of the peer end is received, if safety command information of the peer end is received, an acknowledgement packet of having receipted the safety command information is transmitted to the peer end, and a second timer is started, a state of monitoring the local end is entered, step T4 is executed; if no safety command information of the peer end is received, it continues to determine whether the transmitting state of the safety command of the local end changes;
T3: it is determined whether the transmitting state of a changed safety command is to transmit a safety command to the train interface; if the transmitting state of the changed safety command is to transmit a safety command to the train interface, the local end transmits a safety command to the train interface and periodically transmits, to the peer end, information for transmitting safety command to the train interface, it continues to execute step T3-1; if the changed safety command transmitting state is to not transmit a safety command to the train interface, the local end will not transmit a safety command to the train interface temporarily, and periodically transmits, to the peer end, information for not transmitting a safety command to the train interface, it continues to execute step T3-2;
T3-1: it is determined whether safety command information of the peer end is received; if safety command information of the peer end is received, an acknowledgement packet of having receipted the safety command information is transmitted to the peer end, and it is determined whether the safety command information of the peer end and the transmitting state of the changed safety command of the local end are consistent; if the safety command information of the peer end and the transmitting state of the changed safety command of the local end are consistent, the first timer is closed, the local end enters an idle state; if the safety command information of the peer end and the transmitting state of the changed safety command of the local end are inconsistent, the local end enters a fault state; if no safety command information of the peer end is received, it is determined whether timing of the first timer expires; if timing of the first timer expires, the first timer is closed, the local end enters the idle state; if timing of the first timer does not expire, it is determined whether an acknowledgement packet for safety command information of the peer end is received; if an acknowledgement packet for safety command information of the peer end is received, it stops transmitting, to the peer end, information for transmitting safety command information to the train interface, a current state is maintained; if no acknowledgement packet for safety command information of the peer end is received, it is determined whether the information for transmitting safety command information to the train interface has been transmitted to the peer end for more than a specified number of times; if the information for transmitting safety command information to the train interface has been transmitted to the peer end for more than the specified number of times, it stops transmitting, to the peer end, information for transmitting safety command information to the train interface, and the local end enters a fault state; if the information for transmitting safety command information to the train interface has not been transmitted to the peer end for more than the specified number of times, it continues to transmit, to the peer end, information for transmitting safety command information to the train interface;
T3-2: it is determined whether safety command information of the peer end is received; if safety command information of the peer end is received, an acknowledgement packet of having receipted the safety command information is transmitted to the peer end, and it is determined whether the safety command information of the peer end and the transmitting state of the changed safety command of the local end are consistent; if the safety command information of the peer end and the transmitting state of the changed safety command of the local end are consistent, the first timer is closed, the local end enters an idle state; if the safety command information of the peer end and the transmitting state of the changed safety command of the local end are inconsistent, the local end enters a fault state; if no safety command information of the peer end is received, it is determined whether timing of the first timer expires; if timing of the first timer expires, the first timer is closed, the local end enters the idle state; if timing of the first timer does not expire, it is determined whether an acknowledgement packet for safety command information of the peer end is received; if an acknowledgement packet for safety command information of the peer end is received, it stops transmitting, to the peer end, information for not transmitting safety command information to the train interface, a current state is maintained; if no acknowledgement packet for safety command information of the peer end is received, it is determined whether the information for not transmitting safety command information to the train interface has been transmitted to the peer end for more than a specified number of times; if the information for not transmitting safety command information to the train interface has been transmitted to the peer end for more than the specified number of times, it stops transmitting, to the peer end, information for transmitting safety command information to the train interface, and the local end enters a fault state; if the information for not transmitting safety command information to the train interface has not been transmitted to the peer end for more than the specified number of times, it continues to transmit, to the peer end, information for not transmitting safety command information to the train interface;
T4: when the local end transmits a safety command to the train interface, it is determined whether a transmitting state of the safety command changes; in the case where the transmitting state of the safety command changes, it is determined whether the transmitting state of the changed safety command of the local end is consistent with the safety command information of the peer end as received; if the transmitting state of the changed safety command of the local end is consistent with the safety command information of the peer end as received, the local end maintains the transmitting state of the changed safety command, and transmits the changed safety command information to the peer end, the second timer is turned off, it enters a state of waiting for acknowledgement from the peer end, it continues to execute step T5; if the transmitting state of the changed safety command is inconsistent with the safety command information of the peer as received, the second timer is closed, the local end enters a fault state; if the answer is negative, it is determined whether the second timer expires; if the second timer expires, the second timer is closed, it enters a fault state; if the second timer does not expire, it continues to determine whether a transmitting state of the safety command changes when the local end transmits a safety command to the train interface.
T5: the changed safety command information is transmitted to the peer end periodically, it is determined whether acknowledgement information about the safety command of the peer end is received; if acknowledgement information about the safety command of the peer end is received, the local end enters an idle state; if no acknowledgement information about the safety command of the peer end is received, it is determined whether the number of times of transmitting the changed safety command information to the peer end exceeds the specified number of times; if the number of times of transmitting the changed safety command information to the peer end exceeds the specified number of times, the local end enter an idle state; if the number of times of transmitting the changed safety command information to the peer end does not exceed the specified number of times, it continues to transmit the changed safety command information to the peer end.
when at least one of the first main control unit and the second main control unit is in a normal operating state, the on-board equipment determines whether to transmit the train interface control command to the train interface according to an operating situation, which specifically comprises:
when the first main control unit fails or has no power, the first main control unit does not transmit the train interface control command to the train interface, the second main control unit determines according to needs whether to transmit the train interface control command to the train interface;
or, when the second main control unit fails or has no power, the second main control unit does not transmit the train interface control command to the train interface, the first main control unit determines according to needs whether to transmit the train interface control command to the train interface;
or, the first main control unit and the second main control unit are both in a normal operating state, the second main control unit cancels transmitting the train interface control command to a circuit module within the on-board equipment; the first main control unit determines according to needs whether to transmit the train interface control command to the circuit module; the train interface control command is not transmitted to the train interface if the circuit module does not receive the train interface control command; the train interface control command is transmitted to the train interface if the circuit module receives information for the train interface control command of the first main control unit.
D1: after the first main control unit receives a brake test request, a brake test is performed; if the brake test fails, a driver is reminded of that the brake test fails, the brake test is re-executed until the brake test is successful; if the brake test is successful, the second main control unit is instructed to perform a brake test;
D2: after the second main control unit receives the command and transmits a command receipt acknowledgement to the first main control unit, the second main control unit starts to perform a brake test; if the brake test is successful, a brake test result is transmitted to the first main control unit, the first main control unit feeds back brake test results of the local end and the second main control unit to the driver;
if the brake test fails, it is determined whether the number of times of braking exceeds a specified number of times, step D3 is executed in the case where it exceeds, step D4 is executed in the case where it does not exceed;
D3: the brake test is repeated until the brake test is successful, thereafter the brake test result is transmitted to the first main control unit, the first main control unit feeds back the brake test results of the local end and the second main control unit to the driver;
D4: the first main control unit is informed of test end, the second main control unit enters a fault state; after the first main control unit receives a test end message of the second main control unit, it will feed back the brake test result of the first main control unit to the driver.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG 1 is a schematic diagram of signal transmission between the hot standby on-board equipment and the train interface of the present invention;
FIG 2 is a block diagram of overall flowchart of the method for processing train interface data of hot standby on-board equipment of the present invention;
FIG 3 is a block diagram of flowchart of Scheme 1 in the case where the input signals are maintained consistent;
FIG. 4 is a block diagram of flowchart of Scheme 2 in the case where the input signals are maintained consistent;
FIG. 5 is a block diagram of partial flowchart for Situation 3 in Scheme 2 adopted in the processing measures for the brake command;
FIG. 6 is a block diagram of partial flowchart for Situation 3 in Scheme 2 adopted in the processing measures for the brake command;
FIG. 7 is a block diagram of partial flowchart for Situation 3 in Scheme 2 adopted in the processing measures for the brake command;
FIG. 8 is a block diagram of partial flowchart for Situation 3 in Scheme 2 adopted in the processing measures for the brake command;
FIG. 9 is a block diagram of partial flowchart for Situation 3 in Scheme 2 adopted in the processing measures for the traction removing command;
FIG. 10 is a block diagram of partial flowchart for Situation 3 in Scheme 2 adopted in the processing measures for the traction removing command;
FIG. 11 is a block diagram of partial flowchart for Situation 3 in Scheme 2 adopted in the processing measures for the traction removing command;
FIG. 12 is a block diagram of partial flowchart for Situation 3 in Scheme 2 adopted in the processing measures for the traction removing command;
FIG. 13 is a flowchart of the brake test of on-board equipment.
DETAILED DESCRIPTION OF THE EMBODIMENTS
S1: the first main control unit receives a current first input signal, and the second main control unit receives a current second input signal;
S2: the first main control unit transmits the first input signal to the second main control unit;
S3: the second main control unit compares signal content of the first input signal and signal content of the second input signal; if signal contents thereof are consistent, the first main control unit is notified to use the currently collected first input signal as input and the second main control unit is notified to use the currently collected second input signal as input; if signal contents thereof are inconsistent, the first main control unit is notified to discard the first input signal and the second main control unit is notified to discard the second input signal, the first main control unit and the second main control unit maintain previous consistent signals as input.
Scheme 1:
Case 1: the first main control unit fails or has no power, the second main control unit determines whether to transmit a braking command to the train interface or to cancel transmitting a braking command to the train interface as required, for example, the second main control unit transmits a braking command to the train interface in the case where the train drives over a speed limit, the second main control unit does not transmit a braking command to the train interface when the train does not drive over a speed limit;
Case 2: the second main control unit fails or has no power, the first main control unit determines whether to transmit a braking command to the train interface or to cancel transmitting a braking command to the train interface as required, the example scenario of "as required" is as above;
Case 3: the first main control unit and the second main control unit are both normally operating, the second main control unit continues to transmit a braking command to a circuit module within the on-board equipment;
the first main control unit determines whether to transmit a braking command to the circuit module or to cancel transmitting a braking command to the circuit module as required, the example scenario of "as required" is as above;
if the circuit module receives the braking command of the second main control unit and the braking command of the first main control unit, it transmits a braking command to the train interface;
if the circuit module only receives the braking command of the second main control unit, it cancels transmitting the braking command to the train interface.
Scheme 2:
Case 1: the first main control unit fails or has no power, the second main control unit determines whether to transmit a braking command to the train interface or to cancel transmitting a braking command to the train interface as required, the example scenario of "as required" is as above;
Case 2: the second main control unit fails or has no power, the first main control unit determines whether to transmit a braking command to the train interface or to cancel transmitting a braking command to the train interface as required, the example scenario of "as required" is as above;
Case 3: the first main control unit and the second main control unit are both normally operating, the first main control unit or the second main control unit determines whether to transmit a braking command to the train interface or to cancel transmitting a braking command to the train interface according to states of a local end and a peer end, the specific processing is provided below.
T1: as shown in FIG. 5, initially, both the local end and the peer end are in an idle state; "both the local end and the peer end are in an idle state" means that the local end and the peer end remain in the same state, that is, the local end and the peer end are in the state of transmitting the brake command at the same time, or the local end and the peer end are in the state of cancelling transmitting the brake state at the same time;
T2: when the local end transmits a braking command to the train interface, it is determined whether a transmitting state of the braking command changes; in the case where the transmitting state of the braking command changes, a first timer is started, a state of monitoring a peer end is entered, then step T3 is executed; in the case where a transmitting state of the braking command does not change, it continues to determine whether braking command information of the peer end is received, if braking command information of the peer end is received, an acknowledgement packet of having receipted the braking command information is transmitted to the peer end, and a second timer is started, a state of monitoring the local end is entered, then step T4 is executed; if no braking command information of the peer end is received, it continues to determine whether the transmitting state of the braking command of the local end changes when the local end transmits a braking command to the train interface;
T3: it is determined whether the transmitting state of a changed braking command is to transmit a braking command to the train interface or to cancel transmitting a braking command to the train interface; if the transmitting state of the changed braking command is to transmit a braking command to the train interface, the local end transmits a braking command to the train interface and periodically transmits, to the peer end, information for transmitting a braking command to the train interface, it continues to execute step T3-1; if the changed braking command transmitting state is to cancel transmitting a braking command to the train interface, the local end cancels transmitting a braking command to the train interface temporarily, and periodically transmits, to the peer end, information for cancelling transmitting a braking command to the train interface, it continues to execute step T3-2;
T3-1: as shown in FIG. 6, it is determined whether braking command information of the peer end is received; if braking command information of the peer end is received, an acknowledgement packet of having receipted the braking command information is transmitted to the peer end, and it is determined whether the braking command information of the peer end and the transmitting state of the changed braking command of the local end are consistent; if the braking command information of the peer end and the transmitting state of the changed braking command of the local end are consistent, the first timer is closed, the local end enters an idle state; if the braking command information of the peer end and the transmitting state of the changed braking command of the local end are inconsistent, the local end enters a fault state; if no braking command information of the peer end is received, it is determined whether timing of the first timer expires; if timing of the first timer expires, the first timer is closed, the local end enters the idle state; if timing of the first timer does not expire, it is determined whether an acknowledgement packet for braking command information of the peer end is received; if an acknowledgement packet for braking command information of the peer end is received, it stops transmitting, to the peer end, information for transmitting braking command information to the train interface, a current state is maintained; if no acknowledgement packet for braking command information of the peer end is received, it is determined whether the information for transmitting braking command information to the train interface has been transmitted to the peer end for more than a specified number of times; if the information for transmitting braking command information to the train interface has been transmitted to the peer end for more than the specified number of times, it stops transmitting, to the peer end, information for transmitting braking command information to the train interface, and the local end enters a fault state; if the information for transmitting braking command information to the train interface has not been transmitted to the peer end for more than the specified number of times, it continues to transmit, to the peer end, information for transmitting braking command information to the train interface;
T3-2: as shown in FIG. 7, it is determined whether braking command information of the peer end is received; if braking command information of the peer end is received, an acknowledgement packet of having receipted the braking command information is transmitted to the peer end, and it is determined whether the braking command information of the peer end and the transmitting state of the changed braking command of the local end are consistent; if the braking command information of the peer end and the transmitting state of the changed braking command of the local end are consistent, the first timer is closed, the local end enters an idle state; if the braking command information of the peer end and the transmitting state of the changed braking command of the local end are inconsistent, the local end enters a fault state; if no braking command information of the peer end is received, it is determined whether timing of the first timer expires; if timing of the first timer expires, the first timer is closed, the local end enters the idle state; if timing of the first timer does not expire, it is determined whether an acknowledgement packet for braking command information of the peer end is received; if an acknowledgement packet for braking command information of the peer end is received, it stops transmitting, to the peer end, information for cancelling transmitting braking command information to the train interface, a current state is maintained; if no acknowledgement packet for braking command information of the peer end is received, it is determined whether the information for cancelling transmitting braking command information to the train interface has been transmitted to the peer end for more than a specified number of times; if the information for cancelling transmitting braking command information to the train interface has been transmitted to the peer end for more than the specified number of times, it stops transmitting, to the peer end, information for transmitting braking command information to the train interface, and the local end enters a fault state; if the information for cancelling transmitting braking command information to the train interface has not been transmitted to the peer end for more than the specified number of times, it continues to transmit, to the peer end, information for cancelling transmitting braking command information to the train interface;
T4: as shown in FIG. 8, when the local end transmits a braking command to the train interface, it is determined whether a transmitting state of the braking command changes; in the case where the transmitting state of the braking command changes, it is determined whether the transmitting state of the changed braking command of the local end is consistent with the braking command information of the peer end as received; if the transmitting state of the changed braking command of the local end is consistent with the braking command information of the peer end as received, the local end maintains the transmitting state of the changed braking command, and transmits the changed braking command information to the peer end, the second timer is turned off, it enters a state of waiting for acknowledgement from the peer end, it continues to execute step T5; if the transmitting state of the changed braking command is inconsistent with the braking command information of the peer as received, the second timer is closed, the local end enters a fault state; if the transmitting state of the braking command does not change, it is determined whether the second timer expires; if the second timer expires, the second timer is closed, it enters a fault state; if the second timer does not expire, it continues to determine whether a transmitting state of the braking command changes when the local end transmits a braking command to the train interface;
T5: the changed braking command information is transmitted to the peer end periodically, it is determined whether acknowledgement information about the braking command of the peer end is received; if acknowledgement information about the braking command of the peer end is received, the local end enters an idle state; if no acknowledgement information about the braking command of the peer end is received, it is determined whether the number of times of transmitting the changed braking command information to the peer end exceeds the specified number of times; if the number of times of transmitting the changed braking command information to the peer end exceeds the specified number of times, the local end enters an idle state; if the number of times of transmitting the changed braking command information to the peer end does not exceed the specified number of times, it continues to transmit the changed braking command information to the peer end.
Scheme 1:
Case 1: the first main control unit fails or has no power, the second main control unit determines whether to transmit a traction removing command to the train interface or to cancel transmitting a traction removing command to the train interface as required, for example, the second main control unit transmits a traction removing command to the train interface in the case where the train drives over a speed limit, the second main control unit does not transmit a traction removing command to the train interface when the train does not drive over a speed limit;
Case 2: the second main control unit fails or has no power, the first main control unit determines whether to transmit a traction removing command to the train interface or to cancel transmitting a traction removing command to the train interface as required, the example scenario of "as required" is as above;
Case 3: the first main control unit and the second main control unit are both normally operating, the second main control unit continues to transmit a traction removing command to a circuit module within the on-board equipment;
the first main control unit determines whether to transmit a traction removing command to the circuit module or to cancel transmitting a traction removing command to the circuit module as required, the example scenario of "as required" is as above;
if the circuit module receives the traction removing command of the second main control unit and the traction removing command of the first main control unit, it transmits a traction removing command to the train interface;
if the circuit module only receives the traction removing command of the second main control unit, it cancels transmitting the traction removing command to the train interface.
Scheme 2:
Case 1: the first main control unit fails or has no power, the second main control unit determines whether to transmit a traction removing command to the train interface or to cancel transmitting a traction removing command to the train interface as required, the example scenario of "as required" is as above;
Case 2: the second main control unit fails or has no power, the first main control unit determines whether to transmit a traction removing command to the train interface or to cancel transmitting a traction removing command to the train interface as required, the example scenario of "as required" is as above;
Case 3: the first main control unit and the second main control unit are both normally operating, the first main control unit or the second main control unit determines whether to transmit a traction removing command to the train interface or to cancel transmitting a traction removing command to the train interface according to states of a local end and a peer end, the specific processing is provided below.
P1: as shown in FIG. 9, initially, both the local end and the peer end are in an idle state; "both the local end and the peer end are in an idle state" means that the local end and the peer end remain in the same state, that is, the local end and the peer end are in the state of transmitting a traction removing command at the same time, or the local end and the peer end are in the state of cancelling transmitting a traction removing command at the same time;
P2: when the local end transmits a traction removing command to the train interface, it is determined whether a transmitting state of the traction removing command changes; in the case where the transmitting state of the traction removing command changes, a first timer is started, a state of monitoring a peer end is entered, then step P3 is executed; in the case where a transmitting state of the traction removing command does not change, it is determined whether traction removing command information of the peer end is received, if traction removing command information of the peer end is received, a second timer is started, a state of monitoring the local end is entered, then step P4 is executed; if no traction removing command information of the peer end is received, it continues to determine whether the transmitting state of the traction removing command of the local end changes when the local end transmits a traction removing command to the train interface;
P3: it is determined whether the transmitting state of a changed traction removing command is to transmit a traction removing command to the train interface or to cancel transmitting a traction removing command to the train interface; if the transmitting state of the changed traction removing command is to transmit a traction removing command to the train interface, the local end transmits a traction removing command to the train interface and periodically transmits, to the peer end, information for transmitting a traction removing command to the train interface, it continues to execute step P3-1; if the changed traction removing command transmitting state is to cancel transmitting a traction removing command to the train interface, the local end cancels transmitting a traction removing command to the train interface temporarily, and periodically transmits, to the peer end, information for cancelling transmitting a traction removing command to the train interface, it continues to execute step P3-2;
P3-1: as shown in FIG. 10, it is determined whether traction removing command information of the peer end is received; if traction removing command information of the peer end is received, an acknowledgement packet of having receipted the traction removing command information is transmitted to the peer end, and it is determined whether the traction removing command information of the peer end and the transmitting state of the changed traction removing command of the local end are consistent; if the traction removing command information of the peer end and the transmitting state of the changed traction removing command of the local end are consistent, the first timer is closed, the local end enters an idle state; if the traction removing command information of the peer end and the transmitting state of the changed traction removing command of the local end are inconsistent, the local end enters a fault state; if no traction removing command information of the peer end is received, it is determined whether timing of the first timer expires; if timing of the first timer expires, the first timer is closed, the local end enters the idle state; if timing of the first timer does not expire, it is determined whether an acknowledgement packet for traction removing command information of the peer end is received; if an acknowledgement packet for traction removing command information of the peer end is received, it stops transmitting, to the peer end, information for transmitting traction removing command information to the train interface, a current state is maintained; if no acknowledgement packet for traction removing command information of the peer end is received, it is determined whether the information for transmitting traction removing command information to the train interface has been transmitted to the peer end for more than a specified number of times; if the information for transmitting traction removing command information to the train interface has been transmitted to the peer end for more than the specified number of times, it stops transmitting, to the peer end, information for transmitting traction removing command information to the train interface, and the local end enters a fault state; if the information for transmitting traction removing command information to the train interface has not been transmitted to the peer end for more than the specified number of times, it continues to transmit, to the peer end, information for transmitting traction removing command information to the train interface;
P3-2: as shown in FIG. 11, it is determined whether traction removing command information of the peer end is received; if traction removing command information of the peer end is received, an acknowledgement packet of having receipted the traction removing command information is transmitted to the peer end, and it is determined whether the traction removing command information of the peer end and the transmitting state of the changed traction removing command of the local end are consistent; if the traction removing command information of the peer end and the transmitting state of the changed traction removing command of the local end are consistent, the first timer is closed, the local end enters an idle state; if the traction removing command information of the peer end and the transmitting state of the changed traction removing command of the local end are inconsistent, the local end enters a fault state; if no traction removing command information of the peer end is received, it is determined whether timing of the first timer expires; if timing of the first timer expires, the first timer is closed, the local end enters the idle state; if timing of the first timer does not expire, it is determined whether an acknowledgement packet for traction removing command information of the peer end is received; if an acknowledgement packet for traction removing command information of the peer end is received, it stops transmitting, to the peer end, information for cancelling transmitting traction removing command information to the train interface, a current state is maintained; if no acknowledgement packet for traction removing command information of the peer end is received, it is determined whether the information for cancelling transmitting traction removing command information to the train interface has been transmitted to the peer end for more than a specified number of times; if the information for cancelling transmitting traction removing command information to the train interface has been transmitted to the peer end for more than the specified number of times, it stops transmitting, to the peer end, information for transmitting traction removing command information to the train interface, and the local end enters a fault state; if the information for cancelling transmitting traction removing command information to the train interface has not been transmitted to the peer end for more than the specified number of times, it continues to transmit, to the peer end, information for cancelling transmitting traction removing command information to the train interface;
P4: as shown in FIG. 12, when the local end transmits a traction removing command to the train interface, it is determined whether a transmitting state of the traction removing command changes; in the case where the transmitting state of the traction removing command changes, it is determined whether the transmitting state of the changed traction removing command of the local end is consistent with the traction removing command information of the peer end as received; if the transmitting state of the changed traction removing command of the local end is consistent with the traction removing command information of the peer end as received, the local end maintains the transmitting state of the changed traction removing command, and transmits the changed traction removing command information to the peer end, the second timer is turned off, it enters a state of waiting for acknowledgement from the peer end, it continues to execute step P5; if the transmitting state of the changed traction removing command is inconsistent with the traction removing command information of the peer as received, the second timer is closed, the local end enters a fault state; if the transmitting state of the traction removing command does not change, it is determined whether the second timer expires; if the second timer expires, the second timer is closed, it enters a fault state; if the second timer does not expire, it continues to determine whether a transmitting state of the traction removing command changes when the local end transmits a traction removing command to the train interface;
P5: the changed traction removing command information is transmitted to the peer end periodically, it is determined whether acknowledgement information about the traction removing command of the peer end is received; if acknowledgement information about the traction removing command of the peer end is received, the local end enters an idle state; if no acknowledgement information about the traction removing command of the peer end is received, it is determined whether the number of times of transmitting the changed traction removing command information to the peer end exceeds the specified number of times; if the number of times of transmitting the changed traction removing command information to the peer end exceeds the specified number of times, the local end enter an idle state; if the number of times of transmitting the changed traction removing command information to the peer end does not exceed the specified number of times, it continues to transmit the changed traction removing command information to the peer end.
Case 1: the first main control unit fails or has no power, the first main control unit continues to cancel transmitting a Passing Neutral Section command to the train interface, the second main control unit determines whether to transmit a Passing Neutral Section command to the train interface as required, for example, the second main control unit transmits a Passing Neutral Section command to the train interface in a railway section that needs to execute a Passing Neutral Section command, the second main control unit does not transmit a Passing Neutral Section command to the train interface in a railway section that does not need to execute a Passing Neutral Section command;
Case 2: the second main control unit fails or has no power, the second main control unit continues to cancel transmitting a Passing Neutral Section command to the train interface, the first main control unit determines whether to transmit a Passing Neutral Section command to the train interface as required, the example scenario of "as required" is as above;
Case 3: the first main control unit and the second main control unit are both normally operating, the second main control unit continues to transmit a Passing Neutral Section command to a circuit module within the on-board equipment;
the first main control unit determines whether to transmit a Passing Neutral Section command to the circuit module or to cancel transmitting a Passing Neutral Section command to the circuit module as required, the example scenario of "as required" is as above;
if the circuit module does not receive a Passing Neutral Section command, transmitting a Passing Neutral Section command to the train interface is cancelled;
if the circuit module receives a Passing Neutral Section command of the first main control unit, it transmits a Passing Neutral Section command to the train interface.
D1: the first main control unit receives a brake test request in real time, after the first main control unit receives a brake test request, the first main control unit starts to perform a brake test; if the brake test fails, a driver is reminded of that the brake test fails, the brake test is re-executed until the brake test is successful; if the brake test is successful, the second main control unit is instructed to perform a brake test;
D2: after the second main control unit receives a command of performing a brake test
transmitted by the first main control unit, it transmits a command receipt acknowledgement
to the first main control unit, the second main control unit starts to perform a brake
test; if the brake test is successful, a brake test result is transmitted to the first
main control unit, the first main control unit feeds back brake test results of the
local end and the second main control unit to the driver;
if the brake test fails, it is determined whether the number of times of braking test
exceeds a specified number of times, step D3 is executed in the case where it does
not exceed, step D4 is executed in the case where it exceeds;
D3: the brake test is repeated until the brake test is successful, thereafter the brake test result is transmitted to the first main control unit, the first main control unit feeds back the brake test results of the local end and the second main control unit to the driver;
D4: the first main control unit is informed of test end, the second main control unit enters a fault state; after the first main control unit receives a test end message of the second main control unit, it will feed back the brake test result of the first main control unit to the driver.
a second main control unit is used for hot backup of a first main control unit, power is supplied to the first main control unit and the second main control unit concurrently;
the first main control unit and the second main control unit receive input signals transmitted by a train interface, and control the input signals to be consistent;
when the on-board equipment loses power, or the first main control unit and the second main control unit both fail, the on-board equipment transmits a safety command to the train interface;
when at least one of the first main control unit and the second main control unit is in a normal operating state, the on-board equipment determines whether to transmit a safety command to the train interface according to an operating situation.
S1: the second main control unit receives a currently collected first input signal transmitted by the first main control unit;
S2: the second main control unit compares the first input signal with a currently collected second input signal; if signal content of the first input signal and signal content of the second input signal are consistent, the first main control unit uses the currently collected first input signal as input and the second main control unit uses the currently collected second input signal as input; if signal content of the first input signal and signal content of the second input signal are inconsistent, the first main control unit discards the first input signal and the second main control unit discards the second input signal, the first main control unit and the second main control unit remain using previous consistent signals as input.
the first main control unit receives a current input signal, and transmits the input signal to the second main control unit;
the second main control unit receives the input signal as its own input signal.
when the first main control unit fails or has no power, the second main control unit determines according to needs whether to transmit a safety command to the train interface;
or, when the second main control unit fails or has no power, the first main control unit determines according to needs whether to transmit a safety command to the train interface;
or, when the first main control unit and the second main control unit are both operating normally, the second main control unit continues to transmit a safety command to a circuit module within the on-board equipment; the first main control unit determines according to needs whether to transmit a safety command to the circuit module; a safety command is transmitted to the train interface if the circuit module receives the safety command of the second main control unit and the safety command of the first main control unit; no safety command is transmitted to the train interface if the circuit module only receives the safety command of the second main control unit.
when the first main control unit fails or has no power, the second main control unit determines according to needs whether to transmit a safety command to the train interface;
or, when the second main control unit fails or has no power, the first main control unit determines according to needs whether to transmit a safety command to the train interface;
or, when the first main control unit and the second main control unit are both operating normally, the first main control unit or the second main control unit determines whether to transmit a safety command to the train interface according to a state of a local end and a state of a peer end.
T1: initially, both the local end and the peer end are in an idle state;
T2: when the local end transmits a safety command to the train interface, it is determined whether a transmitting state of the safety command changes; in the case where the transmitting state of the safety command changes, a first timer is started, a state of monitoring a peer end is entered, step T3 is executed; in the case where a transmitting state of the safety command does not change, it is determined whether safety command information of the peer end is received, if safety command information of the peer end is received, an acknowledgement packet of having receipted the safety command information is transmitted to the peer end, and a second timer is started, a state of monitoring the local end is entered, step T4 is executed; if no safety command information of the peer end is received, it continues to determine whether the transmitting state of the safety command of the local end changes;
T3: it is determined whether the transmitting state of a changed safety command is to transmit a safety command to the train interface; if the transmitting state of the changed safety command is to transmit a safety command to the train interface, the local end transmits a safety command to the train interface and periodically transmits, to the peer end, information for transmitting a safety command to the train interface, it continues to execute step T3-1; if the changed safety command transmitting state is to not transmit a safety command to the train interface, the local end will not transmit a safety command to the train interface temporarily, and periodically transmits, to the peer end, information for not transmitting a safety command to the train interface, it continues to execute step T3-2;
T3-1: it is determined whether safety command information of the peer end is received; if safety command information of the peer end is received, an acknowledgement packet of having receipted the safety command information is transmitted to the peer end, and it is determined whether the safety command information of the peer end and the transmitting state of the changed safety command of the local end are consistent; if the safety command information of the peer end and the transmitting state of the changed safety command of the local end are consistent, the first timer is closed, the local end enters an idle state; if the safety command information of the peer end and the transmitting state of the changed safety command of the local end are inconsistent, the local end enters a fault state; if no safety command information of the peer end is received, it is determined whether timing of the first timer expires; if timing of the first timer expires, the first timer is closed, the local end enters the idle state; if timing of the first timer does not expire, it is determined whether an acknowledgement packet for safety command information of the peer end is received; if an acknowledgement packet for safety command information of the peer end is received, it stops transmitting, to the peer end, information for transmitting safety command information to the train interface, a current state is maintained; if no acknowledgement packet for safety command information of the peer end is received, it is determined whether the information for transmitting safety command information to the train interface has been transmitted to the peer end for more than a specified number of times; if the information for transmitting safety command information to the train interface has been transmitted to the peer end for more than the specified number of times, it stops transmitting, to the peer end, information for transmitting safety command information to the train interface, and the local end enters a fault state; if the information for transmitting safety command information to the train interface has not been transmitted to the peer end for more than the specified number of times, it continues to transmit, to the peer end, information for transmitting safety command information to the train interface;
T3-2: it is determined whether safety command information of the peer end is received; if safety command information of the peer end is received, an acknowledgement packet of having receipted the safety command information is transmitted to the peer end, and it is determined whether the safety command information of the peer end and the transmitting state of the changed safety command of the local end are consistent; if the safety command information of the peer end and the transmitting state of the changed safety command of the local end are consistent, the first timer is closed, the local end enters an idle state; if the safety command information of the peer end and the transmitting state of the changed safety command of the local end are inconsistent, the local end enters a fault state; if no safety command information of the peer end is received, it is determined whether timing of the first timer expires; if timing of the first timer expires, the first timer is closed, the local end enters the idle state; if timing of the first timer does not expire, it is determined whether an acknowledgement packet for safety command information of the peer end is received; if an acknowledgement packet for safety command information of the peer end is received, it stops transmitting, to the peer end, information for not transmitting safety command information to the train interface, a current state is maintained; if no acknowledgement packet for safety command information of the peer end is received, it is determined whether the information for not transmitting safety command information to the train interface has been transmitted to the peer end for more than a specified number of times; if the information for not transmitting safety command information to the train interface has been transmitted to the peer end for more than the specified number of times, it stops transmitting, to the peer end, information for transmitting safety command information to the train interface, and the local end enters a fault state; if the information for not transmitting safety command information to the train interface has not been transmitted to the peer end for more than the specified number of times, it continues to transmit, to the peer end, information for not transmitting safety command information to the train interface;
T4: when the local end transmits a safety command to the train interface, it is determined whether a transmitting state of the safety command changes; in the case where the transmitting state of the safety command changes, it is determined whether the transmitting state of the changed safety command of the local end is consistent with the safety command information of the peer end as received; if the transmitting state of the changed safety command of the local end is consistent with the safety command information of the peer end as received, the local end maintains the transmitting state of the changed safety command, and transmits the changed safety command information to the peer end, the second timer is turned off, it enters a state of waiting for acknowledgement from the peer end, it continues to execute step T5; if the transmitting state of the changed safety command is inconsistent with the safety command information of the peer as received, the second timer is closed, the local end enters a fault state; if the answer is negative, it is determined whether the second timer expires; if the second timer expires, the second timer is closed, it enters a fault state; if the second timer does not expire, it continues to determine whether a transmitting state of the safety command changes when the local end transmits a safety command to the train interface.
T5: the changed safety command information is transmitted to the peer end periodically, it is determined whether acknowledgement information about the safety command of the peer end is received; if acknowledgement information about the safety command of the peer end is received, the local end enters an idle state; if no acknowledgement information about the safety command of the peer end is received, it is determined whether the number of times of transmitting the changed safety command information to the peer end exceeds the specified number of times; if the number of times of transmitting the changed safety command information to the peer end exceeds the specified number of times, the local end enter an idle state; if the number of times of transmitting the changed safety command information to the peer end does not exceed the specified number of times, it continues to transmit the changed safety command information to the peer end.
the safety command includes a train interface control command;
when at least one of the first main control unit and the second main control unit is in a normal operating state, the on-board equipment determines whether to transmit the train interface control command to the train interface according to an operating situation, which specifically comprises:
when the first main control unit fails or has no power, the first main control unit does not transmit the train interface control command to the train interface, the second main control unit determines according to needs whether to transmit the train interface control command to the train interface;
or, when the second main control unit fails or has no power, the second main control unit does not transmit the train interface control command to the train interface, the first main control unit determines according to needs whether to transmit the train interface control command to the train interface;
or, the first main control unit and the second main control unit are both in a normal operating state, the second main control unit cancels transmitting the train interface control command to a circuit module within the on-board equipment; the first main control unit determines whether to transmit the train interface control command to the circuit module as required; the train interface control command is not transmitted to the train interface if the circuit module does not receive the train interface control command; the train interface control command is transmitted to the train interface if the circuit module receives information for the train interface control command of the first main control unit.
D1: after the first main control unit receives a brake test request, a brake test is performed; if the brake test fails, a driver is reminded of that the brake test fails, the brake test is re-executed until the brake test is successful; if the brake test is successful, the second main control unit is instructed to perform a brake test;
D2: after the second main control unit receives the command and transmits a command receipt acknowledgement to the first main control unit, the second main control unit starts to perform a brake test; if the brake test is successful, a brake test result is transmitted to the first main control unit, the first main control unit feeds back brake test results of the local end and the second main control unit to the driver;
if the brake test fails, it is determined whether the number of times of braking exceeds a specified number of times, step D3 is executed in the case where it exceeds, step D4 is executed in the case where it does not exceed;
D3: the brake test is repeated until the brake test is successful, thereafter the brake test result is transmitted to the first main control unit, the first main control unit feeds back the brake test results of the local end and the second main control unit to the driver;
D4: the first main control unit is informed of test end, the second main control unit enters a fault state; after the first main control unit receives a test end message of the second main control unit, it will feed back the brake test result of the first main control unit to the driver.