[go: up one dir, main page]

CN110417839A - The communication means and gateway of compartment network - Google Patents

The communication means and gateway of compartment network Download PDF

Info

Publication number
CN110417839A
CN110417839A CN201810401394.XA CN201810401394A CN110417839A CN 110417839 A CN110417839 A CN 110417839A CN 201810401394 A CN201810401394 A CN 201810401394A CN 110417839 A CN110417839 A CN 110417839A
Authority
CN
China
Prior art keywords
node
message
gateway
compartment
source nodes
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.)
Granted
Application number
CN201810401394.XA
Other languages
Chinese (zh)
Other versions
CN110417839B (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

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 present invention proposes the communication means and gateway of a kind of compartment network, wherein communication means includes: requesting node by requesting gateway and message come source gateway, obtains message from message source Nodes.The communication means and system of compartment network proposed by the present invention reduce the version management cost and after-sales service cost of gateway.

Description

The communication means and gateway of compartment network
Technical field
The present invention relates to Vehicle Engineering technical field more particularly to a kind of communication means and gateway of compartment network.
Background technique
Currently, the information transmitting in compartment between all communication networks and between compartment and compartment requires to pass through Gateway in compartment is set to realize.
In the related technology, the gateway in compartment can only be communicated i.e. message with the gateway in other preset compartments Forwarding.
But the relevant technologies at least have the following technical problems: the gateway message forwarding solidification design in compartment, so that gateway Software version frequently change, increase the version management cost and after-sales service cost of gateway.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the first purpose of this invention is to propose a kind of communication means of compartment network, to reduce gateway Version management cost and after-sales service cost.
Second object of the present invention is to propose the communication means of another compartment network.
Third object of the present invention is to propose a kind of gateway.
Fourth object of the present invention is to propose another gateway.
5th purpose of the invention is to propose a kind of electronic equipment.
6th purpose of the invention is to propose another electronic equipment.
7th purpose of the invention is to propose a kind of non-transitorycomputer readable storage medium.
8th purpose of the invention is to propose another non-transitorycomputer readable storage medium.
9th purpose of the invention is to propose a kind of computer program product.
Tenth purpose of the invention is to propose another computer program product.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of communication means of compartment network, often The gateway for being provided with multiple vehicle networks in compartment and connecting with the multiple vehicle network is saved, is led between each gateway Cross train bus-line connection, be provided with multiple nodes in each vehicle network, the gateway is host node, the node be stored with The corresponding compartment number of itself relevant node, vehicle network type and device type code, the gateway are stored with where itself The node in compartment, corresponding vehicle network type, device type code and node identifier, the communication means packet It includes:
It receives the first message that requesting node is sent and forwards request, include the request in the first message forwarding request The node identifier of node, the compartment of message source Nodes is numbered and the device type code of the message source Nodes;
It is numbered according to the compartment of the message source Nodes, carrys out source gateway to message, send the forwarding request of the second message, institute The device type code that the forwarding request of the second message includes the compartment number and the message source Nodes of the requesting node is stated, with Carry out source gateway for the message, according to the device type code of the message source Nodes, obtains the section of the message source Nodes Point identifier, and message relevant to the node identifier of the message source Nodes is acquired from the message source Nodes;
It receives the message and carrys out source gateway, numbered according to the compartment of the requesting node, the relevant message of transmission;
According to the node identifier of the requesting node, Xiang Suoshu requesting node sends the relevant message.
The communication means of the compartment network of the embodiment of the present invention, it is corresponding that each node is stored with node relevant to itself Compartment number, vehicle network type and device type code, the node where each gateway is stored with itself in compartment Corresponding vehicle network type, device type code and node identifier, thus requesting node can by request gateway and message come Source gateway obtains communication message from message source Nodes, the communication between message source Nodes is realized, so that each compartment Interior gateway only needs a software that can meet the needs of more piece compartment, and no longer needs to be customized according to different compartments soft Part reduces the version management cost and after-sales service cost of gateway.
In order to achieve the above object, second aspect of the present invention embodiment proposes the communication means of another compartment network, The gateway for being provided with multiple vehicle networks in every section compartment and being connect with the multiple vehicle network, between each gateway It is connected by train bus-line, multiple nodes is provided in each vehicle network, the gateway is host node, and the node is stored with The corresponding compartment number of relevant to itself node, vehicle network type and device type code, the gateway are stored with itself institute The node in compartment, corresponding vehicle network type, device type code and node identifier, the communication means Include:
Request gateway is received, the compartment of the message source Nodes sent according to requesting node is numbered, the second message of transmission Forwarding request, the second message forwarding request include the device type of the compartment number and message source Nodes of requesting node Code;
According to the device type code of the message source Nodes, the node identifier of the message source Nodes is obtained;
From the message source Nodes, message relevant to the node identifier of the message source Nodes is acquired;
It is numbered according to the compartment of the requesting node, the relevant message is sent to the request gateway, for described Gateway is requested, according to the node identifier for the requesting node that the requesting node is sent, Xiang Suoshu requesting node sends institute State relevant message.
The communication means of the compartment network of the embodiment of the present invention, it is corresponding that each node is stored with node relevant to itself Compartment number, vehicle network type and device type code, the node where each gateway is stored with itself in compartment Corresponding vehicle network type, device type code and node identifier, thus requesting node can by request gateway and message come Source gateway obtains communication message from message source Nodes, the communication between message source Nodes is realized, so that each compartment Interior gateway only needs a software that can meet the needs of more piece compartment, and no longer needs to be customized according to different compartments soft Part reduces the version management cost and after-sales service cost of gateway.
In order to achieve the above object, third aspect present invention embodiment proposes a kind of gateway, the gateway is stored with itself institute The corresponding vehicle network type of node, device type code and node identifier in compartment, the node be stored with The corresponding compartment number of itself relevant node, vehicle network type and device type code, the gateway include:
First receiving module, for receiving the first message forwarding request of requesting node transmission, the first message forwarding It include the node identifier of the requesting node, the compartment number of message source Nodes and the message source Nodes in request Device type code;
First sending module carrys out source gateway to message for numbering according to the compartment of the message source Nodes, sends the The forwarding request of two messages, the second message forwarding request include the compartment number and message source section of the requesting node The device type code of point, so that the message carrys out source gateway, according to the device type code of the message source Nodes, described in acquisition The node identifier of message source Nodes, and the node identification with the message source Nodes is acquired from the message source Nodes Accord with relevant message;
Second receiving module carrys out source gateway for receiving the message, is numbered according to the compartment of the requesting node, sends The relevant message;
Second sending module, for the node identifier according to the requesting node, described in Xiang Suoshu requesting node is sent Relevant message.The gateway of the embodiment of the present invention, each node are stored with the corresponding compartment number of relevant to itself node, vehicle Network type and device type code, the corresponding vehicle network class of the node where each gateway is stored with itself in compartment Type, device type code and node identifier, thus requesting node can gateway through the embodiment of the present invention and message carry out source gateway, Communication message is obtained from message source Nodes, the communication between message source Nodes is realized, so that the net in each compartment It closes and only needs a software that can meet the needs of more piece compartment, and no longer need to customize software according to different compartments, subtract The small version management cost and after-sales service cost of gateway.
In order to achieve the above object, fourth aspect present invention embodiment proposes another gateway, the gateway is stored with itself The corresponding vehicle network type of node, device type code and node identifier, the node in the compartment of place are stored with The corresponding compartment number of relevant to itself node, vehicle network type and device type code, the gateway include:
4th receiving module, for receiving request gateway, the compartment of the message source Nodes sent according to requesting node is compiled Number, the second message of transmission forwards request, and the second message forwarding request includes that the compartment number of requesting node and message come The device type code of source node;
It obtains module and obtains the message source Nodes for the device type code according to the message source Nodes Node identifier;
Acquisition module, for acquiring the node identifier phase with the message source Nodes from the message source Nodes The message of pass;
4th sending module sends the phase to the request gateway for numbering according to the compartment of the requesting node The message of pass, for the request gateway, according to the node identifier for the requesting node that the requesting node is sent, to institute It states requesting node and sends the relevant message.
The gateway of the embodiment of the present invention, each node are stored with the corresponding compartment number of relevant to itself node, vehicle net Network type and device type code, the corresponding vehicle network class of the node where each gateway is stored with itself in compartment Type, device type code and node identifier, therefore requesting node can be by the gateway of request gateway and the embodiment of the present invention, from report Literary source Nodes obtain communication message, realize the communication between message source Nodes, so that the gateway in each compartment is only It needs a software that can meet the needs of more piece compartment, and no longer needs to customize software according to different compartments, reduce The version management cost and after-sales service cost of gateway.
In order to achieve the above object, fifth aspect present invention embodiment proposes a kind of electronic equipment, comprising: memory, processing Device and it is stored in the computer program that can be run on the memory and on the processor, the processor executes the journey Sequence, to realize the communication means of the compartment network as described in first aspect present invention embodiment.
In order to achieve the above object, sixth aspect present invention embodiment proposes another electronic equipment, comprising: memory, place It manages device and is stored in the computer program that can be run on the memory and on the processor, described in the processor execution Program, to realize the communication means of the compartment network as described in second aspect of the present invention embodiment.
In order to achieve the above object, seventh aspect present invention embodiment proposes a kind of non-transitory computer-readable storage medium Matter is stored thereon with computer program, which is executed by processor, for realizing such as first aspect present invention embodiment institute The communication means for the compartment network stated.
In order to achieve the above object, eighth aspect present invention embodiment proposes a kind of non-transitory computer-readable storage medium Matter is stored thereon with computer program, which is executed by processor, for realizing such as second aspect of the present invention embodiment institute The communication means for the compartment network stated.
In order to achieve the above object, ninth aspect present invention embodiment proposes a kind of computer program product, when the calculating When instruction in machine program product is executed by processor, the compartment network as described in first aspect present invention embodiment is executed Communication means.
In order to achieve the above object, tenth aspect present invention embodiment proposes a kind of computer program product, when the calculating When instruction in machine program product is executed by processor, the compartment network as described in second aspect of the present invention embodiment is executed Communication means.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is the application scenarios schematic diagram of the communication means for the compartment network that the embodiment of the present invention proposes;
Fig. 2 is the flow diagram of the communication means for the compartment network that one embodiment of the invention proposes;
Fig. 3 is the interaction schematic diagram of the communication means of compartment network shown in Fig. 2;
Fig. 4 is the flow diagram of the communication means for the compartment network that another embodiment of the present invention proposes;
Fig. 5 is the structural schematic diagram for the gateway that one embodiment of the invention proposes;And
Fig. 6 is the structural schematic diagram for the gateway that another embodiment of the present invention proposes.
Specific embodiment
The embodiment of the present invention is described below in detail, the example of embodiment is shown in the accompanying drawings, wherein identical from beginning to end Or similar label indicates same or similar element or element with the same or similar functions.It is retouched below with reference to attached drawing The embodiment stated is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the communication means and gateway of the compartment network of the embodiment of the present invention are described.
The communication means and gateway of the compartment network of the embodiment of the present invention to clearly illustrate is below implemented the present invention The application scenarios of the communication means of the compartment network of example are illustrated.Fig. 1 is the compartment that the embodiment of the present invention proposes The application scenarios schematic diagram of the communication means of network, the i.e. corresponding column of communication means of the compartment network of the embodiment of the present invention Vehicle network architecture diagram, as shown in Figure 1, by taking train includes 3 section compartments as an example, respectively head vehicle, middle vehicle and trailer.Every section column Multiple vehicle networks are provided in vehicle compartment, such as two vehicle networks (i.e. vehicle network 1 and vehicle networks shown in Fig. 1 2).Under normal conditions, a gateway, all vehicle nets in the gateway and the section compartment are provided in every section compartment Network connects, and is connected between each gateway by backbone network (i.e. train bus-line), is provided with multiple nodes in each vehicle network, such as 4 nodes shown in Fig. 1 (node 2, node 4, node 6 and node 8 i.e. in vehicle network 1, the node in vehicle network 2 1, node 3, node 5 and node 7).Information transmitting and compartment and train vehicle between all vehicle networks in compartment The transmitting of the network information requires to realize by gateway between compartment, therefore generally using gateway or similar to gateway function Host node of the product as compartment network, for managing the works such as the initialization from node, starting, supervision, reset or stopping Make.
Fig. 2 is the flow diagram of the communication means for the compartment network that one embodiment of the invention proposes.The present invention is real Apply the compartment network of example communication means can be applied to compartment network shown in FIG. 1 communication system requesting node The gateway of place compartment, i.e., request gateway in, be provided in every section compartment multiple vehicle networks and with multiple vehicles The gateway of network connection is connected by train bus-line between each gateway, is provided with multiple nodes in each vehicle network, gateway is Host node, node are stored with the corresponding compartment number of relevant to itself node, vehicle network type and device type code, gateway The corresponding vehicle network type of node, device type code and node identifier where being stored with itself in compartment.Such as Fig. 2 Shown, the communication means of the compartment network specifically includes:
S201 receives the first message that requesting node is sent and forwards request, includes request section in the forwarding request of the first message The node identifier of point, the compartment of message source Nodes is numbered and the device type code of message source Nodes.
Specifically, requesting node sends the first message to request gateway (i.e. the gateway of compartment where requesting node) Forwarding request, the first message forward the compartment number of node identifier, message source Nodes that in requesting including requesting node (i.e. The compartment number of compartment where message source Nodes) and message source Nodes device type code.Gateway is requested to receive the The forwarding request of one message.
S202 is numbered according to the compartment of message source Nodes, carrys out source gateway to message, sends the forwarding request of the second message, The forwarding request of second message includes the device type code of the compartment number and message source Nodes of requesting node, for message source Gateway obtains the node identifier of message source Nodes according to the device type code of message source Nodes, and saves from message source Point acquires message relevant to the node identifier of message source Nodes.
Specifically, request gateway is numbered according to the compartment of the message source Nodes in the forwarding request of the first message, to message Carry out source gateway (i.e. the gateway of compartment where message source Nodes) and send the forwarding request of the second message, the forwarding of the second message is asked The compartment including requesting node is asked to number setting for (the compartment number of compartment i.e. where requesting node) and message source Nodes Standby type codes.
Message carrys out source gateway and receives the forwarding request of the second message, and is saved according to the message source in the forwarding request of the second message The device type code of point obtains the node identifier of message source Nodes.
Message carrys out source gateway according to the node identifier of message source Nodes, from the acquisition of message source Nodes and message source The relevant message of the node identifier of node.
S203 receives message and carrys out source gateway, numbered according to the compartment of requesting node, the relevant message of transmission.
It is numbered specifically, message carrys out source gateway according to the compartment of the requesting node in the forwarding request of the second message, to request Gateway sends message relevant to the node identifier of message source Nodes.
Gateway is requested to receive message relevant to the node identifier of message source Nodes.
S204 sends relevant message to requesting node according to the node identifier of requesting node.
Specifically, request gateway is saved according to the node identifier of the requesting node in the forwarding request of the first message to request Point sends message relevant to the node identifier of message source Nodes.
Further, it is related to the node identifier of message source Nodes from the acquisition of message source Nodes to carry out source gateway for message Message before, can with the following steps are included:
Message carrys out the channels of information acquisition that source gateway opens message relevant to the node identifier of message source Nodes.
Further, the communication means of the compartment network of the embodiment of the present invention can with the following steps are included:
It receives message and carrys out source gateway, numbered according to the compartment of requesting node, the node identification of the message source Nodes of transmission Symbol;According to the node identifier of message source Nodes, the channels of information acquisition and sendaisle of relevant message are opened;According to asking The node identifier for seeking node sends the node identifier of message source Nodes to requesting node, for requesting node, according to The node identifier of message source Nodes carries out the preparation for receiving relevant message.
It is numbered specifically, message carrys out source gateway according to the compartment of the requesting node in the forwarding request of the second message, to request The node identifier of gateway transmission message source Nodes.
Gateway is requested to receive the node identifier of message source Nodes, and according to the node identifier of message source Nodes, Open the channels of information acquisition and sendaisle of message relevant to the node identifier of message source Nodes.
Gateway is requested to send and report to requesting node according to the node identifier of the requesting node in the forwarding request of the first message The node identifier of literary source Nodes.
Requesting node receives the node identifier of message source Nodes, and is done according to the node identifier of message source Nodes The good preparation for receiving message relevant to the node identifier of message source Nodes.
Further, message carrys out source gateway according to the device type code of message source Nodes, obtains message source Nodes Node identifier, comprising:
Message carrys out source gateway according to compartment where itself of the device type code of message source Nodes and itself storage The corresponding vehicle network type of interior node, device type code and node identifier obtain the node identification of message source Nodes Symbol.
Further, step S201 can specifically include following steps:
Requesting node is received, according to the device type code of the compartment of message source Nodes number and message source Nodes, hair The the first message forwarding request sent.
Specifically, the corresponding compartment of node relevant to itself that requesting node is stored according to itself is numbered, vehicle network Type and device type code obtain the device type code of the compartment number and message source Nodes of message source Nodes;Request section Point generates the forwarding request of the first message according to the device type code of the compartment of message source Nodes number and message source Nodes, And the forwarding request of the first message is sent to request gateway.Request gateway receives the first message forwarding that requesting node is sent and asks It asks.
To solve the problems, such as that the forwarding solidification of gateway message causes gateway software version diversified, one kind can be proposed for gateway Completely new design definition enables each section compartment to identify the different message forwarding request of different compartment networks, and executes request and beat Open message forwarding channel.
The present invention proposes the communication means of compartment network a kind of thus, it is desirable that in compartment all nodes according to The requirement of CANopen application protocol, saves corresponding device type code in respective object dictionary, while also needing to save therewith The device type code table of relevant node.This device type code table is divided into compartment two class between compartment.Equipment class in compartment Type code table only needs to record device type code corresponding to the i.e. relative node of node for having communication interaction with it.Compartment Between device type table → the corresponding relationship of affiliated vehicle network type → corresponding device type code then need to be also numbered according to compartment It divides, that is, any section compartment which node is needed clearly to correspond to.If certain part of nodes does not need to receive the letter of other compartment networks Breath can not do the device type code table record between compartment.
The host node of every section compartment, that is, gateway needs to manage from the initialization of node, starting, supervision, reset or stopping Equal work, while also needing record is currently each to send communication identifier CAN-ID used in message from node.According to CANopen Application protocol characteristic, the communication object of each node are that have the fixed section CAN-ID, are either distributed automatically by host node, still It presets, each node has required oneself unique node identifier (node-ID), and node will voluntarily when wanting outgoing message Respective node-ID is filled into the section CAN-ID corresponding to each communication object, with the CAN-ID hair filled Outgoing packet.To sum up, host node, that is, gateway is needed to the node in compartment where itself by affiliated vehicle network type → right Device type code → corresponding node identifier node-ID corresponding relationship is answered to establish a node information database.
Fig. 3 is the interaction schematic diagram of the communication means of compartment network shown in Fig. 2.As shown in figure 3, the compartment The communication means of network the following steps are included:
1, requesting node sends the forwarding request of the first message, includes asking in first message forwarding request to request gateway Seek the device type code of the node identifier of node, the compartment number and message source Nodes of message source Nodes.
Specifically, by the automatic distribution node mark of host node (gateway) after electricity operation on any either each node of compartment network Know symbol node-ID, or be in advance the good corresponding node identifier node-ID of each node sets, as long as each node determines Well after the node identifier node-ID of itself the and node identifier node-ID of this section compartment interdependent node, with other compartments Network has the node i.e. requesting node of communication requirement can be according to the corresponding compartment of node relevant to itself itself stored Number, vehicle network type and device type code, the equipment for obtaining the compartment number and message source Nodes of message source Nodes Type codes generate the first report according to the device type code of the compartment of the message source Nodes of acquisition number and message source Nodes Text forwarding request, and the gateway that the first message forwards the request to the section compartment is sent, first message forwarding request includes The node identifier of requesting node, the compartment of message source Nodes is numbered and the device type code of message source Nodes.
2, request gateway parses the node identifier of requesting node after receiving the forwarding request of the first message first, Determine which node in compartment is requesting node, the compartment of message source Nodes is numbered, that is, determines request section Point needs the device type code of the newly-increased message for receiving which compartment and message source Nodes.Then again to represent its vehicle The identifier (such as CAN-ID or IP) of compartment identity passes through train network (communication network between each compartment, i.e., each train An independent communication network composed by the gateway in compartment), it is numbered according to the compartment of the message source Nodes parsed, to message Carry out source gateway and send the forwarding request of the second message, second message forwarding request includes that the compartment number of requesting node and message come The device type code of source node.Wherein, as a kind of embodiments possible, request gateway that can pass through the automatic marshalling of train network Function gets the compartment number of the compartment where itself, i.e. the compartment number of requesting node.Automatic marshalling function, i.e., respectively The gateway of compartment can get automatically the compartment number in corresponding compartment by certain treatment process.It can as another kind Row embodiment can also be compiled taking human as the compartment for having configured the compartment where itself for the gateway of each compartment in advance Number.
Herein it should be noted that can also lead to even if sequentially having adjustment or number of carriages increase and decrease between the existing compartment of train It crosses train and organizes into groups function or artificial software configuration automatically to adjust the compartment of the gateway in each compartment number.
The communication means of the compartment network of the embodiment of the present invention can be applicable in enclosed train, be also applicable in opening In formula train, but require compartment where there must be a node that can obtain in each compartment network and providing respectively just True compartment number, so that host node, that is, gateway obtains corresponding compartment number.In order to allow host node i.e. gateway can be as soon as possible The compartment number for getting the compartment where itself can be set host node i.e. gateway and integrate compartment number acquisition and storage Function, if other nodes are in need, host node, that is, gateway can be also sent to corresponding compartment number information on network of relation.
3, message carrys out source gateway after receiving the second message request, parses the compartment number of requesting node first, i.e., Determine which saves the device type code that compartment needs to receive message and message source Nodes.Then the message that will be parsed The device type code of source Nodes is retrieved one by one with the pre-stored node information database of gateway, finds out message source section The node identifier node-ID of point and message source Nodes.
Host node, that is, gateway record in each compartment has predefined every section train car information library.Gateway is got After compartment number, it can be numbered according to compartment, transfer the relevant information in corresponding compartment, and then got multiple in compartment The information of multiple nodes in the information of vehicle network and each vehicle network.
All nodes are required according to CANopen application protocol in compartment, are saved and are corresponded in respective object dictionary Device type code, while also needing to save the device type code table of associated node, be powered on and initialized in each node Cheng Hou, gateway accesses multiple nodes in each vehicle network according to the information of the vehicle network got, to obtain train vehicle The device type code of the device type code of each node in compartment and node relevant to each node.
Gateway is according to compartment number, the equipment of the device type code of each node and node relevant to each node got Type codes are each node and node relevant to each node in compartment, distribute corresponding node identifier node-ID. As a kind of embodiments possible, gateway can be combined with the device type code important level pre-defined, be compartment Interior each node and node distribution node identifier node-ID relevant to each node.Gateway is each node in compartment After distributing node identifier with node relevant to each node, by the corresponding node identifier of each node and related to the node The corresponding node identifier of node be issued to corresponding node in the compartment.
4, message carrys out source gateway in the node identifier node-ID of retrieval outgoing packet source Nodes and message source Nodes Afterwards, following two aspects processing is carried out.
On the one hand, message carrys out source gateway by train network informing request gateway, and the device type code of request is corresponding Node identifier node-ID, that is, message source Nodes node identifier node-ID.Request gateway automatically opens and message source (channels of information acquisition refers to from column the channels of information acquisition and sendaisle of the relevant message of node identifier node-ID of node Vehicle network receives association message, and information sendaisle, which refers to, is sent to network where requesting node association message), and according to from the The node identifier of the requesting node parsed in the forwarding request of one message, informs the node mark of requesting node message source Nodes Know symbol node-ID, requesting node is allowed to be ready to receive report relevant to the node identifier node-ID of message source Nodes Text.
On the other hand, message come source gateway automatically open it is relevant to the node identifier node-ID of message source Nodes The channels of information acquisition of message requests gateway then root request gateway is sent to by train network after the acquisition of relevant message It is relevant by what is received from train network according to the node identifier of the requesting node parsed from the forwarding request of the first message Message is transmitted to requesting node.
By above procedure, the requesting node communication message ready to receive to other required compartments, and then run phase Close function.
For the communication means of clearer explanation above-mentioned compartment network proposed by the present invention, below with shown in FIG. 1 For train network framework, the message source Nodes (node 5 of middle car is received to requesting node (i.e. the node 2 of head car) With trailer interior nodes 8) the detailed process of communication message be described in detail.
Train network as shown in Figure 1, the train network for pre-defining each compartment composition are that have automatic marshalling function Can, therefore the gateway in each compartment can get the train where itself by the automatic marshalling function of train network It numbers in the compartment in compartment.In addition, pre-defining the communication protocol of each compartment network, wherein node in each compartment Node identifier node-ID as shown in table 1
The node identifier node-ID of node in each compartment of table 1
The node identifier node-ID as defined in above-mentioned communication protocol can distinguish nodes all on current train It is clear, therefore device type code corresponding to the node in each compartment can be defined with node identifier node-ID, such as The value of the device type code of head vehicle node 2 is 2h.
Below by taking train network framework shown in FIG. 1 as an example, the gateway to trailer is each node distribution node in trailer The process of identifier is described in detail.
The gateway of trailer in Fig. 1 is that the process of each node distribution node identifier node-ID in trailer is as follows:
It is powered first for each section compartment, so that each node is started to work, then train network enters automatic marshalling Process, after certain treatment process, the compartment number of compartment where each gateway for saving compartment is got respectively, The compartment number that the gateway of head vehicle is got is 01, and the compartment number that the gateway of middle vehicle is got is 02, and the gateway of trailer obtains To compartment number be 03.
After the gateway of trailer gets compartment number 03, transferred from every section train car information library according to compartment number 03 The relevant information of trailer out, and then get 4 nodes in the information and each vehicle network of 2 vehicle networks in trailer Information, then according to the information of 2 vehicle networks in the trailer that gets, respectively in 2 vehicle networks in trailer Each node access, to obtain the device type code of each node in trailer and relevant to each node respectively The device type code of node.
As corresponding to each node device type code is defined with node identifier node-ID, the net of trailer Close eliminate according to compartment number, the device type code of each node, node relevant to each node device type code and set Standby type codes important level is each node and node distribution node identifier node-ID relevant to each node in trailer Process, the device type code table of the gateway of trailer in the device type code and interdependent node for getting each node in trailer It afterwards, can be quickly 8 nodes and the corresponding node identifier node-ID of interdependent node distribution in trailer.
The gateway of trailer is after 8 nodes and interdependent node in trailer distribute node identifier node-ID, and notice is each Node its corresponding node identifier node-ID and the corresponding node identifier node-ID of relative node.In trailer After the node identifier node-ID that the gateway that 8 nodes receive trailer is sent, at the first time the head Che Jiedian used before Node identifier node-ID be substituted for corresponding node identifier node-ID, as shown in table 2.
The node identifier node-ID of each node adjustment front and back in 2 trailer of table
Requesting node (i.e. the node 2 of head car) in Fig. 1 receives the message source Nodes (node 5 and tail of middle car Interior node 8) communication message detailed process is as follows:
1, the node 2 of head car by vehicle network 1 to 2 place compartment of node, that is, head vehicle gateway of head car, The forwarding request of the first message is sent, includes node identifier 2h, the middle vehicle of the node 2 of head car in first message forwarding request In the compartment number 02 and 03 of 8 place compartment of node and the node 5 and trailer of middle car in interior node 5 and trailer Node 8 device type code 15h and 28h.
2, after the gateway of head vehicle receives the forwarding request of the first message, the node mark for interior node 2 of lifting one's head is parsed first Know symbol 2h, that is, determines the 8 place train vehicle of node lifted one's head in the node 5 and trailer that interior node 2 is requesting node, middle car The compartment number 02 and 03 in compartment determines that interior node 2 of lifting one's head needs the message and middle car of vehicle and trailer in newly-increased receive Node 5 and trailer interior nodes 8 device type code 15h and 28h.Then again to represent the identifier of its compartment identity (such as CAN-ID or IP etc.) by train network, according to the compartment number 02 and 03 parsed, respectively to the gateway of middle vehicle and trailer Gateway sends the forwarding request of the second message, and second message forwarding request includes the vehicle of the 2 place compartment of node of head car The device type code 15h of the node 5 of the compartment number 01 and middle car or device type code 28h of trailer interior nodes 8.
3, the gateway of middle vehicle parses interior 2 place train vehicle of node of lifting one's head after receiving the second message request first The compartment number 01 in compartment determines that vehicle of lifting one's head needs to receive the device type code 15h of the node 5 of message and middle car.Then will The device type code 15h of the node 5 of the middle car parsed and the pre-stored node information database of the gateway of middle vehicle carry out It retrieves one by one, since predefined device type code is corresponding with its node identifier node-ID, the gateway of middle vehicle is found out quickly Message source Nodes are the node identifier node-ID:15h of the node 5 of middle car and the node 5 of middle car.The gateway of middle vehicle Carry out following two aspects processing: on the one hand, the gateway of middle vehicle informs the gateway of head vehicle, the equipment class of request by train network The corresponding node identifier node-ID of type code 15h is 15h.The gateway of head vehicle automatically opens and this node identifier of 15h The channels of information acquisition and sendaisle of the relevant message of node-ID, and parsed according to from the forwarding request of the first message The node identifier 2h of the node 2 of head vehicle informs that the node identifier node-ID of the 2 message source Nodes of node of head vehicle is 15h, the node 2 of discount vehicle are ready to receive message relevant to 15h this node identifier node-ID.On the other hand, in The gateway of vehicle automatically opens the channels of information acquisition of message relevant to 15h this node identifier node-ID, relevant report The gateway of a vehicle is sent to after literary grace collection by train network, the gateway of head vehicle is then parsed according to from the forwarding request of the first message The relevant message received from train network is forwarded to vehicle network 1 by the node identifier 2h of the node 2 of head vehicle out In, it is handled with being supplied to the node 2 of head car.
Meanwhile the gateway of trailer parses interior 2 place train of node of lifting one's head after receiving the second message request first The device type code 28h that the compartment number 01 in compartment, i.e. determination lift one's head the node 8 that vehicle needs to receive in message and trailer.Then By the pre-stored node information database of gateway of the device type code 28h and trailer of the node 8 in the trailer parsed into Row is retrieved one by one, and since predefined device type code is corresponding with its node identifier node-ID, the gateway of trailer is looked for quickly Outgoing packet source Nodes are the node identifier node-ID:28h of the node 8 in node 8 and trailer in trailer.The net of trailer Put the following two aspects processing of row into: on the one hand, the gateway of trailer informs the gateway of head vehicle, the equipment of request by train network The corresponding node identifier node-ID of type codes 28h is 28h.The gateway of head vehicle automatically opens this node identifier of 28h The channels of information acquisition and sendaisle of node-ID association message, and according to the head parsed from the forwarding request of the first message The node identifier 2h of the node 2 of vehicle informs that the node identifier node-ID of the 2 message source Nodes of node of head vehicle is 28h, The node 2 of discount vehicle is ready to receive message relevant to 28h this node identifier node-ID.On the other hand, trailer Gateway automatically opens the channels of information acquisition of message relevant to 28h this node identifier node-ID, and relevant message is adopted It is sent to the gateway of a vehicle after collection by train network, the gateway of head vehicle is then according to parsing from the forwarding request of the first message The node identifier 2h of the node 2 of head vehicle, will be forwarded in vehicle network 1 from the relevant message that train network receives, with The node 2 for being supplied to head car is handled.
By above procedure, the node 2 of head car is ready to receive to other required two sections compartments (middle vehicle and trailer) Communication message, and then run correlation function.
In the present embodiment, each node be stored with the corresponding compartment number of relevant to itself node, vehicle network type and Device type code, the corresponding vehicle network type of node, device type code where each gateway is stored with itself in compartment And node identifier, therefore requesting node can be obtained from message source Nodes and be communicated by request gateway and message come source gateway Message realizes the communication between message source Nodes, so that the gateway in each compartment only needs a software that can expire The demand of sufficient more piece compartment, and no longer need to customize software according to different compartments, reduce the version management cost of gateway And after-sales service cost.
Fig. 4 is the flow diagram of the communication means for the compartment network that another embodiment of the present invention proposes.The present invention The message that the communication means of the compartment network of embodiment can be applied to the communication system of compartment network shown in FIG. 1 comes The gateway of compartment where source node, i.e. message come in source gateway, be provided in every section compartment multiple vehicle networks and The gateway connecting with multiple vehicle networks is connected by train bus-line between each gateway, is provided in each vehicle network multiple Node, gateway are host node, and node is stored with the corresponding compartment number of relevant to itself node, vehicle network type and equipment Type codes, the corresponding vehicle network type of node, device type code and node where gateway is stored with itself in compartment Identifier.As shown in figure 4, the communication means of the compartment network specifically includes:
S401 receives request gateway, and the compartment of the message source Nodes sent according to requesting node is numbered, and the second of transmission Message forwarding request, the forwarding request of the second message include the device type of the compartment number and message source Nodes of requesting node Code.
S402 obtains the node identifier of message source Nodes according to the device type code of message source Nodes.
S403 acquires message relevant to the node identifier of message source Nodes from message source Nodes.
S404 is numbered according to the compartment of requesting node, relevant message is sent to request gateway, for requesting gateway, root According to the node identifier for the requesting node that requesting node is sent, relevant message is sent to requesting node.
Further, in a kind of possible implementation of the embodiment of the present invention, before step S403, the embodiment of the present invention Compartment network communication means further include: open the channels of information acquisition of relevant message.
Further, in a kind of possible implementation of the embodiment of the present invention, after step S402, the embodiment of the present invention Compartment network communication means further include: numbered according to the compartment of requesting node, to requesting node gateway, send message The node identifier of source Nodes opens the channels of information acquisition and sendaisle of relevant message for requesting node gateway, The node identification of message source Nodes is sent to requesting node according to the node identifier for the requesting node that requesting node is sent Symbol, notice requesting node carry out the preparation for receiving relevant message.
Further, in a kind of possible implementation of the embodiment of the present invention, step S402 be may particularly include: according to report The device type code of literary source Nodes device type code corresponding with the message source Nodes that itself is stored and node identifier, Obtain the node identifier of message source Nodes.
It should be noted that the explanation of the aforementioned communication means embodiment to compartment network is also applied for the reality The communication means of the compartment network of example is applied, details are not described herein again.
In the present embodiment, each node be stored with the corresponding compartment number of relevant to itself node, vehicle network type and Device type code, the corresponding vehicle network type of node, device type code where each gateway is stored with itself in compartment And node identifier, therefore requesting node can be obtained from message source Nodes and be communicated by request gateway and message come source gateway Message realizes the communication between message source Nodes, so that the gateway in each compartment only needs a software that can expire The demand of sufficient more piece compartment, and no longer need to customize software according to different compartments, reduce the version management cost of gateway And after-sales service cost.
Based on the above embodiment, the embodiment of the present invention also proposes a kind of gateway.The gateway of the embodiment of the present invention, as request Gateway can be used for realizing that the communication means of the compartment network of aforementioned embodiment illustrated in fig. 2, each gateway are stored with where itself The corresponding vehicle network type of node, device type code and node identifier in compartment, each node is stored with and itself The corresponding compartment number of relevant node, vehicle network type and device type code.Fig. 5 is the net that one embodiment of the invention proposes The structural schematic diagram of pass.As shown in figure 5, the gateway is specific can include: the first receiving module 51, the first sending module 52, second Receiving module 53 and the second sending module 54.
First receiving module 51, for receiving the first message forwarding request of requesting node transmission, the forwarding of the first message is asked The device type of the compartment number and message source Nodes of node identifier, message source Nodes in asking including requesting node Code.
First sending module 52 carrys out source gateway to message, sends second for being numbered according to the compartment of message source Nodes Message forwarding request, the forwarding request of the second message include the device type of the compartment number and message source Nodes of requesting node Code, according to the device type code of message source Nodes, obtains the node identification of message source Nodes so that message carrys out source gateway Symbol, and message relevant to the node identifier of message source Nodes is acquired from message source Nodes.
Second receiving module 53 carrys out source gateway for receiving message, is numbered according to the compartment of requesting node, the correlation of transmission Message.
Second sending module 54 sends relevant message to requesting node for the node identifier according to requesting node.
Further, in a kind of possible implementation of the embodiment of the present invention, the gateway of the embodiment of the present invention further include: Third receiving module carrys out source gateway for receiving message, is numbered according to the compartment of requesting node, the message source Nodes of transmission Node identifier;It opens module and opens the information of relevant message for the node identifier according to message source Nodes in channel Acquisition channel and sendaisle;Third sending module is sent for the node identifier according to requesting node to requesting node The node identifier of message source Nodes, so that requesting node carries out reception phase according to the node identifier of message source Nodes The preparation of the message of pass.
Further, in a kind of possible implementation of the embodiment of the present invention, the first receiving module 51 can be specifically used for: Receive requesting node, according to the compartment of message source Nodes number and message source Nodes device type code, the first of transmission Message forwarding request.
It should be noted that the explanation of the aforementioned communication means embodiment to compartment network is also applied for the reality The gateway of example is applied, details are not described herein again.
In the present embodiment, each node be stored with the corresponding compartment number of relevant to itself node, vehicle network type and Device type code, the corresponding vehicle network type of node, device type code where each gateway is stored with itself in compartment And node identifier, therefore requesting node can gateway through this embodiment and message carry out source gateway, obtained from message source Nodes Communication message is taken, the communication between message source Nodes is realized, so that the gateway in each compartment only needs a software Can meet the needs of more piece compartment, and no longer need to customize software according to different compartments, reduce the version pipe of gateway Manage cost and after-sales service cost.
Based on the above embodiment, the embodiment of the present invention also proposes another gateway.The gateway of the embodiment of the present invention, as report Text carrys out source gateway, can be used for realizing that the communication means of the compartment network of aforementioned embodiment illustrated in fig. 4, each gateway are stored with certainly The corresponding vehicle network type of node, device type code and node identifier, each node where body in compartment are stored with The corresponding compartment number of relevant to itself node, vehicle network type and device type code.Fig. 6 is another embodiment of the present invention The structural schematic diagram of the gateway of proposition.As shown in fig. 6, the gateway is specific can include: the 4th receiving module 61, obtain module 62, Acquisition module 63 and the 4th sending module 64.
4th receiving module 61, for receiving request gateway, according to the compartment for the message source Nodes that requesting node is sent Number, the second message of transmission forward request, and the forwarding request of the second message includes compartment number and the message source of requesting node The device type code of node.
Module 62 is obtained, for the device type code according to message source Nodes, obtains the node mark of message source Nodes Know symbol.
Acquisition module 63, for acquiring report relevant to the node identifier of message source Nodes from message source Nodes Text.
4th sending module 64 sends relevant message to request gateway for numbering according to the compartment of requesting node, with For requesting gateway, according to the node identifier for the requesting node that requesting node is sent, relevant message is sent to requesting node.
Further, in a kind of possible implementation of the embodiment of the present invention, acquisition module 63 can also be used in: from report Literary source Nodes open the information of relevant message before acquiring message relevant to the node identifier of message source Nodes Acquisition channel.
Further, in a kind of possible implementation of the embodiment of the present invention, obtaining module 62 can also be used in: obtain It after the node identifier of message source Nodes, is numbered according to the compartment of requesting node, to requesting node gateway, sends message The node identifier of source node opens the channels of information acquisition and sendaisle of relevant message, root for requesting node gateway The node identifier of message source Nodes is sent to requesting node according to the node identifier for the requesting node that requesting node is sent, Notice requesting node carries out the preparation for receiving relevant message.
Further, in a kind of possible implementation of the embodiment of the present invention, obtaining module 62 can be specifically used for: according to The device type code of message source Nodes device type code corresponding with the message source Nodes that itself is stored and node identification Symbol obtains the node identifier of message source Nodes.
It should be noted that the explanation of the aforementioned communication means embodiment to compartment network is also applied for the reality The gateway of example is applied, details are not described herein again.
In the present embodiment, each node be stored with the corresponding compartment number of relevant to itself node, vehicle network type and Device type code, the corresponding vehicle network type of node, device type code where each gateway is stored with itself in compartment And node identifier, therefore requesting node can be obtained logical by the gateway of request gateway and the present embodiment from message source Nodes Believe message, the communication between message source Nodes is realized, so that the gateway in each compartment only needs a software Meet the needs of more piece compartment, and no longer need to customize software according to different compartments, reduce the version management of gateway at Sheet and after-sales service cost.
Based on the above embodiment, the embodiment of the present invention also proposes a kind of electronic equipment, comprising: memory, processor and deposits The computer program that can be run on a memory and on a processor is stored up, processor executes program, to realize such as previous embodiment Compartment network communication means.
Based on the above embodiment, the embodiment of the present invention also proposes a kind of non-transitorycomputer readable storage medium, thereon It is stored with computer program, which is executed by processor, with the logical of the compartment network for realizing such as previous embodiment Letter method.
Based on the above embodiment, the embodiment of the present invention also proposes a kind of computer program product, works as computer program product In instruction when being executed by processor, execute the communication means of the compartment network such as previous embodiment.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that can on it the paper of print routine or other suitable be situated between Matter, because can then be edited, be interpreted or when necessary with other for example by carrying out optical scanner to paper or other media Suitable method is handled electronically to obtain program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries Suddenly be that relevant hardware can be instructed to complete by program, program can store in a kind of computer readable storage medium In, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.If integrated module with The form of software function module is realized and when sold or used as an independent product, also can store computer-readable at one It takes in storage medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.

Claims (20)

1. a kind of communication means of compartment network, which is characterized in that be provided with multiple vehicle networks in every section compartment The gateway connecting with the multiple vehicle network is connected by train bus-line between each gateway, in each vehicle network Be provided with multiple nodes, the gateway is host node, the node be stored with the corresponding compartment number of relevant to itself node, Vehicle network type and device type code, the node where the gateway is stored with itself in compartment, corresponding vehicle Network type, device type code and node identifier, the communication means include:
It receives the first message that requesting node is sent and forwards request, include the requesting node in the first message forwarding request Node identifier, message source Nodes compartment number and the message source Nodes device type code;
It is numbered according to the compartment of the message source Nodes, carrys out source gateway to message, send the forwarding request of the second message, described the The forwarding request of two messages includes the device type code of the compartment number and the message source Nodes of the requesting node, for institute It states message and carrys out source gateway, according to the device type code of the message source Nodes, obtain the node mark of the message source Nodes Know symbol, and acquires message relevant to the node identifier of the message source Nodes from the message source Nodes;
It receives the message and carrys out source gateway, numbered according to the compartment of the requesting node, the relevant message of transmission;
According to the node identifier of the requesting node, Xiang Suoshu requesting node sends the relevant message.
2. communication means according to claim 1, which is characterized in that further include:
It receives the message and carrys out source gateway, numbered according to the compartment of the requesting node, the message source Nodes of transmission Node identifier;
According to the node identifier of the message source Nodes, opens the channels of information acquisition of the relevant message and send logical Road;
According to the node identifier of the requesting node, Xiang Suoshu requesting node sends the node mark of the message source Nodes Know symbol, for the requesting node, according to the node identifier of the message source Nodes, carries out and receive the relevant message Preparation.
3. communication means according to claim 1, which is characterized in that described to receive the first message turn that requesting node is sent Hair request, comprising:
The requesting node is received, according to the equipment class of the compartment of message source Nodes number and the message source Nodes First message of type code, transmission forwards request.
4. a kind of communication means of compartment network, which is characterized in that be provided with multiple vehicle networks in every section compartment The gateway connecting with the multiple vehicle network is connected by train bus-line between each gateway, in each vehicle network Be provided with multiple nodes, the gateway is host node, the node be stored with the corresponding compartment number of relevant to itself node, Vehicle network type and device type code, the corresponding vehicle of the node where the gateway is stored with itself in compartment Network type, device type code and node identifier, the communication means include:
Request gateway is received, the compartment of the message source Nodes sent according to requesting node is numbered, the second message forwarding of transmission Request, the second message forwarding request include the device type code of the compartment number and message source Nodes of requesting node;
According to the device type code of the message source Nodes, the node identifier of the message source Nodes is obtained;
From the message source Nodes, message relevant to the node identifier of the message source Nodes is acquired;
It is numbered according to the compartment of the requesting node, the relevant message is sent to the request gateway, for the request Gateway, according to the node identifier for the requesting node that the requesting node is sent, Xiang Suoshu requesting node sends the phase The message of pass.
5. communication means according to claim 4, which is characterized in that described from the message source Nodes, acquisition and institute Before the relevant message of node identifier for stating message source Nodes, further includes:
Open the channels of information acquisition of the relevant message.
6. communication means according to claim 4, which is characterized in that the node mark for obtaining the message source Nodes Know after according with, further includes:
It is numbered according to the compartment of the requesting node, Xiang Suoshu requesting node gateway sends the node of the message source Nodes Identifier opens the channels of information acquisition and sendaisle of the relevant message, according to institute for the requesting node gateway The node identifier of the requesting node of requesting node transmission is stated, Xiang Suoshu requesting node sends the message source Nodes Node identifier, notify the requesting node to carry out the preparation for receiving the relevant message.
7. communication means according to claim 4, which is characterized in that the equipment class according to the message source Nodes Type code obtains the node identifier of the message source Nodes, comprising:
The corresponding equipment class of the message source Nodes stored according to the device type code of the message source Nodes with itself Type code and node identifier obtain the node identifier of the message source Nodes.
8. a kind of gateway, which is characterized in that the corresponding vehicle net of node where the gateway is stored with itself in compartment Network type, device type code and node identifier, the node are stored with the corresponding compartment number of relevant to itself node, vehicle Network type and device type code, the gateway include:
First receiving module, for receiving the first message forwarding request of requesting node transmission, the first message forwarding request In include the node identifier of the requesting node, message source Nodes compartment number and the message source Nodes equipment Type codes;
First sending module carrys out source gateway to message for numbering according to the compartment of the message source Nodes, sends the second report Text, which forwards, requests, and the second message forwarding request includes that the compartment of the requesting node is numbered and the message source Nodes Device type code, according to the device type code of the message source Nodes, obtains the message so that the message carrys out source gateway The node identifier of source Nodes, and from the message source Nodes acquisition and the message source Nodes node identifier phase The message of pass;
Second receiving module carrys out source gateway for receiving the message, is numbered according to the compartment of the requesting node, the institute of transmission State relevant message;
Second sending module, for the node identifier according to the requesting node, Xiang Suoshu requesting node sends the correlation Message.
9. gateway according to claim 8, which is characterized in that further include:
Third receiving module carrys out source gateway for receiving the message, is numbered according to the compartment of the requesting node, the institute of transmission State the node identifier of message source Nodes;
Module is opened in channel, for the node identifier according to the message source Nodes, opens the letter of the relevant message Cease acquisition channel and sendaisle;
Third sending module, for the node identifier according to the requesting node, Xiang Suoshu requesting node sends the message The node identifier of source Nodes, so that the requesting node is carried out and connect according to the node identifier of the message source Nodes Receive the preparation of the relevant message.
10. gateway according to claim 8, which is characterized in that first receiving module is specifically used for:
The requesting node is received, according to the equipment class of the compartment of message source Nodes number and the message source Nodes First message of type code, transmission forwards request.
11. a kind of gateway, which is characterized in that the corresponding vehicle net of node where the gateway is stored with itself in compartment Network type, device type code and node identifier, the node are stored with the corresponding compartment number of relevant to itself node, vehicle Network type and device type code, the gateway include:
4th receiving module, for receiving request gateway, the compartment of the message source Nodes sent according to requesting node is numbered, hair The the second message forwarding request sent, the second message forwarding request include the compartment number and message source Nodes of requesting node Device type code;
It obtains module and obtains the node of the message source Nodes for the device type code according to the message source Nodes Identifier;
Acquisition module, for acquiring relevant to the node identifier of the message source Nodes from the message source Nodes Message;
4th sending module is sent described relevant for being numbered according to the compartment of the requesting node to the request gateway Message, so that the request gateway is asked according to the node identifier for the requesting node that the requesting node is sent to described Node is asked to send the relevant message.
12. gateway according to claim 11, which is characterized in that the acquisition module is also used to:
Described from the message source Nodes, acquire message relevant to the node identifier of the message source Nodes it Before, open the channels of information acquisition of the relevant message.
13. gateway according to claim 11, which is characterized in that the acquisition module is also used to:
After the node identifier for obtaining the message source Nodes, numbered according to the compartment of the requesting node, to The requesting node gateway sends the node identifier of the message source Nodes, for the requesting node gateway, opens institute The channels of information acquisition and sendaisle for stating relevant message, according to the node for the requesting node that the requesting node is sent Identifier, Xiang Suoshu requesting node send the node identifier of the message source Nodes, notify the requesting node is carried out to connect Receive the preparation of the relevant message.
14. gateway according to claim 11, which is characterized in that the acquisition module is specifically used for:
The corresponding equipment class of the message source Nodes stored according to the device type code of the message source Nodes with itself Type code and node identifier obtain the node identifier of the message source Nodes.
15. a kind of electronic equipment characterized by comprising memory, processor and be stored on the memory and can be in institute The computer program run on processor is stated, the processor executes described program, to realize such as any one of claim 1-3 institute The communication means for the compartment network stated.
16. a kind of electronic equipment characterized by comprising memory, processor and be stored on the memory and can be in institute The computer program run on processor is stated, the processor executes described program, to realize such as any one of claim 4-7 institute The communication means for the compartment network stated.
17. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the program It is executed by processor, with the communication means for realizing compartment network as described in any one of claims 1-3.
18. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the program It is executed by processor, with the communication means for realizing the described in any item compartment networks of such as claim 4-7.
19. a kind of computer program product, which is characterized in that when the instruction in the computer program product is executed by processor When, execute the communication means of compartment network as described in any one of claims 1-3.
20. a kind of computer program product, which is characterized in that when the instruction in the computer program product is executed by processor When, execute the communication means such as the described in any item compartment networks of claim 4-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 true CN110417839A (en) 2019-11-05
CN110417839B 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010034797A1 (en) * 2000-04-21 2001-10-25 Kei Kato Data transferring method and communication network system
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 and system and gateway controller

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010034797A1 (en) * 2000-04-21 2001-10-25 Kei Kato Data transferring method and communication network system
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 and system and gateway controller

Also Published As

Publication number Publication date
CN110417839B (en) 2021-02-23

Similar Documents

Publication Publication Date Title
CN109871224A (en) A kind of gray scale dissemination method, system, medium and equipment based on user identifier
CN109151034A (en) Long-range control method, device and the server of automatic driving vehicle
US20190357146A1 (en) Method and apparatus for wake-up of communication node in vehicle network
DE602005003748T2 (en) Method and device for carrying out an interaction between a Home Subscriber Server (HSS) and a Home Location Register (HLR) in a conventional network
CN108989240A (en) Method for controlling network flow, device, terminal device and storage medium
CN108667861A (en) By browser to the method, system and server of device real-time monitoring
EP1931099A1 (en) Method for managing a communication between a server device and a customer device
DE102015215480A1 (en) Method and device for transmitting a message in a vehicle
CA2486505C (en) Adaptive algorithm for locating network devices in an ecp brake-equipped train
CN110166857B (en) Method for realizing dynamic configuration of fiber channel switch
CN110213116B (en) A kind of network system, method and the communication equipment of network service centralized processing
CN109830270A (en) Medical information management system, method, computer equipment and readable storage medium storing program for executing
CN105897453A (en) Method for diagnosing network and apparatus for the same
JP2010505156A5 (en)
CN109729063A (en) Information processing method and information processing system applied to encryption equipment
CN110417839A (en) The communication means and gateway of compartment network
CN101465818A (en) Method, server and system for transmitting broadcast message
CN104363257B (en) A kind of user interface data method for refreshing and equipment
CN1323516C (en) Repeating controlling method for customer message
KR20010072301A (en) Active publishing
US7372861B2 (en) Access control apparatus and access control method
CN114615321B (en) Flow processing method and device
CN107078933A (en) Subscriber station for communication system and the method for the communication based on CAN for High Data Rate
CN110417927A (en) The distribution method and system of compartment network communication address
CN109302298B (en) Train gateway forwarding strategy configuration method, device and system

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