Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
All other embodiments obtained without making creative work shall fall within the protection scope of the present invention.
The present invention relates to the communication protocols for being used to implement network system communication of the rail vehicle of such as high-speed EMUs.Root
According to one embodiment of the present of invention, the communication protocol of rail vehicle network system includes first running configuration communication protocol, normal fortune
Three ranks vehicle grade communication protocol, vehicle grade communication protocol parts.
The first operation of Train Communication Network (Train Communication Network, TCN) refers to change when train composition
During change, particularly each coupling of vehicles or when seting out, the main equipment of TCN configuration bus, this process will be known as just running again.
TCN just runs and completes WTB fieldbus configurations, to each WTB nodes distribution node address, establishes WTB process data communications.It is transported just
The communication protocol of row order section is first running configuration communication protocol.After normal operation train grade communication protocol is used for defining just operation
The signal transmitted between WTB network element (including reconnection train).Vehicle grade communication protocol refers to vehicle grade network element internal transmission
Agreement.This three parts communication protocol constitutes the core of train network control system communication protocol.
According to one embodiment of present invention, communication protocol of the invention meets IEC 61375 and UIC556 standards.
According to one embodiment of present invention, from the point of view of hardware, TCMS (train control and monitor
System) using train grade, vehicle grade two-stage bus type topological structure, wherein train grade bus is adopted for vehicle control and monitoring system
With WTB buses;And vehicle grade bus uses MVB bus.The two all can be two-way redundancy.
WTB is wired train bus.According to one embodiment of present invention, WTB is to be connected to MVB by gateway control
Twisted-pair shielded wire circuit between unit.WTB covers vehicle by automatic car coupler, allows to join operation again.WTB handles MVB units
Between data communication.An example according to the present invention, WTB are dynamically configurable.That is, it is articulated in the unit in bus
Number is variable.An example according to the present invention, WTB bus communication speeds are 1.0Mbit/s.
MVB belongs to train basic unit internal data bus.MVB can only static configuration.An implementation according to the present invention
Example, upper every 4 vehicles of network control are a MVB unit.Each MVB units employ main chain-branched structure, and each car is designed with
One MVB unit is divided into multiple branches by repeater.In this way, even if there is some subscriber device network communication failure,
The communication of network and subsystem in this vehicle can only be influenced, does not interfere with the network communication of whole network unit.Two MVB units
Between by respective gateway using WTB buses connect, realize the transmission of information.An example according to the present invention, MVB bus
Medium be twisted-pair shielded wire cable, traffic rate 1.5Mbit/s.
As described above, first running configuration communication protocol is used to implement marshalling vehicle required biography in Dynamic Configuration Process
Defeated data and data flow;And normal operation train grade communication protocol is used to implement marshalling vehicle and is needed in normal course of operation
The data and data flow of transmission.Just running configuration communication protocol and normal operation train grade communication protocol two parts are known as arranging train
Vehicle grade network communication protocol.Vehicle grade communication protocol it is not related in the example of the present invention.
1. the first running configuration communication protocol of train
Train just operates to vehicle node distribution topological address single-row or in join again, vehicle fleet in determining and each
Address is established in the attribute of vehicle, the transmission for process data and message data in follow-up normal operation, the train grade for realization
It is established with cell level control with diagnosis and communicates and control basis.
Fig. 1 is the flow chart of communication means according to an embodiment of the invention.As shown in Figure 1, in order to realize train
Network system interconnects, and train, which is just run, includes TCN just operation (step 110) and operation just operation (step 120-150)
Two parts;Wherein, in step 110, TCN just runs and completes WTB fieldbus configurations, to each WTB nodes distribution node address, establishes
WTB process data communications;And operation includes following four step at the beginning of the operation of step 120-140:Node index, node are known
Not, the identification of master control vehicle and direction discernment.
Operation just runs each be described as follows:
In step 120, node index:WTB node address is mapped as being convenient for the node of application access according to certain rule
It indexes, and the relative position of each WTB nodes is described with node index sequence;
In step 130, node identification:After operation at the beginning of TCN, when number of nodes is normal or abnormal, WTB node locations are reflected
It is mapped to vehicle physical location;
In step 140, the identification of master control vehicle:Identify the vehicle of train occupation;And
In step 150, direction discernment:It is all to identify that the orientation with master control vehicle is in the same direction or reversed from control vehicle, with true
Determine master control vehicle controller send out direction instruction after, turned to from the motor of control vehicle.Wherein, the direction of rotation of motor is by TCU roots
It is determined according to the actual installation and the mode of connection of train directions and motor.
According to one embodiment of present invention, the communication means 100 can realize WTB number of nodes, WTB node sides
Configuration to, train directions;Wherein,
1.WTB number of nodes:The quantity of one marshalling interior nodes activation;
2.WTB node directions:Recognize both direction:It is directed toward train vehicle end (1) or nematic car portion (2).
3. train directions:
(a) when train is single marshalling, should regulation occupy driver's chamber unit train forward direction be the unit WTB
Direction 1, the train backward directions for occupying drivers' cab are the directions 2 of the WTB of the unit;The train forward direction of unoccupied drivers' cab
It is the direction 2 of the WTB of the unit, the train backward directions of unoccupied drivers' cab are the directions 1 of the WTB of the unit;
(b) when train joins again, should regulation occupy drivers' cab train forward direction be the unit WTB direction 1, account for
It is the direction 2 of the WTB of the unit with drivers' cab train backward directions;Occupy the unoccupied driver's chamber unit organized into groups where drivers' cab
Train forward direction be the unit WTB direction 2, occupy drivers' cab where organize into groups unoccupied driver's chamber unit train
Backward directions are the directions 1 of the WTB of the unit;The train forward direction for hanging together unit organized into groups where unoccupied drivers' cab is this
The direction 1 of the WTB of unit, the train backward directions for hanging together unit of marshalling where unoccupied drivers' cab are the WTB of the unit
Direction 2;Organize into groups where unoccupied drivers' cab it is non-hang together unit train forward direction be the unit WTB direction 2, it is non-to account for
With organize into groups where drivers' cab it is non-hang together unit train backward directions be the unit WTB direction 1.
1.TCN is just run
1.1.1.TCN the condition just run:
In situations, TCN should start just to run:
1) during system electrification;
2) WTB end nodes are lost;
3) WTB master-failures;
4) when train is hung together with uncoupling;And
5) when gateway redundancy switches.
1.1.2.TCN the principle just run:
TCN is implemented function such as after just running:
1) node is connected electrically to their cable section, and forming each end has single section of terminator;
2) each node receives a unique address, identifies its position and orientation relative to main equipment, and its institute
Desired eigenperiod and node descriptor inform main equipment;
3) each node receives referred to as topological descriptor, it indicates other addresss of node, position and descriptor.
According to one embodiment of present invention, node address distribution principle is as follows when TCN is just run:
1) main equipment (perform and just run) receives 01 address;
2) main equipment defines direction 1 as " bottom ", and direction 2 is " top ", without considering actual motion direction;
3) main equipment names node on direction 1 with descending, and initial address is 63 (initial address may be other values),
The node finally named in this direction is coxopodite point;
4) main equipment names node, initial address 02 with ascending order in direction 2, and the node finally named in this direction claims
For top node;
5) main equipment can at most name 62 nodes (most number of nodes may be other values);
6) unnamed node all responds (two on its main channel and accessory channel with " unnamed " address
Channel can all regard accessory channel as).
Fig. 2 is that TCN according to an embodiment of the invention just runs node address distribution schematic diagram.It is as shown in Fig. 2, main
Equipment position is third node.Therefore, 1 direction of main equipment node is " bottom ", and first and second node are ordered
Entitled 62 and 63, and the 4th node is named as 2.If more vehicles are linked togather again, name can also be according to above
Rule, and so on.
Fig. 3 is to join schematic diagram again after TCN according to an embodiment of the invention is just run.As shown in figure 3, just after operation
The node address distribution joined again is equally using main equipment as starting point, on 1 direction of main equipment, names first and second sections
Point is 62 and 63, and on 2 direction of main equipment, it is 2 to name the 4th node.
In an embodiment of the present invention, WTB nodes can be divided into three ranks:Strong node, weak bus and from node.WTB
Node rank can be applied and is configured.
Strong node can be reduced to weak bus by application.If it is strong master, it tells all nodes by signal is sent out, its quilt
Degrade, but as control of the weak main holding to bus, until specifying a strong node.It in general, should in a marshalling
By the use of only there are one nodes as strong node.It if will be bus there are more than one strong node, first operational process in bus
It is divided into the independent total segment as many with strong node number, because each total segment can only be there are one main equipment.
It is weak bus using specified several or all nodes in general, in a marshalling.In the marshalling of not strong node
In, the competition results that equality handles all nodes ensure that one and only there are one weak bus to become weak master, other all
Node becomes slave device.If weak master detected strong node or another control more from the presence of the weak master of node,
The weak chief commander is downgraded and as the slave node of another main equipment.Weak bus is promoted to strong node by application, if it is also not
If being main equipment, it will become main by force and perform bus just operation function.It is that application is not permitted at any time from node
Perhaps it becomes the node of main equipment.
1.1.3.TCN first operational process
In an example of the present invention, just operational process includes the following steps lower TCN:
1) it is powered on to gateway.Gateway should be at intermediate settings state (specifically see standard GB/T/T when powering off
28029.1 chapters and sections 4.2.4.2.1).
2) eigenperiod is set as 25ms.
3) all gateways are disposed as weak bus, by the processes such as the name that disappears, name and sovereignty compete, determine 1 it is weak
Node becomes weak master, other nodes become slave device, and all addresss of node, position, orientation and eigenperiod is determined,
TCN is completed just to run.
1.1.4.TCN first operation result
In an example of the present invention, after end of run at the beginning of TCN, each node should obtain following information:
1) whether it is WTB main equipments;
2) it is in the same direction or reversed with the direction of main equipment;
3) node address;
4) number of nodes;
5) coxopodite dot address;And
6) epimerite dot address.
Just operating procedure can be applied in communication means as shown in Figure 1 above TCN.Those skilled in the art should
Understand, just operating procedure can also be implemented TCN of the invention in other manners.
1.2. operation is just run
With reference to figure 1, step 120-150 is referred to as operating and just run in communication means of the invention.Just operation is based on for operation
The first operation results of TCN, after the completion of TCN is just run, identify other operational orders, carry out node index, node identification, master control
Vehicle identifies and the operation of direction discernment.
1.2.1. node indexes
An example according to the present invention, when joining again, TCN is just after end of run, it is understood that there may be two kinds of WTB node address
Sequence.As shown in figure 4, merely for the purpose of citing, WTB node address sequences are respectively 1-2-3-4 and 62-63-1-2.Certainly,
For the WTB nodes of direction independent assortment, the node address sequence of formation is more.
After the operation at the beginning of the TCN, since the position of main equipment is different, such as it is weak master in node and main equipment randomly generates
In the case of, cause the WTB node address method of salary distribution different.In this case, it has not been convenient to directly be visited using WTB node address
Ask WTB process datas.It is right in the following ways in order to which fixed sequence node is used to access the process data of all nodes of WTB
WTB node address is mapped:
1) the node index for determining coxopodite point is 1;
2) from coxopodite point to top node, node index adds 1 successively.
After node address mapping, using node index accesses WTB process datas.It is reality according to the present invention as shown in Figure 5
The mapping relations of two kinds of sequence nodes of example.
The mapping algorithm of WTB node address is as follows:
1.2.2. node identifies
Node identification refers to after operation at the beginning of TCN, and WTB node locations are mapped to vehicle physical location.Using node rope
After drawing the process data for traversing all WTB nodes, need that the source position of process data is identified.Add in process data
Enter location information, the process data and the correspondence of the physical location of vehicle sent out with determining WTB nodes.Each WTB nodes
Process data in the location information that adds in include following position signal:
1) marshalling number:Unique mark represents which marshalling node belongs in.It organizes into groups number signal and uses 2 byte BCD
Coding mode represents that 4 rank license number, included in process data;
2) this unit train position:Represent node 1 end or 2 ends in marshalling (1 end is 1 vehicle, and 2 ends are 8 vehicles).This unit
Train position signal uses BOOL variables, included in process data.
3) join signal again:It is that connection end is also non-heavy end again to represent node.Connection signal was included in using BOOL variables again
Number of passes is in.
1.2.2.1. join mode again
Two trains are joined again, and there are three types of join mode again:
1) join mode 1 again:8 vehicles of marshalling 1 and 1 vehicle of marshalling 2 are joined again.Be characterized as marshalling 12 end WTB nodes and
1 end WTB nodes of marshalling 2 have joins signal again;
2) join mode 2 again:8 vehicles of marshalling 1 and 8 vehicles of marshalling 2 are joined again.Be characterized as marshalling 12 end WTB nodes and
2 end WTB nodes of marshalling 2 have joins signal again;
3) join mode 3 again:1 vehicle of marshalling 1 and 1 vehicle of marshalling 2 are joined again.Be characterized as marshalling 11 end WTB nodes and
1 end WTB nodes of marshalling 2 have joins signal again.
1.2.2.2. position maps
After the process data for receiving all WTB nodes, by the location information in WTB process datas, can will own
WTB process datas port mapping is to vehicle physical location.
Fig. 6 is node location mapping schematic diagram according to an embodiment of the invention.As shown in fig. 6, for joining again after
For the WTB sequence nodes of 4-3-2-1, due to all 1-2-3-4 not yet of node, there is the position such as Fig. 6 and map:It is right
In the WTB process datas of index node 1, location information includes marshalling and numbers:Marshalling 2, in the position of this unit:2 ends and
Join signal again:Non- heavy end;For the WTB process datas of index node 2, location information includes marshalling and numbers:Marshalling 2,
The position of this unit:1 end and join signal again:Join end again;For the WTB process datas of index node 3, location information packet
Include marshalling number:Marshalling 1, in the position of this unit:2 ends and join signal again:Join end again;For the WTB mistakes of index node 4
Number of passes evidence, location information include marshalling and number:Marshalling 1, in the position of this unit:1 end and join signal again:Non- heavy end.
1.2.3. master control vehicle identifies
Master control vehicle is the vehicle of train occupation, is responsible for sending out the control instructions such as whole train traction, braking.Only identify master
After controlling vehicle, train can just receive the operational order of drivers' cab.Master control vehicle identification principle be:When one and only one in train
Vehicle occupies, and the vehicle of the train occupation becomes master control vehicle, and otherwise train does not generate master control vehicle.It is more when being detected the presence of from control vehicle
During a master control vehicle, it is believed that master control vehicle is invalid.
Only have one end vehicle under normal circumstances and be inserted into key, which is master control vehicle.When existing one end vehicle is inserted into
When key becomes master control vehicle, other end vehicle has been also inserted into key, should be judged as that master control vehicle is invalid at this time, train does not have master control
Vehicle.When hanging together with uncoupling, allow intermediate car become master control vehicle, other when should not allow intermediate vehicle become master control vehicle.
Due to turning back or during other operating modes in train, need often to change the position of master control vehicle, therefore the identification of master control vehicle is
The process of one dynamic realtime.The change of master control vehicle will not cause TCN just to run, but can cause master control vehicle in operation just operation
Identification and the variation of direction discernment.
1.2.4. direction discernment
It is all to be identified from control vehicle with whether the orientation of master control vehicle is consistent after master control vehicle determines, to determine from control
The train directions of vehicle.
The principle of direction discernment is as follows:
1) using the direction of WTB main equipments as train reference direction, after end of run at the beginning of WTB, all nodes are known certainly
The orientation of body node and WTB main equipments is in the same direction or reversed;
2) after master control vehicle determines, train reference direction is oriented to respect to WTB main equipments with master control vehicle, passes through WTB processes
Data notification is all from control vehicle;
3) direction from control vehicle with respect to WTB main equipments, is compared with train reference direction, if value is identical, with master
It is in the same direction to control vehicle;If value is different, reversed with master control vehicle.When drivers' cab occupancy changes, relative direction re-recognizes.From
Control vehicle preserves comparison result;
If 4) be in the same direction from control vehicle comparison result, master control vehicle is sent out when instructing forward, to train control unit
(Train Control Unit, TCU) is sent to preceding instruction;Master control vehicle is sent out when instructing backward, is instructed after being sent to TCU;
If 5) be reversed from control vehicle comparison result, master control vehicle member is sent out when instructing forward, is instructed after being sent to TCU;
Master control vehicle is sent out when instructing backward, and preceding instruction is sent to TCU.
Fig. 7 is direction discernment schematic diagram according to an embodiment of the invention.As shown in fig. 7, main equipment is WTB nodes
1, and master control vehicle is node 62.The direction of main equipment node 1 is " to the left ", the direction of node 62 is " to the left ";And 63 He of node
The direction of node 2 is " to the right ".Therefore, the orientation after just being run with reference to WTB with WTB main equipments, 62-63-1-2 points of sequence node
Not Wei in the same direction-reversely-in the same direction-reversely.Master control vehicle be node 62, master control vehicle node 62 relative to WTB main equipments node 1 orientation
For " in the same direction ".The reference direction of train is " to the left ".From the direction of control vehicle 63 and node 2 relative to WTB main equipments node for " instead
To ", it is " reversed " with train reference direction.It is " in the same direction " from 1 direction of vehicle node is controlled relative to WTB main equipments node, with train
Reference direction is " in the same direction ".When driver sends out " forward " instruction in master control vehicle, master control vehicle node 62 is relative to WTB main equipment nodes
1 according to comparing result be " in the same direction ", be sent to preceding instruction to TCU;And it is according to comparing result from the direction of control vehicle 63 and node 2
" reversed " instructs after being sent to TCU.Vice versa.
2. normal operation train grade communication protocol
According to one embodiment of present invention, using normal operation train machine communication protocol, in the publication unification of train grade
Control command simultaneously feeds back necessary equipment working state and fault message, realizes normal operation that is single-row or joining again.
According to one embodiment of present invention, information that is single-row or again joining is carried out using regular message to transmit.Specifically,
Communication means includes sending control command message to other from control unit from the main control unit of main equipment;And from other from control
Unit feedback device working condition processed and fault message message.
2.1 transmission cycle
According to one embodiment of present invention, WTB process datas should use the transmission cycle of 25ms, i.e., own in 25ms
The process data of WTB nodes is at least sent primary (only sending one page for the data of paging).All process datas should be in 500ms
It inside at least sends primary.
WTB process datas message length is 128 bytes.It is provided according in 28029.1 chapters and sections 4.4.2.2 of GB/T, sends one
The time of frame WTB process data messages is 1756us.It therefore at least can be by the process data report of 4 WTB nodes in 25ms
Text sends primary.Fig. 8 is WTB process data communication time diagrams.As shown in figure 8, for having the train of 4 WTB nodes
For, within the period of 25ms, each WTB nodes can be directed to and send a frame WTB process data messages.As a result, in a biography
In the defeated period, the WTB process datas message of each node can be sent.According to one embodiment of present invention, by right
The real-time of signal transmission is classified, and requirement of real-time high data each period is sent, requirement of real-time is relatively low
Data timesharing is sent.
2.2 data type
Fig. 8 is WTB process data communications time diagram according to an embodiment of the invention.According to the implementation of Fig. 8
Example, WTB process datas are divided into P1, P2, P3, P4, P5 port, are described as follows:
1) P1 port datas are sent out by the master control vehicle layout in marshalling, and wherein master control vehicle sends order, including control instruction,
The data such as speed, each period send, not timesharing;
2) P2 port datas give master control vehicle by sending status signal from control vehicle in marshalling, and train grade is carried out for master control vehicle
Control (status signal of master control vehicle this unit for the control of train grade can be obtained from MVB bus, without total by WTB
Line transmits).Master control vehicle P1 ports and " master control car mark " signal being identified by P1 ports in byte 1 from control vehicle P2 ports
It distinguishes;
3) P3 port datas are sent out by all unit layouts in marshalling, predominantly vehicle key equipment state, Mei Gezhou
Phase all sends, not timesharing;
4) P4 port datas are sent out by all unit layouts in marshalling, predominantly vehicle arrangement state, and timesharing is sent;With
And
5) P5 port datas are sent out by all unit layouts in marshalling, predominantly vehicle trouble messages, and timesharing is sent.
Fig. 9 is WTB process datas configuration diagram according to an embodiment of the invention.As shown in figure 9, WTB processes
The length of data is 128 bytes, and wherein P1 P2 port datas are 0-47 bytes, and P3 port datas are 48-95 words
Section, P4 port datas are 96-111 bytes, and P5 port datas are 112-127 bytes.With reference to figure 8 and Fig. 9, wherein P1 ends
Mouthful and P2 port datas be not Time-sharing control information, P3 port datas are not timesharing key equipment state information, P4 port datas
For time-sharing facilities status information, and P5 port datas are timesharing fault message.
2.3 process data agreements
So-called process data agreement includes the master control list of transmission cycle as described above and data type from main equipment
Member sends control command message to other from control unit;And from other from control unit feedback device working condition and failure
Infomational message, it is achieved thereby that data communication of the train in normal operation.
WTB process data transport protocols cover important control and the status signal that each train subsystem needs WTB transmission,
Comprising be not limited to high pressure, traction/auxiliary, braking, door, air-conditioning, illumination, fixed speed control, fire alarm, cross split-phase, charger, electric power storage
The subsystems such as pond, bogie.
Above-described embodiment is used for illustrative purposes only, and is not limitation of the present invention, in relation to the general of technical field
Logical technical staff without departing from the present invention, can also make a variety of changes and modification, therefore, all equivalent
Technical solution should also belong to scope disclosed by the invention.