CN110417839B - Communication method and gateway of train compartment network - Google Patents

Communication method and gateway of train compartment network Download PDF

Info

Publication number
CN110417839B
CN110417839B CN201810401394.XA CN201810401394A CN110417839B CN 110417839 B CN110417839 B CN 110417839B CN 201810401394 A CN201810401394 A CN 201810401394A CN 110417839 B CN110417839 B CN 110417839B
Authority
CN
China
Prior art keywords
node
request
message
gateway
message source
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
CN201810401394.XA
Other languages
Chinese (zh)
Other versions
CN110417839A (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 CN201810401394.XA priority Critical patent/CN110417839B/en
Publication of CN110417839A publication Critical patent/CN110417839A/en
Application granted granted Critical
Publication of CN110417839B publication Critical patent/CN110417839B/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
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • 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

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)

Abstract

The invention provides a communication method and a gateway of a train compartment network, wherein the communication method comprises the following steps: the request node obtains the message from the message source node through the request gateway and the message source gateway. The communication method and the communication system for the train compartment network reduce the version management cost and the after-sale maintenance cost of the gateway.

Description

Communication method and gateway of train compartment network
Technical Field
The invention relates to the technical field of vehicle engineering, in particular to a communication method and a gateway of a train compartment network.
Background
At present, information transmission between all communication networks in train carriages and between carriages needs to be realized through gateways arranged in the carriages.
In the related art, the gateways in the vehicle cabin can only communicate with the gateways in other preset vehicle cabins, that is, message forwarding.
However, the related art has at least the following technical problems: the gateway message forwarding and curing design in the carriage enables the software version of the gateway to be frequently changed, and increases the version management cost and the after-sales maintenance cost of the gateway.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
To this end, a first object of the present invention is to provide a communication method for a train car network to reduce version management costs and after-sales maintenance costs of a gateway.
A second object of the present invention is to propose another communication method for a train car network.
A third object of the present invention is to propose a gateway.
A fourth object of the invention is to propose another gateway.
A fifth object of the invention is to propose an electronic device.
A sixth object of the invention is to propose another electronic device.
A seventh object of the invention is to propose a non-transitory computer-readable storage medium.
An eighth object of the invention is to propose another non-transitory computer-readable storage medium.
A ninth object of the invention is to propose a computer program product.
A tenth object of the invention is to propose another computer program product.
In order to achieve the above object, a first embodiment of the present invention provides a communication method for train car networks, where each train car is provided with multiple vehicle networks and gateways connected to the multiple vehicle networks, the gateways are connected to each other through a train bus, each vehicle network is provided with multiple nodes, each gateway is a master node, each node stores a car number, a vehicle network type, and a device type code corresponding to a node related to the node, and each gateway stores the node, a corresponding vehicle network type, a device type code, and a node identifier in the train car where the gateway is located, and the communication method includes:
receiving a first message forwarding request sent by a request node, wherein the first message forwarding request comprises a node identifier of the request node, a carriage number of a message source node and a device type code of the message source node;
sending a second message forwarding request to a message source gateway according to the carriage number of the message source node, wherein the second message forwarding request comprises the carriage number of the request node and the equipment type code of the message source node, so that the message source gateway can obtain the node identifier of the message source node according to the equipment type code of the message source node and acquire a message related to the node identifier of the message source node from the message source node;
receiving the relevant message sent by the message source gateway according to the carriage number of the request node;
and sending the related message to the request node according to the node identifier of the request node.
According to the communication method of the train carriage network, each node stores the carriage number, the vehicle network type and the equipment type code corresponding to the node related to the node, and each gateway stores the vehicle network type, the equipment type code and the node identifier corresponding to the node in the train carriage where the gateway is located, so that the request node can obtain a communication message from the message source node through the request gateway and the message source gateway, communication between the request node and the message source node is achieved, the gateway in each train carriage can meet the requirements of a plurality of train carriages only by one version of software, software customization is not needed according to different carriages, and the version management cost and the after-sale maintenance cost of the gateway are reduced.
In order to achieve the above object, an embodiment of a second aspect of the present invention provides another communication method for train car networks, where each train car is provided with multiple vehicle networks and gateways connected to the multiple vehicle networks, the gateways are connected to each other through a train bus, each vehicle network is provided with multiple nodes, each gateway is a master node, each node stores a car number, a vehicle network type, and an equipment type code corresponding to a node related to the node, and each gateway stores the node, a corresponding vehicle network type, an equipment type code, and a node identifier in the train car where the gateway is located, and the communication method includes:
receiving a request gateway, and sending a second message forwarding request according to the carriage number of the message source node sent by the request node, wherein the second message forwarding request comprises the carriage number of the request node and the equipment type code of the message source node;
acquiring a node identifier of the message source node according to the equipment type code of the message source node;
collecting a message related to a node identifier of the message source node from the message source node;
and sending the related message to the request gateway according to the carriage number of the request node so that the request gateway can send the related message to the request node according to the node identifier of the request node sent by the request node.
According to the communication method of the train carriage network, each node stores the carriage number, the vehicle network type and the equipment type code corresponding to the node related to the node, and each gateway stores the vehicle network type, the equipment type code and the node identifier corresponding to the node in the train carriage where the gateway is located, so that the request node can obtain a communication message from the message source node through the request gateway and the message source gateway, communication between the request node and the message source node is achieved, the gateway in each train carriage can meet the requirements of a plurality of train carriages only by one version of software, software customization is not needed according to different carriages, and the version management cost and the after-sale maintenance cost of the gateway are reduced.
In order to achieve the above object, a third aspect of the present invention provides a gateway, where the gateway stores a vehicle network type, a device type code, and a node identifier corresponding to a node in a train car where the gateway is located, and the node stores a car number, a vehicle network type, and a device type code corresponding to a node related to the node, the gateway includes:
the first receiving module is used for receiving a first message forwarding request sent by a request node, wherein the first message forwarding request comprises a node identifier of the request node, a carriage number of a message source node and a device type code of the message source node;
a first sending module, configured to send a second packet forwarding request to a packet source gateway according to a carriage number of the packet source node, where the second packet forwarding request includes the carriage number of the request node and a device type code of the packet source node, so that the packet source gateway obtains a node identifier of the packet source node according to the device type code of the packet source node, and collects a packet related to the node identifier of the packet source node from the packet source node;
the second receiving module is used for receiving the related message sent by the message source gateway according to the carriage number of the request node;
and the second sending module is used for sending the related message to the request node according to the node identifier of the request node. In the gateway of the embodiment of the invention, each node stores the carriage number, the vehicle network type and the equipment type code corresponding to the node related to the node, and each gateway stores the vehicle network type, the equipment type code and the node identifier corresponding to the node in the train carriage where the gateway is located, so that a request node can obtain a communication message from a message source node through the gateway and the message source gateway of the embodiment of the invention to realize communication with the message source node, and the gateway in each train carriage can meet the requirements of a plurality of train carriages only by one version of software without customizing the software according to different carriages, thereby reducing the version management cost and the after-sale maintenance cost of the gateway.
In order to achieve the above object, a fourth aspect of the present invention provides another gateway, where the gateway stores a vehicle network type, a device type code, and a node identifier corresponding to a node in a train car where the gateway is located, and the node stores a car number, a vehicle network type, and a device type code corresponding to a node related to the node, and the gateway includes:
a fourth receiving module, configured to receive a second message forwarding request sent by the request gateway according to the car number of the message source node sent by the request node, where the second message forwarding request includes the car number of the request node and the device type code of the message source node;
an obtaining module, configured to obtain a node identifier of the message source node according to the device type code of the message source node;
an acquisition module, configured to acquire, from the packet source node, a packet related to a node identifier of the packet source node;
and a fourth sending module, configured to send the relevant packet to the request gateway according to the car number of the request node, so that the request gateway sends the relevant packet to the request node according to the node identifier of the request node sent by the request node.
In the gateway of the embodiment of the invention, each node stores the carriage number, the vehicle network type and the equipment type code corresponding to the node related to the node, and each gateway stores the vehicle network type, the equipment type code and the node identifier corresponding to the node in the train carriage where the gateway is located, so that the request node can obtain the communication message from the message source node through the request gateway and the gateway of the embodiment of the invention to realize the communication with the message source node, and the gateway in each train carriage can meet the requirements of the plurality of train carriages only by one version of software without customizing the software according to different carriages, thereby reducing the version management cost and the after-sale maintenance cost of the gateway.
To achieve the above object, a fifth embodiment of the present invention provides an electronic device, including: a memory, a processor and a computer program stored on the memory and operable on the processor, the processor executing the program to implement the communication method of the train car network according to the embodiment of the first aspect of the present invention.
To achieve the above object, a sixth aspect of the present invention provides another electronic device, including: a memory, a processor and a computer program stored on the memory and operable on the processor, the processor executing the program to implement the communication method of the train car network according to the embodiment of the second aspect of the present invention.
To achieve the above object, a seventh embodiment of the present invention proposes a non-transitory computer-readable storage medium, on which a computer program is stored, the program being executed by a processor for implementing the communication method of the train car network according to the first embodiment of the present invention.
To achieve the above object, an eighth aspect of the present invention provides a non-transitory computer-readable storage medium having stored thereon a computer program, which is executed by a processor, for implementing the communication method of the train car network according to the second aspect of the present invention.
To achieve the above object, a ninth aspect of the present invention provides a computer program product, wherein instructions of the computer program product, when executed by a processor, perform the communication method of the train car network according to the first aspect of the present invention.
To achieve the above object, a tenth aspect of the present invention provides a computer program product, wherein when the instructions of the computer program product are executed by a processor, the communication method of the train car network according to the second aspect of the present invention is executed.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic view of an application scenario of a communication method of a train car network according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a communication method of a train car network according to an embodiment of the present invention;
FIG. 3 is an interactive schematic diagram of a communication method of the network of railcar shown in FIG. 2;
fig. 4 is a flowchart illustrating a communication method of a train car network according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a gateway according to an embodiment of the present invention; and
fig. 6 is a schematic structural diagram of a gateway according to another 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 communication method of a train car network and a gateway according to an embodiment of the present invention will be described below with reference to the drawings.
For clearly explaining the communication method and the gateway of the train car network according to the embodiment of the present invention, an application scenario of the communication method of the train car network according to the embodiment of the present invention is described below. Fig. 1 is a schematic view of an application scenario of a communication method of a train car network according to an embodiment of the present invention, that is, a train network architecture diagram corresponding to the communication method of the train car network according to the embodiment of the present invention, as shown in fig. 1, a train includes 3 train cars, which are a head car, a middle car, and a tail car. A plurality of vehicle networks, for example, two vehicle networks (i.e., a vehicle network 1 and a vehicle network 2) shown in fig. 1 are provided in each train car. In general, each train car is provided with a gateway, the gateway is connected with all vehicle networks in the train car, the gateways are connected with each other through a backbone network (i.e. a train bus), and each vehicle network is provided with a plurality of nodes, such as 4 nodes shown in fig. 1 (i.e. node 2, node 4, node 6 and node 8 in the vehicle network 1, and node 1, node 3, node 5 and node 7 in the vehicle network 2). Information transmission among all vehicle networks in the train carriages and network information transmission among the train carriages are realized by means of gateways, so that the gateways or products with functions similar to the gateways are generally adopted as master nodes of the train carriage networks and used for managing the initialization, starting, supervision, reset or stopping of the slave nodes.
Fig. 2 is a flowchart illustrating a communication method of a train car network according to an embodiment of the present invention. The communication method of the train carriage network of the embodiment of the invention can be applied to the gateway of the train carriage where the request node of the communication system of the train carriage network shown in figure 1 is located, namely the request gateway, each train carriage is internally provided with a plurality of vehicle networks and gateways connected with the plurality of vehicle networks, the gateways are connected through a train bus, each vehicle network is internally provided with a plurality of nodes, the gateways are master nodes, the nodes store carriage numbers, vehicle network types and equipment type codes corresponding to the nodes related to the nodes, and the gateways store vehicle network types, equipment type codes and node identifiers corresponding to the nodes in the train carriage where the gateways are located. As shown in fig. 2, the communication method of the train car network specifically includes:
s201, receiving a first message forwarding request sent by a request node, wherein the first message forwarding request comprises a node identifier of the request node, a carriage number of a message source node and a device type code of the message source node.
Specifically, the requesting node sends a first message forwarding request to the requesting gateway (i.e., the gateway of the train car where the requesting node is located), where the first message forwarding request includes a node identifier of the requesting node, a car number of the message source node (i.e., the car number of the train car where the message source node is located), and a device type code of the message source node. The request gateway receives a first message forwarding request.
S202, according to the carriage number of the message source node, sending a second message forwarding request to the message source gateway, wherein the second message forwarding request comprises the carriage number of the request node and the equipment type code of the message source node, so that the message source gateway can obtain the node identifier of the message source node according to the equipment type code of the message source node, and acquire the message related to the node identifier of the message source node from the message source node.
Specifically, the request gateway sends a second message forwarding request to the message source gateway (i.e., the gateway of the train car where the message source node is located) according to the car number of the message source node in the first message forwarding request, where the second message forwarding request includes the car number of the request node (i.e., the car number of the train car where the request node is located) and the device type code of the message source node.
And the message source gateway receives the second message forwarding request and acquires the node identifier of the message source node according to the equipment type code of the message source node in the second message forwarding request.
And the message source gateway collects the message related to the node identifier of the message source node from the message source node according to the node identifier of the message source node.
S203, receiving the message source gateway, and sending the related message according to the carriage number of the request node.
Specifically, the message source gateway sends a message related to the node identifier of the message source node to the request gateway according to the car number of the request node in the second message forwarding request.
The requesting gateway receives a message associated with a node identifier of a message source node.
S204, according to the node identifier of the request node, the relevant message is sent to the request node.
Specifically, the request gateway sends a packet related to the node identifier of the source node of the packet to the requesting node according to the node identifier of the requesting node in the first packet forwarding request.
Further, before the message source gateway collects the message related to the node identifier of the message source node from the message source node, the method may further include the following steps:
the message source gateway opens a message information acquisition channel associated with the node identifier of the message source node.
Further, the communication method of the train car network according to the embodiment of the present invention may further include the steps of:
receiving a message source gateway, and sending a node identifier of a message source node according to the carriage number of the request node; opening an information acquisition channel and a transmission channel of a related message according to a node identifier of a message source node; and sending the node identifier of the message source node to the request node according to the node identifier of the request node so as to provide the request node with preparation for receiving the related message according to the node identifier of the message source node.
Specifically, the message source gateway sends the node identifier of the message source node to the request gateway according to the car number of the request node in the second message forwarding request.
The request gateway receives the node identifier of the message source node, and opens an information acquisition channel and a sending channel of the message related to the node identifier of the message source node according to the node identifier of the message source node.
And the request gateway sends the node identifier of the message source node to the request node according to the node identifier of the request node in the first message forwarding request.
The request node receives the node identifier of the message source node, and prepares to receive the message related to the node identifier of the message source node according to the node identifier of the message source node.
Further, the acquiring, by the packet source gateway, the node identifier of the packet source node according to the device type code of the packet source node includes:
and the message source gateway acquires the node identifier of the message source node according to the equipment type code of the message source node, and the vehicle network type, the equipment type code and the node identifier which are stored by the message source gateway and correspond to the node in the train carriage where the message source node is located.
Further, step S201 may specifically include the following steps:
and receiving a first message forwarding request sent by the request node according to the carriage number of the message source node and the equipment type code of the message source node.
Specifically, the request node acquires the carriage number of the message source node and the equipment type code of the message source node according to the carriage number, the vehicle network type and the equipment type code which are stored by the request node and correspond to the node related to the request node; the request node generates a first message forwarding request according to the carriage number of the message source node and the equipment type code of the message source node, and sends the first message forwarding request to the request gateway. The request gateway receives a first message forwarding request sent by a request node.
In order to solve the problem of diversified versions of gateway software caused by gateway message forwarding and curing, a brand new design definition can be provided for the gateway, so that each carriage can identify different message forwarding requests of different carriage networks and execute the request to open a message forwarding channel.
The invention provides a communication method of a train carriage network, which requires all nodes in a train carriage to store corresponding equipment type codes in respective object dictionaries according to CANopen application protocol requirements, and also needs to store equipment type code tables of the nodes related to the equipment type codes. The equipment type code table is divided into an interior compartment and an interior compartment. The device type code table in the car only needs to record the device type code corresponding to the node with communication interaction with the device type code table, namely the node related to the device type code table. The device type table between cars is further divided according to the correspondence between car number → vehicle network type → corresponding device type code, that is, it is necessary to specify which nodes correspond to which car. If some part of nodes do not need to receive the information of other carriage networks, the device type code table record among carriages can be omitted.
The master node, i.e. the gateway, of each train car needs to manage the initialization, start, supervision, reset or stop of the slave nodes, and meanwhile, needs to record the communication identifiers CAN-ID used by each current slave node to send messages. According to the characteristics of the CANopen application protocol, communication objects of all nodes are fixed CAN-ID intervals, no matter whether the communication objects are automatically distributed by a main node or preset, each node needs to have a unique node-ID, when the node needs to send out a message, the node-ID of each node is automatically filled into the CAN-ID interval corresponding to each communication object, and the message is sent out by the filled CAN-ID. In summary, the master node, i.e. the gateway, needs to establish a node information database for the nodes in the train car where the master node is located according to the corresponding relationship of the network type of the train → the corresponding device type code → the corresponding node identifier-ID.
Fig. 3 is an interaction diagram of a communication method of the train car network shown in fig. 2. As shown in fig. 3, the communication method of the train car network includes the steps of:
1. the request node sends a first message forwarding request to the request gateway, wherein the first message forwarding request comprises a node identifier of the request node, a carriage number of a message source node and a device type code of the message source node.
Specifically, no matter each node of the carriage network is powered on and operated, a node identifier node-ID is automatically allocated by a master node (gateway), or a node identifier node-ID corresponding to each node is preset for each node, as long as each node determines the node identifier node-ID of itself and the node identifier node-ID of the relevant node of the carriage, the node having communication requirements with other carriage networks, namely the request node, can obtain the carriage number of the message source node and the equipment type code of the message source node according to the carriage number, the vehicle network type and the equipment type code which are stored in the request node and correspond to the node of itself, generate a first message forwarding request according to the obtained carriage number of the message source node and the equipment type code of the message source node, and send the first message forwarding request to the gateway of the carriage of the train, the first message forwarding request comprises a node identifier of the requesting node, a carriage number of the message source node and a device type code of the message source node.
2. After receiving the first message forwarding request, the request gateway firstly analyzes the node identifier of the request node, namely determines which node in the train carriage is the request node, and the carriage number of the message source node, namely determines which train carriage message the request node needs to newly receive and the device type code of the message source node. And then, an identifier (such as CAN-ID or IP) representing the carriage identity of the train sends a second message forwarding request to the message source gateway through a train network (a communication network among the train carriages, namely a single communication network formed by gateways of the train carriages) according to the analyzed carriage number of the message source node, wherein the second message forwarding request comprises the carriage number of the request node and the equipment type code of the message source node. As a feasible implementation manner, the request gateway may obtain the car number of the train car where the request gateway is located, that is, the car number of the request node, through an automatic marshalling function of the train network. And the automatic marshalling function is that the gateway of each train carriage can automatically acquire the carriage number of the corresponding carriage through a certain processing process. As another possible embodiment, the gateway of each train car may be configured with the car number of the train car where the gateway is located in advance.
Here, even if there is adjustment of the order between the existing cars of the train or increase or decrease of the number of cars, the car number of the gateway in each train car can be adjusted by the automatic train formation function or the manual software configuration.
The communication method of the train carriage network of the embodiment of the invention can be applied to closed trains and open trains, but requires that a node in each carriage network can obtain and provide the correct carriage number of the carriage of the train where the node is located, so that a master node, namely a gateway, can obtain the corresponding carriage number. In order to enable the master node, namely the gateway, to acquire the carriage number of the train carriage where the master node is located as soon as possible, the master node, namely the gateway, can be set to integrate the functions of acquiring and storing the carriage number, and if other nodes need the master node, namely the gateway, can also send the information of the corresponding carriage number to a related network.
3. After receiving the second message request, the message source gateway firstly analyzes the carriage number of the request node, namely determines which train carriage needs to receive the message and the equipment type code of the message source node. And then, the analyzed equipment type codes of the message source nodes and a node information database stored in advance by the gateway are searched one by one to find out the message source nodes and the node identifiers of the message source nodes, namely the node-IDs.
The master node, i.e. gateway, in each train car records a predefined information base of each train car. After the gateway acquires the carriage number, the gateway can call the relevant information of the corresponding carriage according to the carriage number, and further acquire the information of a plurality of vehicle networks in the train carriage and the information of a plurality of nodes in each vehicle network.
And after each node is electrified and initialized, the gateway accesses a plurality of nodes in each vehicle network according to the acquired information of the vehicle network, so that the equipment type code of each node in the train carriage and the equipment type code of the node related to each node are acquired.
And the gateway allocates corresponding node identifier node-ID for each node in the train compartment and the node related to each node according to the acquired compartment number, the equipment type code of each node and the equipment type code of the node related to each node. As a possible implementation, the gateway may also assign node identifiers node-IDs to each node in the train car and nodes associated with each node in conjunction with predefined equipment type code importance levels. After the gateway distributes node identifiers for each node in the train compartment and the nodes related to each node, the node identifiers corresponding to each node and the nodes related to the node are issued to the nodes corresponding to the train compartment.
4. After searching out the message source node and the node identifier node-ID of the message source node, the message source gateway performs the following two processes.
On the one hand, the message source gateway informs the requesting gateway through the train network, and the node identifier node-ID corresponding to the requested equipment type code is the node identifier node-ID of the message source node. The request gateway automatically opens an information acquisition channel and a transmission channel of a message related to the node identifier node-ID of the message source node (the information acquisition channel refers to receiving the related message from the train network, and the information transmission channel refers to transmitting the related message to the network where the request node is located), and informs the node identifier node-ID of the message source node of the request node according to the node identifier of the request node analyzed from the first message forwarding request, so that the request node is ready to receive the message related to the node identifier node-ID of the message source node.
On the other hand, the message source gateway automatically opens an information acquisition channel of a message related to the node identifier node-ID of the message source node, the related message is acquired and then sent to the request gateway through the train network, and the request gateway forwards the related message received from the train network to the request node according to the node identifier of the request node analyzed from the first message forwarding request.
Through the process, the request node can receive the communication message of other required train carriages, and then the relevant functions are operated.
To more clearly illustrate the communication method of the train car network proposed by the present invention, a specific process of a requesting node (i.e., the node 2 in the head train) receiving a communication packet from a packet source node (i.e., the node 5 in the middle train and the node 8 in the tail train) is described in detail below by taking the train network architecture shown in fig. 1 as an example.
As shown in fig. 1, since a train network including each train car is defined in advance to have an automatic train configuration function, a gateway in each train car can acquire a car number of the train car in which the gateway is located by the automatic train configuration function of the train network. In addition, a communication protocol of each car network is defined in advance, and node identifiers node-ID of nodes in each train car are shown in table 1.
TABLE 1 node identifiers of nodes in each railcar
Figure BDA0001645808990000101
Figure BDA0001645808990000111
Since the node identifier node-ID defined by the above communication protocol can clearly distinguish all nodes on the current train, the device type code corresponding to the node in each train car can be defined by the node identifier node-ID, for example, the device type code of the head-up node 2 has a value of 2 h.
The following describes in detail a process in which a gateway of a tail car allocates node identifiers to nodes in the tail car, using the train network architecture shown in fig. 1 as an example.
The process of allocating node identifier-ID for each node in the trailer by the gateway of the trailer in fig. 1 is as follows:
firstly, each train carriage is electrified to enable each node to start working, then the train network enters an automatic marshalling process, and after a certain processing process, the gateway of each train carriage acquires the carriage number of the train carriage where the gateway of the head train acquires, the carriage number acquired by the gateway of the head train is 01, the carriage number acquired by the gateway of the middle train is 02, and the carriage number acquired by the gateway of the tail train is 03.
After the gateway of the tail car acquires the car number 03, the related information of the tail car is called out from the car information base of each train according to the car number 03, then the information of 2 vehicle networks in the tail car and the information of 4 nodes in each vehicle network are acquired, then each node in the 2 vehicle networks in the tail car is respectively accessed according to the acquired information of the 2 vehicle networks in the tail car, and therefore the device type code of each node in the tail car and the device type code of each node related to each node are acquired.
The equipment type codes corresponding to the nodes are defined by the node identifier node-ID, so that the gateway of the tail car omits the process of allocating the node identifier node-ID to each node in the tail car and the node related to each node according to the carriage number, the equipment type code of each node, the equipment type code of the node related to each node and the important level of the equipment type code, and after the gateway of the tail car acquires the equipment type code of each node in the tail car and the equipment type code table of the related node, the gateway of the tail car can quickly allocate the corresponding node identifier node-ID to 8 nodes and related nodes in the tail car.
And after the gateway of the tail car distributes node identifier-IDs for 8 nodes and related nodes in the tail car, informing the node identifier-ID corresponding to each node and the node identifier-ID corresponding to the node related to each node. After 8 nodes in the tail car receive the node identifiers node-ID sent by the gateway of the tail car, the node identifiers node-ID of the head car nodes used before are replaced by the corresponding node identifiers node-ID in the first time, as shown in table 2.
TABLE 2 node identifiers node-ID before and after adjustment of each node in the trailer
Figure BDA0001645808990000112
Figure BDA0001645808990000121
The specific process of receiving the communication message of the message source node (the node 5 in the middle car and the node 8 in the tail car) by the requesting node (i.e. the node 2 in the head car) in fig. 1 is as follows:
1. the node 2 in the head car sends a first message forwarding request to a gateway of a train compartment where the node 2 in the head car is located, namely the head car, through the vehicle network 1, wherein the first message forwarding request comprises a node identifier 2h of the node 2 in the head car, compartment numbers 02 and 03 of the train compartment where the node 5 in the middle car and the node 8 in the tail car are located, and device type codes 15h and 28h of the node 5 in the middle car and the node 8 in the tail car.
2. After receiving the first message forwarding request, the gateway of the head car firstly analyzes the node identifier 2h of the node 2 in the head car, namely determines that the node 2 in the head car is the request node, the node 5 in the middle car and the carriage numbers 02 and 03 of the train carriage where the node 8 in the tail car is located, namely determines that the node 2 in the head car needs to newly receive messages of the middle car and the tail car and device type codes 15h and 28h of the node 5 in the middle car and the node 8 in the tail car. And then, identifiers (such as CAN-ID or IP) representing the carriage identities of the train pass through the train network, and second message forwarding requests are respectively sent to a gateway of the middle train and a gateway of the tail train according to the analyzed carriage numbers 02 and 03, wherein the second message forwarding requests comprise the carriage number 01 of the train carriage where the node 2 in the head train is located, and the equipment type code 15h of the node 5 in the middle train or the equipment type code 28h of the node 8 in the tail train.
3. After receiving the second message request, the gateway of the middle train firstly analyzes the carriage number 01 of the train carriage where the node 2 in the head train is located, namely determines that the head train needs to receive the message and the equipment type code 15h of the node 5 in the middle train. Then, the analyzed device type code 15h of the node 5 in the middle vehicle and a node information database pre-stored by a gateway of the middle vehicle are searched one by one, and the gateway of the middle vehicle quickly finds out that the message source nodes are the node 5 in the middle vehicle and the node identifier node-ID of the node 5 in the middle vehicle because the predefined device type code corresponds to the node identifier node-ID: and (5) 15 h. The gateway of the middle vehicle carries out the following two processes: on the one hand, the gateway of the middle train informs the gateway of the head train through the train network, and the node identifier-ID corresponding to the requested equipment type code 15h is 15 h. The gateway of the head car automatically opens an information acquisition channel and a sending channel of the message related to the node identifier node-ID of 15h, and informs the node identifier node-ID of the node 2 of the head car that the node identifier node-ID of the source node of the message is 15h according to the node identifier 2h of the node 2 of the head car analyzed from the first message forwarding request, so that the node 2 of the head car is ready to receive the message related to the node identifier node-ID of 15 h. On the other hand, the gateway of the middle train automatically opens an information acquisition channel of the message related to the node identifier node-ID of 15h, the related message is transmitted to the gateway of the head train through the train network after being acquired, and the gateway of the head train forwards the related message received from the train network to the vehicle network 1 according to the node identifier 2h of the node 2 of the head train analyzed from the first message forwarding request so as to be provided for the node 2 in the head train for processing.
Meanwhile, after receiving the second message request, the gateway of the tail car firstly analyzes the carriage number 01 of the train carriage where the node 2 in the head car is located, that is, determines that the head car needs to receive the message and the device type code 28h of the node 8 in the tail car. Then, the analyzed device type code 28h of the node 8 in the tail car and a node information database pre-stored by a gateway of the tail car are searched one by one, and the gateway of the tail car quickly finds out that the message source nodes are the node 8 in the tail car and the node identifier node-ID of the node 8 in the tail car as the predefined device type code corresponds to the node identifier node-ID: and (6) 28 h. The gateway of the tail car carries out the following two processes: on the one hand, the gateway of the tail car informs the gateway of the head car through the train network, and the node identifier-ID corresponding to the requested device type code 28h is 28 h. The gateway of the head car automatically opens the 28h information acquisition channel and the sending channel of the node identifier node-ID related message, and informs the node identifier node-ID of the node 2 of the head car that the message source node is 28h according to the node identifier 2h of the node 2 of the head car analyzed from the first message forwarding request, so that the node 2 of the head car is ready to receive the message related to the 28h node identifier node-ID. On the other hand, the gateway of the tail train automatically opens an information acquisition channel of the message related to the node identifier node-ID of 28h, the related message is transmitted to the gateway of the head train through the train network after being acquired, and the gateway of the head train forwards the related message received from the train network to the vehicle network 1 according to the node identifier 2h of the node 2 of the head train analyzed from the first message forwarding request so as to be provided for the node 2 in the head train for processing.
Through the above process, the node 2 in the head train can receive the communication messages of the required two train carriages (the middle train and the tail train) so as to operate the related functions.
In this embodiment, each node stores a car number, a car network type, and an equipment type code corresponding to a node related to the node, and each gateway stores a car network type, an equipment type code, and a node identifier corresponding to a node in a train car where the node is located, so that the requesting node can obtain a communication packet from a packet source node through the requesting gateway and the packet source gateway, and realize communication with the packet source node, so that the gateway in each train car can meet the requirements of multiple train cars only by one version of software, and software customization is not needed according to different cars, thereby reducing the version management cost and after-sale maintenance cost of the gateway.
Fig. 4 is a flowchart illustrating a communication method of a train car network according to another embodiment of the present invention. The communication method of the train carriage network of the embodiment of the invention can be applied to the gateways of the train carriages where the message source nodes of the communication system of the train carriage network shown in figure 1 are located, namely the message source gateways, each train carriage is internally provided with a plurality of vehicle networks and gateways connected with the plurality of vehicle networks, the gateways are connected through a train bus, each vehicle network is internally provided with a plurality of nodes, the gateways are master nodes, the nodes store carriage numbers, vehicle network types and equipment type codes corresponding to the nodes related to the nodes, and the gateways store vehicle network types, equipment type codes and node identifiers corresponding to the nodes in the train carriages where the gateways are located. As shown in fig. 4, the communication method of the train car network specifically includes:
s401, receiving a request gateway, and sending a second message forwarding request according to the carriage number of the message source node sent by the request node, wherein the second message forwarding request comprises the carriage number of the request node and the equipment type code of the message source node.
S402, acquiring the node identifier of the message source node according to the device type code of the message source node.
S403, collecting a message related to the node identifier of the message source node from the message source node.
S404, according to the carriage number of the request node, sending a related message to the request gateway for the request gateway, and according to the node identifier of the request node sent by the request node, sending the related message to the request node.
Further, in a possible implementation manner of the embodiment of the present invention, before step S403, the method for communicating a train car network according to the embodiment of the present invention further includes: and opening an information acquisition channel of the related message.
Further, in a possible implementation manner of the embodiment of the present invention, after step S402, the communication method of the train car network according to the embodiment of the present invention further includes: and sending the node identifier of the message source node to the request node gateway according to the carriage number of the request node so as to enable the request node gateway to open an information acquisition channel and a sending channel of the related message, and sending the node identifier of the message source node to the request node according to the node identifier of the request node sent by the request node so as to inform the request node of preparing for receiving the related message.
Further, in a possible implementation manner of the embodiment of the present invention, step S402 may specifically include: and acquiring the node identifier of the message source node according to the equipment type code of the message source node, and the equipment type code and the node identifier corresponding to the message source node stored by the node.
It should be noted that the explanation of the embodiment of the communication method for the train car network also applies to the communication method for the train car network of this embodiment, and details are not repeated here.
In this embodiment, each node stores a car number, a car network type, and an equipment type code corresponding to a node related to the node, and each gateway stores a car network type, an equipment type code, and a node identifier corresponding to a node in a train car where the node is located, so that the requesting node can obtain a communication packet from a packet source node through the requesting gateway and the packet source gateway, and realize communication with the packet source node, so that the gateway in each train car can meet the requirements of multiple train cars only by one version of software, and software customization is not needed according to different cars, thereby reducing the version management cost and after-sale maintenance cost of the gateway.
Based on the above embodiment, the embodiment of the present invention further provides a gateway. The gateway according to the embodiment of the present invention, as a request gateway, may be used to implement the communication method of the train car network according to the embodiment shown in fig. 2, where each gateway stores a vehicle network type, a device type code, and a node identifier corresponding to a node in a train car in which the gateway is located, and each node stores a car number, a vehicle network type, and a device type code corresponding to a node related to the node. Fig. 5 is a schematic structural diagram of a gateway according to an embodiment of the present invention. As shown in fig. 5, the gateway may specifically include: a first receiving module 51, a first transmitting module 52, a second receiving module 53 and a second transmitting module 54.
The first receiving module 51 is configured to receive a first packet forwarding request sent by a requesting node, where the first packet forwarding request includes a node identifier of the requesting node, a car number of a packet source node, and a device type code of the packet source node.
The first sending module 52 is configured to send a second packet forwarding request to the packet source gateway according to the car number of the packet source node, where the second packet forwarding request includes the car number of the request node and the device type code of the packet source node, so that the packet source gateway obtains the node identifier of the packet source node according to the device type code of the packet source node, and collects a packet related to the node identifier of the packet source node from the packet source node.
The second receiving module 53 is configured to receive a relevant message sent by the message source gateway according to the car number of the requesting node.
And a second sending module 54, configured to send a relevant packet to the requesting node according to the node identifier of the requesting node.
Further, in a possible implementation manner of the embodiment of the present invention, the gateway of the embodiment of the present invention further includes: the third receiving module is used for receiving the node identifier of the message source node sent by the message source gateway according to the carriage number of the request node; the channel opening module is used for opening an information acquisition channel and a transmission channel of the related message according to the node identifier of the message source node; and the third sending module is used for sending the node identifier of the message source node to the request node according to the node identifier of the request node so as to provide the request node with preparation for receiving the related message according to the node identifier of the message source node.
Further, in a possible implementation manner of the embodiment of the present invention, the first receiving module 51 may be specifically configured to: and receiving a first message forwarding request sent by the request node according to the carriage number of the message source node and the equipment type code of the message source node.
It should be noted that the explanation of the embodiment of the communication method for the train car network also applies to the gateway of the embodiment, and details are not described here.
In this embodiment, each node stores a car number, a car network type, and an equipment type code corresponding to a node related to the node, and each gateway stores a car network type, an equipment type code, and a node identifier corresponding to a node in a train car where the node is located, so that a requesting node can obtain a communication packet from a packet source node through the gateway and the packet source gateway of this embodiment, and communication with the packet source node is achieved, so that the gateway in each train car can meet the requirements of multiple train cars only with one version of software, and software customization is not needed according to different cars, thereby reducing version management cost and after-sale maintenance cost of the gateway.
Based on the above embodiment, the embodiment of the present invention further provides another gateway. The gateway of the embodiment of the present invention, as a message source gateway, may be used to implement the communication method of the train car network in the embodiment shown in fig. 4, where each gateway stores a vehicle network type, a device type code, and a node identifier corresponding to a node in a train car where the gateway is located, and each node stores a car number, a vehicle network type, and a device type code corresponding to a node related to the node. Fig. 6 is a schematic structural diagram of a gateway according to another embodiment of the present invention. As shown in fig. 6, the gateway may specifically include: a fourth receiving module 61, an obtaining module 62, an acquiring module 63 and a fourth sending module 64.
A fourth receiving module 61, configured to receive a second message forwarding request sent by the request gateway according to the car number of the message source node sent by the request node, where the second message forwarding request includes the car number of the request node and the device type code of the message source node.
The obtaining module 62 is configured to obtain a node identifier of a message source node according to the device type code of the message source node.
The collecting module 63 is configured to collect, from the message source node, a message related to the node identifier of the message source node.
The fourth sending module 64 is configured to send a relevant message to the requesting gateway according to the car number of the requesting node, so that the requesting gateway sends the relevant message to the requesting node according to the node identifier of the requesting node sent by the requesting node.
Further, in a possible implementation manner of the embodiment of the present invention, the acquisition module 63 may further be configured to: before the message related to the node identifier of the message source node is collected from the message source node, an information collection channel of the related message is opened.
Further, in a possible implementation manner of the embodiment of the present invention, the obtaining module 62 may further be configured to: after the node identifier of the message source node is obtained, the node identifier of the message source node is sent to the request node gateway according to the carriage number of the request node, so that the request node gateway can open the information acquisition channel and the sending channel of the related message, the node identifier of the message source node is sent to the request node according to the node identifier of the request node sent by the request node, and the request node is informed to prepare for receiving the related message.
Further, in a possible implementation manner of the embodiment of the present invention, the obtaining module 62 may be specifically configured to: and acquiring the node identifier of the message source node according to the equipment type code of the message source node, and the equipment type code and the node identifier corresponding to the message source node stored by the node.
It should be noted that the explanation of the embodiment of the communication method for the train car network also applies to the gateway of the embodiment, and details are not described here.
In this embodiment, each node stores a car number, a vehicle network type, and an equipment type code corresponding to a node related to the node, and each gateway stores a vehicle network type, an equipment type code, and a node identifier corresponding to a node in a train car where the node is located, so that the requesting node can obtain a communication packet from a packet source node through the requesting gateway and the gateway of this embodiment, and realize communication with the packet source node, so that the gateway in each train car can meet the requirements of multiple train cars only by one version of software, and software customization is not needed according to different cars, thereby reducing the version management cost and after-sale maintenance cost of the gateway.
Based on the foregoing embodiment, an embodiment of the present invention further provides an electronic device, including: a memory, a processor and a computer program stored on the memory and operable on the processor, the processor executing the program to implement the communication method of the train car network as in the foregoing embodiment.
Based on the above embodiments, an embodiment of the present invention also proposes a non-transitory computer-readable storage medium having stored thereon a computer program, which is executed by a processor, for implementing the communication method of the train car network as in the foregoing embodiments.
Based on the above embodiments, the embodiment of the present invention further provides a computer program product, and when instructions in the computer program product are executed by a processor, the communication method of the train car network as in the foregoing embodiments is executed.
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.
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.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware that is related to instructions of a program, and the program may be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. 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 (18)

1. A communication method of a train carriage network is characterized in that a plurality of vehicle networks and gateways connected with the vehicle networks are arranged in each train carriage, the gateways are connected through a train bus, a plurality of nodes are arranged in each vehicle network, the gateways are master nodes, carriage numbers, vehicle network types and equipment type codes corresponding to the nodes related to the gateways are stored in the nodes, and the nodes, the corresponding vehicle network types, the equipment type codes and node identifiers in the train carriages where the gateways are located are stored in the gateways, and the communication method comprises the following steps:
receiving a first message forwarding request sent by a request node, wherein the first message forwarding request comprises a node identifier of the request node, a carriage number of a message source node and a device type code of the message source node;
sending a second message forwarding request to a message source gateway according to the carriage number of the message source node, wherein the second message forwarding request comprises the carriage number of the request node and the equipment type code of the message source node, so that the message source gateway can obtain the node identifier of the message source node according to the equipment type code of the message source node and acquire a message related to the node identifier of the message source node from the message source node;
receiving the relevant message sent by the message source gateway according to the carriage number of the request node;
and sending the related message to the request node according to the node identifier of the request node.
2. The communication method according to claim 1, further comprising:
receiving a node identifier of the message source node sent by the message source gateway according to the carriage number of the request node;
opening an information acquisition channel and a transmission channel of the related message according to the node identifier of the message source node;
and sending the node identifier of the message source node to the request node according to the node identifier of the request node so as to provide for the request node to prepare for receiving the related message according to the node identifier of the message source node.
3. The communication method according to claim 1, wherein the receiving a first packet forwarding request sent by a requesting node comprises:
and receiving the first message forwarding request sent by the request node according to the carriage number of the message source node and the equipment type code of the message source node.
4. A communication method of a train carriage network is characterized in that a plurality of vehicle networks and gateways connected with the vehicle networks are arranged in each train carriage, the gateways are connected through a train bus, a plurality of nodes are arranged in each vehicle network, the gateways are master nodes, carriage numbers, vehicle network types and equipment type codes corresponding to the nodes related to the gateways are stored in the nodes, and the vehicle network types, the equipment type codes and node identifiers corresponding to the nodes in the train carriage where the gateways are located are stored in the gateways, and the communication method comprises the following steps:
receiving a request gateway, and sending a second message forwarding request according to the carriage number of the message source node sent by the request node, wherein the second message forwarding request comprises the carriage number of the request node and the equipment type code of the message source node;
acquiring a node identifier of the message source node according to the equipment type code of the message source node;
collecting a message related to a node identifier of the message source node from the message source node;
and sending the related message to the request gateway according to the carriage number of the request node so that the request gateway can send the related message to the request node according to the node identifier of the request node sent by the request node.
5. The communication method according to claim 4, wherein before collecting the packet related to the node identifier of the packet source node from the packet source node, the method further comprises:
and opening an information acquisition channel of the related message.
6. The communication method according to claim 4, wherein after obtaining the node identifier of the message source node, the method further comprises:
and sending the node identifier of the message source node to the request gateway according to the carriage number of the request node so as to open an information acquisition channel and a sending channel of the related message by the request gateway, sending the node identifier of the message source node to the request node according to the node identifier of the request node sent by the request node, and informing the request node of preparing to receive the related message.
7. The communication method according to claim 4, wherein the obtaining the node identifier of the message source node according to the device type code of the message source node comprises:
and acquiring the node identifier of the message source node according to the equipment type code of the message source node, and the equipment type code and the node identifier which are stored by the node identifier and correspond to the message source node.
8. A gateway, wherein the gateway stores a vehicle network type, a device type code, and a node identifier corresponding to a node in a train car in which the gateway is located, and the node stores a car number, a vehicle network type, and a device type code corresponding to a node associated with the gateway, the gateway comprising:
the first receiving module is used for receiving a first message forwarding request sent by a request node, wherein the first message forwarding request comprises a node identifier of the request node, a carriage number of a message source node and a device type code of the message source node;
a first sending module, configured to send a second packet forwarding request to a packet source gateway according to a carriage number of the packet source node, where the second packet forwarding request includes the carriage number of the request node and a device type code of the packet source node, so that the packet source gateway obtains a node identifier of the packet source node according to the device type code of the packet source node, and collects a packet related to the node identifier of the packet source node from the packet source node;
the second receiving module is used for receiving the related message sent by the message source gateway according to the carriage number of the request node;
and the second sending module is used for sending the related message to the request node according to the node identifier of the request node.
9. The gateway of claim 8, further comprising:
a third receiving module, configured to receive the node identifier of the message source node, where the node identifier is sent by the message source gateway according to the carriage number of the request node;
a channel opening module, configured to open an information acquisition channel and a transmission channel of the relevant packet according to the node identifier of the packet source node;
and a third sending module, configured to send, to the requesting node, the node identifier of the packet source node according to the node identifier of the requesting node, so that the requesting node makes preparations for receiving the relevant packet according to the node identifier of the packet source node.
10. The gateway according to claim 8, wherein the first receiving module is specifically configured to:
and receiving the first message forwarding request sent by the request node according to the carriage number of the message source node and the equipment type code of the message source node.
11. A gateway, wherein the gateway stores a vehicle network type, a device type code, and a node identifier corresponding to a node in a train car in which the gateway is located, and the node stores a car number, a vehicle network type, and a device type code corresponding to a node associated with the gateway, the gateway comprising:
a fourth receiving module, configured to receive a second message forwarding request sent by the request gateway according to the car number of the message source node sent by the request node, where the second message forwarding request includes the car number of the request node and the device type code of the message source node;
an obtaining module, configured to obtain a node identifier of the message source node according to the device type code of the message source node;
an acquisition module, configured to acquire, from the packet source node, a packet related to a node identifier of the packet source node;
and a fourth sending module, configured to send the relevant packet to the request gateway according to the car number of the request node, so that the request gateway sends the relevant packet to the request node according to the node identifier of the request node sent by the request node.
12. The gateway of claim 11, wherein the acquisition module is further configured to:
and before the message related to the node identifier of the message source node is collected from the message source node, opening an information collection channel of the related message.
13. The gateway of claim 11, wherein the obtaining module is further configured to:
after the node identifier of the message source node is obtained, the node identifier of the message source node is sent to the request gateway according to the carriage number of the request node, so that the request gateway can open the information acquisition channel and the sending channel of the related message, the node identifier of the message source node is sent to the request node according to the node identifier of the request node sent by the request node, and the request node is informed to prepare for receiving the related message.
14. The gateway according to claim 11, wherein the obtaining module is specifically configured to:
and acquiring the node identifier of the message source node according to the equipment type code of the message source node, and the equipment type code and the node identifier which are stored by the node identifier and correspond to the message source node.
15. An electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the program to implement the communication method of the train car network according to any one of claims 1 to 3.
16. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor executing the program to implement the communication method of a train car network according to any one of claims 4 to 7.
17. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that the program is executed by a processor for implementing the communication method of the train car network according to any one of claims 1 to 3.
18. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that the program is executed by a processor for implementing the communication method of the train car network according to any one of claims 4 to 7.
CN201810401394.XA 2018-04-28 2018-04-28 Communication method and gateway of train compartment network Active CN110417839B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810401394.XA CN110417839B (en) 2018-04-28 2018-04-28 Communication method and gateway of train compartment network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810401394.XA CN110417839B (en) 2018-04-28 2018-04-28 Communication method and gateway of train compartment network

Publications (2)

Publication Number Publication Date
CN110417839A CN110417839A (en) 2019-11-05
CN110417839B true CN110417839B (en) 2021-02-23

Family

ID=68357090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810401394.XA Active CN110417839B (en) 2018-04-28 2018-04-28 Communication method and gateway of train compartment network

Country Status (1)

Country Link
CN (1) CN110417839B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1388030A (en) * 2002-07-01 2003-01-01 胡秉谊 Train safety monitoring system
CN104782183A (en) * 2012-07-17 2015-07-15 泰雷兹加拿大公司 Intra-train network management system
CN105357766A (en) * 2015-09-29 2016-02-24 西南交通大学 Method for allocating train wireless network channels
CN107948285A (en) * 2017-11-24 2018-04-20 北京新能源汽车股份有限公司 Electric vehicle controller control method, device, system and gateway controller

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4164986B2 (en) * 2000-04-21 2008-10-15 沖電気工業株式会社 Data transfer method, node device, and communication network system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1388030A (en) * 2002-07-01 2003-01-01 胡秉谊 Train safety monitoring system
CN104782183A (en) * 2012-07-17 2015-07-15 泰雷兹加拿大公司 Intra-train network management system
CN105357766A (en) * 2015-09-29 2016-02-24 西南交通大学 Method for allocating train wireless network channels
CN107948285A (en) * 2017-11-24 2018-04-20 北京新能源汽车股份有限公司 Electric vehicle controller control method, device, system and gateway controller

Also Published As

Publication number Publication date
CN110417839A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN108173874B (en) Intelligent device management method, platform, system, medium and device
CN111049937B (en) Data processing system and data transmission method of intelligent networked automobile
CN111010415B (en) Data transmission method and device for Internet of vehicles
US8743873B2 (en) Train communication system and train communication method
US8677019B2 (en) Data communication method using unambiguous vehicle identification information
DE102017121049A1 (en) A communication method based on a vehicle safety integrity level in the vehicle network, and apparatus for the same
JP2011223396A (en) Address distribution method and device
CN110896534A (en) Method, device and system for establishing communication connection between vehicles
CN113406946B (en) Automobile diagnosis method and device and automobile diagnosis equipment
RU2000104509A (en) IEEE CONNECTOR DEVICE DRIVER
CN109862071B (en) Method and system for automatically uploading vehicle-mounted log based on LTE
US11071012B2 (en) Base station, terminal, and wireless communication system
CN109600244B (en) Train topology management method and system
CN109391669B (en) Service management method, device and storage medium
CN105141438B (en) Network collocating method, device and the information display system of Customer information display system
CN105376226B (en) Forwarding method and system of streaming media server
CN110417839B (en) Communication method and gateway of train compartment network
CN111629078A (en) Server scheduling method and device and server scheduling system
CN112866327A (en) Vehicle data transmission method, device, equipment, system and storage medium
CN110417927B (en) Method and system for distributing network communication addresses of train carriages
CN112671547B (en) Resource allocation method, device and system for service slices in vehicle
CN112702448A (en) Slave control unit address distribution method and system of battery management system
CN113448304A (en) Vehicle ECU diagnostic method and system
CN113098702A (en) Method for allocating and determining network element IP address, network element and management domain network
CN113993011B (en) Network element online method, system, equipment and storage medium of passive optical network

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