CN108873863B - Method and system for transmitting locomotive-to-locomotive instruction and multi-locomotive - Google Patents

Method and system for transmitting locomotive-to-locomotive instruction and multi-locomotive Download PDF

Info

Publication number
CN108873863B
CN108873863B CN201810690695.9A CN201810690695A CN108873863B CN 108873863 B CN108873863 B CN 108873863B CN 201810690695 A CN201810690695 A CN 201810690695A CN 108873863 B CN108873863 B CN 108873863B
Authority
CN
China
Prior art keywords
instruction
target
vehicle
bit binary
command
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
CN201810690695.9A
Other languages
Chinese (zh)
Other versions
CN108873863A (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 CN201810690695.9A priority Critical patent/CN108873863B/en
Publication of CN108873863A publication Critical patent/CN108873863A/en
Application granted granted Critical
Publication of CN108873863B publication Critical patent/CN108873863B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols

Abstract

The invention discloses a transmission method of instructions in a machine shop, which comprises the following steps of firstly, presetting the corresponding relation between N-bit binary numbers and instructions, so that each N-bit binary number corresponds to one instruction; then, the master vehicle transmits target N-bit binary numbers corresponding to the target instructions to the slave vehicles through N first hard lines, so that each bit of the target N-bit binary numbers can be transmitted to the slave vehicles through one first hard line; and finally, the slave vehicle can determine a target instruction according to the corresponding relation between the N-bit binary number and the instruction so as to finish the transmission of the instruction between the locomotives. Therefore, by applying the transmission method, the N hard wires can transmit 2NThe instruction is planted, so that the transmission efficiency of the instruction can be effectively improved; meanwhile, with the improvement of the instruction transmission efficiency, the number of hard wires can be reduced, and the hard wire connection structure can be further simplified. In addition, the invention also discloses a transmission system of the instructions between the locomotives and the reconnection locomotive, and the effect is as above.

Description

Method and system for transmitting locomotive-to-locomotive instruction and multi-locomotive
Technical Field
The invention relates to the field of rail transit, in particular to a method and a system for transmitting a locomotive workshop instruction and a multi-locomotive.
Background
With the continuous development of railway transportation, in the operation of a railway trunk line, a plurality of locomotives are often required to work in a coordinated manner, for example, when the maintenance of subway engineering is performed, a plurality of subway engineering maintenance vehicles are required to work in a coordinated manner.
At present, in order to reliably realize the mutual communication among a plurality of locomotives working in coordination, all the locomotives working in coordination adopt hard wire reconnection. However, since only one type of command can be transmitted per hard wire, the transmission efficiency of the command is low, and therefore, when the types of commands to be transmitted are large, a plurality of hard wires need to be correspondingly arranged, which results in a complicated circuit structure. In addition, the number of hard wires that can be connected to the hard wire reconnection socket of the locomotive is limited, and transmission of various instructions is difficult to meet.
Therefore, how to transmit the instructions between the elevator cars and simplify the hard-wired connection structure between the locomotives is a technical problem to be solved by those skilled in the art at present.
Disclosure of Invention
The invention aims to provide a method and a system for transmitting locomotive workshop instructions and a multi-locomotive, which can improve the transmission efficiency of the locomotive workshop instructions and simplify a hard wire connection structure between locomotives.
In order to solve the technical problem, the method for transmitting the instructions between the locomotives, provided by the invention, comprises the following steps:
presetting a corresponding relation between N-bit binary numbers and instructions, wherein one N-bit binary number corresponds to one instruction;
the method comprises the steps that a master vehicle transmits target N-bit binary numbers corresponding to target instructions to slave vehicles through N first hard lines, wherein one first hard line is used for transmitting one digit in the target N-bit binary numbers;
the slave vehicle receives the target N-bit binary number through N first hard wires and determines the target instruction according to the corresponding relation;
wherein N is a positive integer.
Preferably, after the slave vehicle successfully receives the target instruction, the method further comprises:
and the slave vehicle feeds back feedback information of successfully responding to the target instruction to the master vehicle through a second hard wire.
Preferably, when the slave vehicle does not successfully respond to the target instruction within a preset time, the method further comprises:
and the slave vehicle sets the level signal transmitted by the second hard wire as a valid signal to ensure that the next target instruction is normally transmitted.
Preferably, after the slave vehicle sets the level signal of the second hard line transmission as the valid signal, the method further includes:
and the main vehicle feeds back the alarm information of the target instruction response failure so as to give an alarm prompt to the user.
Preferably, the transmitting, by the master vehicle, a target N-bit binary number corresponding to the target instruction to the slave vehicle through the N first hardwires specifically includes:
setting the priority of the instruction in advance according to the importance degree of the instruction;
when two or more than two target instructions are generated simultaneously, the master vehicle transmits corresponding target N-bit binary numbers to the slave vehicle in sequence through N first hard lines according to the priority level of the target instructions.
Preferably, the method further comprises the following steps:
acquiring a key switch signal or a master-slave selection switch signal of each locomotive to determine a signal source of the target instruction;
wherein the locomotive comprises the master vehicle and the slave vehicle.
Preferably, the preset correspondence between the N-bit binary number and the instruction specifically includes:
predetermining a degree of importance of the instruction;
setting the corresponding relation between the N-bit binary number and the instruction based on the rule that the importance degree of the instruction is negatively related to the digit of '1' in the N-bit binary number;
then correspondingly, the first hard wire transmitting a high signal corresponds to a bit of "1" in the target N-bit binary number.
Preferably, the number of the second hard wires is specifically one.
In order to solve the above technical problem, the present invention provides a transmission system for machine shop instructions, including:
a memory for storing a transmission program;
a processor for implementing the steps of any of the methods of transmitting the machine-to-machine instructions described above when executing the transmitting program.
In order to solve the technical problem, the invention provides a multi-locomotive, which comprises a multi-locomotive body and further comprises any one of the above-mentioned workshop instruction transmission systems.
The invention provides a transmission method of commands between locomotives, firstly, the corresponding relation of N-bit binary numbers and the commands is preset, so that each N-bit binary number is twoThe system number corresponds to an instruction; then, the master vehicle transmits target N-bit binary numbers corresponding to the target instructions to the slave vehicles through N first hard lines, so that each bit of the target N-bit binary numbers can be transmitted to the slave vehicles through one first hard line; finally, after the slave vehicle receives the target N-bit binary number, the target command can be determined according to the corresponding relation between the N-bit binary number and the command, so that the command transmission between the locomotives is completed. Therefore, by applying the transmission method, the N hard wires can transmit 2NThe instruction is planted, so that the transmission efficiency of the instruction can be effectively improved; meanwhile, with the improvement of the instruction transmission efficiency, fewer hard wires can be used for completing the transmission of the instructions with the same number of types, so that the purpose of reducing the number of the hard wires is achieved, and the hard wire connection structure can be further simplified. In addition, the invention also provides a transmission system of the instructions between the locomotives and the reconnection locomotive, and the effect is as above.
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 method for transmitting a machine-to-machine instruction according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a process for transmitting machine-to-machine instructions according to an embodiment of the present invention;
FIG. 3 is a flow chart of a process for transmitting machine-to-machine instructions according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a transmission system of machine-to-machine instructions 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, which can be derived by a person skilled in the art from the embodiments given herein without any inventive step, are within the scope of the present invention.
The invention aims to provide a method and a system for transmitting locomotive workshop instructions and a multi-locomotive, which can improve the transmission efficiency of the locomotive workshop instructions and simplify a hard wire connection structure between locomotives.
In order to make the technical solutions of the present invention better understood, the present invention will be further described in detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flowchart of a method for transmitting a machine-to-machine instruction according to an embodiment of the present invention. As shown in fig. 1, a method for transmitting an inter-locomotive instruction according to an embodiment of the present invention includes:
s10: the corresponding relation between N-bit binary number and the instruction is preset.
Wherein N is a positive integer, and an N-bit binary number corresponds to an instruction.
In step S10, since one N-bit binary number represents only one type of instruction, when the correspondence relationship between the N-bit binary number and the instruction is set, one N-bit binary number is made to correspond to only one type of instruction. In addition, since an N-bit binary number can represent 0 to 2N1 decimal number, so that an N-bit binary number can represent 2NAnd (5) an instruction. Thus, in one implementation, the specific value of N should be determined according to the number of commands to be transmitted between the locomotives, for example, if there are 4 commands to be transmitted between the locomotives, the minimum value of N may be 2.
S11: and the master vehicle transmits a target N-bit binary number corresponding to the target instruction to the slave vehicle through the N first hard lines.
Wherein, a first hard wire is used for transmitting one digit in the target N-digit binary number; the master locomotive refers to a locomotive directly controlled by a driver in the locomotives working cooperatively, and the slave locomotives are controlled by the driver through the master locomotive; the target instruction refers to an instruction which needs to be transmitted currently by the host vehicle, and in the preset corresponding relation, the target N-bit binary number corresponds to the target instruction.
The hard wire can transmit both high and low signals, the possible values of 1 and 0 on each bit of the binary number, therefore, one signal can represent the possible value of 1 on one bit of the binary number and the other signal can represent the possible value of 0 on one bit of the binary number. Also, preferably, a high level signal of a hard-wired transmission may be used to represent a possible value of 1 on one bit of the binary number, and a low level signal of a hard-wired transmission may be used to represent a possible value of 0 on one bit of the binary number. Based on this, in step S11, one first hard wire is used to transmit one digit of the target N-bit binary number. Meanwhile, since one first hard wire can only transmit one bit of the binary number, when the binary number has N bits, the number of the first hard wires should be at least N. Also, in step S11, the master transmits a target N-bit binary number corresponding to the target command to the slave through the N first hardwires, and then 2 can be represented by the N-bit binary numberNThe master car can correspondingly transmit 2 instructions to the slave cars through N first hard linesNCompared with the technical scheme that the existing N first hard lines can only transmit N instructions, the instruction transmission efficiency can be effectively improved. Of course, with the improvement of the instruction transmission efficiency, under the condition that the number of the instructions to be transmitted is certain, fewer hard wires can be used, so that the purpose of reducing the number of the hard wires is achieved, and the hard wire connection structure can be further simplified.
S12: and receiving the target N-bit binary number from the slave vehicle through N first hard wires, and determining a target instruction according to the corresponding relation.
In step S11, the master transmits the target N-bit binary number to the slave vehicle via the N first hardwires, which corresponds to the slave vehicle also receiving the target N-bit binary number via the N first hardwires in step S12. In addition, since the correspondence relationship between the N-bit binary number and the command is preset in step S10, and the target N-bit binary number corresponds to the target command, in step S12, after the target N-bit binary number is received from the vehicle, the target command corresponding to the target N-bit binary number can be determined according to the correspondence relationship, thereby completing efficient transmission of the command between the vehicles.
In order to make those skilled in the art better understand the technical solution provided by the present embodiment, the following description will take an example in which 7 effective commands need to be transmitted between locomotives, and 2 commands are specifically transmitted.
Specifically, 7 valid commands can be represented by 3-bit binary numbers 001-. Assume that, in the correspondence relationship between the preset 3-bit binary numbers and the instructions, the a instruction corresponds to 011, and the B instruction corresponds to 111. Then, when the master vehicle does not need to transmit the command to the slave vehicle, the master vehicle pulls all of X1, X2 and X3 low, so that all of X1, X2 and X3 transmit low level signals to achieve the purpose of indicating that the first bit, the second bit and the third bit in the 3-bit binary number are all 0, and correspondingly, the target 3-bit binary number received by the slave vehicle is 000, and at this time, the slave vehicle considers that the slave vehicle receives an invalid command, namely, the master vehicle does not currently send a command; when the main vehicle transmits an A command through X1, X2 and X3, the main vehicle pulls both X2 and X3 high, so that both X2 and X3 transmit high level signals to achieve the purpose of representing that the second bit and the third bit in a 3-bit binary number are both 1, meanwhile, the main vehicle also keeps X1 in a pull-down state, so that the X1 still transmits low level signals to achieve the purpose of representing that the first bit in the 3-bit binary number is 0, correspondingly, the target 3-bit binary number received by the main vehicle is 011, and at the moment, the main vehicle considers that the main vehicle receives the A command according to the preset corresponding relation; when the master vehicle transmits the B instruction through X1, X2 and X3, the master vehicle pulls up X1, X2 and X3, so that X1, X2 and X3 all transmit high-level signals to achieve the purpose of representing that the first bit, the second bit and the third bit in the 3-bit binary number are all 1, correspondingly, the target 3-bit binary number received from the vehicle is 111, and at the moment, the slave vehicle considers that the B instruction is received by the slave vehicle according to the preset corresponding relation.
To sum up, in the method for transmitting commands between locomotives provided in this embodiment, first, a corresponding relationship between N-bit binary numbers and commands is preset, so that each N-bit binary number corresponds to one command; then, the master vehicle transmits target N-bit binary numbers corresponding to the target instructions to the slave vehicles through N first hard lines, so that each bit of the target N-bit binary numbers can be transmitted to the slave vehicles through one first hard line; finally, after the slave vehicle receives the target N-bit binary number, the target command can be determined according to the corresponding relation between the N-bit binary number and the command, so that the command transmission between the locomotives is completed. Therefore, by applying the transmission method, the N hard wires can transmit 2NThe instruction is planted, so that the transmission efficiency of the instruction can be effectively improved; meanwhile, with the improvement of the instruction transmission efficiency, fewer hard wires can be used for completing the transmission of the instructions with the same number of types, so that the purpose of reducing the number of the hard wires is achieved, and the hard wire connection structure can be further simplified.
With the transmission method of the above-described embodiment, after the master sends the target instructions to the slave cars through the N first hardwires, it is difficult for the master to define whether the slave cars have successfully responded to the target instructions. Since each N-bit binary number represents one command, in order to ensure that each slave vehicle can successfully respond to the target command, the master vehicle can continue to send the next command only when the last command is transmitted and all N first hard lines are vacant. Therefore, in the case where it is difficult for the master to define whether or not the slave vehicles have successfully responded to the target instruction, it is necessary to estimate the time from when the master issues the target instruction to when each of the slave vehicles has successfully responded to the target instruction. However, if the estimated time is too long, the delay may be large and the command transmission path may be wasted, and if the estimated time is too short, the target command may disappear before the slave vehicle successfully responds to the target command. Based on this, on the basis of the above embodiment, as a preferred implementation manner, the method for transmitting an inter-locomotive instruction provided by this embodiment further includes, after the target instruction is successfully received from the locomotive:
and the slave vehicle feeds back feedback information of successful response of the slave vehicle to the master vehicle through the second hard wire.
The second hard wire can also transmit high-level and low-level signals as the signals transmitted by the first hard wire, and the condition that whether the slave vehicle successfully responds to the target command only has two conditions of successfully responding to the target command and unsuccessfully responding to the target command. And, preferably, the high level signal transmitted by the second hard wire can be used for representing the feedback information of the successful response of the slave vehicle to the target instruction, and the low level signal transmitted by the hard wire can be used for representing the feedback information of the unsuccessful response of the slave vehicle to the target instruction. In this way, the master vehicle can determine whether the slave vehicle successfully responds to the target instruction or not through the signal transmitted on the second hard line without estimating the time for the slave vehicle to successfully respond to the target instruction, and the problems that the transmission channel is wasted or the slave vehicle is not ready to receive the target instruction due to too long or too short estimated time can be effectively overcome.
In practical applications, the slave vehicle may not successfully respond to the target command due to the problem of self failure or other equipment failure, and thus cannot timely feed back feedback information of self successful response to the target command to the master vehicle through the second hard line, and in this case, after the master vehicle issues one target command to the slave vehicle, the command transmission channel (first hard line) will be always occupied, and other commands cannot be transmitted. Therefore, in order to prevent this from happening, based on the above embodiment, as a preferred implementation, the method for transmitting the command between the locomotives, provided by this embodiment, when the slave locomotive fails to respond to the target command within the preset time, further includes:
and the slave vehicle sets the level signal transmitted by the second hard wire as a valid signal to ensure that the next target command is normally transmitted.
The preset time is preset according to the actual situation; the valid signal represents feedback information from the slave vehicle that successfully responded to the target command. For example, if the high level signal transmitted by the second hard wire represents the feedback information of the slave vehicle successfully responding to the target instruction, the slave vehicle can set the level signal of the second hard wire as the effective signal by pulling up the second hard wire; for another example, if the low level signal transmitted by the second hard wire represents feedback information that the slave vehicle successfully responds to the target command, the slave vehicle may set the level signal of the second hard wire as an active signal by pulling down the second hard wire. Further, it is understood that the master shall synchronously set the level signal transmitted by the first and second hardwires as an invalid signal while the master sends a target instruction to the slave through the first hardwire.
In this embodiment, if the signal transmitted by the second hard wire is still kept as the invalid signal within the preset time after the target command is issued, it is considered that the slave vehicle cannot successfully respond to the target command due to its own fault or other equipment faults, and at this time, the slave vehicle forcibly sets the level signal transmitted by the second hard wire as the valid signal for normal transmission of the next target command to perform transmission of other target commands.
In order to enable a user to timely know that there may be a device failure when the slave vehicle forcibly sets the level signal transmitted by the second hard wire as the valid signal due to the failure of the slave vehicle to successfully respond to the target command within the preset time, based on the above embodiment, as a preferred implementation, the method for transmitting the command between locomotives provided by this embodiment further includes, after the slave vehicle sets the level signal transmitted by the second hard wire as the valid signal:
the main vehicle feeds back the target instruction to respond to the failed alarm information so as to give an alarm prompt to the user.
In the embodiment, after the slave vehicle forcibly sets the level signal transmitted by the second hard wire as the effective signal, the master vehicle can timely feed back alarm information of possible equipment faults to the user so as to prompt the user to take countermeasures and reduce the possibility of accidents.
Generally, the generation of instructions is time-sequential, and there are few cases where instructions occur simultaneously, but once two or more instructions occur simultaneously, since only one type of instruction can be transmitted at the same time on the first hard wire, it is necessary to specify the transmission order of the simultaneously occurring instructions. In order to enable the important command to be executed first, as a preferred implementation manner based on the foregoing embodiment, in the method for transmitting the command between the locomotives provided in this embodiment, the step S11 specifically includes:
setting the priority of the instruction in advance according to the importance degree of the instruction;
when two or more than two target instructions are generated simultaneously, the master vehicle transmits corresponding target N-bit binary numbers to the slave vehicle in sequence through N first hard lines according to the priority level of the target instructions.
In the embodiment, the priority of the instruction is set in advance according to the importance degree of the instruction, the more important instruction has higher priority, and once two or more target instructions are generated simultaneously, the host computer can firstly send the target instruction with higher priority, thereby ensuring that the important instruction is executed firstly. For example, an a instruction with a higher priority and a B instruction with a lower priority are generated simultaneously, the a instruction and the B instruction can be locked and kept to be output by using the characteristic of the bistable RS function module, then the a instruction is preferentially transmitted by using the characteristic of the SEL selection function module, and after the a instruction is successfully received by the slave vehicle, the B instruction is transmitted until the B instruction is successfully sent. Of course, it will be appreciated that the confirmation of whether the a command was successfully received from the vehicle may be determined using a signal transmitted over the second hard wire and will not be described in detail herein.
In a specific implementation, both the master vehicle and the slave vehicle can perform the transmission of the instruction through the first hard wire, both the master vehicle and the slave vehicle receive the target instruction when the master vehicle transmits the target instruction, and if the master vehicle itself does not receive the target instruction when the master vehicle transmits the target instruction, the master vehicle still cannot receive the target instruction when the slave vehicle transmits the target instruction; similarly, if the target instruction is not received by the slave vehicle itself when the target instruction is sent by the slave vehicle, the slave vehicle will still not receive the target instruction when the target instruction is sent by the master vehicle. In view of this, in order to identify the transmission source of the target command, based on the foregoing embodiment, as a preferred implementation, the method for transmitting the command between locomotives according to this embodiment further includes:
acquiring a key switch signal or a master-slave selection switch signal of each locomotive to determine a signal source of a target instruction;
the locomotive comprises a master locomotive and a slave locomotive.
In the present embodiment, the source (transmission source) of the target command can be specified by combining the key switch signal or the master-slave selection switch signal of the locomotive, and the source of the target command can be effectively determined.
In the first hard wire, the more the first hard wires transmitting high-level signals, the greater the possibility of signal interference, so in order to reduce the occurrence probability of the situation that the important command cannot be normally transmitted to the slave car due to signal interference in the transmission process of the important command, based on the above embodiment, as a preferred implementation, the method for transmitting the command between locomotives provided by this embodiment specifically includes, in step S10:
predetermining the importance degree of the instruction;
setting the corresponding relation between the N-bit binary number and the instruction based on the rule that the importance degree of the instruction is negatively related to the digit of '1' in the N-bit binary number;
then correspondingly, the first hard wire carrying the high signal corresponds to a bit of "1" in the target N-bit binary number.
In this embodiment, the high level signal transmitted by the first hard wire represents a value 1 in the N-bit binary number, and the corresponding relationship between the N-bit binary number and the command is set based on the rule that the importance degree of the command is inversely related to the bit number of "1" in the N-bit binary number, so that the more important the command is transmitted, the less the high level signal transmitted by the first hard wire is, thereby reducing the mutual interference of signals in the transmission process of the important command, and ensuring the normal transmission of the important command. For example, if each instruction is represented by a 3-bit binary number, it is preferable that the number of 1 in the 3-bit binary number corresponding to the instruction such as the closed main interrupt and the divided main interrupt is as small as possible, i.e., 001, 010, and 001 are preferably represented. Similarly, in other embodiments, if the low level signal transmitted by the first hard wire represents a value 1 in the N-bit binary number, the corresponding relationship between the N-bit binary number and the command is set based on the rule that the importance degree of the command is negatively correlated with the bit number of "0" in the N-bit binary number, so that the more important the command is transmitted, the less the high level signal transmitted by the first hard wire is, thereby reducing the mutual interference of signals in the transmission process of the important command, and ensuring the normal transmission of the important command. For example, assuming that each instruction is represented by a 3-bit binary number, it is preferable that the number 0 of the 3-bit binary number corresponding to the instructions such as the close main interrupt and the divide main interrupt is as small as possible, i.e., it is preferable to represent them by 110, 101, and 011.
In order to further simplify the hard-wired connection structure, based on the above-described embodiment, as a preferred implementation, the number of the second hard wires is specifically one.
In the embodiment, only one second hard wire is selected to transmit the feedback information of whether the slave vehicle successfully responds to the target instruction, so that the use number of the hard wires can be reduced, and the simplification of the hard wire connection structure is facilitated.
In order to make those skilled in the art better understand the technical solution provided by the present invention, the following describes in detail a specific application process of the command transmission method between locomotives, with reference to the accompanying drawings and examples.
Fig. 2 is a schematic diagram of a program for transmitting machine-to-machine instructions according to an embodiment of the present invention, and fig. 3 is a flowchart of a process for transmitting machine-to-machine instructions according to an embodiment of the present invention. As shown in fig. 2 and fig. 3, the specific transmission procedure and process of the instruction a and the instruction B are described in detail, and the specific transmission procedure of other instructions is briefly described.
When the SET input of the bistable RS functional block 20 is 1, the bistable RS functional block 20 outputs 1; after the SET input is 1, if the SET input becomes 0 again, the bistable RS function block 20 outputs a 0 only if the RSSET input also becomes 1. Wherein, the SET input of the bistable RS function block 20 is 1 or 0, depending on whether the signal source is the main vehicle and the specific value of the binary number corresponding bit corresponding to the specific instruction; the RSSET input is either a 1 or a 0 depending on the level signal transmitted on the second hard line. The output of bistable RS function block 20 is the G input of select SEL function block 21, and when the G input 1 of SEL function block 21 is selected, input IN1 is assigned to the output of select SEL function block 21, and only when the G input of select SEL function block 21 is 0, the input IN0 is assigned the magnitude to the output of select SEL function block 21. If the output phase of each SEL functional block 21 corresponding to one first hard wire is equal to or 1, pulling up the corresponding first hard wire; and if the output phase of each select SEL function block 21 corresponding to one first hard line is or gets 0, the corresponding first hard line is pulled low. The coding feedback of each instruction, the feedback of the slave vehicle device or the action instruction and whether the signal source is the result of obtaining the corresponding instruction from the vehicle phase, if so, obtaining 1 from the phase, and if not, obtaining 0 from the phase; and if the obtained results are equal or equal to 1, the second hard wire is pulled high, and if the obtained results are equal or equal to 0, the second hard wire is pulled low.
Note that D1 represents the first digit value in a 3-digit binary number, D2 represents the second digit value in a 3-digit binary number, and D3 represents the third digit value in a 3-digit binary number, D4 represents the level signal of the second hard wire, and if the signal is a high level signal, D4 becomes 1, and if the signal is a low level signal, D4 becomes 0. Of course, there may be other instructions besides the A and B instructions described above, and the other instructions are not depicted in detail due to space limitations and may be arranged the same as the A and B instructions. X represents whether the host vehicle is the host vehicle, and if yes, X is 1, and if no, X is 0; a represents whether the target instruction is an A instruction, if yes, A is 1, and if no, A is 0; y represents whether the own vehicle is a slave vehicle, if yes, Y is 1, and if no, Y is 0; a represents whether the A command encodes feedback, if yes, a is 1, and if no, a is 0; b represents whether the B instruction encodes feedback, if yes, B is 1, and if no, B is 0; and Z represents whether the slave vehicle device or the action command is fed back or not, if yes, Z is 1, and if no, Z is 0. AND represents AND; OR represents OR.
The specific application process of the method for transmitting the command between the locomotives specifically comprises the following steps:
s30: the number of the first hard lines is configured according to the number of the instructions.
The method comprises the steps of sorting instructions to be subjected to hard-wire reconnection transmission, determining the number of the instructions, and determining the number of first hard wires to be configured according to the number of the instructions.
S31: and carrying out coding design according to the instruction.
In this embodiment, there are still 7 valid instructions, and 3 first hard wires are still selected for the combined coding design, the instructions are configured according to 7 binary numbers of 001-111, and the coding of the important instructions is simplified as much as possible, i.e. the number of "1" in the 3-bit binary number is as small as possible (wherein "1" in the 3-bit binary number is represented by a high-level signal of the first hard wire). In the following embodiments, taking the a command and the B command as an example, the a command has a higher priority than the B command, and the a command is set to 011 if C1 represents a first hard line of the host vehicle for transmitting a first digit in a 3-digit binary number, C2 represents a first hard line of the host vehicle for transmitting a second digit in a 3-digit binary number, and C3 represents a first hard line of the host vehicle for transmitting a third digit in a 3-digit binary number, that is, when C1 transmits a low level signal and C2 and C3 transmit high level signals, the a command is issued; setting the B command to 111, namely, when all of C1, C2 and C3 transmit high level signals, the B command is sent.
S32: and judging whether the vehicle is the host vehicle.
If yes, the process proceeds to step S33, and if no, the process ends.
In step S32, it is determined whether or not the host vehicle is determined by using a key signal or a master-slave selection switch signal.
S33: and judging whether the instructions occur simultaneously.
If so, the process proceeds to step S34, and if not, the process proceeds to step S41.
S34: the a instruction with the high priority is issued.
The A command and the B command are sent simultaneously, and the priority of the A command is higher than that of the B command, so that the A command is sent preferentially, namely, the C1 is kept to transmit a low level signal, and the C2 and the C3 both transmit a high level signal.
Specifically, when the rising edge of the a instruction triggers, the CCU (central processing unit) of the host vehicle assigns the a instruction to D2 and D3, namely D1 is set to 0 or false, D2 and D3 are set to 1 or true and are kept set (D1D2D3 is 011), so that C1 is powered off, and C2 and C3 are powered on.
S35: the slave vehicle acknowledges the reply to the a command.
The slave vehicle-to-a order confirmation reply refers to feedback information that the slave vehicle successfully responded to the a order to the master vehicle through C4(C4 represents the second hard line).
Specifically, when the slave vehicle CCU detects that the C1, the C2 and the C3 of the master vehicle are in power-off, power-on and power-on states, the receiving of an A command is confirmed, and the corresponding device action or action command of the master vehicle is controlled to respond to the A command. If the device or action command feedback signal is 1 (indicating a successful response to the a command) and the vehicle is a slave vehicle, then C4 is powered.
S36: and judging whether the slave vehicle confirms the reply A instruction at the set time.
If so, the process proceeds to step S37, and if not, the process proceeds to step S45.
S37: the B instruction with the low priority is issued.
When the master vehicle detects that the C4 is a high level signal, namely D2 and D3 are reset, the transmission of the A command is ended, C1, C2, C3 and C4 are all pulled low, the first hard line is idle, and at the moment, the B command can be transmitted, namely C1, C2 and C3 are all kept at a high level.
Specifically, when the B-command rising edge triggers, the CCU (central processing unit) of the host vehicle assigns the B-command to D1, D2, and D3, i.e., sets D1, D2, and D3 to 1 or true and keeps set (D1D2D3 is 111), so that C1, C2, and C3 are powered on.
S38: the slave vehicle-to-B command acknowledge reply.
The secondary vehicle confirms the reply of the instruction B, and the secondary vehicle feeds back feedback information of successfully responding to the instruction B to the primary vehicle through the second hard line.
Specifically, when the slave vehicle CCU detects that the C1, the C2 and the C3 of the master vehicle are all in a power-on state, the B instruction is confirmed to be received, and the corresponding device action or action instruction of the master vehicle is controlled to respond to the B instruction. If the device or action command feedback signal is 1 (indicating a successful response to the B command) and the vehicle is a slave vehicle, then C4 is powered.
S39: and judging whether the slave vehicle confirms to reply the command B within the set time.
If so, the process proceeds to step S40, and if not, the process proceeds to step S44.
S40: wait for other instructions to occur, skip all steps described below.
When the master vehicle detects that the C4 is a high level signal, namely the D1, the D2 and the D3 are reset, the transmission of the B instruction is ended, the C1, the C2, the C3 and the C4 are all pulled low, and the first hard line is idle, and other instructions can be transmitted at the moment.
S41: and (5) sending out an instruction.
S42: the slave vehicle acknowledges the reply to the command.
The secondary vehicle replies to the command confirmation, and the secondary vehicle feeds back feedback information of a successful response command to the primary vehicle through the second hard line.
S43: and judging whether the slave vehicle confirms the reply instruction within the set time.
If so, the process returns to step S40, and if not, the process proceeds to step S44.
S44: pull C4 high and return to step S40.
Specifically, if there is no feedback from the device or command of the slave car, when the time exceeds the set time (e.g. 4 seconds), the slave car automatically pulls C4 high, so that C1, C2 and C3 are all pulled low, thereby ensuring that the next command can be effectively transmitted. Of course, when the master vehicle receives the confirmation reply exceeding the set time, the slave vehicle device is determined to be not operated, and the corresponding instruction response fails.
S45: pull C4 high and return to step S37.
Specifically, if there is no feedback from the device or command of the slave car, when the time exceeds the set time (e.g. 4 seconds), the slave car automatically pulls C4 high, so that C1, C2 and C3 are all pulled low, thereby ensuring that the next command can be effectively transmitted. Of course, when the master vehicle receives a confirmation reply exceeding the set time, the slave vehicle device is determined to be not operated, and the master vehicle A fails to respond to the instruction.
The above embodiment of the method for transmitting an inter-locomotive instruction provided by the present invention is described in detail, and the present invention further provides a system for transmitting an inter-locomotive instruction corresponding to the method for transmitting an inter-locomotive instruction.
Fig. 4 is a schematic structural diagram of a transmission system of machine-to-machine instructions according to an embodiment of the present invention. As shown in fig. 4, the system for transmitting an inter-locomotive command according to the present embodiment includes:
a memory 40 for storing a transmission program;
the processor 41 is configured to implement the steps of the method for transmitting the inter-locomotive instruction provided in any one of the above embodiments when executing the transmission program.
The transmission system of the inter-locomotive instruction provided in this embodiment may call the transmission program stored in the memory through the processor to implement the steps of the transmission method of the inter-locomotive instruction provided in any one of the above embodiments, so that the system has the same practical effects as the above transmission method of the inter-locomotive instruction.
In addition, the embodiment of the invention also provides a multi-locomotive comprising a multi-locomotive body and any one of the workshop instruction transmission systems. In addition, the multi-locomotive is provided with any one of the inter-locomotive instruction transmission systems, so that the multi-locomotive has the same practical effect as the inter-locomotive instruction transmission system.
The method and the system for transmitting the locomotive shop instructions and the multi-locomotive provided by the invention are described in detail above. The embodiments are described in a progressive mode in the specification, the emphasis of each embodiment is different from that of other embodiments, and the same and similar parts among the embodiments are referred to each other.
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.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (7)

1. A method for transmitting machine-to-machine instructions, comprising:
presetting a corresponding relation between N-bit binary numbers and instructions, wherein one N-bit binary number corresponds to one instruction;
the method comprises the steps that a master vehicle transmits target N-bit binary numbers corresponding to target instructions to slave vehicles through N first hard lines, wherein one first hard line is used for transmitting one digit in the target N-bit binary numbers;
the slave vehicle receives the target N-bit binary number through N first hard wires and determines the target instruction according to the corresponding relation;
wherein N is a positive integer;
after the slave vehicle successfully receives the target instruction, the method further comprises the following steps:
the slave vehicle feeds back feedback information of successfully responding to the target instruction to the master vehicle through a second hard wire;
when the slave vehicle does not successfully respond to the target instruction within the preset time, the method further comprises the following steps:
the slave vehicle sets the level signal transmitted by the second hard wire as a valid signal to ensure that the next target instruction is normally transmitted; the effective signal represents feedback information of the slave vehicle successfully responding to the target instruction;
after the slave vehicle sets the level signal of the second hard wire transmission as the effective signal, the method further comprises the following steps:
and the main vehicle feeds back the alarm information of the target instruction response failure so as to give an alarm prompt to the user.
2. The method for transmitting the command between the locomotives according to claim 1, wherein the transmitting the target N-bit binary number corresponding to the target command from the master train to the slave train through the N first hardlines comprises:
setting the priority of the instruction in advance according to the importance degree of the instruction;
when two or more than two target instructions are generated simultaneously, the master vehicle transmits corresponding target N-bit binary numbers to the slave vehicle in sequence through N first hard lines according to the priority level of the target instructions.
3. The method for transmitting an inter-locomotive command according to claim 2, further comprising:
acquiring a key switch signal or a master-slave selection switch signal of each locomotive to determine a signal source of the target instruction;
wherein the locomotive comprises the master vehicle and the slave vehicle.
4. The method for transmitting the command between the locomotives according to any one of claims 1 to 3, wherein the presetting of the correspondence between the N-bit binary number and the command specifically comprises:
predetermining a degree of importance of the instruction;
setting the corresponding relation between the N-bit binary number and the instruction based on the rule that the importance degree of the instruction is negatively related to the digit of '1' in the N-bit binary number;
then correspondingly, the first hard wire transmitting a high signal corresponds to a bit of "1" in the target N-bit binary number.
5. The method for transmitting an inter-locomotive command according to any one of claims 1-3, wherein the number of the second hard wires is one.
6. A system for transmitting machine-to-machine instructions, comprising:
a memory for storing a transmission program;
a processor for implementing the steps of the method for transmitting locomotive-to-locomotive instructions according to any one of claims 1-5 when executing said transmission program.
7. A multi-locomotive comprising a multi-locomotive body, further comprising the inter-locomotive command transmission system of claim 6.
CN201810690695.9A 2018-06-28 2018-06-28 Method and system for transmitting locomotive-to-locomotive instruction and multi-locomotive Active CN108873863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810690695.9A CN108873863B (en) 2018-06-28 2018-06-28 Method and system for transmitting locomotive-to-locomotive instruction and multi-locomotive

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810690695.9A CN108873863B (en) 2018-06-28 2018-06-28 Method and system for transmitting locomotive-to-locomotive instruction and multi-locomotive

Publications (2)

Publication Number Publication Date
CN108873863A CN108873863A (en) 2018-11-23
CN108873863B true CN108873863B (en) 2021-06-04

Family

ID=64296522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810690695.9A Active CN108873863B (en) 2018-06-28 2018-06-28 Method and system for transmitting locomotive-to-locomotive instruction and multi-locomotive

Country Status (1)

Country Link
CN (1) CN108873863B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05225097A (en) * 1992-02-12 1993-09-03 Fujitsu Ltd Method for restoring interface abnormality in data terminal equipment
JPH06242994A (en) * 1993-02-16 1994-09-02 Nec Software Ltd Timing processing system
CN101156179A (en) * 2005-06-15 2008-04-02 丰田自动车株式会社 Remote operation apparatus and service center
CN102325156A (en) * 2011-07-14 2012-01-18 北京联合大学 Communication system for transmitting simulation data
CN104898538A (en) * 2015-06-17 2015-09-09 南车株洲电力机车有限公司 Transmission control method and system of subway engineering vehicle reconnection signals
CN105774571A (en) * 2015-12-30 2016-07-20 北京新能源汽车股份有限公司 Range-extending electric car and engine starting control method and system thereof
CN107792039A (en) * 2017-10-25 2018-03-13 中车株洲电力机车有限公司 Magnetic-levitation train brake fluid system power management method, system and rail vehicle
CN108105119A (en) * 2017-12-18 2018-06-01 青岛海信激光显示股份有限公司 A kind of target method for starting fan

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05225097A (en) * 1992-02-12 1993-09-03 Fujitsu Ltd Method for restoring interface abnormality in data terminal equipment
JPH06242994A (en) * 1993-02-16 1994-09-02 Nec Software Ltd Timing processing system
CN101156179A (en) * 2005-06-15 2008-04-02 丰田自动车株式会社 Remote operation apparatus and service center
CN102325156A (en) * 2011-07-14 2012-01-18 北京联合大学 Communication system for transmitting simulation data
CN104898538A (en) * 2015-06-17 2015-09-09 南车株洲电力机车有限公司 Transmission control method and system of subway engineering vehicle reconnection signals
CN105774571A (en) * 2015-12-30 2016-07-20 北京新能源汽车股份有限公司 Range-extending electric car and engine starting control method and system thereof
CN107792039A (en) * 2017-10-25 2018-03-13 中车株洲电力机车有限公司 Magnetic-levitation train brake fluid system power management method, system and rail vehicle
CN108105119A (en) * 2017-12-18 2018-06-01 青岛海信激光显示股份有限公司 A kind of target method for starting fan

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《嵌入式系统的超时控制及其应用》;同向前;《专题论述》;20020715;全文 *

Also Published As

Publication number Publication date
CN108873863A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
US11362859B2 (en) In-vehicle communication device and in-vehicle system
CN112092866B (en) Method and system for controlling train in emergency, electronic device and storage medium
CN110949358B (en) Rail train braking control method and device
JPS5857770B2 (en) Information transfer control method
CN104885414A (en) Motor vehicle comprising a vehicle communication bus and method for generating bus messages
CN108873863B (en) Method and system for transmitting locomotive-to-locomotive instruction and multi-locomotive
JP6410914B1 (en) Serial communication system
CN110958139B (en) Network control method, orchestrator, controller, and computer-readable storage medium
CN110011888B (en) Modularized CAN network load rate optimization method and device
CN114615337B (en) Equipment scheduling method, system, server and storage medium
CN112051826B (en) Automobile fault detection method and system
CN110654421B (en) Method and device for communication by using multifunctional vehicle bus
CN105493452B (en) Response frame from the slave equipment for belonging to LIN network is transferred to the control method and device of other type networks
KR20000006283A (en) Arrangement and method for the transmission of address, instruction and/or data telegrams
KR101346689B1 (en) Home-network system based on RS-485
CN111698136A (en) Data transmission method and data transmission system of high-reliability PLC
JP2020061655A (en) Communication system
GB2588820A (en) Method and system for data communication network in a vehicle
CN109218172B (en) Lonworks gateway equipment and configuration method thereof
JP2001297016A (en) Instruction execution system
CN220325632U (en) Monitoring system
CN112514331B (en) Method for operating a sensor device in a motor vehicle on the basis of a DSI protocol
CN109901447B (en) CAN bus extension device
CN115571072A (en) Mode conversion method and device for head-up display, electronic equipment and storage medium
CN116633780A (en) Gateway upgrading method and device for vehicle, vehicle 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