CN107846440B - Train data transmission method and system - Google Patents

Train data transmission method and system Download PDF

Info

Publication number
CN107846440B
CN107846440B CN201610837814.XA CN201610837814A CN107846440B CN 107846440 B CN107846440 B CN 107846440B CN 201610837814 A CN201610837814 A CN 201610837814A CN 107846440 B CN107846440 B CN 107846440B
Authority
CN
China
Prior art keywords
type
carriage
control node
gateway
data
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
CN201610837814.XA
Other languages
Chinese (zh)
Other versions
CN107846440A (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.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201610837814.XA priority Critical patent/CN107846440B/en
Publication of CN107846440A publication Critical patent/CN107846440A/en
Application granted granted Critical
Publication of CN107846440B publication Critical patent/CN107846440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Small-Scale Networks (AREA)
  • Electric Propulsion And Braking For Vehicles (AREA)

Abstract

The invention discloses a train data transmission method and a train data transmission system, wherein the method comprises the following steps: the gateway of the first type of carriage sends a preset CAN ID to the first control node, so that the first control node acquires the number of the sections of all carriages and the identity of the carriage per se; receiving Ethernet data of a second control node sent by gateways of other carriages through Ethernet; converting the Ethernet data into corresponding CAN data, and modifying the ID of the second control node according to the IP address corresponding to each carriage; and sending the CAN data to a first control node corresponding to the gateway of the first type carriage by using the modified second control node ID so that the first control node completes a control instruction. The train data transmission method CAN enable all carriages to share one preset CAN ID for data transmission, reduces the management cost and the maintenance cost of related control software, and reduces the error rate during software assembly.

Description

Train data transmission method and system
Technical Field
The invention relates to the technical field of rail transit, in particular to a train data transmission method and a train data transmission system.
Background
With the gradual improvement of urban and inter-urban traffic, the industrial chain of trains such as light rails, motor cars and subways is expanded, and the safety of vehicle-mounted communication networks is gradually valued by people. The Train communication network in the early stage mainly adopts two technologies, namely Lonworks (field Bus) and WTB-MVB (Wire Train Bus-Multifunction Vehicle Bus), however, in the development layout of intelligent traffic nowadays, the data volume transmitted by the Train communication network tends to increase day by day, and meanwhile, the real-time performance required by a control command is higher and higher, so that certain defects exist in the communication traffic and the communication speed of Lonworks and WTB-MVB.
At present, the combination of ethernet and CAN (Controller Area Network) is concerned and applied by train manufacturers, on one hand, the ethernet technology has certain superiority in data transmission to complement the development requirements of communication traffic and communication rate, and on the other hand, the CAN bus technology is mature in vehicle Network design and application and has high reliability. Therefore, people use the Ethernet as a main network for communication between carriages, and the CAN is used for building the network inside the carriage, so that the states of all the parts of the carriage CAN be effectively transmitted to a monitoring system in time, and the communication stability of all the parts inside the carriage CAN be ensured.
The electric devices distributed on each carriage on the train are just a plurality of power systems, finished train control systems and the like are arranged on the head and the tail of the train, such as a door control system, a light control system and the like, the functions realized on each carriage are the same, and the carriages are not required to be distinguished, so that the universal systems basically use one set of software, and a problem occurs. When a certain system of the locomotive needs to collect and monitor actual running states of the electric devices in each carriage, the data collected by the gateway of each carriage are the data of the same ID, and if the data are transmitted to the locomotive by using the same ID to transmit the data on the CAN network of the locomotive, the data CAN not be identified which carriage transmits the data.
In order to solve this problem, in the related art, each electric device is assigned with a different ID to transmit data, and even if the same electric device has the same function and the transmitted data content is the same, the data is transmitted using different IDs, which greatly increases the product production version management cost and the after-sales maintenance cost. Moreover, if careless mistakes occur during product production management or train assembly, and products in corresponding states are not configured according to corresponding carriages, part of functions of the carriage may not be realized, and even the carriage cannot run.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the art described above. To this end, a first object of the present invention is to provide a train data transmission method. The method CAN enable all the carriages to share one CAN ID for data transmission, reduces the management cost and the maintenance cost of related control software, and reduces the error rate during software assembly.
The second purpose of the invention is to provide a train data transmission method.
A third object of the present invention is to provide a train data transmission system.
In order to achieve the above object, a first aspect of the present invention provides a method for transmitting data of a train, the train including at least one first type car and at least one second type car, the first type car including at least one first control node and at least one second control node, and the second type car including the at least one second control node, the method including the steps of: the gateway of the first type of carriage sends a preset CAN ID to the first control node according to the control instruction received by the first control node, so that the first control node corresponding to the gateway of the first type of carriage obtains the number of the sections of all carriages and the identity of the carriage per se; the gateway of the first type compartment receives the Ethernet data of the second control node sent by the gateways of other first type compartments and the gateways of the second type compartments; the gateway of the first type carriage converts the Ethernet data of the second control node into corresponding CAN data, and modifies the ID of the second control node according to the IP addresses corresponding to the other first type carriages and the second type carriages; and the gateway of the first type carriage sends the CAN data to a first control node corresponding to the gateway of the first type carriage by using the modified second control node ID so that the first control node completes the control instruction.
According to the train data transmission method provided by the embodiment of the invention, the IDs of the data transmitted by other carriages CAN be modified through the gateway of the first type carriage, so that each carriage of the train CAN share one preset CAN ID for data transmission, and therefore, the management cost and the maintenance cost of related control software CAN be reduced, and the error rate during software assembly CAN be reduced.
In addition, the train data transmission method according to the above embodiment of the present invention may further have the following additional technical features:
according to an embodiment of the present invention, the transmission method further includes: after the first control node receives the control instruction, the gateway of the second type carriage acquires CAN data of the second control node corresponding to the gateway of the second type carriage, and converts the CAN data into Ethernet data, so that the gateway of the second type carriage sends the Ethernet data to the gateway of the first type carriage.
According to an embodiment of the present invention, the transmission method further includes: and the gateway of the first type carriage and the gateway of the second type carriage respectively identify the own carriage identity according to the respective corresponding IP addresses, and respectively broadcast the own carriage identity to the respective first control node and/or second control node through the respective CAN network.
According to an embodiment of the present invention, the transmission method further includes: and the gateway of the first type compartment and the gateway of the second type compartment adjust corresponding IP addresses according to the positions of the first type compartment and the second type compartment.
In order to achieve the above object, a second aspect of the present invention provides a method for transmitting data of a train, the train including at least one first type car and at least one second type car, the first type car including at least one first control node and at least one second control node, and the second type car including the at least one second control node, the method comprising the steps of: the first control node receives a control instruction so that a gateway of a first type of carriage sends a preset CAN ID to the first control node; the first control node acquires the number of the sections of all the carriages according to the preset CAN ID; the first control node receives CAN data sent by the gateway of the first type carriage by a modified second control node ID to complete the control instruction, wherein the CAN data is data converted by Ethernet data of the second control node sent by the gateway of the first type carriage through Ethernet and received by gateways of other first type carriages and gateways of second type carriages, and the modified second control node ID is obtained by modifying corresponding carriage IP addresses according to other first type carriages and the second type carriages by the gateway of the first type carriage.
According to the train data transmission method provided by the embodiment of the invention, the IDs of the data transmitted by other carriages CAN be modified through the gateway of the first type carriage, so that each carriage of the train CAN share one preset CAN ID for data transmission, and therefore, the management cost and the maintenance cost of related control software CAN be reduced, and the error rate during software assembly CAN be reduced.
In addition, the train data transmission method according to the above embodiment of the present invention may further have the following additional technical features:
according to an embodiment of the present invention, the transmission method further includes: after the first control node receives the control instruction, the gateway of the second type carriage acquires CAN data of the second control node corresponding to the gateway of the second type carriage, and converts the CAN data into Ethernet data, so that the gateway of the second type carriage sends the Ethernet data to the gateway of the first type carriage.
According to an embodiment of the present invention, the transmission method further includes: the first control node acquires the self carriage identity from the gateway of the corresponding first type carriage, wherein the gateway of the first type carriage identifies the self carriage identity according to the IP address of the gateway.
According to an embodiment of the present invention, the transmission method further includes: and the first control node acquires CAN data of the second control node corresponding to the gateway of the first type carriage through the gateway of the first type carriage according to the self carriage identity.
In order to achieve the above object, a third aspect of the present invention provides a transmission system for data of a train, the train including at least one first type car and at least one second type car, the transmission system comprising: the gateway of the first type carriage is used for sending a preset CAN ID to a first control node according to a control instruction received by the first control node, receiving Ethernet data of a second control node sent by gateways of other first type carriages and gateways of second type carriages, converting the Ethernet data into CAN data, modifying the ID of the second control node according to IP addresses of other first type carriages and second type carriages, and sending the CAN data to the first control node by the modified ID of the second control node; the first control node is arranged in the first type of carriage and used for receiving the control instruction, acquiring the number of the sections and the carriage identity of the carriage according to the preset CAN ID, and finishing the control instruction according to the modified second control node ID and the CAN data corresponding to the modified second control node ID; the second control nodes are respectively arranged in the first type carriage and the second type carriage and are used for sending CAN data to a gateway of the carriage per se; and the gateway of the second type carriage is used for converting the received CAN data into Ethernet data and sending the Ethernet data to the gateway of the first type carriage through the Ethernet.
According to the train data transmission system provided by the embodiment of the invention, the IDs of the data transmitted by other carriages CAN be modified through the gateway of the first type carriage, so that each carriage of the train CAN share one preset CAN ID for data transmission, and therefore, the management cost and the maintenance cost of related control software CAN be reduced, and the error rate during software assembly is reduced.
In addition, the train data transmission system according to the above embodiment of the present invention may further have the following additional technical features:
according to an embodiment of the invention, the first control node is further configured to: and acquiring the CAN data of the second control node corresponding to the gateway of the first type carriage through the gateway of the first type carriage.
According to one embodiment of the present invention, the gateway of the first type car and the gateway of the second type car are further configured to: and respectively identifying the carriage serial number of the carriage according to the corresponding IP address, and respectively broadcasting the carriage serial number of the carriage to the first control node and/or the second control node through the CAN network.
According to one embodiment of the present invention, the gateway of the first type car and the gateway of the second type car are further configured to: and adjusting the corresponding IP addresses according to the positions of the first type carriage and the second type carriage.
Drawings
Fig. 1 is a flowchart of a transmission method of train data according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a train data transmission method according to an embodiment of the present invention;
FIG. 3 is a schematic illustration of transmission of train data according to one embodiment of the present invention;
FIG. 4 is a schematic illustration of a meter display screen panel display according to one embodiment of the present invention;
fig. 5 is a flowchart of a transmission method of train data according to another embodiment of the present invention;
fig. 6 is a topological diagram of a transmission method of train data according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a train data transmission system according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A transmission method and a transmission system of train data according to an embodiment of the present invention will be described below with reference to the drawings.
Fig. 1 is a flowchart of a transmission method of train data according to an embodiment of the present invention.
In an embodiment of the invention, as shown in fig. 2, the train comprises at least one car of a first type comprising at least one first control node and at least one second control node and at least one car of a second type comprising at least one second control node.
The first type of carriage can be a train head or a train tail, the first control node can be an instrument display screen, and the second control node can be but is not limited to a train door control system, a tire pressure monitoring system, an information media system and the like.
As shown in fig. 1, the train data transmission method includes:
s101, the gateway of the first type of carriage sends a preset CAN ID to the first control node according to the control instruction received by the first control node, so that the first control node CAN acquire the number of the sections of all carriages and the identity of the carriage per se.
The preset CAN ID protocol definition CAN refer to tables 1 and 2:
TABLE 1
Figure GDA0002715169460000051
TABLE 2
Figure GDA0002715169460000052
Further, the first control node may obtain the number of the nodes of all the first type cars and the second type cars and the corresponding car identities of the first control node and the second control node according to the preset CAN ID.
In one embodiment of the present invention, the control instruction may be to control the first control node to acquire the state of the second control node, for example, the meter display screen of the first type car monitors the open/close state of each car door, the meter display screen of the first type car monitors the tire pressure state of each car, and the like.
And S102, the gateway of the first type compartment receives the Ethernet data of the second control node sent by the gateways of other first type compartments and the gateways of the second type compartments.
Specifically, as shown in fig. 3, after the first control node receives the control instruction, the gateway of the second type car may automatically acquire the CAN data of the second control node corresponding to the first control node, convert the CAN data into ethernet data, and send the ethernet data to the gateway of the first type car.
It can be understood that, since the cars communicate with each other through the ethernet, according to the characteristics of the ethernet, when each car accesses the ethernet of the train, each car is assigned (may be dynamically assigned or may be statically assigned) a respective IP address, which is an identification used for communication between the cars, and the gateway sending data corresponding to the identity of each car, that is, each car carries its own IP address, for example, 192.168.0.1 represents car number 1, 192.168.0.2 represents car number 2, and the like, so that when other cars receive the ethernet data, the source of the ethernet data can be identified through the IP addresses of the cars.
Specifically, the gateway of the first type car and the gateway of the second type car CAN identify their own car serial numbers according to their respective corresponding IP addresses, and broadcast their own car serial numbers to their respective first control nodes and/or second control nodes through their respective CAN networks. The protocol definition can be referred to table 3:
TABLE 3
Figure GDA0002715169460000061
Figure GDA0002715169460000071
It should be noted that, as shown in fig. 3, the gateway of the first type car may also receive CAN data transmitted by its corresponding second control node.
S103, the gateway of the first type carriage converts the Ethernet data of the second control node into corresponding CAN data, and modifies the ID of the second control node according to the IP addresses of other first type carriages and carriages corresponding to the second type carriages.
For example, a train includes two cars of a first type, car number 1 and car number 4, respectively; two cars of the second type, No. 2 and No. 3, respectively. The gateway of the car No. 1 CAN receive Ethernet data of the second control node of the CAN network where the gateways of the cars No. 2, No. 3 and No. 4 are located, which are sent by the Ethernet.
Wherein, for the preset CAN ID (e.g. 0x583) of the train car, the second control node ID in the CAN network of each car is the same, for example, it may be Ox200, 0x282, etc.
Further, the gateway of car No. 1 converts the ethernet data of the second control node 0x200 into corresponding CAN data, and modifies the second control node ID of the gateway of car No. 2 from 0x200 to 0x202, modifies the second control node ID of the gateway of car No. 3 from 0x200 to 0x203, and modifies the second control node ID of the gateway of car No. 4 from 0x200 to 0x204, so that the first control node CAN identify the source of the CAN data.
It should be noted that, after the first control node receives the control instruction, the first control node may obtain, through the gateway of the first type car where the first control node is located, the CAN data of the second control node corresponding to the gateway of the first type car, where an ID corresponding to the CAN data of the second control node is 0x200, that is, it is indicated that the source of the CAN data is the second control node of the current car.
And S104, the gateway of the first type carriage sends the CAN data to a first control node corresponding to the gateway of the first type carriage by using the modified second control node ID so that the first control node completes a control instruction.
For example, after the meter display screen of the car 1 receives the door state data sent by the gateway of each car, the door state views of the cars 1, 2, 3, and 4 shown in fig. 4 are automatically generated on the display interface of the meter display screen.
It can be understood that when the state of the door of a certain compartment changes, the view changes accordingly.
In one embodiment of the present invention, the gateway of the first type car and the gateway of the second type car may further adjust the corresponding IP addresses according to the positions of the first type car and the second type car.
Specifically, when the current train runs to the left, the sequence of the carriages is arranged according to 1-2-3-4; when the train runs to the end point leftwards, the running direction needs to be changed, and when the train runs to the right, the train is redistributed in 4-3-2-1 sequence. Therefore, according to the IP address distribution rule of the Ethernet, the gateway of each carriage can adjust the IP address according to the current carriage position.
For example, when the train travels leftward, the IP for the car No. 1 is 192.168.0.1, the IP for the car No. 2 is 192.168.0.2, the IP for the car No. 3 is 192.168.0.3, the IP for the car No. 4 is 192.168.0.4, the IP for the car No. 4 is 192.168.0.3, the IP for the car No. 3 is 192.168.0.3, the IP for the car No. 2 is 192.168.0.2, the IP for the car No. 3 is 192.168.0.2, the IP for the car No. 4 is 1, and the IP for the car No. 192.168.0.1, so that each car can still identify its own car or other cars by the corresponding IP address.
According to the train data transmission method provided by the embodiment of the invention, the IDs of the data transmitted by other carriages CAN be modified through the gateway of the first type carriage, so that each carriage of the train CAN share one preset CAN ID for data transmission, and therefore, the management cost and the maintenance cost of related control software CAN be reduced, and the error rate during software assembly CAN be reduced.
Fig. 3 is a flowchart of a transmission method of train data according to another embodiment of the present invention.
In an embodiment of the invention the train comprises at least one car of a first type comprising at least one first control node and at least one second control node and at least one car of a second type comprising at least one second control node.
The first type of carriage can be a train head or a train tail, the first control node can be an instrument display screen, and the second control node can be but is not limited to a train door control system, a tire pressure monitoring system, an information media system and the like.
As shown in fig. 5, the train data transmission method includes:
s201, the first control node receives a control instruction, so that the gateway of the first type carriage sends a preset CAN ID to the first control node.
S202, the first control node acquires the number of the sections of all the carriages according to the preset CAN ID.
S203, the first control node receives CAN data sent by the gateway of the first type carriage by the modified second control node ID so as to complete the control command.
The CAN data is data which is obtained by converting Ethernet data of a second control node sent by a gateway of the first type carriage and received by a gateway of the first type carriage through Ethernet, and the modified ID of the second control node is obtained by modifying corresponding carriage IP addresses according to other first type carriages and second type carriages by the gateway of the first type carriage.
In the embodiment of the invention, after the first control node receives the control instruction, the gateway of the second type carriage acquires the CAN data of the second control node corresponding to the gateway of the second type carriage, and converts the CAN data into the Ethernet data, so that the gateway of the second type carriage sends the Ethernet data to the gateway of the first type carriage.
It can be understood that the first control node may obtain the own car identity from the gateway of the corresponding first type car, where the gateway of the first type car recognizes the own car identity according to the own IP address.
Further, the first control node obtains the CAN data of the second control node corresponding to the gateway of the first type compartment through the gateway of the first type compartment according to the identity of the first control node.
It should be noted that the train data transmission method according to the embodiment of the present invention is the same as the train data transmission method according to the above embodiment of the present invention, and is not described herein again to reduce redundancy.
The train data transmission method provided by the embodiment of the invention CAN enable each carriage of the train to share one preset CAN ID, thereby reducing the management cost and the maintenance cost of related control software and reducing the error rate during software assembly.
In order to facilitate understanding of the train data transmission method according to the embodiment of the present invention, the following specific embodiments may be used to describe the following method:
it should be noted that 4 train cars are arranged in this embodiment, where car No. 1 and car No. 4 are cars of the first type, and car No. 2 and car No. 3 are cars of the 2 nd type. Network topology as shown in fig. 6, the control nodes mainly involved include instrument display screens (only the first type of car configuration), door control systems, tire pressure monitoring systems, etc. (each car configuration).
First, the ID field for special processing is divided: the ID is high 5 bits 00100B-00111B and low 6 bits 000000B-111111B, wherein the high 5 bits 00100B are allocated to a door control system, 00101B is allocated to a tire pressure monitoring system, and the low 6 bits represent a car serial number. The protocols for the door control system and the tire pressure monitoring system to transmit data can be respectively shown in the following tables 4 and 5:
TABLE 4
Figure GDA0002715169460000091
TABLE 5
Figure GDA0002715169460000101
The gateway of each carriage CAN identify the carriage serial number per se according to the IP address, and CAN identify the number of control nodes in the current CAN network according to the characteristics of the Ethernet and the control nodes under the same Ethernet, and identify the carriage identity per se and other carriage identities by predefining the IP attribution mode. It may be defined that car No. 1 uses an IP of 192.168.0.1, car No. 2 uses an IP of 192.168.0.2, car No. 3 uses an IP of 192.168.0.3, and car No. 4 uses an IP of 192.168.0.4. In addition, the gateway of each car broadcasts the car identity to all control nodes inside the car via the CAN network, and the protocol definition CAN be referred to in table 6 below. As shown in table 6, the gateway of each car can know that the current train ethernet network has 4 IPs running, and the gateway of each car can know that the IP of the gateway of car 1 is 192.168.0.1, and the gateway of car 1 can know that the padding value of the 0.0-1.7 bits in the 0x583 message is 0x4, i.e., 4 cars, and the gateway of car 1 can know that the IP of the gateway of car itself is 192.168.0.1, and the padding value of the 2.0-2.7 bits in the 0x583 message is 0x1, i.e., car 1 itself; similarly, the gateway of car 2 knows that its own IP is 192.168.0.2, and the 2.0-2.7 bit padding value in the 0x583 message is 0x2, i.e. it is car 2 itself; the gateway of the car 3 knows that the IP of the gateway is 192.168.0.3, and the 2.0-2.7 bit filling value in the 0x583 message is 0x3, namely the gateway of the car 3; the gateway of car 4 knows that its own IP is 192.168.0.4, and the 2.0-2.7 bits padding value in the 0x583 message is 0x4, i.e. it is car 4 itself.
TABLE 6
Figure GDA0002715169460000102
Figure GDA0002715169460000111
Further, the following embodies the invention in two specific embodiments:
in one embodiment of the present invention, the control commands monitor the open/closed status of the doors of each car for car number 1 and car number 4 instrument displays.
Specifically, on one hand, the gateway of the car 1 sends the identity information about the car 1 with the preset CAN ID of 0x583, wherein the value of 1.0-1.7 is 0x4, and the value of 2.0-2.7 is 0x1, so that the instrument display screen of the car 1 analyzes that the train has 4 cars and is currently the car 1; on the other hand, the Ethernet data of the door state sent by each compartment is received, when the Ethernet data sent by the compartment No. 2 is analyzed and converted into CAN data, 0x200 in the Ethernet data is automatically modified into 0x202, then the original 0x200 data is sent to the instrument display screen of the compartment No. 1 through the CAN network in the compartment No. 1 by using 0x202, similarly, 0x200 of the compartment No. 3 is modified into 0x203, 0x200 of the compartment No. 4 is modified into 0x204, and the original 0x200 data is sent to the instrument display screen of the compartment No. 1 by using 0x203 and 0x204 respectively.
The gateway of the No. 2 carriage receives 0x200 data of the CAN network in the carriage, converts the data into Ethernet data, and sends the Ethernet data to the gateway of the No. 1 carriage and the gateway of the No. 4 carriage.
The gateway of the carriage No. 3 receives 0x200 data of the CAN network in the carriage, converts the data into Ethernet data, and sends the Ethernet data to the gateway of the carriage No. 1 and the carriage No. 4.
On one hand, the gateway of the 4 car sends identity information about the 4 car by using the preset CAN ID of 0x583, wherein the value of 1.0-1.7 is 0x4, and the value of 2.0-2.7 is 0x4, so that the instrument display screen of the 4 car analyzes that the train has 4 cars, namely the 4 car currently; on the other hand, the Ethernet data of the door state sent by each compartment is received, when the Ethernet data sent by the compartment No. 1 is analyzed and converted into CAN data, 0x200 in the Ethernet data is automatically modified into 0x201, then the original 0x200 data is sent to the instrument display screen of the compartment No. 4 through the CAN network in the compartment No. 4 by using 0x201, similarly, 0x200 of the compartment No. 2 is modified into 0x202, 0x200 of the compartment No. 3 is modified into 0x203, and the original 0x200 data is sent to the instrument display screen of the compartment No. 4 by using 0x202 and 0x203 respectively.
The instrument display screen of the carriage 1 firstly receives 0x583 data sent by the gateway of the carriage 1, the position 1.0-1.7 is analyzed to be 0x4, namely 4 carriages are present, the instrument display interface automatically generates a dynamic view (mainly embodied as door state display) of 4 carriages, the value 2.0-2.7 is analyzed to be 0x1, namely the carriage 1 is present, the instrument display screen displays and directly collects 0x200 data in the carriage 1 CAN network for the door state of the carriage 1, the door state of the carriage 2 displays and directly collects 0x202 data forwarded by the gateway of the carriage 1, the door state of the carriage 3 displays and directly collects 0x203 data forwarded by the gateway of the carriage 1, the door state of the carriage 4 displays and directly collects 0x204 data forwarded by the gateway of the carriage 1, and the specific corresponding relation is shown in the following table 7:
TABLE 7
Figure GDA0002715169460000121
The instrument display screen of the No. 4 carriage firstly receives 0x583 data sent by the gateway of the No. 4 carriage, the position 1.0-1.7 is analyzed to be 0x4, namely, the current 4 carriages exist, the instrument display interface automatically generates a dynamic view (mainly embodied by door state display) of the 4 carriages, the value 2.0-2.7 is analyzed to be 0x4, namely, the current 4 carriages are, the instrument display screen displays the door state of the No. 4 carriage and directly acquires 0x200 data in the No. 4 carriage CAN network, the door state of the No. 1 carriage displays 0x201 data directly acquired by the gateway of the No. 1 carriage, the door state of the No. 2 carriage displays 0x202 data directly acquired by the gateway of the No. 1 carriage, the door state of the No. 3 carriage displays 0x203 data directly acquired by the gateway of the No. 1 carriage, and the specific corresponding relation is shown in the following table 8:
TABLE 8
Figure GDA0002715169460000122
In another embodiment of the present invention, the control commands monitor the tire pressure status of each car for car number 1 and car number 4 instrument displays.
Specifically, on one hand, the gateway of the car 1 sends the identity information about the car 1 with the preset CAN ID of 0x583, wherein the value of 1.0-1.7 is 0x4, and the value of 2.0-2.7 is 0x1, so that the instrument display screen of the car 1 analyzes that the train has 4 cars and is currently the car 1; on the other hand, the ethernet data of the tire pressure state sent by each car is received, when the ethernet data sent by the car number 2 is analyzed and converted into the CAN data, 0x280 of the ethernet data is automatically modified into 0x282, then the original 0x280 data is sent to the instrument display screen of the car number 1 through the CAN network in the car number 1 by using 0x282, similarly, 0x280 of the car number 3 is modified into 0x283, 0x280 of the car number 4 is modified into 0x284, and the original 0x280 data is sent to the instrument display screen of the car number 1 by using 0x283 and 0x284 respectively.
The gateway of the No. 2 carriage receives 0x280 data of the CAN network in the carriage, converts the data into Ethernet data, and sends the Ethernet data to the gateway of the No. 1 carriage and the gateway of the No. 4 carriage.
The gateway of the carriage No. 3 receives 0x280 data of the CAN network in the carriage, converts the data into Ethernet data, and sends the Ethernet data to the gateway of the carriage No. 1 and the carriage No. 4.
On one hand, the gateway of the 4 car sends identity information about the 4 car by using the preset CAN ID of 0x583, wherein the value of 1.0-1.7 is 0x4, and the value of 2.0-2.7 is 0x4, so that the instrument display screen of the 4 car analyzes that the train has 4 cars, namely the 4 car currently; on the other hand, the tire pressure state Ethernet data sent by each car is received, when the Ethernet data sent by the car No. 1 is analyzed and converted into CAN data, 0x280 of the Ethernet data is automatically modified into 0x281, then the original 0x280 data is sent to the instrument display screen of the car No. 4 through the CAN network in the car No. 4 by 0x281, similarly, 0x280 of the car No. 2 is modified into 0x282, 0x280 of the car No. 3 is modified into 0x283, and the original 0x280 data is sent to the instrument display screen of the car No. 4 by 0x282 and 0x283 respectively.
The instrument display screen of the carriage 1 firstly receives 0x583 data sent by the gateway of the carriage 1, the position 1.0-1.7 is analyzed to be 0x4, namely 4 carriages exist currently, the instrument display interface automatically generates a dynamic view (mainly embodied by tire pressure state display) of 4 carriages, the value 2.0-2.7 is analyzed to be 0x1, namely the carriage 1 currently, the instrument display screen displays and directly acquires 0x280 data in the carriage 1 CAN network for the tire pressure state of the carriage 1, the tire pressure state of the carriage 2 displays and directly acquires 0x282 data forwarded by the gateway of the carriage 1, the tire pressure state of the carriage 3 displays and directly acquires 0x283 data forwarded by the gateway of the carriage 1, the tire pressure state of the carriage 4 displays and directly acquires 0x284 data forwarded by the gateway of the carriage 1, and the specific corresponding relationship is shown in the following table 9:
TABLE 9
Figure GDA0002715169460000131
The instrument display screen of the No. 4 carriage firstly receives 0x583 data sent by the gateway of the No. 4 carriage, analyzes that the 1.0-1.7 bit is 0x4, namely, 4 carriages exist currently, the instrument display interface automatically generates a dynamic view (mainly embodied by tire pressure state display) of the 4 carriages, analyzes that the value of 2.0-2.7 is 0x4, namely, 4 carriages currently, the instrument display screen displays and directly collects 0x280 data in the No. 4 carriage CAN network for the tire pressure state of the No. 4 carriage, the tire pressure state of the No. 1 carriage displays and directly collects 0x281 data forwarded by the gateway of the No. 1 carriage, the tire pressure state of the No. 2 carriage displays and directly collects 0x282 data forwarded by the gateway of the No. 1 carriage, the tire pressure state of the No. 3 carriage displays and directly collects 0x283 data forwarded by the gateway of the No. 1 carriage, and the specific corresponding relationship is shown in the following table 10:
watch 10
Figure GDA0002715169460000132
Figure GDA0002715169460000141
In summary, the train data transmission method of the embodiment of the invention CAN enable all carriages of the train to share the same CAN ID, namely only one version of software is required to be assembled to any carriage, so that the assembly errors of the software CAN be reduced, and the risk of disordered data transmission is reduced.
Fig. 7 is a transmission system of train data according to an embodiment of the present invention.
In an embodiment of the present invention, the train includes at least one car of a first type and at least one car of a second type.
The first type of carriage can be a train head or a train tail.
As shown in fig. 7, the train data transmission system includes: a gateway 10 for a car of a first type, a gateway 20 for a car of a second type, a first control node 30 and a second control node 40.
The gateway 10 of the first type car is used for sending a preset CAN ID to the first control node 30 according to a control instruction received by the first control node 30, receiving Ethernet data of the second control node 40 sent by the gateways 10 of other first type cars and the gateway 20 of the second type cars, converting the Ethernet data into CAN data, modifying the ID of the second control node 40 according to IP addresses of other first type cars and second type cars, and sending the CAN data to the first control node 30 by the modified ID of the second control node 40; the first control node 30 is arranged in the first type of carriage, and the first control node 30 is used for receiving the control instruction, acquiring the number of the sections and the identity of the carriage per se according to the preset CAN ID, and completing the control instruction according to the modified second control node 40ID and the CAN data corresponding to the modified second control node; the second control node 40 is respectively arranged in the first type carriage and the second type carriage and is used for sending CAN data to a gateway of the carriage per se; the gateway 20 of the second type car is used for converting the received CAN data into ethernet data and sending the ethernet data to the gateway 10 of the first type car.
In one embodiment of the present invention, the first control node 30 is further configured to obtain the CAN data of the second control node 40 corresponding to the gateway 10 of the first type of car through the gateway 10 of the first type of car.
Further, the gateway 10 of the first type car and the gateway 20 of the second type car are further configured to identify their own car serial numbers according to their respective corresponding IP addresses, and broadcast their own car serial numbers to their respective first control nodes 30 and/or second control nodes 40 through their respective CAN networks. And adjusting the corresponding IP addresses according to the positions of the first type carriage and the second type carriage.
It will be appreciated that the gateways 10 of each car of the first type, the gateways 20 of each car of the second type, and the gateways 10 of the cars of the first type and the gateways 20 of the cars of the second type are connected by ethernet.
It should be noted that the specific implementation manner of the train data transmission system according to the embodiment of the present invention is the same as the specific implementation manner of the train data transmission method according to the above-mentioned embodiment of the present invention, and for reducing redundancy, no further description is provided here.
According to the train data transmission system, the IDs of the data transmitted by other carriages CAN be modified through the gateway of the first type carriage, so that all carriages of the train CAN share one preset CAN ID, the management cost and the maintenance cost of relevant control software CAN be reduced, and the error rate during software assembly CAN be reduced.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered limiting of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (12)

1. A method of transmitting train data, said train comprising at least one car of a first type and at least one car of a second type, said car of the first type comprising at least one first control node and at least one second control node, said car of the second type comprising said at least one second control node, said method of transmitting comprising the steps of:
the gateway of the first type of carriage sends a preset CAN ID to the first control node according to the control instruction received by the first control node, so that the first control node corresponding to the gateway of the first type of carriage obtains the number of the sections of all carriages and the identity of the carriage per se;
the gateway of the first type compartment receives the Ethernet data of the second control node sent by the gateways of other first type compartments and the gateways of the second type compartments;
the gateway of the first type carriage converts the Ethernet data of the second control node into corresponding CAN data, and modifies the ID of the second control node according to the IP addresses corresponding to the other first type carriages and the second type carriages;
the gateway of the first type compartment sends the CAN data to a first control node corresponding to the gateway of the first type compartment by using the modified second control node ID so that the first control node completes the control instruction,
the CAN data comprises a carriage state and a carriage serial number.
2. The method for transmitting train data according to claim 1, further comprising:
after the first control node receives the control instruction, the gateway of the second type carriage acquires CAN data of the second control node corresponding to the gateway of the second type carriage, and converts the CAN data into Ethernet data, so that the gateway of the second type carriage sends the Ethernet data to the gateway of the first type carriage.
3. The method for transmitting train data according to claim 1, further comprising:
and the gateway of the first type carriage and the gateway of the second type carriage respectively identify the own carriage identity according to the respective corresponding IP addresses, and respectively broadcast the own carriage identity to the respective first control node and/or second control node through the respective CAN network.
4. The method for transmitting train data according to claim 1, further comprising:
and the gateway of the first type compartment and the gateway of the second type compartment adjust corresponding IP addresses according to the positions of the first type compartment and the second type compartment.
5. A method of transmitting train data, said train comprising at least one car of a first type and at least one car of a second type, said car of the first type comprising at least one first control node and at least one second control node, said car of the second type comprising said at least one second control node, said method of transmitting comprising the steps of:
the first control node receives a control instruction so that a gateway of a first type of carriage sends a preset CAN ID to the first control node;
the first control node acquires the number of the sections of all the carriages and the identity of the carriage per se according to the preset CAN ID;
the first control node receives CAN data sent by the gateway of the first type compartment by a modified second control node ID to complete the control instruction, wherein the CAN data is data converted by Ethernet data of the second control node sent by the gateway of the first type compartment through Ethernet and received by gateways of other first type compartments and gateways of second type compartments, the modified second control node ID is obtained by modifying an original second control node ID by the gateway of the first type compartment according to compartment IP addresses corresponding to the other first type compartments and the second type compartments,
the CAN data comprises a carriage state and a carriage serial number.
6. The method for transmitting train data according to claim 5, further comprising:
after the first control node receives the control instruction, the gateway of the second type carriage acquires CAN data of the second control node corresponding to the gateway of the second type carriage, and converts the CAN data into Ethernet data, so that the gateway of the second type carriage sends the Ethernet data to the gateway of the first type carriage.
7. The method for transmitting train data according to claim 5, further comprising:
the first control node acquires the self carriage identity from the gateway of the corresponding first type carriage, wherein the gateway of the first type carriage identifies the self carriage identity according to the IP address of the gateway.
8. The method for transmitting train data according to claim 7, further comprising:
and the first control node acquires CAN data of the second control node corresponding to the gateway of the first type carriage through the gateway of the first type carriage according to the self carriage identity.
9. A transmission system for train data, said train comprising at least one car of a first type and at least one car of a second type, said transmission system comprising:
the gateway of the first type carriage is used for sending a preset CAN ID to a first control node according to a control instruction received by the first control node, receiving Ethernet data of a second control node sent by gateways of other first type carriages and gateways of second type carriages, converting the Ethernet data into CAN data, modifying the ID of the second control node according to IP addresses of other first type carriages and second type carriages, and sending the CAN data to the first control node by the modified ID of the second control node;
the first control node is arranged in the first type of carriage and used for receiving the control instruction, acquiring the number of the sections and the carriage identity of the carriage according to the preset CAN ID, and finishing the control instruction according to the modified second control node ID and the CAN data corresponding to the modified second control node ID;
the second control nodes are respectively arranged in the first type carriage and the second type carriage and are used for sending CAN data to a gateway of the carriage per se;
the gateway of the second type carriage is used for converting the received CAN data into Ethernet data and sending the Ethernet data to the gateway of the first type carriage,
the CAN data comprises a carriage state and a carriage serial number.
10. The train data transmission system of claim 9, wherein the first control node is further configured to:
and acquiring the CAN data of the second control node corresponding to the gateway of the first type carriage through the gateway of the first type carriage.
11. The train data transmission system of claim 9, wherein the gateway for the first type car and the gateway for the second type car are further configured to:
and respectively identifying the carriage serial number of the carriage according to the corresponding IP address, and respectively broadcasting the carriage serial number of the carriage to the first control node and/or the second control node through the CAN network.
12. The train data transmission system of claim 9, wherein the gateway for the first type car and the gateway for the second type car are further configured to:
and adjusting the corresponding IP addresses according to the positions of the first type carriage and the second type carriage.
CN201610837814.XA 2016-09-21 2016-09-21 Train data transmission method and system Active CN107846440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610837814.XA CN107846440B (en) 2016-09-21 2016-09-21 Train data transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610837814.XA CN107846440B (en) 2016-09-21 2016-09-21 Train data transmission method and system

Publications (2)

Publication Number Publication Date
CN107846440A CN107846440A (en) 2018-03-27
CN107846440B true CN107846440B (en) 2020-12-25

Family

ID=61656895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610837814.XA Active CN107846440B (en) 2016-09-21 2016-09-21 Train data transmission method and system

Country Status (1)

Country Link
CN (1) CN107846440B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753398A (en) * 2008-11-28 2010-06-23 华为技术有限公司 Method and equipment for labeling service profile
CN103139029A (en) * 2011-11-25 2013-06-05 中国北车股份有限公司大连电力牵引研发中心 Data communication method, system and gateway
CN103546357A (en) * 2012-07-17 2014-01-29 中国北车集团大同电力机车有限责任公司 Communication method and system of different double-heading network locomotives, and gateways
CN104639618A (en) * 2015-01-13 2015-05-20 南京康尼机电股份有限公司 Wireless networking system and method of working parameters of rail vehicle equipment or mechanism
CN105376166A (en) * 2014-08-29 2016-03-02 中车大连电力牵引研发中心有限公司 Data processing method based on rail locomotive switch and switch
CN105682107A (en) * 2015-06-29 2016-06-15 南方银谷科技有限公司 Train compartment WIFI (Wireless Fidelity) coverage network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080112473A1 (en) * 2006-11-09 2008-05-15 Rami Refaeli System and method for communicating with multi compartment vehicles
DE102012014724B3 (en) * 2012-04-14 2013-09-12 Volkswagen Aktiengesellschaft Apparatus, method and computer program for operating a data bus system of a motor vehicle

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753398A (en) * 2008-11-28 2010-06-23 华为技术有限公司 Method and equipment for labeling service profile
CN103139029A (en) * 2011-11-25 2013-06-05 中国北车股份有限公司大连电力牵引研发中心 Data communication method, system and gateway
CN103546357A (en) * 2012-07-17 2014-01-29 中国北车集团大同电力机车有限责任公司 Communication method and system of different double-heading network locomotives, and gateways
CN105376166A (en) * 2014-08-29 2016-03-02 中车大连电力牵引研发中心有限公司 Data processing method based on rail locomotive switch and switch
CN104639618A (en) * 2015-01-13 2015-05-20 南京康尼机电股份有限公司 Wireless networking system and method of working parameters of rail vehicle equipment or mechanism
CN105682107A (en) * 2015-06-29 2016-06-15 南方银谷科技有限公司 Train compartment WIFI (Wireless Fidelity) coverage network

Also Published As

Publication number Publication date
CN107846440A (en) 2018-03-27

Similar Documents

Publication Publication Date Title
JP2022519464A (en) Train network control systems, methods, equipment, and trains
US10056985B2 (en) Broadband communication network architecture with train control network and train serving network combined, and communication method thereof
CN102801597B (en) Ethernet-based train communication network implementation method
CN106240601B (en) Train network system
CN206374741U (en) Train network control system
US9308832B2 (en) Method for operating railbound vehicles
CN104683441A (en) Communication method of railway vehicle network system
CN104579606A (en) Redundant design method for multifunction vehicle bus (MVB) network system
TW201725888A (en) Electric vehicle equipped with a communication network
CN103997545A (en) Train broadband communication network architecture suitable for railway vehicle
Ludicke et al. Train communication networks and prospects
CN101404629A (en) WTB-Ethernet gate based on ARM7
US10735519B2 (en) Wireless trainline
CN111147338B (en) Interface design method from vehicle-mounted wired network to wireless network
CN102991536A (en) Train network control system for motor train unit with speed of 250 km/h
CN105691416A (en) Rail transit train information system based on wireless Mesh network
WO2022217874A1 (en) Vehicle-mounted atc network system and rail transit system
CN104683226A (en) Locomotive reconnection gateway based on Ethernet (ETH)
CN107846440B (en) Train data transmission method and system
CN203645700U (en) Locomotive double-heading gateway based on Ethernet (ETH)
CN110958313A (en) Vehicle-ground transmission method for full-automatic driving of subway vehicle data
CN101916083B (en) FT3150 based digital quantity input board
Feng et al. Survey of development and application of train communication network
CN203883863U (en) Double-heading gateway based on HDLC (High-level Data Link Control)
CN201754589U (en) ARM7-based WTB-USB gateway

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