[go: up one dir, main page]

CN109104325B - Train network data transmission method, system and device based on CANopen protocol - Google Patents

Train network data transmission method, system and device based on CANopen protocol Download PDF

Info

Publication number
CN109104325B
CN109104325B CN201710477075.2A CN201710477075A CN109104325B CN 109104325 B CN109104325 B CN 109104325B CN 201710477075 A CN201710477075 A CN 201710477075A CN 109104325 B CN109104325 B CN 109104325B
Authority
CN
China
Prior art keywords
node
network
channel
pdo
slave
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
CN201710477075.2A
Other languages
Chinese (zh)
Other versions
CN109104325A (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 CN201710477075.2A priority Critical patent/CN109104325B/en
Publication of CN109104325A publication Critical patent/CN109104325A/en
Application granted granted Critical
Publication of CN109104325B publication Critical patent/CN109104325B/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/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40052High-speed IEEE 1394 serial bus
    • H04L12/40078Bus configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements
    • H04L12/40176Flexible bus arrangements involving redundancy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Cardiology (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a train network data transmission method, a train network data transmission system and a train network data transmission device based on a CANopen protocol, wherein the train network data transmission method, the train network data transmission system and the train network data transmission device are applied to an active main node and comprise the following steps: monitoring PDO messages sent by each slave node related to the active master node through a first CAN channel on the main network according to a pre-configured network node list; judging whether the first CAN channel of each slave node has a fault; if the fault occurs, switching to a standby network to monitor a PDO message sent by a first node through a second CAN channel, wherein the first node is any slave node related to the active master node; if the standby network receives the PDO message sent by the first node through the second CAN channel in a preset first heartbeat cycle corresponding to the first node, receiving data sent by the first node on the standby network, and meanwhile, receiving data sent by other slave nodes which normally send the PDO message on the main network. Therefore, good running of the whole train is ensured, and the redundancy effect of the train network is improved.

Description

基于CANopen协议的列车网络数据传输方法、系统及其装置Method, system and device for train network data transmission based on CANopen protocol

技术领域technical field

本发明涉及车辆通信技术领域,尤其涉及一种基于CANopen协议的列车网络数据传输方法、系统及其装置。The invention relates to the technical field of vehicle communication, in particular to a method, system and device for train network data transmission based on CANopen protocol.

背景技术Background technique

目前列车通信网络应用比较广泛的是列车通信网络(TCN)总线技术,TCN涵盖了MVB(多功能车辆总线)、WTB(绞线式列车总线)、以太网、CAN(现场总线)这四种总线。在对于MVB、WTB、以太网、CAN这四种总线的设计要求中,一个共同的要求是网络冗余设计。所谓的网络冗余,指的是为每个通信网络都应再设立一个备用网络,即网络上每个节点都会采用A线和B线的双线连接方式,当网络出现故障时,可以通过备用网络实现通信,确保网络上各产品数据交互畅通,使列车通信网络的运行环境具备高可用性。At present, the most widely used train communication network is the train communication network (TCN) bus technology. TCN covers four buses: MVB (multi-function vehicle bus), WTB (twisted train bus), Ethernet, and CAN (field bus). . Among the design requirements for MVB, WTB, Ethernet, and CAN, a common requirement is network redundancy design. The so-called network redundancy means that a backup network should be set up for each communication network, that is, each node on the network will use a dual-line connection mode of A and B lines. The network realizes communication to ensure smooth data interaction of various products on the network, so that the operating environment of the train communication network has high availability.

通常列车通信网络设计如果应用CAN总线进行数据交互,多数情况都会基于CANopen(一种基于CAN总线的高层通信协议,是目前工业控制常用的一种现场总线)设计,CANopen的定义是基于CAN总线设计的标准化应用层协议,CANopen协议为传统CAN支援了一套完善的网络管理机制,以支撑冗余网络设计。目前基于CANopen的冗余网络设计都是要求所有网络节点双路同时发送数据,但默认情况所有节点只从主用网络获取数据,当某个或某些从节点在主用网络掉线时,切换到备用网络接收该部分节点的数据,接收该部分节点数据的统一切换到备用网络接收数据,但如果是多个节点发生故障的通道不是在同一个网络时,此策略将存在隐患,比如,如果发生故障的多个节点有一部分在主用网络,另一部分在备用网络,则采用上述方式,无论统一切换到哪一个网络接收数据,都会导致有一部分的节点数据接收不到,从而,由于接收数据的不完整,影响部分功能的实现,进而影响整车的运行。Usually, if the train communication network design uses CAN bus for data interaction, most of the cases will be based on CANopen (a high-level communication protocol based on CAN bus, which is a field bus commonly used in industrial control at present). The definition of CANopen is based on CAN bus design. Standardized application layer protocol, CANopen protocol supports a complete set of network management mechanism for traditional CAN to support redundant network design. At present, the redundant network design based on CANopen requires all network nodes to send data in two channels at the same time, but by default, all nodes only obtain data from the main network. Go to the standby network to receive the data of this part of the node, and switch to the standby network to receive the data, but if the channels where multiple nodes fail are not in the same network, this strategy will have hidden dangers, for example, if Some of the faulty nodes are in the main network and the other part is in the standby network. In the above method, no matter which network is switched to to receive data, some nodes will not receive data. Therefore, due to the received data Incomplete, affecting the realization of some functions, and then affecting the operation of the whole vehicle.

发明内容SUMMARY OF THE INVENTION

本发明的目的旨在至少在一定程度上解决上述的技术问题之一。The purpose of the present invention is to solve one of the above-mentioned technical problems at least to a certain extent.

为此,本发明的第一个目的在于提出一种基于CANopen协议的列车网络数据传输方法,该方法保证了整车的良好运行,提高了列车网络的冗余效果。Therefore, the first purpose of the present invention is to propose a train network data transmission method based on the CANopen protocol, which ensures the good operation of the whole vehicle and improves the redundancy effect of the train network.

本发明的第二个目的在于提出另一种基于CANopen协议的列车网络数据传输方法。The second purpose of the present invention is to propose another train network data transmission method based on the CANopen protocol.

本发明的第三个目的在于提出一种活动主节点。The third object of the present invention is to propose an active master node.

本发明的第四个目的在于提出一种从节点。The fourth object of the present invention is to provide a slave node.

本发明的第五个目的在于提出一种基于CANopen协议的列车网络数据传输系统。The fifth object of the present invention is to propose a train network data transmission system based on the CANopen protocol.

本发明的第六个目的在于提出一种计算机设备。The sixth object of the present invention is to propose a computer device.

本发明的第七个目的在于提出另一种计算机设备。A seventh object of the present invention is to propose another computer device.

本发明的第八个目的在于提出一种计算机可读介质。An eighth object of the present invention is to propose a computer-readable medium.

本发明的第九个目的在于提出另一种计算机可读介质。A ninth object of the present invention is to propose another computer-readable medium.

为了实现上述目的,本发明第一方面实施例提出的一种基于CANopen协议的列车网络数据传输方法,包括以下步骤:所述方法应用在活动主节点,包括以下步骤:根据预先配置的网络节点列表在主用网络上监听与所述活动主节点相关的各从节点通过第一CAN通道发送的PDO报文;根据对所述各从节点发送的PDO报文的接收情况,以及根据PDO报文中的生产禁止时间为所述各从节点对应设置的心跳计时器的计时情况,判断所述各从节点的第一CAN通道是否故障;若在预设的与第一节点对应的第一心跳周期内没有在所述主用网络接收到所述第一节点的PDO报文,则获知所述第一节点的第一CAN通道故障,并切换到备用网络监听所述第一节点通过第二CAN通道发送的PDO报文,其中,所述第一节点为任意一个与所述活动主节点相关的从节点;若在预设的与第一节点对应的第一心跳周期内在所述备用网络接收到所述第一节点通过第二CAN通道发送的PDO报文,则在所述备用网络上接收所述第一节点发送的数据,同时,在所述主用网络上接收其他正常发送PDO报文的从节点发送的数据。In order to achieve the above purpose, a method for transmitting train network data based on the CANopen protocol proposed by the embodiment of the first aspect of the present invention includes the following steps: the method is applied to an active master node, and includes the following steps: according to a pre-configured network node list Monitor the PDO messages sent by the slave nodes related to the active master node through the first CAN channel on the active network; according to the reception of the PDO messages sent by the slave nodes, and according to the The production prohibition time is the timing of the heartbeat timer correspondingly set by each slave node, and it is judged whether the first CAN channel of each slave node is faulty; if it is within the preset first heartbeat cycle corresponding to the first node If the PDO message of the first node is not received on the primary network, the first CAN channel of the first node is informed that the first CAN channel is faulty, and switches to the backup network to monitor the transmission of the first node through the second CAN channel PDO message, wherein, the first node is any slave node related to the active master node; if the standby network receives the For the PDO message sent by the first node through the second CAN channel, the data sent by the first node is received on the standby network, and at the same time, other slave nodes that normally send PDO messages are received on the primary network. data sent.

为了实现上述目的,本发明第二方面实施例提出的另一种基于CANopen协议的列车网络数据传输方法,所述方法应用在从节点,包括以下步骤:根据预先配置的网络节点列表在主用网络上监听与所述从节点相关的各节点通过第一CAN通道发送的PDO报文:根据对所述各节点发送的PDO报文的接收情况,以及根据PDO报文中的生产禁止时间为所述各节点对应设置的心跳计时器的计时情况,判断所述各节点的第一CAN通道是否故障;若在预设的与第二节点对应的心跳周期内没有在所述主用网络上接收到所述第二节点的PDO报文,则获知所述第二节点的第一CAN通道故障,并切换到备用网络监听所述第二节点通过第二CAN通道发送的PDO报文,其中,所述第二节点为任意一个与所述从节点相关的从节点或活动主节点;若在预设的与第二节点对应的心跳周期内在所述备用网络接收到所述第二节点通过第二CAN通道发送的PDO报文,则在所述备用网络上接收所述第二节点发送的数据,同时,在所述主用网络上接收其他正常发送PDO报文的节点发送的数据。In order to achieve the above purpose, another method for train network data transmission based on the CANopen protocol proposed by the embodiment of the second aspect of the present invention, the method is applied to the slave node, and includes the following steps: according to the pre-configured network node list, in the master network Monitor the PDO message sent by each node related to the slave node through the first CAN channel: according to the reception situation of the PDO message sent by the each node, and according to the production prohibition time in the PDO message is the described The timing situation of the heartbeat timer corresponding to each node is set to determine whether the first CAN channel of each node is faulty; If the PDO message of the second node is received, the failure of the first CAN channel of the second node is known, and the first CAN channel of the second node is switched to the standby network to monitor the PDO message sent by the second node through the second CAN channel, wherein the first CAN channel The second node is any slave node or active master node related to the slave node; if the standby network receives the data sent by the second node through the second CAN channel within the preset heartbeat period corresponding to the second node The data sent by the second node is received on the standby network, and at the same time, the data sent by other nodes that normally send PDO messages is received on the primary network.

为了实现上述目的,本发明第三方面实施例提出的一种活动主节点,包括:第一监听模块,用于根据预先配置的网络节点列表在主用网络上监听与所述活动主节点相关的各从节点通过第一CAN通道发送的PDO报文;第一判断模块,用于根据对所述各从节点发送的PDO报文的接收情况,以及根据PDO报文中的生产禁止时间为所述各从节点对应设置的心跳计时器的计时情况,判断所述各从节点的第一CAN通道是否故障;第一获知模块,用于在预设的与第一节点对应的第一心跳周期内没有在所述主用网络接收到所述第一节点的PDO报文时,获知所述第一节点的第一CAN通道故障;所述第一监听模块,还用于切换到备用网络监听所述第一节点通过第二CAN通道发送的PDO报文,其中,所述第一节点为任意一个与所述活动主节点相关的从节点;第一接收模块,用于在预设的与第一节点对应的第一心跳周期内在所述备用网络接收到所述第一节点通过第二CAN通道发送的PDO报文时,在所述备用网络上接收所述第一节点发送的数据,同时,在所述主用网络上接收其他正常发送PDO报文的从节点发送的数据。In order to achieve the above object, an active master node proposed by an embodiment of the third aspect of the present invention includes: a first monitoring module, configured to listen on the active network according to a pre-configured network node list for the active master node. The PDO message sent by each slave node through the first CAN channel; the first judgment module is used to determine the PDO message according to the reception situation of the PDO message sent by each slave node, and according to the production prohibition time in the PDO message. The timing situation of the heartbeat timer correspondingly set by each slave node determines whether the first CAN channel of each slave node is faulty; the first learning module is used for the preset first heartbeat cycle corresponding to the first node. When the primary network receives the PDO message of the first node, it learns that the first CAN channel of the first node is faulty; the first monitoring module is further configured to switch to the standby network to monitor the first CAN channel. A PDO message sent by a node through the second CAN channel, wherein the first node is any slave node related to the active master node; the first receiving module is configured to correspond to the first node in a preset When the standby network receives the PDO message sent by the first node through the second CAN channel within the first heartbeat period of the The master network receives data sent by other slave nodes that normally send PDO messages.

为了实现上述目的,本发明第四方面实施例提出的一种从节点,包括:第二监听模块,用于根据预先配置的网络节点列表在主用网络上监听与所述从节点相关的各节点通过第一CAN通道发送的PDO报文;第二判断模块,用于根据对所述各节点发送的PDO报文的接收情况,以及根据PDO报文中的生产禁止时间为所述各节点对应设置的心跳计时器的计时情况,判断所述各节点的第一CAN通道是否故障;第二获知模块,用于在预设的与第二节点对应的心跳周期内没有在所述主用网络上接收到所述第二节点的PDO报文时,获知所述第二节点的第一CAN通道故障;所述第二监听模块,还用于切换到备用网络监听所述第二节点通过第二CAN通道发送的PDO报文,其中,所述第二节点为任意一个与所述从节点相关的从节点或活动主节点;第二接收模块,用于在预设的与第二节点对应的心跳周期内在所述备用网络接收到所述第二节点通过第二CAN通道发送的PDO报文时,在所述备用网络上接收所述第二节点发送的数据,同时,在所述主用网络上接收其他正常发送PDO报文的节点发送的数据。In order to achieve the above purpose, a slave node proposed by an embodiment of the fourth aspect of the present invention includes: a second monitoring module, configured to monitor each node related to the slave node on the master network according to a preconfigured network node list The PDO message sent through the first CAN channel; the second judging module is configured to set corresponding settings for the nodes according to the receiving conditions of the PDO messages sent by the nodes and according to the production prohibition time in the PDO message The timing situation of the heartbeat timer, to judge whether the first CAN channel of each node is faulty; the second learning module is used for not receiving on the main network within the preset heartbeat period corresponding to the second node When the PDO message of the second node arrives, learn that the first CAN channel of the second node is faulty; the second monitoring module is further configured to switch to the standby network to monitor the second node through the second CAN channel The sent PDO message, wherein the second node is any slave node or active master node related to the slave node; the second receiving module is used for the preset heartbeat period corresponding to the second node. When the backup network receives the PDO message sent by the second node through the second CAN channel, it receives the data sent by the second node on the backup network, and at the same time, receives other data on the primary network. Data sent by a node that normally sends PDO packets.

为了实现上述目的,本发明第五方面实施例提出的一种基于CANopen协议的列车网络数据传输系统,包括本发明第三方面实施例所述的活动主节点;第四方面实施例所述的从节点,主用网络;备用网络。In order to achieve the above purpose, a train network data transmission system based on the CANopen protocol proposed by the embodiment of the fifth aspect of the present invention includes the active master node described in the embodiment of the third aspect of the present invention; the slave node described in the embodiment of the fourth aspect of the present invention Node, primary network; backup network.

为了实现上述目的,本发明第六方面实施例提出的一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现本发明第一方面实施例所述的基于CANopen协议的列车网络数据传输方法。In order to achieve the above object, a computer device provided by an embodiment of the sixth aspect of the present invention includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer The program implements the CANopen protocol-based train network data transmission method described in the embodiment of the first aspect of the present invention.

为了实现上述目的,本发明第七方面实施例提出的一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现本发明第二方面实施例所述的基于CANopen协议的列车网络数据传输方法。In order to achieve the above object, a computer device provided by an embodiment of the seventh aspect of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer The program implements the CANopen protocol-based train network data transmission method described in the embodiment of the second aspect of the present invention.

为了实现上述目的,本发明第八方面实施例提出的一种计算机可读介质,用于存储计算机程序,所述计算机程序被处理器执行以实现本发明第一方面实施例所述的基于CANopen协议的列车网络数据传输方法。In order to achieve the above purpose, a computer-readable medium provided by an embodiment of the eighth aspect of the present invention is used to store a computer program, and the computer program is executed by a processor to implement the CANopen-based protocol described in the embodiment of the first aspect of the present invention. The train network data transmission method.

为了实现上述目的,本发明第九方面实施例提出的一种计算机可读介质,用于存储计算机程序,所述计算机程序被处理器执行以实现本发明第二方面实施例所述的基于CANopen协议的列车网络数据传输方法。In order to achieve the above object, a computer-readable medium provided by the embodiment of the ninth aspect of the present invention is used to store a computer program, and the computer program is executed by a processor to implement the CANopen-based protocol described in the embodiment of the second aspect of the present invention. The train network data transmission method.

本发明实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present invention may include the following beneficial effects:

根据预先配置的网络节点列表在主用网络上监听与活动主节点相关的各从节点通过第一CAN通道发送的PDO报文,根据对各从节点发送的PDO报文的接收情况,以及根据PDO报文中的生产禁止时间为各从节点对应设置的心跳计时器的计时情况,判断各从节点的第一CAN通道是否故障,若在预设的与第一节点对应的第一心跳周期内没有在主用网络接收到第一节点的PDO报文,则获知第一节点的第一CAN通道故障,并切换到备用网络监听第一节点通过第二CAN通道发送的PDO报文,若在预设的与第一节点对应的第一心跳周期内在备用网络接收到第一节点通过第二CAN通道发送的PDO报文,则在备用网络上接收第一节点发送的数据,同时,在主用网络上接收其他正常发送PDO报文的从节点发送的数据。由此,当某个或某些从节点在主用网络掉线时,切换到备用网络接收该部分从节点的数据,其他从节点数据依然在主用网络上接收,保证了对相关从节点数据的完整接收,保证了整车的良好运行,提高了列车网络的冗余效果。本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Monitor the PDO messages sent by each slave node related to the active master node through the first CAN channel on the active network according to the pre-configured network node list, according to the reception of the PDO messages sent by each slave node, and according to the PDO message The production prohibition time in the message is the timing of the heartbeat timer corresponding to each slave node, and it is judged whether the first CAN channel of each slave node is faulty. If the PDO message of the first node is received on the active network, it will know that the first CAN channel of the first node is faulty, and switch to the standby network to monitor the PDO message sent by the first node through the second CAN channel. In the first heartbeat period corresponding to the first node, the PDO message sent by the first node through the second CAN channel is received on the standby network, the data sent by the first node is received on the standby network, and at the same time, the data sent by the first node is received on the main network. Receive data sent by other slave nodes that normally send PDO messages. Therefore, when one or some slave nodes are disconnected on the main network, they switch to the standby network to receive the data of this part of the slave nodes, and other slave node data are still received on the main network. The complete reception of the train ensures the good operation of the whole vehicle and improves the redundancy effect of the train network. Additional aspects and advantages of the present invention will be set forth, in part, from the following description, and in part will be apparent from the following description, or may be learned by practice of the invention.

附图说明Description of drawings

本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:

图1是根据现有技术的列车网络结构示意图;1 is a schematic diagram of a train network structure according to the prior art;

图2(a)是根据现有技术的列车网络结构数据传输存在风险示意图;Figure 2(a) is a schematic diagram of the risk of data transmission in train network structure according to the prior art;

图2(b)是根据本发明的列车网络结构数据传输克服风险示意图;Fig. 2(b) is a schematic diagram of overcoming risks by train network structure data transmission according to the present invention;

图3是根据本发明第一个实施例的基于CANopen协议的列车网络数据传输方法的流程图;3 is a flowchart of a method for transmitting train network data based on the CANopen protocol according to the first embodiment of the present invention;

图4为本发明一个实施例的列车冗余网络数据传输方法的示例拓扑图;4 is an exemplary topology diagram of a data transmission method for a redundant train network according to an embodiment of the present invention;

图5是根据本发明所列举的主用网络总线故障时各节点接收数据示例图;5 is an example diagram of each node receiving data when the main network bus is faulty according to the present invention;

图6是根据本发明第二个实施例的基于CANopen协议的列车网络数据传输方法的流程图;Fig. 6 is a flow chart of a train network data transmission method based on CANopen protocol according to the second embodiment of the present invention;

图7是根据本发明第三个实施例的基于CANopen协议的列车网络数据传输方法的流程图;7 is a flowchart of a train network data transmission method based on CANopen protocol according to a third embodiment of the present invention;

图8是根据本发明第四个实施例的基于CANopen协议的列车网络数据传输方法的流程图;FIG. 8 is a flowchart of a train network data transmission method based on the CANopen protocol according to the fourth embodiment of the present invention;

图9是根据本发明第一个实施例的活动主节点的结构示意图;9 is a schematic structural diagram of an active master node according to the first embodiment of the present invention;

图10是根据本发明第二个实施例的主节点的结构示意图;10 is a schematic structural diagram of a master node according to a second embodiment of the present invention;

图11是根据本发明第三个实施例的主节点的结构示意图;11 is a schematic structural diagram of a master node according to a third embodiment of the present invention;

图12是根据本发明第四个实施例的主节点的结构示意图;12 is a schematic structural diagram of a master node according to a fourth embodiment of the present invention;

图13是根据本发明第五个实施例的活动主节点的结构示意图;13 is a schematic structural diagram of an active master node according to a fifth embodiment of the present invention;

图14是根据本发明第六个实施例的活动主节点的结构示意图;14 is a schematic structural diagram of an active master node according to a sixth embodiment of the present invention;

图15是根据本发明第七个实施例的活动主节点的结构示意图;15 is a schematic structural diagram of an active master node according to a seventh embodiment of the present invention;

图16是根据本发明第一个实施例的从节点的结构示意图;16 is a schematic structural diagram of a slave node according to the first embodiment of the present invention;

图17是根据本发明第二个实施例的从节点的结构示意图;17 is a schematic structural diagram of a slave node according to a second embodiment of the present invention;

图18是根据本发明第三个实施例的从节点的结构示意图;18 is a schematic structural diagram of a slave node according to a third embodiment of the present invention;

图19是根据本发明第四个实施例的从节点的结构示意图;FIG. 19 is a schematic structural diagram of a slave node according to a fourth embodiment of the present invention;

图20是根据本发明一个实施例的基于CANopen协议的列车网络数据传输系统的结构示意图;20 is a schematic structural diagram of a train network data transmission system based on the CANopen protocol according to an embodiment of the present invention;

图21为根据本发明所列举的节点第一CAN通道故障时主节点接收数据示意图;以及21 is a schematic diagram of the master node receiving data when the first CAN channel of the node listed according to the present invention fails; and

图22为根据本发明所列举的节点第一CAN通道故障时从节点接收数据示意图。FIG. 22 is a schematic diagram of receiving data from the node when the first CAN channel of the node is faulty according to the present invention.

具体实施方式Detailed ways

下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。The following describes in detail the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, and are intended to explain the present invention and should not be construed as limiting the present invention.

下面参考附图描述本发明实施例的基于CANopen协议的列车网络数据传输方法、系统及其装置。The following describes the method, system and device for train network data transmission based on the CANopen protocol according to the embodiments of the present invention with reference to the accompanying drawings.

具体地,由当前现有技术中的冗余网络设计方式可知,由于目前使用CAN总线作为通信网络的列车应用比较少,即以CAN总线搭建的网络架构较为简单,甚至现阶段已应用CAN总线的列车上都未妥善地考虑网络冗余设计,即使是有这方面考虑,很多车辆制造商由于技术条件有限,同时为了使网络节点软件逻辑处理简单,能快速地满足网络搭建,所以现有比较完善的策略就是所有节点同时在主用网络与备用网络都发送数据,但是只会选其中一个网络接收数据,不管主用网络上哪个节点已经掉线,跟其相关的节点统一切换到备用网络上接收处理掉线节点的数据以及其他关联节点的数据。Specifically, it can be seen from the redundant network design methods in the current prior art that, since there are relatively few train applications using the CAN bus as the communication network, the network architecture built with the CAN bus is relatively simple, and even the CAN bus has been applied at this stage. The network redundancy design has not been properly considered on the train. Even with this consideration, many vehicle manufacturers have relatively complete existing systems due to limited technical conditions, and in order to make the network node software logic processing simple and quickly meet the network construction requirements. The strategy is that all nodes send data on both the main network and the standby network at the same time, but only one network is selected to receive data. No matter which node on the main network has been dropped, the related nodes are switched to the standby network to receive data. Processes the data of the dropped node as well as the data of other associated nodes.

举例而言,如附图1示例所示,网络节点A、C需要接收节点B的数据,而节点D、E不接收节点B的数据,当节点B的第一CAN通道故障时,节点A与节点C就切换到备用网络上去接收数据,这样就能保证正常接收到节点B的数据。For example, as shown in the example of FIG. 1, network nodes A and C need to receive data from node B, while nodes D and E do not receive data from node B. When the first CAN channel of node B fails, node A and Node C switches to the standby network to receive data, so as to ensure that the data of node B is normally received.

然而,这样的处理方式会存在一种风险,如附图2(a)示例所示,节点A需要接收节点B与节点C的数据,但是节点B第一CAN通道故障且节点C第二CAN通道故障时,按现有方式节点A只能取一个网络数据,因此只能选择放弃节点B或者节点C的数据,但是实际情况节点B与节点C的数据对于节点A都很重要,只能接收一个的数据,那就会影响节点A功能,进而影响整车运行,冗余效果就大打折扣,没有体现出冗余主旨意义。However, there is a risk in such a processing method. As shown in the example of Fig. 2(a), node A needs to receive data from node B and node C, but the first CAN channel of node B is faulty and the second CAN channel of node C is faulty. In the event of a failure, according to the existing method, node A can only fetch one piece of network data, so it can only choose to give up the data of node B or node C. However, in reality, the data of node B and node C are very important to node A, and can only receive one. data, it will affect the function of node A, and then affect the operation of the whole vehicle, the redundancy effect will be greatly reduced, and the main meaning of redundancy will not be reflected.

为了解决现有技术中,多个节点不同通道故障时出现部分节点数据无法正常接收的技术问题,本发明提出的列车网络数据传输方法中,在现有列车网络冗余设计结构的基础上,提供一种列车冗余网络数据传输设计方案,可有效避免部分节点主用网络通道故障而部分节点备用网络通道故障时需舍弃一些节点数据,同时也提升了冗余设计的实际效果,很好地规避了一些车辆网络故障导致整车运行受阻的问题,能保证在一些异常情况下,网络各个节点依然可以正常通信。In order to solve the technical problem in the prior art that the data of some nodes cannot be received normally when different channels of multiple nodes fail, the train network data transmission method proposed by the present invention, on the basis of the redundant design structure of the existing train network, provides A train redundant network data transmission design scheme, which can effectively avoid the failure of the main network channel of some nodes and the need to discard some node data when the backup network channel of some nodes fails. It solves the problem that some vehicle network failures cause the entire vehicle to be blocked, and it can ensure that in some abnormal situations, each node of the network can still communicate normally.

其中,需要强调的是,本发明的列车网络数据传输方法是基于CANopen协议执行的,其中,CANopen协议要求网络中有一个节点充当主节点的角色,以管理其他从节点的初始化、启动、监管、复位或停止等工作。Among them, it should be emphasized that the train network data transmission method of the present invention is implemented based on the CANopen protocol, wherein the CANopen protocol requires a node in the network to play the role of the master node to manage the initialization, startup, supervision, and control of other slave nodes. work such as reset or stop.

为了更加清楚的对本发明的基于CANopen协议的列车网络数据传输方法进行说明,下面结合具体实施例,集中在该方法应用在活动主节点侧进行描述,说明如下:In order to describe the train network data transmission method based on the CANopen protocol of the present invention more clearly, the following describes the application of the method on the active master node side with reference to specific embodiments, and the description is as follows:

其中,为了更好的执行本发明实施例的基于CANopen协议的列车网络数据传输方法,对主节点具有一定的设计要求,由于主节点作为网络管理员身份,所以会比从节点多了网络状态控制的功能,即主节点上电后需要同时向主用网络与备用网络发送网络控制指令,控制从节点两路CAN通道进入操作模式,同时会向主用网络与备用网络一起发送同步包、时间戳、紧急对象等报文。Among them, in order to better implement the CANopen protocol-based train network data transmission method in the embodiment of the present invention, there are certain design requirements for the master node. Since the master node acts as a network administrator, it will have more network status control than the slave node. That is, after the master node is powered on, it needs to send network control commands to the main network and the backup network at the same time to control the two CAN channels of the slave node to enter the operation mode, and at the same time, it will send synchronization packets and time stamps to the main network and the backup network. , emergency objects and other messages.

图3是根据本发明第一个实施例的基于CANopen协议的列车网络数据传输方法的流程图,如图3所示,该方法包括:3 is a flowchart of a method for transmitting train network data based on the CANopen protocol according to the first embodiment of the present invention. As shown in FIG. 3 , the method includes:

S101,根据预先配置的网络节点列表在主用网络上监听与活动主节点相关的各从节点通过第一CAN通道发送的PDO报文。S101: Monitor the PDO message sent by each slave node related to the active master node through the first CAN channel on the master network according to a preconfigured network node list.

其中,PD0(Process Data Object,过程数据对象)是用来传输实时数据的,提供对设备应用对象的直接访问通道,它用来传输实时短帧数据,具有较高的优先权。Among them, PD0 (Process Data Object, process data object) is used to transmit real-time data, provides a direct access channel to the device application object, it is used to transmit real-time short-frame data, and has a higher priority.

在PDO报文监测机制中,利用PDO对象字典中关于通信参数索引的生产禁止时间来作为界定一个节点有无掉线的关键判定条件。PDO通信参数结构如下表1所示。In the PDO message monitoring mechanism, the production prohibition time of the communication parameter index in the PDO object dictionary is used as the key judgment condition to define whether a node is disconnected or not. The PDO communication parameter structure is shown in Table 1 below.

表1Table 1

Figure GDA0002585999240000071
Figure GDA0002585999240000071

可以理解,本发明要求主节点根据拓扑图建立一个所有网络节点列表(可配置的),其中,网络节点列表包括:与活动主节点相关的各从节点标识和对应的心跳计时器,其中,各从节点对应的心跳计时器根据PDO报文中的生产禁止时间设置,从主用网络和备用网络同时向所有从节点发送网络控制指令,控制从节点的第一CAN通道和第二CAN通道进入PDO报文操作模式,并启动与所述活动主节点相关的各从节点对应的心跳计时器。It can be understood that the present invention requires the master node to establish a list of all network nodes (configurable) according to the topology diagram, wherein the network node list includes: each slave node identifier related to the active master node and the corresponding heartbeat timer, wherein each The heartbeat timer corresponding to the slave node is set according to the production prohibition time in the PDO message, and sends network control commands from the master network and the backup network to all slave nodes at the same time, controlling the first CAN channel and the second CAN channel of the slave node to enter the PDO message operation mode, and start the heartbeat timer corresponding to each slave node related to the active master node.

即在CANopen对象字典关于RPDO对象索引(1400h to 15FFh)中根据实际掉线时限判定需求分别给各个节点选取其中一个代表性的PDO,再根据这些PDO索引里的生产禁止时间参数分别为每个节点都设置一个心跳计数器。That is, in the RPDO object index (1400h to 15FFh) of the CANopen object dictionary, one representative PDO is selected for each node according to the actual disconnection time limit judgment requirements, and then according to the production prohibition time parameters in these PDO indexes, each node is divided. Both set a heartbeat counter.

进而,主节点在进入操作状态后,主节点会持续检测各节点PDO发送情况,由于默认主用网络工作,因而,根据预先配置的网络节点列表在主用网络上监听与活动主节点相关的各从节点通过第一CAN通道发送的PDO报文,以便于根据报文接收情况,判断各从节点是否掉线。Furthermore, after the master node enters the operating state, the master node will continue to detect the PDO transmission status of each node. Since the default active network works, it will monitor the active network according to the pre-configured network node list on the active network. The PDO message sent by the slave node through the first CAN channel, so as to judge whether each slave node is disconnected according to the message reception situation.

S102,根据对各从节点发送的PDO报文的接收情况,以及根据PDO报文中的生产禁止时间为各从节点对应设置的心跳计时器的计时情况,判断各从节点的第一CAN通道是否故障。S102: Determine whether the first CAN channel of each slave node is based on the reception of the PDO message sent by each slave node and the timing of the heartbeat timer correspondingly set for each slave node according to the production prohibition time in the PDO message. Fault.

应当理解的是,继续参照上表1,在PDO报文发送机制中,子索引03h生产禁止时间表示预设时间内接收处理一个PDO数据,如果在预设时间内未接收到对应PDO数据,则节点会记录该PDO报文丢帧,当一个生产禁止时间内未接收到PDO数据,则心跳计数器开始计数,当心跳计数器累加到一个预设值时,主节点会判定该节点掉线。因此,在本发明实施例中,针对生产禁止时间设置心跳计时器的计时情况,从而,根据对各从节点发送的PDO报文的接收情况,以及根据PDO报文中的生产禁止时间为各从节点对应设置的心跳计时器的计时情况,判断各从节点的第一CAN通道是否故障。It should be understood that, continuing to refer to Table 1 above, in the PDO message sending mechanism, the sub-index 03h production prohibition time indicates that a PDO data is received and processed within the preset time, if the corresponding PDO data is not received within the preset time, then The node will record the frame loss of the PDO message. When the PDO data is not received within a production prohibition time, the heartbeat counter starts to count. When the heartbeat counter accumulates to a preset value, the master node will determine that the node is offline. Therefore, in the embodiment of the present invention, the timing of the heartbeat timer is set for the production prohibition time, so that according to the reception situation of the PDO message sent by each slave node, and according to the production prohibition time in the PDO message, each slave According to the timing of the heartbeat timer set corresponding to the node, it is judged whether the first CAN channel of each slave node is faulty.

其中,如果从节点的第一CAN通道通信良好,则在一定的时间内,主节点可以正常接收从节点发送的PDO报文,否则,从节点的第一CAN通道通信故障。Wherein, if the communication of the first CAN channel of the slave node is good, the master node can normally receive the PDO message sent by the slave node within a certain period of time; otherwise, the communication of the first CAN channel of the slave node is faulty.

S103,若在预设的与第一节点对应的第一心跳周期内没有在主用网络接收到第一节点的PDO报文,则获知第一节点的第一CAN通道故障,并切换到备用网络监听第一节点通过第二CAN通道发送的PDO报文。S103, if the PDO message of the first node is not received in the primary network within the preset first heartbeat period corresponding to the first node, then learn that the first CAN channel of the first node is faulty, and switch to the backup network Monitor the PDO message sent by the first node through the second CAN channel.

其中,第一节点为任意一个与活动主节点相关的从节点。The first node is any slave node related to the active master node.

具体地,在预设的与第一节点对应的第一心跳周期内,如果在主用网络上没有接收到第一节点的PDO报文,则表明导致活动主节点接收不到第一节点发送的PDO报文的原因,是第一CAN通道故障导致的,从而为了保证活动主节点可正常接收到第一节点的PDO报文,维持整车的正常运行,切换到备用网络监听第一节点通过第二CAN通道发送的PDO报文。Specifically, within the preset first heartbeat period corresponding to the first node, if the PDO message of the first node is not received on the active network, it indicates that the active master node cannot receive the message sent by the first node. The reason for the PDO message is caused by the failure of the first CAN channel. Therefore, in order to ensure that the active master node can normally receive the PDO message of the first node and maintain the normal operation of the vehicle, it switches to the standby network to monitor the first node through the first node. Two PDO messages sent by the CAN channel.

需要强调的是,此时活动主节点可仅从备用网络监听第一节点的PDO报文,针对其他第一CAN通道无故障的从节点,仍在主用网络接收PDO报文,从而,如图2(b)所示,节点A需要接收节点B与节点C的数据,节点B第一CAN通道故障且节点C第二CAN通道故障时,按照本发明的数据传输方法,节点A通过主用网络接收节点C的数据,从备用网络接收节点B发送的数据,因此可节点B和节点C的数据,保证了节点A的正常功能,进而保证整车良好运行,冗余效果增强。It should be emphasized that at this time, the active master node can only monitor the PDO message of the first node from the standby network, and for other slave nodes with no faults in the first CAN channel, still receive the PDO message on the main network, so as shown in the figure. As shown in 2(b), node A needs to receive data from node B and node C. When the first CAN channel of node B fails and the second CAN channel of node C fails, according to the data transmission method of the present invention, node A passes through the main network. Receive the data of node C, and receive the data sent by node B from the backup network, so the data of node B and node C can be used to ensure the normal function of node A, thereby ensuring the good operation of the whole vehicle, and the redundancy effect is enhanced.

在本发明的另一个实施例中,如果在预设的第一心跳周期内接收到第一节点的PDO报文,则表明该从节点的数据传输故障时可以通过复位自行修复的,从而继续从主用网络上接收第一节点发送的数据。In another embodiment of the present invention, if the PDO message of the first node is received within the preset first heartbeat period, it indicates that the data transmission failure of the slave node can be repaired by itself by resetting, so that the slave node can continue to slave The data sent by the first node is received on the primary network.

S104,若在预设的与第一节点对应的第一心跳周期内在备用网络接收到第一节点通过第二CAN通道发送的PDO报文,则在备用网络上接收第一节点发送的数据,同时,在主用网络上接收其他正常发送PDO报文的从节点发送的数据。S104, if the standby network receives the PDO message sent by the first node through the second CAN channel within the preset first heartbeat period corresponding to the first node, receive the data sent by the first node on the standby network, and simultaneously , receive data sent by other slave nodes that normally send PDO messages on the master network.

具体地,如果在与第一节点对应的第一心跳周期内接收到第一节点通过第二CAN通道发送的PDO报文,则表明第二CAN通道功能正常,从而在备用网络上接收第一节点发送的数据,同时,在主用网络上接收其他正常发送PDO报文的从节点发送的数据。Specifically, if the PDO message sent by the first node through the second CAN channel is received within the first heartbeat period corresponding to the first node, it indicates that the second CAN channel is functioning normally, so that the first node is received on the standby network At the same time, the data sent by other slave nodes that normally send PDO messages is received on the master network.

由此,根据上述对基于CANopen协议的列车网络数据传输方法的描述,同时参考行业规范CIA302-6对于CAN冗余的设计以及轨道行业成熟现场总线冗余机制,要求本发明实施例的网络架构参考附图4,网络设立两个主节点,一个为活动主节点,另一个为备份主节点,当活动主节点出现故障时,备份主节点才会进行替代之前活动主节点的功能。Therefore, according to the above description of the train network data transmission method based on the CANopen protocol, and referring to the industry specification CIA302-6 for the design of CAN redundancy and the mature field bus redundancy mechanism in the rail industry, it is required that the network architecture of the embodiment of the present invention refer to In Figure 4, the network sets up two master nodes, one is the active master node and the other is the backup master node. When the active master node fails, the backup master node will perform the function of replacing the previous active master node.

也就是说,在本发明的一个实施例中,若检测到活动主节点故障,则切换到备用主节点与其他相关的从节点进行数据交互。That is to say, in an embodiment of the present invention, if the failure of the active master node is detected, it switches to the standby master node to exchange data with other related slave nodes.

另外所有网络上的节点都采用A、B两对CAN线连接,A线路定义为主用网络,B线路定义为备用网络,所有节点在运行时,会同时往A线与B线上发送信息,但在初始默认情况下只会在A线上接收信息,但节点必须支持同时在A线与B线中接收信息,由此,当一个从节点的第一CAN通道发生故障时,从备用节点接收该节点的数据,针对其余的第一CAN通道没有发生故障的从节点,仍从主用网络接收其发送的数据,由此保证对对相关从节点数据的完整接收,保证了正常的良好运行。In addition, all nodes on the network are connected by two pairs of CAN lines, A and B. Line A is defined as the main network, and line B is defined as the backup network. When all nodes are running, they will send information to the A and B lines at the same time. However, in the initial default, only information is received on line A, but the node must support receiving information on line A and line B at the same time, so that when the first CAN channel of a slave node fails, it receives information from the standby node The data of this node, for the remaining slave nodes whose first CAN channel is not faulty, still receives the data sent by the master network, thereby ensuring the complete reception of relevant slave node data and ensuring normal and good operation.

当然,上述对本发明实施例的描述,默认主用网络和备用网络通信没有故障,在实际应用时,主用网络和备用网络均可能出现故障,因而,活动主节点自身进入操作状态后,还执行总线故障判定机制。Of course, in the above description of the embodiment of the present invention, it is assumed that the communication between the active network and the backup network is not faulty. In actual application, both the active network and the backup network may fail. Therefore, after the active master node itself enters the operating state, it also executes Bus failure determination mechanism.

具体而言,根据CAN总线特性要求,所有CAN控制器都必须包含一个发送错误计数器与一个接收错误计时器,结合数据链路层所定义的错误检测机制,当检测到总线通信异常时,错误计数器会启用,计数累加到255则节点进入bus off(总线关闭)状态。即若活动主节点内的发送错误计数器或者接收错误计数器累加到预设数值,则获知主用网络故障,切换到备用网络与其他节点进行通信。Specifically, according to the characteristics of the CAN bus, all CAN controllers must include a send error counter and a receive error timer, combined with the error detection mechanism defined by the data link layer, when an abnormal bus communication is detected, the error counter It will be enabled, and the count will be accumulated to 255, and the node will enter the bus off (bus off) state. That is, if the sending error counter or the receiving error counter in the active master node is accumulated to a preset value, it will know that the master network is faulty, and switch to the standby network to communicate with other nodes.

现要求活动主节点同时监测主用网络与备用网络总线状态,当活动主节点主用网络总线出现故障(比如,CAN线电压异常、错误帧过多导致busoff等等)时,活动主节点首先会解析备用主节点报文,判定是否启用备用主节点,如果备用主节点可以正常担任活动活动主节点角色,活动主节点停止运行进入静默状态,备用主节点启动,担任活动主节点,如果备用主节点目前处于故障状态,无法担任活动主节点角色,那当前活动主节点继续维持运行,并立即转到备用网络处理所有从节点数据,同时活动主节点会给仪表或其他设备通报主用网络当前处于故障状态,如果当前备用网络也出现了故障,则通信网络进入瘫痪状态,所有节点进入车辆特殊操作状态。The active master node is now required to monitor the status of the main network and the standby network bus at the same time. When the active master node's main network bus fails (for example, the CAN line voltage is abnormal, too many error frames cause busoff, etc.), the active master node will first Parse the message of the standby master node to determine whether to enable the standby master node. If the standby master node can normally play the role of the active master node, the active master node stops running and enters a silent state. The standby master node starts and acts as the active master node. Currently in a faulty state and cannot act as the active master node, the current active master node continues to operate and immediately transfers to the standby network to process all slave node data. At the same time, the active master node will notify the meter or other devices that the active network is currently in failure. If the current backup network also fails, the communication network enters the paralyzed state, and all nodes enter the vehicle special operation state.

其中,上述错误计数器累计的次数255,仅仅是一种示例,根据具体应用需求的不同,当活动主节点发送错误计时器或者接受错误计时器累加到任意满足要求的预设数值时,获知主用网络故障,切换到备用网络与其他节点进行通信。Among them, the number of times 255 accumulated by the above error counter is just an example. According to the specific application requirements, when the active master node sends the error timer or receives the error timer and accumulates to any preset value that meets the requirements, it knows that the main Network failure, switch to an alternate network to communicate with other nodes.

举例而言,如图5所示,主用网络总线出现短路故障即主用网络上所有节点都无法正常通信,各个节点的错误计数器都会持续累加,当各个节点判定主用网络通道进入busoff状态后,都会自行切换到备用网络接收各自所需的数据。For example, as shown in Figure 5, a short-circuit fault occurs on the main network bus, that is, all nodes on the main network cannot communicate normally, and the error counters of each node will continue to accumulate. When each node determines that the main network channel has entered the busoff state. , will automatically switch to the alternate network to receive the data they need.

需要强调的是,基于以上描述,在实际应用中,有可能CAN通道发生的故障并不是长久故障,比如网速突变导致的运行暂停等,因而,为了避免不必要的切换造成的资源的浪费,在本发明的一个实施例中,向故障CAN通道发送复位指令,以根据复位后PDO报文的接收情况,判断当前是否确实发生故障。It should be emphasized that, based on the above description, in practical applications, the failure of the CAN channel may not be a long-term failure, such as the operation suspension caused by the sudden change of network speed, etc. Therefore, in order to avoid the waste of resources caused by unnecessary switching, In one embodiment of the present invention, a reset command is sent to the faulty CAN channel, so as to determine whether a fault has indeed occurred at present according to the reception situation of the PDO message after the reset.

具体而言,在本发明的一个实施例中,在判断获知在预设的第一心跳周期内没有接收到第一节点的PDO报文之后,并不直接判断第一CAN通道故障,而是从主用网络向第一节点发送复位指令,以使得第一CAN通道进入运行初始状态。Specifically, in an embodiment of the present invention, after judging that the PDO message of the first node has not been received within the preset first heartbeat period, it is not directly judged that the first CAN channel is faulty. The primary network sends a reset instruction to the first node, so that the first CAN channel enters an initial state of operation.

进而,在主用网络上继续监听第一节点发送的PDO报文,如果在预设的与第一节点对应的第二心跳周期内没有接收到第一节点的PDO报文,则获知第一节点的第一CAN通道故障,并切换到备用网络监听所述第一节点发送的PDO报文。Further, continue to monitor the PDO message sent by the first node on the main network, and if the PDO message of the first node is not received within the preset second heartbeat cycle corresponding to the first node, the first node is informed The first CAN channel fails, and switches to the standby network to monitor the PDO message sent by the first node.

如果在预设的第二心跳周期内接收到第一节点的PDO报文,则获知第一节点的第一CAN通道故障是暂时的,已经通过复位动作排除,因而在主用网络监听第一节点发送的PDO报文。If the PDO message of the first node is received within the preset second heartbeat period, it is known that the failure of the first CAN channel of the first node is temporary and has been eliminated by the reset action, so the first node is monitored on the main network. Sent PDO message.

基于同样的原理,在切换到第二CAN通道接收第一节点发送的PDO报文时如果在预设的与第一节点对应的第一心跳周期内接收不到第一节点通过第二CAN通道发送的PDO报文,则并不直接判断第二CAN通道通信故障,而是从备用网络向第一节点发送复位指令,并在备用网络继续监听第一节点发送的PDO报文。Based on the same principle, when switching to the second CAN channel to receive the PDO message sent by the first node, if the first heartbeat period corresponding to the first node cannot be received by the first node within the preset first heartbeat period corresponding to the first node If there is a PDO message, it does not directly judge the communication failure of the second CAN channel, but sends a reset command from the backup network to the first node, and continues to monitor the PDO message sent by the first node on the backup network.

如果在与第一节点对应的第二心跳周期内接收到第一节点通过第二CAN通道发送的PDO报文,则获知第一节点的第二CAN通道故障是暂时的,已经通过复位动作排除,因而在备用网络上接收第一节点发送的数据,同时,在主用网络上接收其他正常发送PDO报文的从节点发送的数据。If the PDO message sent by the first node through the second CAN channel is received in the second heartbeat period corresponding to the first node, it is known that the fault of the second CAN channel of the first node is temporary and has been eliminated through the reset action, Therefore, the data sent by the first node is received on the standby network, and at the same time, the data sent by other slave nodes that normally send PDO messages is received on the active network.

如果在与第一节点对应的第二心跳周期内没有接收到第一节点通过第二CAN通道发送的PDO报文,则获知第一节点的第二CAN通道故障。If the PDO message sent by the first node through the second CAN channel is not received within the second heartbeat period corresponding to the first node, it is learned that the second CAN channel of the first node is faulty.

需要强调的是,上述第一心跳周期和第二心跳周期的时长,均可根据因公场景的需要自定标定,第一心跳周期和第二心跳周期可以相同,也可以不同。It should be emphasized that the durations of the first heartbeat cycle and the second heartbeat cycle can be self-calibrated according to the needs of business scenarios, and the first heartbeat cycle and the second heartbeat cycle may be the same or different.

综上所述,本发明实施例的基于CANopen协议的列车网络数据传输方法,根据预先配置的网络节点列表在主用网络上监听与活动主节点相关的各从节点通过第一CAN通道发送的PDO报文,根据对各从节点发送的PDO报文的接收情况,以及根据PDO报文中的生产禁止时间为各从节点对应设置的心跳计时器的计时情况,判断各从节点的第一CAN通道是否故障,若在预设的与第一节点对应的第一心跳周期内没有在主用网络接收到第一节点的PDO报文,则获知第一节点的第一CAN通道故障,并切换到备用网络监听第一节点通过第二CAN通道发送的PDO报文,若在预设的与第一节点对应的第一心跳周期内在备用网络接收到第一节点通过第二CAN通道发送的PDO报文,则在备用网络上接收第一节点发送的数据,同时,在主用网络上接收其他正常发送PDO报文的从节点发送的数据。由此,当某个或某些从节点在主用网络掉线时,切换到备用网络接收该部分从节点的数据,其他从节点数据依然在主用网络上接收,保证了对相关从节点数据的完整接收,保证了整车的良好运行,提高了列车网络的冗余效果。To sum up, the method for transmitting train network data based on the CANopen protocol according to the embodiment of the present invention monitors the PDO sent by each slave node related to the active master node through the first CAN channel on the master network according to the pre-configured network node list. message, according to the reception of the PDO message sent by each slave node, and the timing of the heartbeat timer corresponding to each slave node according to the production prohibition time in the PDO message, to determine the first CAN channel of each slave node. Whether it is faulty, if the PDO message of the first node is not received in the active network within the preset first heartbeat period corresponding to the first node, the first CAN channel of the first node is known to be faulty and switches to the standby The network monitors the PDO message sent by the first node through the second CAN channel. If the standby network receives the PDO message sent by the first node through the second CAN channel within the preset first heartbeat period corresponding to the first node, Then, the data sent by the first node is received on the standby network, and at the same time, the data sent by other slave nodes that normally send PDO messages is received on the primary network. Therefore, when one or some slave nodes are disconnected on the main network, they switch to the standby network to receive the data of this part of the slave nodes, and other slave node data are still received on the main network. The complete reception of the train ensures the good operation of the whole vehicle and improves the redundancy effect of the train network.

基于以上实施例,为了进一步提高基于CANopen协议的列车网络数据传输方法的稳定性与复用性,根据发送数据的情况实时展示当前列车网络的故障信息,以便于相关操作人员根据故障信息尽快维修等,以提高列车网络数据传输的稳定性。Based on the above embodiments, in order to further improve the stability and reusability of the train network data transmission method based on the CANopen protocol, the fault information of the current train network is displayed in real time according to the data sent, so that the relevant operators can repair as soon as possible according to the fault information, etc. , in order to improve the stability of train network data transmission.

图6是根据本发明第二个实施例的基于CANopen协议的列车网络数据传输方法的流程图,如图6所示,在上述步骤S104之后还包括:FIG. 6 is a flowchart of a method for transmitting train network data based on the CANopen protocol according to the second embodiment of the present invention. As shown in FIG. 6 , after the above step S104, the method further includes:

S201,若在预设的与第一节点对应的第二心跳周期内在备用网络上没有接收到第一节点发送的PDO报文,则向运行监控节点发送第一节点的第一CAN通道和第二CAN通道的当前故障消息,并显示给操作员,提示当前故障检修。S201, if the PDO message sent by the first node is not received on the standby network within the preset second heartbeat period corresponding to the first node, send the first CAN channel and the second CAN channel of the first node to the operation monitoring node The current fault message of the CAN channel, and displayed to the operator, prompting the current troubleshooting.

其中,在上述第二心跳周期内可接收正常工作的从节点发送的数据,另外上述监控节点在具体应用需求不同的情况下,可以为不同的装置,比如可以是仪表显示屏、终端设备的应用界面等,在此不做限制。The data sent by the normal working slave node can be received during the second heartbeat cycle. In addition, the monitoring node can be a different device when the specific application requirements are different, for example, it can be the application of the instrument display screen and the terminal equipment. The interface, etc., is not limited here.

具体地,如果在预设的第二心跳周期内接收到不到第一节点通过第二CAN通道发送的PDO报文,则表明第二CAN通道也发生故障,从而,为了便于相关操作人员及时获知故障情况以进行故障处理,向运行监控节点发送第一节点的第一CAN通道和第二CAN通道的当前故障消息,并显示给操作员,提示当前故障检修。Specifically, if the PDO message sent by the first node through the second CAN channel is not received within the preset second heartbeat cycle, it indicates that the second CAN channel is also faulty. Therefore, in order to facilitate relevant operators to know in time In order to carry out fault processing, the current fault message of the first CAN channel and the second CAN channel of the first node is sent to the operation monitoring node, and displayed to the operator to prompt the current fault repair.

举例而言,在本示例中,预设的第二心跳周期是a个心跳周期,运行监控节点是显示屏,则如果在备用网络上a个心跳周期依然监听不到第一节点的PDO报文,则活动主节点直接向仪表显示屏通报该第一节点主用网络与备用网络都已出现故障(故障类型为当前故障),提示对该节点主用网络与备用网络进行检修。For example, in this example, the preset second heartbeat cycle is a heartbeat cycle, and the running monitoring node is the display screen, then if the PDO message of the first node cannot be monitored for a heartbeat cycle on the standby network , the active master node directly informs the display screen of the instrument that both the primary network and the backup network of the first node have failed (the fault type is the current fault), and prompts the main network and backup network of the node to be repaired.

S202,在主用网络和备用网络上继续监听第一节点发送的PDO报文,若在预设的与第一节点对应的第一心跳周期内从主用网络接收到第一节点的PDO报文,则获知第一节点的第一CAN通道恢复通信,则切换到主用网络上接收第一节点发送的数据,并向运行监控节点发送第一节点的第二CAN通道的当前故障消息,并显示给操作员,提示当前故障检修。S202: Continue to monitor the PDO message sent by the first node on the primary network and the backup network, if the PDO message of the first node is received from the primary network within the preset first heartbeat period corresponding to the first node , then learn that the first CAN channel of the first node resumes communication, switch to the main network to receive the data sent by the first node, send the current fault message of the second CAN channel of the first node to the operation monitoring node, and display To the operator, prompts the current troubleshooting.

具体地,节点双路都出现通信故障时,活动主节点需继续在主用网络与备用网络继续监听该节点发送的数据,如若中途故障节点主用网络与备用网络其中之一恢复通信,则通过恢复的网络进行通信。Specifically, when communication failure occurs on both paths of the node, the active master node needs to continue to monitor the data sent by the node on the main network and the backup network. The restored network communicates.

举例而言,在主用网络和备用网络上继续监听第一节点通过第一CAN通道发送的PDO报文,如若中途故障节点主用网络与备用网络其中之一恢复通信,即主节点在主用网络上a个心跳周期可以接收到该第一节点的PDO报文,则主节点在恢复的网络上接收处理该第一节点数据,但仍会向运行监控节点(如仪表显示屏等)通报该第一节点该路网络为历史故障且另一路网络为当前故障。For example, continue to monitor the PDO message sent by the first node through the first CAN channel on the active network and the standby network. A heartbeat cycle on the network can receive the PDO message of the first node, then the master node will receive and process the data of the first node on the restored network, but will still notify the running monitoring node (such as the instrument display, etc.) For the first node, this network is a historical failure and the other network is a current failure.

S203,在备用网络上继续监听第一节点发送的PDO报文,若在预设的与第一节点对应的第一心跳周期内从备用网络接收到第一节点的PDO报文,则向运行监控节点发送第一节点的第一CAN通道和第二CAN通道的历史故障消息并显示给操作员,提示故障隐患检修。S203: Continue to monitor the PDO message sent by the first node on the standby network, and if the PDO message of the first node is received from the standby network within the preset first heartbeat period corresponding to the first node, send the PDO message to the operation monitor The node sends the historical fault messages of the first CAN channel and the second CAN channel of the first node and displays them to the operator, prompting the maintenance of hidden faults.

为了使得列车网络全面恢复以提高其稳定性,在备用网络上继续监听第一节点通过第二CAN通道发送的PDO报文,举例而言,如若中途故障节点主用网络与备用网络都恢复了通信,则活动主节点只需在主用网络上处理相关从节点数据,但仍会向运行监控节点(如仪表显示屏等)通报该第一节点主用网络与备用网都出现过历史故障,以便于相关操作人员排除安全隐患,提高列车网络的安全稳定性。In order to fully recover the train network and improve its stability, the standby network continues to monitor the PDO messages sent by the first node through the second CAN channel. For example, if the main network and the standby network of the faulty node have both resumed communication , the active master node only needs to process the relevant slave node data on the master network, but will still notify the operation monitoring node (such as the instrument display screen, etc.) Eliminate potential safety hazards for relevant operators and improve the safety and stability of the train network.

S204,在主用网络和备用网络上继续监听第一节点发送的PDO报文,若在预设的与第一节点对应的第一心跳周期内从备用网络接收到第一节点的PDO报文,则获知第一节点的第二CAN通道恢复通信,则从备用网络上接收第一节点发送的数据,并向运行监控节点发送第一节点的第一CAN通道的当前故障消息,并显示给操作员,提示当前故障检修。S204: Continue to monitor the PDO message sent by the first node on the primary network and the backup network. If the PDO message of the first node is received from the backup network within the preset first heartbeat cycle corresponding to the first node, Then it is learned that the second CAN channel of the first node has resumed communication, then the data sent by the first node is received from the standby network, and the current fault message of the first CAN channel of the first node is sent to the operation monitoring node and displayed to the operator. , prompting the current troubleshooting.

具体地,如果第二CAN通道相对于第一CAN通道先恢复通信,则从备用网络上接收第一节点发送的数据,并向运行监控节点发送第一节点的第一CAN通道的当前故障消息,并显示给操作员,提示当前故障检修。Specifically, if the second CAN channel first restores communication with respect to the first CAN channel, the data sent by the first node is received from the backup network, and the current fault message of the first CAN channel of the first node is sent to the operation monitoring node, And display to the operator, prompting the current troubleshooting.

S205,在主用网络上继续监听第一节点通过第一CAN通道发送的PDO报文,若在预设的与第一节点对应的第一心跳周期内从主用网络接收到第一节点的PDO报文,则切换到主用网络上接收第一节点发送的数据,并向运行监控节点发送第一节点的第一CAN通道和第二CAN通道的历史故障消息并显示给操作员,提示故障隐患检修。S205, continue to monitor the PDO message sent by the first node through the first CAN channel on the primary network, if the PDO message of the first node is received from the primary network within the preset first heartbeat period corresponding to the first node message, then switch to the main network to receive the data sent by the first node, and send the historical fault messages of the first CAN channel and the second CAN channel of the first node to the operation monitoring node and display it to the operator, indicating the hidden fault. overhaul.

具体地,在通过备用网络接收第二CAN通道发送的数据时,根据报文的情况,判断第一节点的第一CAN通道是否恢复通信,如果恢复,则切换到主用网络上接收第一节点发送的数据,并向运行监控节点发送第一节点的第一CAN通道和第二CAN通道的历史故障消息并显示给操作员,提示故障隐患检修。Specifically, when the data sent by the second CAN channel is received through the standby network, according to the situation of the message, it is judged whether the first CAN channel of the first node has resumed communication, and if so, it is switched to the main network to receive the first node. The data sent, and the historical fault messages of the first CAN channel and the second CAN channel of the first node are sent to the operation monitoring node and displayed to the operator, prompting the maintenance of hidden faults.

S206,若在预设的与第一节点对应的第二心跳周期内在备用网络上接收到第一节点发送的PDO报文,向运行监控节点发送第一节点的第一CAN通道的当前故障消息,并显示给操作员,提示当前故障检修。S206, if the PDO message sent by the first node is received on the standby network within the preset second heartbeat period corresponding to the first node, the current fault message of the first CAN channel of the first node is sent to the operation monitoring node, And display to the operator, prompting the current troubleshooting.

具体地,如果在预设的第二心跳周期内接收到第一节点通过第二CAN通道发送的PDO报文,则表明第二CAN通道可正常提供数据服务,从而,主节点会在备用网上接收处理该节点相关数据,其他节点的数据仍从主用网络上接收处理,同时主节点会向运行监控节点(如仪表显示屏等)通报该节第一点的第一CAN通道出现故障(故障类型为当前故障),提示对该第一节点主用网络进行检修。Specifically, if the PDO message sent by the first node through the second CAN channel is received within the preset second heartbeat period, it indicates that the second CAN channel can normally provide data services, so that the master node will receive it on the standby network The data related to this node is processed, and the data of other nodes is still received and processed from the main network. At the same time, the main node will notify the operation monitoring node (such as the instrument display screen, etc.) that the first CAN channel of the first point of the node is the current fault), prompting to repair the main network of the first node.

S207,在主用网络上继续监听第一节点通过第一CAN通道发送的PDO报文,若在预设的与第一节点对应的第一心跳周期内接收到第一节点的PDO报文,则获知第一节点的第一CAN通道恢复通信,则切换到主用网络上接收第一节点发送的数据。S207: Continue to monitor the PDO message sent by the first node through the first CAN channel on the primary network. If the PDO message of the first node is received within the preset first heartbeat period corresponding to the first node, then Knowing that the first CAN channel of the first node has resumed communication, it switches to the main network to receive the data sent by the first node.

S208,向运行监控节点发送第一节点的第一CAN通道的历史故障消息并显示给操作员,提示故障隐患检修。S208: Send the historical fault message of the first CAN channel of the first node to the operation monitoring node and display it to the operator, prompting the maintenance of the hidden fault.

具体地,在提示相关操作人员对第一节点的主用网络进行检修后,在主用网络上继续监听第一节点通过第一CAN通道发送的PDO报文,如若中途故障第一节点主用网络恢复通信,比如,主节点在主用网络上a个心跳周期可以接收到第一节点的PDO报文,则主节点恢复到主用网络上接收该第一节点数据,停止从备用网络的处理,但主节点仍会向运行监控节点(如仪表显示屏等)通报第一节点主用网络出现故障(故障类型为历史故障),同样提示对该第一节点主用网络进行检修,确认是否存在故障隐患。Specifically, after prompting the relevant operator to overhaul the primary network of the first node, continue to monitor the PDO message sent by the first node through the first CAN channel on the primary network. If the primary network of the first node fails halfway through To restore communication, for example, the master node can receive the PDO message of the first node in a heartbeat cycle on the main network, then the master node resumes to receive the data of the first node on the main network, and stops processing from the standby network, However, the master node will still notify the operation monitoring node (such as the instrument display screen, etc.) of the failure of the main network of the first node (the fault type is historical failure), and will also prompt to repair the main network of the first node to confirm whether there is a failure. hidden danger.

综上所述,本发明实施例的基于CANopen协议的列车网络数据传输方法,根据列车网络的实时情况,进行主用网络和备用网络的选择,并在监控节点向相关操作人员进行相应的显示,提高了列车网络数据传输方法的稳定性与复用性。To sum up, the train network data transmission method based on the CANopen protocol according to the embodiment of the present invention selects the main network and the backup network according to the real-time situation of the train network, and displays it to the relevant operators at the monitoring node. The stability and reusability of the train network data transmission method are improved.

为了更加清楚的说明本发明实施例的基于CANopen协议的列车网络数据传输方法,下面以该方法集中在从节点侧描述。In order to illustrate the train network data transmission method based on the CANopen protocol according to the embodiment of the present invention more clearly, the following describes the method in the slave node side.

其中,对于从节点的设计要求如下:Among them, the design requirements for slave nodes are as follows:

从节点上电后接收到主节点启动指令后,进入操作状态,根据自身功能并结合主节点同步包频率来发送PDO数据,要求从节点向主用网络与备用网络同时发送数据,但默认情况下只从主用网络接收主节点的同步包、时间戳等特殊对象报文,只有在主用网络上a个报文周期接收不到主节点特殊对象报文时,才会切换到备用网络去接收,如果在备用网络依然a个报文周期接收不到活动主节点特殊对象报文,那么此时各从节点进入特殊情况处理模式。After the slave node is powered on and receives the master node startup command, it enters the operating state, and sends PDO data according to its own function and in combination with the master node synchronization packet frequency. Only receive the master node's synchronization packets, time stamps and other special object packets from the active network, and switch to the standby network to receive only when the master node cannot receive the master node's special object packets for a packet cycle on the active network. , if the active master node still cannot receive the special object message of the active master node in a message cycle on the standby network, then each slave node enters the special case processing mode at this time.

图7是根据本发明第三个实施例的基于CANopen协议的列车网络数据传输方法的流程图,如图7所示,该方法包括:FIG. 7 is a flowchart of a train network data transmission method based on the CANopen protocol according to the third embodiment of the present invention. As shown in FIG. 7 , the method includes:

S301,根据预先配置的网络节点列表在主用网络上监听与从节点相关的各节点通过第一CAN通道发送的PDO报文。S301 , monitor the PDO message sent by each node related to the slave node through the first CAN channel on the master network according to the preconfigured network node list.

可以理解,根据网络拓扑图建立与从节点对应的网络节点列表,其中,网络节点列表包括:与从节点相关的各节点标识和对应的心跳计时器,其中,各节点对应的心跳计时器根据PDO报文中的生产禁止时间设置。It can be understood that a network node list corresponding to the slave node is established according to the network topology diagram, wherein the network node list includes: each node identifier related to the slave node and the corresponding heartbeat timer, wherein the heartbeat timer corresponding to each node is based on the PDO. Production inhibit time setting in telegram.

进而,从主用网络接收活动主节点发送网络控制指令,启动第一CAN通道和第二CAN通道进入PDO报文操作模式,并启动与从节点相关的各节点对应的心跳计时器。Further, the active master node sends a network control command from the master network, starts the first CAN channel and the second CAN channel to enter the PDO message operation mode, and starts the heartbeat timers corresponding to each node related to the slave node.

具体而言,在实际执行过程中,根据预先配置的网络节点列表监听与从节点相关的各节点通过第一CAN通道发送的PDO报文,在实际应用中,默认状态下各个从节点根据网络节点列表在主用网络上监测相关从节点的PDO报文发送情况。Specifically, in the actual execution process, the PDO message sent by each node related to the slave node through the first CAN channel is monitored according to the pre-configured network node list. The list monitors the sending of PDO messages of related slave nodes on the master network.

S302,根据对各节点发送的PDO报文的接收情况,以及根据PDO报文中的生产禁止时间为各节点对应设置的心跳计时器的计时情况,判断各节点的第一CAN通道是否故障。S302: Determine whether the first CAN channel of each node is faulty according to the reception of the PDO message sent by each node and the timing of the heartbeat timer correspondingly set for each node according to the production prohibition time in the PDO message.

应当理解的是,在PDO报文发送机制中,子索引03h生产禁止时间表示预设时间内接收处理一个PDO数据,如果在预设时间内未接收到对应PDO数据,则节点会记录该PDO报文丢帧,当一个生产禁止时间内未接收到PDO数据,则心跳计数器开始计数,当心跳计数器累加到一个预设值时,主节点会判定该节点掉线。因此,在本发明实施例中,针对生产禁止时间设置心跳计时器的计时情况,从而,根据对各从节点发送的PDO报文的接收情况,以及根据PDO报文中的生产禁止时间为各从节点对应设置的心跳计时器的计时情况,判断各从节点的第一CAN通道是否故障。It should be understood that in the PDO message sending mechanism, the sub-index 03h production prohibition time indicates that a PDO data is received and processed within the preset time. If the corresponding PDO data is not received within the preset time, the node will record the PDO message. If the frame is lost, when the PDO data is not received within a production prohibition time, the heartbeat counter starts to count. When the heartbeat counter accumulates to a preset value, the master node will determine that the node is offline. Therefore, in the embodiment of the present invention, the timing of the heartbeat timer is set for the production prohibition time, so that according to the reception situation of the PDO message sent by each slave node, and according to the production prohibition time in the PDO message, each slave According to the timing of the heartbeat timer set corresponding to the node, it is judged whether the first CAN channel of each slave node is faulty.

其中,如果从节点的第一CAN通道通信良好,则在一定的时间内,活动主节点可以正常接收从节点发送的PDO报文,否则,从节点的第一CAN通道通信故障。Wherein, if the communication of the first CAN channel of the slave node is good, the active master node can normally receive the PDO message sent by the slave node within a certain period of time; otherwise, the communication of the first CAN channel of the slave node is faulty.

S303,若在预设的与第二节点对应的心跳周期内没有在主用网络上接收到第二节点的PDO报文,则获知第二节点的第一CAN通道故障,并切换到备用网络监听第二节点通过第二CAN通道发送的PDO报文。S303, if the PDO message of the second node is not received on the main network within the preset heartbeat period corresponding to the second node, learn that the first CAN channel of the second node is faulty, and switch to the standby network to monitor The PDO message sent by the second node through the second CAN channel.

其中,第二节点为任意一个与从节点相关的从节点或活动主节点。The second node is any slave node or active master node related to the slave node.

可以理解,在实际应用时,若判断获知在与第二节点对应的心跳周期内没有接收到第二节点的PDO报文,则获知第二节点的第一CAN通道故障,从而为了维持列车网络的正常运行,切换到备用网络监听第二节点通过第二CAN通道发送的PDO报文。It can be understood that, in practical application, if it is determined that the PDO message of the second node is not received within the heartbeat period corresponding to the second node, it is known that the first CAN channel of the second node is faulty, so as to maintain the train network. In normal operation, switch to the standby network to monitor the PDO message sent by the second node through the second CAN channel.

S304,若在预设的与第二节点对应的心跳周期内在备用网络接收到第二节点通过第二CAN通道发送的PDO报文,则在备用网络上接收第二节点发送的数据,同时,在主用网络上接收其他正常发送PDO报文的节点发送的数据。S304, if the standby network receives the PDO message sent by the second node through the second CAN channel within the preset heartbeat period corresponding to the second node, then receive the data sent by the second node on the standby network, and at the same time, in the standby network The primary network receives data sent by other nodes that normally send PDO packets.

具体地,如果在与第二节点对应的心跳周期内接收到第二节点通过第二CAN通道发送的PDO报文,则表明第二CAN通道功能正常,从而在备用网络上接收第二节点发送的数据。Specifically, if the PDO message sent by the second node through the second CAN channel is received within the heartbeat period corresponding to the second node, it indicates that the second CAN channel is functioning normally, so that the second node can receive the message sent by the second node on the standby network. data.

当然,上述对本发明实施例的描述,默认主用网络和备用网络通信没有故障,在实际应用时,主用网络和备用网络均可能出现故障,因而,从节点自身进入操作状态后,还执行总线故障判定机制。Of course, in the above description of the embodiments of the present invention, it is assumed that the communication between the main network and the backup network is not faulty. In practical applications, both the main network and the backup network may fail. Therefore, after the slave node enters the operating state, it also executes the bus. Failure determination mechanism.

也就是说,从节点会实时监测主用网络与备用网络总线状态(通过错误计数器实现),当从节点第一CAN通道出现故障(CAN线电压异常、错误帧过多导致busoff等等)时,立即转到备用网络处理所有从节点数据,同时从节点会记录主用网络当前处于总线通信异常故障状态,如果当前备用网络同样也出现了总线故障,则通信网络进入瘫痪状态,所有节点进入车辆特殊操作状态。That is to say, the slave node will monitor the bus status of the main network and the backup network in real time (implemented by error counters). Immediately go to the standby network to process all slave node data, and the slave node will record that the main network is currently in a bus communication failure state. If the current standby network also has a bus failure, the communication network will enter a paralyzed state, and all nodes will enter the vehicle special state. operational status.

具体而言,若从节点内的发送错误计数器或者接收错误计数器累加到预设数值,则获知主用网络故障,切换到备用网络与其他节点进行通信。Specifically, if the sending error counter or the receiving error counter in the slave node is accumulated to a preset value, it will know that the primary network is faulty, and switch to the backup network to communicate with other nodes.

综上所述,本发明实施例的基于CANopen协议的列车网络数据传输方法,根据预先配置的网络节点列表在主用网络上监听与从节点相关的各节点通过第一CAN通道发送的PDO报文,根据对各节点发送的PDO报文的接收情况,以及根据PDO报文中的生产禁止时间为各节点对应设置的心跳计时器的计时情况,判断各节点的第一CAN通道是否故障,若在预设的与第二节点对应的心跳周期内没有在主用网络上接收到第二节点的PDO报文,则获知第二节点的第一CAN通道故障,并切换到备用网络监听第二节点通过第二CAN通道发送的PDO报文,若在预设的与第二节点对应的心跳周期内在备用网络接收到第二节点通过第二CAN通道发送的PDO报文,则在备用网络上接收第二节点发送的数据,同时,在主用网络上接收其他正常发送PDO报文的节点发送的数据。由此,当某个或某些从节点在主用网络掉线时,切换到备用网络接收该部分从节点的数据,其他从节点数据依然在主用网络上接收,保证了对相关从节点数据的完整接收,保证了整车的良好运行,提高了列车网络的冗余效果。To sum up, the method for transmitting train network data based on the CANopen protocol according to the embodiment of the present invention monitors the PDO message sent by each node related to the slave node through the first CAN channel on the master network according to the pre-configured network node list. , according to the reception of the PDO message sent by each node, and the timing of the heartbeat timer set corresponding to each node according to the production prohibition time in the PDO message, to determine whether the first CAN channel of each node is faulty. If the PDO message of the second node is not received on the main network within the preset heartbeat period corresponding to the second node, then learn that the first CAN channel of the second node is faulty, and switch to the standby network to monitor the passage of the second node. For the PDO message sent by the second CAN channel, if the standby network receives the PDO message sent by the second node through the second CAN channel within the preset heartbeat period corresponding to the second node, the standby network receives the second PDO message. The data sent by the node, and at the same time, the data sent by other nodes that normally send PDO messages are received on the main network. Therefore, when one or some slave nodes are disconnected on the main network, they switch to the standby network to receive the data of this part of the slave nodes, and other slave node data are still received on the main network. The complete reception of the train ensures the good operation of the whole vehicle and improves the redundancy effect of the train network.

基于以上实施例,为了进一步提高基于CANopen协议的列车网络数据传输方法的稳定性与复用性,从节点记录发送数据的情况实时展示当前列车网络的故障信息,以便于相关操作人员根据故障信息尽快维修等。Based on the above embodiment, in order to further improve the stability and reusability of the train network data transmission method based on the CANopen protocol, the status of the data sent from the node records and the current train network fault information is displayed in real time, so that the relevant operators can quickly follow the fault information according to the fault information. maintenance etc.

图8是根据本发明第四个实施例的基于CANopen协议的列车网络数据传输方法的流程图,如图8所示,在上述步骤S304之后还包括:FIG. 8 is a flowchart of a method for transmitting train network data based on the CANopen protocol according to the fourth embodiment of the present invention. As shown in FIG. 8 , after the above step S304, the method further includes:

S401,如果在备用网络接收到第二节点通过第二CAN通道发送的PDO报文,记录第二节点的第一CAN通道的当前故障消息。S401, if the PDO message sent by the second node through the second CAN channel is received on the standby network, record the current fault message of the first CAN channel of the second node.

具体地,如果从节点可以接收到主用网络掉线的第二节点发送的数据,则从节点会在备用网上接收处理该节点相关数据,其他从节点的数据仍从主用网络上接收处理,并记录该第二节点主用网络通信故障。Specifically, if the slave node can receive the data sent by the second node whose main network is offline, the slave node will receive and process the data related to the node on the standby network, and the data of other slave nodes will still be received and processed from the main network. And record the main network communication failure of the second node.

S402,在主用网络上继续监听第二节点通过第一CAN通道发送的PDO报文,若在预设的与第二节点对应的心跳周期内接收到第二节点的PDO报文,则获知第二节点的第一CAN通道恢复通信,则切换到主用网络上接收第二节点发送的数据。S402: Continue to monitor the PDO message sent by the second node through the first CAN channel on the primary network, and if the PDO message of the second node is received within the preset heartbeat period corresponding to the second node, learn the first The first CAN channel of the two nodes resumes communication, and then switches to the main network to receive the data sent by the second node.

具体地,如若中途故障的第二节点主用网络恢复通信,比如,从节点在主用网络上连续b个心跳周期可以接收到该第二节点的PDO报文,则从节点恢复到主用网络上接收该第二节点数据,停止从备用网络的处理。Specifically, if the main network of the second node that fails halfway restores communication, for example, the slave node can receive the PDO message of the second node for b consecutive heartbeat cycles on the main network, then the slave node restores to the main network On receiving the second node data, stop processing from the standby network.

S403,如果在预设的心跳周期内接收不到第二节点通过第二CAN通道发送的PDO报文,则记录第二节点的第一CAN通道和第二CAN通道的当前故障消息。S403, if the PDO message sent by the second node through the second CAN channel cannot be received within the preset heartbeat period, record the current fault messages of the first CAN channel and the second CAN channel of the second node.

具体地,如果在预设的心跳周期内接收不到第二节点通过第二CAN通道发送的PDO报文,比如,在备用网络上连续b个心跳周期依然监听不到该第二节点的PDO报文,则从节点视该第二节点已掉线,记录该第二节点主用网络和备用网络通信故障。Specifically, if the PDO message sent by the second node through the second CAN channel cannot be received within the preset heartbeat cycle, for example, the PDO message of the second node cannot be monitored for b consecutive heartbeat cycles on the standby network. If the text is entered, the slave node regards the second node as offline, and records the communication failure between the primary network and the backup network of the second node.

S404,在主用网络和备用网络上继续监听第二节点的PDO报文,若在预设的与第二节点对应的心跳周期内在主用网络接收到第二节点的PDO报文,则获知第二节点的第一CAN通道恢复通信,则切换到主用网络上接收第二节点发送的数据。S404: Continue to monitor the PDO message of the second node on the primary network and the backup network, and if the primary network receives the PDO message of the second node within the preset heartbeat period corresponding to the second node, learn the first The first CAN channel of the two nodes resumes communication, and then switches to the main network to receive the data sent by the second node.

具体地,第二节点双路都出现通信故障时,第二节点需继续在主用网络与备用网络继续监听该第二节点PDO报文,如若中途故障节点主用网络与备用网络其中之一恢复通信,比如,第二节点在主用网络上连续c个心跳周期可以接收到该第二节点的PDO报文,则从节点在恢复的主用网络上接收处理该第二节点数据,但仍会记录该第二节点该路主用网络为历史故障且另一路网络为当前故障。Specifically, when both channels of the second node have communication failures, the second node needs to continue to monitor the PDO messages of the second node on the main network and the backup network. If one of the main network and the backup network of the failed node recovers For example, if the second node can receive the PDO message of the second node on the main network for c consecutive heartbeat cycles, the slave node will receive and process the data of the second node on the restored main network, but still It is recorded that the primary network of the second node is a historical fault and the other network is a current fault.

S405,在主用网络和备用网络上继续监听第二节点发送的PDO报文,若在预设的与第二节点对应的心跳周期内从备用网络接收到第一从节点的PDO报文,则获知第二节点的第二CAN通道恢复通信,则从备用网络上接收第二节点发送的数据。S405. Continue to monitor the PDO message sent by the second node on the primary network and the backup network. If the PDO message of the first slave node is received from the backup network within the preset heartbeat period corresponding to the second node, then Knowing that the second CAN channel of the second node has resumed communication, the data sent by the second node is received from the standby network.

举例而言,第二节点在备用网络上连续c个心跳周期可以接收到该第二节点的PDO报文,则从节点在恢复的备用网络上接收处理该第二节点数据,但仍会记录该第二节点该路备用网络为历史故障且另一路网络为当前故障。For example, if the second node can receive the PDO message of the second node for c consecutive heartbeat cycles on the standby network, the slave node receives and processes the data of the second node on the recovered standby network, but still records the data of the second node. In the second node, the standby network of the channel is a historical failure and the network of the other channel is a current failure.

S406,在主用网络上继续监听第二节点发送的PDO报文,若在预设的与第二节点对应的心跳周期内从主用网络接收到第二节点的PDO报文,则切换到主用网络上接收第二节点发送的数据。S406: Continue to monitor the PDO message sent by the second node on the primary network, and if the PDO message of the second node is received from the primary network within the preset heartbeat period corresponding to the second node, switch to the primary network Use the network to receive the data sent by the second node.

具体地,如若中途故障节点主用网络和备用网络都恢复了通信,则从节点只需在主用网络上处理该节点数据,但仍会记录该节点主用网络和备用网络都出现过历史故障。Specifically, if the communication between the primary network and the backup network of the faulty node is restored in the middle, the slave node only needs to process the data of the node on the primary network, but it will still record the historical failure of the primary network and the backup network of the node. .

需要强调的是,集中在活动主节点侧描述的基于CANopen协议的列车网络数据传输方法,与上述集中在从节点侧描述的基于CANopen协议的列车网络数据传输方法对应,其实现原理类似,本实施例中未公布的细节,在此不再赘述。It should be emphasized that the CANopen protocol-based train network data transmission method described on the active master node side corresponds to the CANopen protocol-based train network data transmission method described above on the slave node side, and its implementation principle is similar. The unpublished details in the example will not be repeated here.

综上所述,本发明实施例的基于CANopen协议的列车网络数据传输方法,根据列车网络的实时情况,进行主用网络和备用网络的选择,并在监控节点向相关操作人员进行相应的显示,提高了列车网络数据传输方法的稳定性与复用性。To sum up, the train network data transmission method based on the CANopen protocol according to the embodiment of the present invention selects the main network and the backup network according to the real-time situation of the train network, and displays it to the relevant operators at the monitoring node. The stability and reusability of the train network data transmission method are improved.

为了实现上述实施例,本发明提出了一种活动主节点。图9是根据本发明第一个实施例的活动主节点的结构示意图,如图9所示,该活动主节点包括:第一监听模块101、第一判断模块102、第一获知模块103和第一接收模块104。In order to realize the above embodiments, the present invention proposes an active master node. FIG. 9 is a schematic structural diagram of an active master node according to the first embodiment of the present invention. As shown in FIG. 9 , the active master node includes: a first monitoring module 101, a first judgment module 102, a first learning module 103, and a first monitoring module 102. A receiving module 104 .

其中,第一监听模块101,用于根据预先配置的网络节点列表在主用网络上监听与活动主节点相关的各从节点通过第一CAN通道发送的PDO报文。The first monitoring module 101 is configured to monitor the PDO message sent by each slave node related to the active master node through the first CAN channel on the master network according to the preconfigured network node list.

图10是根据本发明第二个实施例的活动主节点的结构示意图,如图10所示,在如图9所示的基础上,该活动主节点还包括:第一建立模块105和第一控制模块106。FIG. 10 is a schematic structural diagram of an active master node according to a second embodiment of the present invention. As shown in FIG. 10 , on the basis of FIG. 9 , the active master node further includes: a first establishment module 105 and a first Control module 106 .

其中,第一建立模块105,用于根据网络拓扑图建立与活动主节点对应的网络节点列表,其中,网络节点列表包括:与活动主节点相关的各从节点标识和对应的心跳计时器,其中,各从节点对应的心跳计时器根据PDO报文中的生产禁止时间设置。The first establishment module 105 is configured to establish a network node list corresponding to the active master node according to the network topology diagram, wherein the network node list includes: each slave node identifier related to the active master node and the corresponding heartbeat timer, wherein , the heartbeat timer corresponding to each slave node is set according to the production prohibition time in the PDO message.

第一控制模块106,用于从主用网络和备用网络同时向所有从节点发送网络控制指令,控制从节点的第一CAN通道和第二CAN通道进入PDO报文操作模式,并启动与活动主节点相关的各从节点对应的心跳计时器。The first control module 106 is used to simultaneously send network control instructions to all slave nodes from the master network and the backup network, control the first CAN channel and the second CAN channel of the slave nodes to enter the PDO message operation mode, and start the communication with the active master. The heartbeat timer corresponding to each slave node related to the node.

第一判断模块102,用于根据对各从节点发送的PDO报文的接收情况,以及根据PDO报文中的生产禁止时间为各从节点对应设置的心跳计时器的计时情况,判断各从节点的第一CAN通道是否故障。The first judging module 102 is configured to judge each slave node according to the reception situation of the PDO message sent by each slave node, and according to the timing situation of the heartbeat timer correspondingly set for each slave node according to the production prohibition time in the PDO message Whether the first CAN channel is faulty.

第一获知模块103,用于在预设的与第一节点对应的第一心跳周期内没有在主用网络接收到第一节点的PDO报文时,获知第一节点的第一CAN通道故障。The first learning module 103 is configured to learn the fault of the first CAN channel of the first node when the PDO message of the first node is not received in the primary network within the preset first heartbeat period corresponding to the first node.

在本发明的一个实施例中,第一监听模块101,还用于切换到备用网络监听第一节点通过第二CAN通道发送的PDO报文,其中,第一节点为任意一个与活动主节点相关的从节点。In an embodiment of the present invention, the first monitoring module 101 is further configured to switch to the standby network to monitor the PDO message sent by the first node through the second CAN channel, wherein the first node is any one related to the active master node the slave node.

第一接收模块104,用于在预设的与第一节点对应的第一心跳周期内在备用网络接收到第一节点通过第二CAN通道发送的PDO报文时,在备用网络上接收第一节点发送的数据,同时,在主用网络上接收其他正常发送PDO报文的从节点发送的数据。The first receiving module 104 is configured to receive the first node on the standby network when the standby network receives the PDO message sent by the first node through the second CAN channel within the preset first heartbeat period corresponding to the first node At the same time, the data sent by other slave nodes that normally send PDO messages is received on the master network.

图11是根据本发明第三个实施例的活动主节点的结构示意图,如图11所示,在如图9所示的基础上,该活动主节点还包括:第一发送模块107。FIG. 11 is a schematic structural diagram of an active master node according to a third embodiment of the present invention. As shown in FIG. 11 , on the basis of FIG. 9 , the active master node further includes: a first sending module 107 .

第一发送模块107,用于在预设的与第一节点对应的第一心跳周期内没有在主用网络接收到第一节点的PDO报文之后,从主用网络向第一节点发送复位指令。The first sending module 107 is configured to send a reset instruction from the active network to the first node after the PDO message of the first node is not received in the active network within the preset first heartbeat period corresponding to the first node .

第一监听模块101,还用于在主用网络上继续监听第一节点发送的PDO报文。The first monitoring module 101 is further configured to continue monitoring the PDO message sent by the first node on the active network.

第一判断模块102,还用于检测在预设的与第一节点对应的第二心跳周期内是否在主用网络接收到第一节点的PDO报文。The first judging module 102 is further configured to detect whether the PDO packet of the first node is received in the active network within the preset second heartbeat period corresponding to the first node.

第一获知模块103,还用于在预设的与第一节点对应的第二心跳周期内没有在主用网络接收到第一节点的PDO报文时,则获知第一节点的第一CAN通道故障。The first learning module 103 is further configured to learn the first CAN channel of the first node when the PDO message of the first node is not received in the active network within the preset second heartbeat period corresponding to the first node Fault.

图12是根据本发明第四个实施例的活动主节点的结构示意图,如图13所示,在如图9所示的基础上,该活动主节点还包括:第二发送模块108。FIG. 12 is a schematic structural diagram of an active master node according to a fourth embodiment of the present invention. As shown in FIG. 13 , on the basis of FIG. 9 , the active master node further includes: a second sending module 108 .

其中,在本实施例中,第二发送模块108,用于在预设的与第一节点对应的第一心跳周期内没有在备用网络接收到第一节点的PDO报文时,从备用网络向第一节点发送复位指令。Wherein, in this embodiment, the second sending module 108 is configured to send the PDO message from the standby network to the standby network when the PDO message of the first node is not received in the standby network within the preset first heartbeat period corresponding to the first node. The first node sends a reset command.

第一监听模块101,还用于在备用网络继续监听第一节点发送的PDO报文。The first monitoring module 101 is further configured to continue monitoring the PDO message sent by the first node on the standby network.

第一接收模块104,还用于在预设的与第一节点对应的第二心跳周期内在备用网络上接收到第一节点发送的PDO报文时,在备用网络上接收第一节点发送的数据,同时,在主用网络上接收其他正常发送PDO报文的从节点发送的数据。The first receiving module 104 is further configured to receive the data sent by the first node on the standby network when receiving the PDO message sent by the first node on the standby network within the preset second heartbeat period corresponding to the first node , and at the same time, receive data sent by other slave nodes that normally send PDO messages on the master network.

在本发明的一个实施例中,图13是根据本发明第五个实施例的活动主节点的结构示意图,如图13所示,在如图9所示的基础上,该活动主节点还包括:第一切换模块109。In an embodiment of the present invention, FIG. 13 is a schematic structural diagram of an active master node according to a fifth embodiment of the present invention. As shown in FIG. 13 , on the basis shown in FIG. 9 , the active master node further includes : the first switching module 109 .

其中,第一切换模块109,用于在活动主节点内的发送错误计数器或者接收错误计数器累加到预设数值时,获知主用网络故障,切换到备用网络与其他节点进行通信。Wherein, the first switching module 109 is configured to know the failure of the primary network when the sending error counter or the receiving error counter in the active master node is accumulated to a preset value, and switch to the backup network to communicate with other nodes.

图14是根据本发明第六个实施例的活动主节点的结构示意图,如图15所示,在如图9所示的基础上,该活动主节点还包括:第二切换模块110。FIG. 14 is a schematic structural diagram of an active master node according to a sixth embodiment of the present invention. As shown in FIG. 15 , on the basis of FIG. 9 , the active master node further includes: a second switching module 110 .

其中,第二切换模块110,用于在检测到活动主节点故障时,切换到备用主节点与其他相关的从节点进行数据交互。Wherein, the second switching module 110 is configured to switch to the standby master node to exchange data with other related slave nodes when the failure of the active master node is detected.

综上所述,本发明实施例的主节点,根据预先配置的网络节点列表在主用网络上监听与活动主节点相关的各从节点通过第一CAN通道发送的PDO报文,根据对各从节点发送的PDO报文的接收情况,以及根据PDO报文中的生产禁止时间为各从节点对应设置的心跳计时器的计时情况,判断各从节点的第一CAN通道是否故障,若在预设的与第一节点对应的第一心跳周期内没有在主用网络接收到第一节点的PDO报文,则获知第一节点的第一CAN通道故障,并切换到备用网络监听第一节点通过第二CAN通道发送的PDO报文,若在预设的与第一节点对应的第一心跳周期内在备用网络接收到第一节点通过第二CAN通道发送的PDO报文,则在备用网络上接收第一节点发送的数据,同时,在主用网络上接收其他正常发送PDO报文的从节点发送的数据。由此,当某个或某些从节点在主用网络掉线时,切换到备用网络接收该部分从节点的数据,其他从节点数据依然在主用网络上接收,保证了对相关从节点数据的完整接收,保证了整车的良好运行,提高了列车网络的冗余效果。To sum up, the master node in the embodiment of the present invention monitors the PDO messages sent by the slave nodes related to the active master node through the first CAN channel on the master network according to the pre-configured network node list, The reception of the PDO message sent by the node, and the timing of the heartbeat timer corresponding to each slave node according to the production prohibition time in the PDO message, to determine whether the first CAN channel of each slave node is faulty, if the preset In the first heartbeat period corresponding to the first node, the PDO message of the first node is not received in the main network, then the first CAN channel of the first node is known to be faulty, and it switches to the standby network to monitor the first node through the first node. For the PDO message sent by the two CAN channels, if the standby network receives the PDO message sent by the first node through the second CAN channel within the preset first heartbeat period corresponding to the first node, the second CAN channel will be received on the standby network. The data sent by a node, at the same time, the data sent by other slave nodes that normally send PDO messages are received on the master network. Therefore, when one or some slave nodes are disconnected on the main network, they switch to the standby network to receive the data of this part of the slave nodes, and other slave node data are still received on the main network. The complete reception of the train ensures the good operation of the whole vehicle and improves the redundancy effect of the train network.

图15是根据本发明第七个实施例的活动主节点的结构示意图,如图15所示,在如图9所示的基础上,该活动主节点还包括:第一提示模块111、第二提示模块112。FIG. 15 is a schematic structural diagram of an active master node according to a seventh embodiment of the present invention. As shown in FIG. 15 , on the basis of FIG. 9 , the active master node further includes: a first prompt module 111 , a second Prompt module 112 .

其中,第一提示模块111,用于在接收到第一节点通过第二CAN通道发送的PDO报文之后,向运行监控节点发送第一节点的第一CAN通道的当前故障消息,并显示给操作员,提示当前故障检修。The first prompt module 111 is configured to send the current fault message of the first CAN channel of the first node to the operation monitoring node after receiving the PDO message sent by the first node through the second CAN channel, and display it to the operator staff, prompting the current troubleshooting.

在本实施例中,第一监听模块101,还用于在主用网络上继续监听第一节点通过第一CAN通道发送的PDO报文。In this embodiment, the first monitoring module 101 is further configured to continue monitoring the PDO message sent by the first node through the first CAN channel on the primary network.

第一获知模块103,还用于在预设的与第一节点对应的第一心跳周期内接收到第一节点的PDO报文时,获知第一节点的第一CAN通道恢复通信。The first learning module 103 is further configured to learn that the first CAN channel of the first node resumes communication when the PDO message of the first node is received within the preset first heartbeat period corresponding to the first node.

第一接收模块104,还用于切换到主用网络上接收第一节点发送的数据。The first receiving module 104 is further configured to switch to the active network to receive data sent by the first node.

其中,在本发明的一个实施例中,第一提示模块111,还用于在切换到主用网络上接收第一节点发送的数据之后,向运行监控节点发送第一节点的第一CAN通道的历史故障消息并显示给操作员,提示故障隐患检修。Wherein, in an embodiment of the present invention, the first prompting module 111 is further configured to send the first CAN channel of the first node to the operation monitoring node after switching to the main network to receive the data sent by the first node. Historical fault messages are displayed to the operator, prompting the repair of hidden troubles.

第二提示模块112,用于在预设的与第一节点对应的第二心跳周期内在备用网络上没有接收到第一节点发送的PDO报文时,向运行监控节点发送第一节点的第一CAN通道和第二CAN通道的当前故障消息,并显示给操作员,提示当前故障检修。The second prompting module 112 is configured to send the first node's first message to the operation monitoring node when the PDO message sent by the first node is not received on the standby network within the preset second heartbeat period corresponding to the first node. The current fault messages of the CAN channel and the second CAN channel are displayed to the operator, prompting the current troubleshooting.

在本实施例中,第一监听模块101,还用于在主用网络和备用网络上继续监听第一节点发送的PDO报文。In this embodiment, the first monitoring module 101 is further configured to continue monitoring the PDO message sent by the first node on the active network and the standby network.

第一获知模块103,还用于在预设的与第一节点对应的第一心跳周期内从主用网络接收到第一节点的PDO报文时,获知第一节点的第一CAN通道恢复通信。The first learning module 103 is further configured to learn that the first CAN channel of the first node resumes communication when the PDO message of the first node is received from the active network within the preset first heartbeat period corresponding to the first node .

第一接收模块104,还用于切换到主用网络上接收第一节点发送的数据。The first receiving module 104 is further configured to switch to the active network to receive data sent by the first node.

在本发明的一个实施例中,第二提示模块112,还用于向运行监控节点发送第一节点的第二CAN通道的当前故障消息,并显示给操作员,提示当前故障检修。In an embodiment of the present invention, the second prompting module 112 is further configured to send the current fault message of the second CAN channel of the first node to the operation monitoring node, and display it to the operator to prompt the current fault repair.

第一监听模块101,还用于在备用网络上继续监听第一节点发送的PDO报文。The first monitoring module 101 is further configured to continue monitoring the PDO message sent by the first node on the standby network.

第二提示模块112,还用于在预设的与第一节点对应的第一心跳周期内从备用网络接收到第一节点的PDO报文时,向运行监控节点发送第一节点的第一CAN通道和第二CAN通道的历史故障消息并显示给操作员,提示故障隐患检修。The second prompting module 112 is further configured to send the first CAN of the first node to the operation monitoring node when the PDO message of the first node is received from the standby network within the preset first heartbeat period corresponding to the first node The historical fault messages of the channel and the second CAN channel are displayed to the operator, prompting the repair of hidden troubles.

在本发明的一个实施例中,第一监听模块101,还用于在主用网络和备用网络上继续监听第一节点发送的PDO报文。In an embodiment of the present invention, the first monitoring module 101 is further configured to continue monitoring the PDO message sent by the first node on the active network and the standby network.

第一获知模块103,还用于在预设的与第一节点对应的第一心跳周期内从备用网络接收到第一节点的PDO报文时,获知第一节点的第二CAN通道恢复通信。The first learning module 103 is further configured to learn that the second CAN channel of the first node resumes communication when the PDO message of the first node is received from the standby network within the preset first heartbeat period corresponding to the first node.

第一接收模块104,还用于从备用网络上接收第一节点发送的数据。The first receiving module 104 is further configured to receive data sent by the first node from the standby network.

第二提示模块112,还用于向运行监控节点发送第一节点的第一CAN通道的当前故障消息,并显示给操作员,提示当前故障检修。The second prompting module 112 is further configured to send the current fault message of the first CAN channel of the first node to the operation monitoring node, and display it to the operator to prompt the current fault repair.

第一监听模块101,还用于在主用网络上继续监听第一节点通过第一CAN通道发送的PDO报文。The first monitoring module 101 is further configured to continue monitoring the PDO message sent by the first node through the first CAN channel on the primary network.

第一接收模块104,还用于在预设的与第一节点对应的第一心跳周期内从主用网络接收到第一节点的PDO报文时,切换到主用网络上接收第一节点发送的数据。The first receiving module 104 is further configured to switch to the active network to receive the transmission from the first node when receiving the PDO message of the first node from the active network within the preset first heartbeat period corresponding to the first node The data.

第二提示模块112,还用于向运行监控节点发送第一节点的第一CAN通道和第二CAN通道的历史故障消息并显示给操作员,提示故障隐患检修。The second prompting module 112 is further configured to send the historical fault messages of the first CAN channel and the second CAN channel of the first node to the operation monitoring node and display them to the operator, so as to prompt the maintenance of hidden faults.

需要说明的是,前述集中在活动主节点侧描述的基于CANopen协议的列车网络数据传输方法,也适用于本发明实施例的主节点,其实现原理类似,本发明对主节点的描述中未公布的细节,在此不再赘述。It should be noted that the train network data transmission method based on the CANopen protocol described above in the active master node side is also applicable to the master node in the embodiment of the present invention, and its implementation principle is similar, and the description of the master node in the present invention is not published. details will not be repeated here.

综上所述,本发明实施例的主节点,根据列车网络的实时情况,进行主用网络和备用网络的选择,并在监控节点向相关操作人员进行相应的显示,提高了列车网络数据传输方法的稳定性与复用性。To sum up, the master node of the embodiment of the present invention selects the main network and the backup network according to the real-time situation of the train network, and displays the corresponding display to the relevant operators at the monitoring node, which improves the data transmission method of the train network. stability and reusability.

为了实现上述实施例,本发明还提出了一种从节点,图16是根据本发明第一个实施例的从节点的结构示意图,如图16所示,该从节点包括:第二监听模块201、第二判断模块202、第二获知模块203和第二接收模块204。In order to realize the above embodiment, the present invention also proposes a slave node. FIG. 16 is a schematic structural diagram of the slave node according to the first embodiment of the present invention. As shown in FIG. 16 , the slave node includes: a second monitoring module 201 , a second judging module 202 , a second obtaining module 203 and a second receiving module 204 .

其中,第二监听模块201,用于根据预先配置的网络节点列表在主用网络上监听与从节点相关的各节点通过第一CAN通道发送的PDO报文。Wherein, the second monitoring module 201 is configured to monitor the PDO message sent by each node related to the slave node through the first CAN channel on the master network according to the preconfigured network node list.

图17是根据本发明第二个实施例的从节点的结构示意图,如图17所示,在如图16所示的基础上,该从节点包括:第二建立模块205和第二控制模块206。FIG. 17 is a schematic structural diagram of a slave node according to a second embodiment of the present invention. As shown in FIG. 17 , on the basis of FIG. 16 , the slave node includes: a second establishment module 205 and a second control module 206 .

其中,第二建立模块205,用于根据网络拓扑图建立与从节点对应的网络节点列表,其中,网络节点列表包括:与从节点相关的各节点标识和对应的心跳计时器,其中,各节点对应的心跳计时器根据PDO报文中的生产禁止时间设置。The second establishment module 205 is configured to establish a network node list corresponding to the slave node according to the network topology diagram, wherein the network node list includes: each node identifier related to the slave node and the corresponding heartbeat timer, wherein each node The corresponding heartbeat timer is set according to the production prohibition time in the PDO message.

第二控制模块206,用于从主用网络接收活动主节点发送网络控制指令,启动第一CAN通道和第二CAN通道进入PDO报文操作模式,并启动与从节点相关的各节点对应的心跳计时器。The second control module 206 is configured to receive the network control command sent by the active master node from the master network, start the first CAN channel and the second CAN channel to enter the PDO message operation mode, and start the heartbeat corresponding to each node related to the slave node timer.

第二判断模块202,用于根据对各节点发送的PDO报文的接收情况,以及根据PDO报文中的生产禁止时间为各节点对应设置的心跳计时器的计时情况,判断各节点的第一CAN通道是否故障。The second judging module 202 is configured to judge the first status of each node according to the receiving status of the PDO message sent by each node, and according to the timing status of the heartbeat timer correspondingly set for each node according to the production prohibition time in the PDO message Whether the CAN channel is faulty.

第二获知模块203,用于在预设的与第二节点对应的心跳周期内没有在主用网络上接收到第二节点的PDO报文时,获知第二节点的第一CAN通道故障。The second learning module 203 is configured to learn the failure of the first CAN channel of the second node when the PDO message of the second node is not received on the active network within the preset heartbeat period corresponding to the second node.

第二监听模块201,还用于切换到备用网络监听第二节点通过第二CAN通道发送的PDO报文,其中,第二节点为任意一个与从节点相关的从节点或活动主节点。The second monitoring module 201 is further configured to switch to the standby network to monitor the PDO message sent by the second node through the second CAN channel, where the second node is any slave node or active master node related to the slave node.

第二接收模块204,用于在预设的与第二节点对应的心跳周期内在备用网络接收到第二节点通过第二CAN通道发送的PDO报文时,在备用网络上接收第二节点发送的数据,同时,在主用网络上接收其他正常发送PDO报文的节点发送的数据。The second receiving module 204 is configured to receive the PDO message sent by the second node on the standby network when the standby network receives the PDO message sent by the second node through the second CAN channel within the preset heartbeat period corresponding to the second node. At the same time, data sent by other nodes that normally send PDO messages is received on the main network.

图18是根据本发明第三个实施例的从节点的结构示意图,如图18所示,在如图16所示的基础上,该从节点包括:第三切换模块208。FIG. 18 is a schematic structural diagram of a slave node according to a third embodiment of the present invention. As shown in FIG. 18 , on the basis of FIG. 16 , the slave node includes: a third switching module 208 .

其中,第三切换模块208,用于在从节点内的发送错误计数器或者接收错误计数器累加到预设数值时,获知主用网络故障,切换到备用网络与其他节点进行通信。Wherein, the third switching module 208 is configured to know the failure of the primary network when the sending error counter or the receiving error counter in the slave node is accumulated to a preset value, and switch to the backup network to communicate with other nodes.

综上所述,本发明实施例的从节点,根据预先配置的网络节点列表在主用网络上监听与从节点相关的各节点通过第一CAN通道发送的PDO报文,根据对各节点发送的PDO报文的接收情况,以及根据PDO报文中的生产禁止时间为各节点对应设置的心跳计时器的计时情况,判断各节点的第一CAN通道是否故障,若在预设的与第二节点对应的心跳周期内没有在主用网络上接收到第二节点的PDO报文,则获知第二节点的第一CAN通道故障,并切换到备用网络监听第二节点通过第二CAN通道发送的PDO报文,若在预设的与第二节点对应的心跳周期内在备用网络接收到第二节点通过第二CAN通道发送的PDO报文,则在备用网络上接收第二节点发送的数据,同时,在主用网络上接收其他正常发送PDO报文的节点发送的数据。由此,当某个或某些从节点在主用网络掉线时,切换到备用网络接收该部分从节点的数据,其他从节点数据依然在主用网络上接收,保证了对相关从节点数据的完整接收,保证了整车的良好运行,提高了列车网络的冗余效果。To sum up, the slave node in the embodiment of the present invention monitors the PDO message sent by each node related to the slave node through the first CAN channel on the master network according to the pre-configured network node list, and according to the The reception of the PDO message and the timing of the heartbeat timer corresponding to each node according to the production prohibition time in the PDO message, determine whether the first CAN channel of each node is faulty. If the PDO message of the second node is not received on the main network within the corresponding heartbeat period, it is informed that the first CAN channel of the second node is faulty, and switches to the standby network to monitor the PDO sent by the second node through the second CAN channel. message, if the standby network receives the PDO message sent by the second node through the second CAN channel within the preset heartbeat period corresponding to the second node, the data sent by the second node is received on the standby network, and at the same time, Receive data sent by other nodes that normally send PDO messages on the primary network. Therefore, when one or some slave nodes are disconnected on the main network, they switch to the standby network to receive the data of this part of the slave nodes, and other slave node data are still received on the main network. The complete reception of the train ensures the good operation of the whole vehicle and improves the redundancy effect of the train network.

图19是根据本发明第四个实施例的从节点的结构示意图,如图16所示,在如图16所示的基础上,该从节点还包括:第一记录模块209、第二记录模块210。Fig. 19 is a schematic structural diagram of a slave node according to a fourth embodiment of the present invention, as shown in Fig. 16, on the basis of Fig. 16, the slave node further includes: a first recording module 209, a second recording module 210.

其中,第一记录模块209,用于记录第二节点的第一CAN通道的当前故障消息。The first recording module 209 is configured to record the current fault message of the first CAN channel of the second node.

第二监听模块201,还用于在主用网络上继续监听第二节点通过第一CAN通道发送的PDO报文。The second monitoring module 201 is further configured to continue monitoring the PDO message sent by the second node through the first CAN channel on the primary network.

第二获知模块203,还用于在预设的与第二节点对应的心跳周期内接收到第二节点的PDO报文时,获知第二节点的第一CAN通道恢复通信。The second learning module 203 is further configured to learn that the first CAN channel of the second node resumes communication when the PDO message of the second node is received within the preset heartbeat period corresponding to the second node.

第二接收模块204,还用于切换到主用网络上接收第二节点发送的数据。The second receiving module 204 is further configured to switch to the active network to receive data sent by the second node.

第二记录模块210,用于在切换到备用网络监听所述第二节点通过第二CAN通道发送的PDO报文之后,在预设的心跳周期内接收不到所述第二节点通过第二CAN通道发送的PDO报文时,记录所述第二节点的第一CAN通道和第二CAN通道的当前故障消息。The second recording module 210 is configured to, after switching to the standby network to monitor the PDO message sent by the second node through the second CAN channel, fail to receive the second node through the second CAN channel within the preset heartbeat period When the PDO message is sent by the channel, the current fault messages of the first CAN channel and the second CAN channel of the second node are recorded.

在本实施例中,第二监听模块201,还用于在主用网络和备用网络上继续监听第二节点的PDO报文。In this embodiment, the second monitoring module 201 is further configured to continue monitoring the PDO message of the second node on the active network and the standby network.

第二获知模块203,还用于在预设的与第二节点对应的心跳周期内在主用网络接收到第二节点的PDO报文时,获知第二节点的第一CAN通道恢复通信。The second learning module 203 is further configured to learn that the first CAN channel of the second node resumes communication when the active network receives the PDO message of the second node within the preset heartbeat period corresponding to the second node.

第二接收模块204,还用于切换到主用网络上接收第二节点发送的数据。The second receiving module 204 is further configured to switch to the active network to receive data sent by the second node.

第二监听模块201,还用于在主用网络和备用网络上继续监听第二节点发送的PDO报文。The second monitoring module 201 is further configured to continue monitoring the PDO message sent by the second node on the active network and the standby network.

第二获知模块203,还用于在预设的与第二节点对应的心跳周期内从备用网络接收到第一从节点的PDO报文时,获知第二节点的第二CAN通道恢复通信。The second learning module 203 is further configured to learn that the second CAN channel of the second node resumes communication when the PDO message of the first slave node is received from the standby network within the preset heartbeat period corresponding to the second node.

第二接收模块204,还用于从备用网络上接收第二节点发送的数据。The second receiving module 204 is further configured to receive data sent by the second node from the standby network.

进而,在本发明的一个实施例中,第二监听模块201,还用于在主用网络上继续监听第二节点发送的PDO报文。Furthermore, in an embodiment of the present invention, the second monitoring module 201 is further configured to continue monitoring the PDO message sent by the second node on the active network.

第二接收模块204,还用于在预设的与第二节点对应的心跳周期内从主用网络接收到第二节点的PDO报文时,切换到主用网络上接收第二节点发送的数据。The second receiving module 204 is further configured to switch to the active network to receive data sent by the second node when receiving the PDO message of the second node from the active network within the preset heartbeat period corresponding to the second node .

需要说明的是,前述集中在从节点侧描述的基于CANopen协议的列车网络数据传输方法,也适用于本发明实施例的从节点,其实现原理类似,本发明对从节点的描述中未公布的细节,在此不再赘述。It should be noted that the train network data transmission method based on the CANopen protocol described above in the slave node side is also applicable to the slave node in the embodiment of the present invention, and its implementation principle is similar, and the description of the slave node in the present invention is not published. The details will not be repeated here.

综上所述,本发明实施例的从节点,根据列车网络的实时情况,进行主用网络和备用网络的选择,并在监控节点向相关操作人员进行相应的显示,提高了列车网络数据传输方法的稳定性与复用性。To sum up, the slave node in the embodiment of the present invention selects the main network and the backup network according to the real-time situation of the train network, and displays the corresponding display to the relevant operators at the monitoring node, which improves the data transmission method of the train network. stability and reusability.

为了实现上述实施例,本发明还提出了一种基于CANopen协议的列车网络数据传输系统,图20是根据本发明一个实施例的基于CANopen协议的列车网络数据传输系统的结构示意图,如图20所示,该基于CANopen协议的列车网络数据传输系统包括活动主节点100、从节点200、主用网络300和备用网络400。In order to realize the above embodiment, the present invention also proposes a train network data transmission system based on CANopen protocol. FIG. 20 is a schematic structural diagram of a train network data transmission system based on CANopen protocol according to an embodiment of the present invention, as shown in FIG. 20 . As shown, the train network data transmission system based on the CANopen protocol includes an active master node 100 , a slave node 200 , a master network 300 and a backup network 400 .

其中,对活动主节点100和从节点200的描述,可参照上述实施例,在此不再赘述。For the description of the active master node 100 and the slave node 200, reference may be made to the foregoing embodiments, and details are not repeated here.

为了更加清楚的说明本发明实施例的基于CANopen协议的列车网络数据传输系统的技术效果,下面结合与现有技术的对比进行描述。In order to more clearly illustrate the technical effect of the train network data transmission system based on the CANopen protocol according to the embodiment of the present invention, the following description is made in combination with the comparison with the prior art.

相关技术中,使用CAN总线作为通信网络的列车所使用的冗余网络设计考虑的失效模式比较少,所有节点同时在主用网络与备用网络都发送数据,但是只会选其中一个网络接收数据,不管主用网络上哪个节点已经掉线,跟其相关的节点统一切换到备用网络上接收处理掉线节点的数据以及其他关联节点的数据,因此当多个节点不同通道故障时出现部分节点数据无法正常接收,进而影响整车运行,冗余效果就大打折扣,没有体现出冗余主旨意义。In the related art, the redundant network design used by the train using the CAN bus as the communication network considers less failure modes. All nodes transmit data on the main network and the standby network at the same time, but only one of the networks is selected to receive data. No matter which node on the main network has been disconnected, the related nodes are switched to the standby network to receive and process the data of the disconnected node and the data of other associated nodes. Therefore, when different channels of multiple nodes fail, the data of some nodes cannot be processed. Normal reception will affect the operation of the whole vehicle, and the redundancy effect will be greatly reduced, which does not reflect the main meaning of redundancy.

本发明在原有网络冗余设计架构上,优化了软件实现策略,依照总线错误检测机制定义主用网络与备用网络之间切换的同时,还分别对活动主节点与从节点提出相应要求,分别在各自的对象字典中建立一个网络关系列表,以便与总线上对应节点PDO报文进行对比,进而判定节点是否掉线,当某个或某些从节点在主用网络掉线时,切换到备用网络接收该部分节点的数据,其他节点数据依然在主用网络上接收,并且还定义了一套通信恢复机制(参照上述实施例的描述,在此不再赘述)。Based on the original network redundancy design architecture, the present invention optimizes the software implementation strategy, defines the switch between the main network and the standby network according to the bus error detection mechanism, and also puts forward corresponding requirements for the active master node and the slave node, respectively. Establish a network relationship list in their respective object dictionaries to compare with the PDO messages of the corresponding nodes on the bus, and then determine whether the node is offline. When one or some slave nodes are offline in the main network, switch to the standby network. After receiving the data of this part of the nodes, the data of other nodes are still received on the main network, and a set of communication recovery mechanism is also defined (refer to the description of the above embodiment, which will not be repeated here).

为了更加清楚的说明本发明实施例的基于CANopen协议的列车网络数据传输系统的工作流程,下面举例说明:In order to more clearly illustrate the workflow of the CANopen protocol-based train network data transmission system according to the embodiment of the present invention, an example is given below:

其中,在本示例中,网络中设立两个主节点、一个为活动主节点,一个为备份主节点(默认不工作),五个从节点A、B、C、D、E,现定义主节点接收从节点A、B、C数据,从节点A接收从节点B、C、D数据,从节点B接收从节点A、E数据,从节点C接收从节点B、D数据。Among them, in this example, two master nodes are set up in the network, one is the active master node, one is the backup master node (not working by default), and five slave nodes A, B, C, D, and E are now defined as master nodes. Receive data from nodes A, B, and C, receive data from nodes B, C, and D from node A, receive data from nodes A, E from node B, and receive data from nodes B, D from node C.

当从节点B的第一CAN通道故障时,根据定义需要接收从节点B数据的有主节点、从节点A、从节点C,这三个节点分别在各自对象字典中存储从节点B的节点ID。由于从节点B从节点B的第一CAN通道故障,主节点、从节点A、从节点C将会一直在主用网络收不到从节点B的PDO报文。When the first CAN channel of the slave node B fails, the master node, the slave node A, and the slave node C are required to receive data from the slave node B according to the definition. These three nodes store the node ID of the slave node B in their respective object dictionaries. . Due to the failure of the first CAN channel of the slave node B and the slave node B, the master node, the slave node A, and the slave node C will not receive the PDO message from the slave node B all the time on the master network.

进而,主节点在预设周期内未监测到从节点的PDO报文时,首先会通过网络控制的复位指令先使该节点进行复位,之后再监听一定的心跳周期,此时在该一定的心跳周期从节点B依然不能恢复正常,主节点、从节点A、从节点C都切换到第二CAN通道在备用网络监听是否接收到从节点B的PDO报文,从节点B的第二CAN通道是正常发送数据,这样主节点接收数据情况如附图21所示,即主节点从主用网络接收处理从节点A、C的数据,从备用网络接收处理从节点B的数据,而从节点A与从节点C接收数据情况如附图22所示,即从节点A从主用网络接收处理从节点C、D的数据,从备用网络接收处理从节点B的数据,从节点C从主用网络接收处理从节点D的数据,从备用网络接收处理从节点B的数据。Furthermore, when the master node does not monitor the PDO message of the slave node within the preset period, it will first reset the node through the reset command controlled by the network, and then monitor a certain heartbeat period. Periodically, the slave node B still cannot return to normal. The master node, slave node A, and slave node C all switch to the second CAN channel to monitor whether the PDO message from slave node B is received on the standby network. The second CAN channel of slave node B is Send data normally, so that the master node receives data as shown in Figure 21, that is, the master node receives and processes the data of slave nodes A and C from the main network, receives and processes the data of slave node B from the standby network, and slave node A and Figure 22 shows the data received by the slave node C, that is, the slave node A receives and processes the data of the slave nodes C and D from the main network, receives and processes the data of the slave node B from the standby network, and the slave node C receives from the main network. Data from Node D is processed, and data from Node B is received from the standby network for processing.

综上所述,本发明实施例的基于CANopen协议的列车网络数据传输系统,解决现有方案中多个节点不同通道故障时出现部分节点数据无法正常接收的问题,有效避免部分节点主用网络通道故障而部分节点备用网络通道故障时需舍弃一些节点数据,同时也提升了冗余设计的实际效果,很好地规避了一些列车网络故障导致整车运行受阻的问题,能保证在一些异常情况下,网络各个节点依然可以正常通信。To sum up, the train network data transmission system based on the CANopen protocol according to the embodiment of the present invention solves the problem that the data of some nodes cannot be received normally when different channels of multiple nodes fail in the existing solution, and effectively avoids the main use of network channels for some nodes. When some nodes fail and the backup network channel fails, some node data needs to be discarded. At the same time, the actual effect of the redundant design is improved, and the problem that some train network failures cause the entire train to be blocked can be ensured in some abnormal situations. , each node of the network can still communicate normally.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, description with reference to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples", etc., mean specific features described in connection with the embodiment or example , structure, material or feature is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms are not necessarily directed 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, those skilled in the art may combine and combine the different embodiments or examples described in this specification, as well as the features of the different embodiments or examples, without conflicting each other.

尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it should be understood that the above-mentioned embodiments are exemplary and should not be construed as limiting the present invention. Embodiments are subject to variations, modifications, substitutions and variations.

Claims (41)

1. A train network data transmission method based on CANopen protocol is characterized in that the method is applied to an active master node and comprises the following steps:
monitoring a Process Data Object (PDO) message sent by each slave node related to the active master node through a first CAN channel on a main network according to a pre-configured network node list; the pre-configured network node list is a list which is established according to a network topology map and corresponds to an active master node or a slave node;
judging whether the first CAN channel of each slave node fails according to the receiving condition of the PDO message sent by each slave node and the timing condition of a heartbeat timer correspondingly set for each slave node according to the production prohibition time in the PDO message;
if the PDO message of the first node is not received in the main network within a preset first heartbeat period corresponding to the first node, acquiring the fault of a first CAN channel of the first node, and switching to a standby network to monitor the PDO message sent by the first node through a second CAN channel, wherein the first node is any slave node related to the active main node;
if the standby network receives the PDO message sent by the first node through the second CAN channel in a preset first heartbeat cycle corresponding to the first node, receiving data sent by the first node on the standby network, and simultaneously receiving data sent by other slave nodes which normally send the PDO message on the main network.
2. The method of claim 1, wherein after the if the PDO packet of the first node is not received in the active network within a preset first heartbeat cycle corresponding to the first node, the method further comprises:
sending a reset instruction from the active network to the first node;
continuously monitoring a PDO message sent by the first node on the main network, and detecting whether the PDO message of the first node is received in the main network in a preset second heartbeat cycle corresponding to the first node;
the acquiring of the first CAN channel fault of the first node includes:
and if the PDO message of the first node is not received in the primary network in a preset second heartbeat cycle corresponding to the first node, acquiring the first CAN channel fault of the first node.
3. The method of claim 1, wherein after said receiving a PDO message sent by said first node over a second CAN channel, further comprising:
sending a current fault message of a first CAN channel of the first node to an operation monitoring node, displaying the current fault message to an operator, and prompting current fault maintenance;
and continuously monitoring the PDO message sent by the first node through the first CAN channel on the primary network, and if the PDO message of the first node is received in a preset first heartbeat cycle corresponding to the first node, knowing that the first CAN channel of the first node recovers communication, switching to the primary network to receive the data sent by the first node.
4. The method of claim 3, wherein after the switching to the active network to receive the data sent by the first node, further comprising:
and sending the historical fault message of the first CAN channel of the first node to the operation monitoring node and displaying the historical fault message to an operator to prompt the potential fault hazard to be repaired.
5. The method of claim 1, wherein after the switching to the standby network listens for a PDO message sent by the first node over a second CAN channel, further comprising:
if the PDO message of the first node is not received in the standby network in a preset first heartbeat period corresponding to the first node, sending a reset instruction to the first node from the standby network, and continuously monitoring the PDO message sent by the first node in the standby network;
if the PDO message sent by the first node is received on the standby network in a preset second heartbeat cycle corresponding to the first node, receiving data sent by the first node on the standby network, and meanwhile, receiving data sent by other slave nodes which normally send the PDO message on the main network.
6. The method of claim 5, further comprising:
and if the PDO message sent by the first node is not received on the standby network in a preset second heartbeat period corresponding to the first node, sending current fault messages of a first CAN channel and a second CAN channel of the first node to an operation monitoring node, and displaying the current fault messages to an operator to prompt the current fault maintenance.
7. The method of claim 6, further comprising:
continuously monitoring PDO messages sent by the first node on the main network and the standby network, if receiving the PDO messages of the first node from the main network in a preset first heartbeat cycle corresponding to the first node, knowing that the first CAN channel of the first node recovers communication, switching to the main network to receive data sent by the first node, sending a current fault message of a second CAN channel of the first node to the operation monitoring node, displaying the current fault message to an operator, and prompting the current fault maintenance;
and continuously monitoring the PDO message sent by the first node on the standby network, and if the PDO message of the first node is received from the standby network in a preset first heartbeat cycle corresponding to the first node, sending historical fault messages of a first CAN channel and a second CAN channel of the first node to the operation monitoring node and displaying the historical fault messages to an operator to prompt fault hidden trouble maintenance.
8. The method of claim 6, further comprising:
continuously monitoring PDO messages sent by the first node on the main network and the standby network, if receiving the PDO messages of the first node from the standby network in a preset first heartbeat cycle corresponding to the first node, knowing that the second CAN channel of the first node recovers communication, receiving data sent by the first node from the standby network, sending a current fault message of the first CAN channel of the first node to the operation monitoring node, displaying the current fault message to an operator, and prompting current fault maintenance;
and continuously monitoring PDO messages sent by the first node through a first CAN channel on the main network, if the PDO messages of the first node are received from the main network in a preset first heartbeat cycle corresponding to the first node, switching to the main network to receive data sent by the first node, sending historical fault messages of the first CAN channel and a second CAN channel of the first node to the operation monitoring node, and displaying the historical fault messages to an operator to prompt fault hidden trouble maintenance.
9. The method of claim 1, wherein before the monitoring PDO packets sent by each slave node associated with the active master node through the first CAN channel on the active network according to the preconfigured list of network nodes, the method further comprises:
establishing a network node list corresponding to the active master node according to a network topology map, wherein the network node list comprises: the slave node identifiers and the corresponding heartbeat timers are related to the active master node, wherein the heartbeat timers corresponding to the slave nodes are set according to the production prohibition time in the PDO message;
and simultaneously sending network control instructions to all the slave nodes from the main network and the standby network, controlling a first CAN channel and a second CAN channel of the slave nodes to enter a PDO message operation mode, and starting a heartbeat timer corresponding to each slave node related to the active master node.
10. The method of claim 1, further comprising:
and if the sending error counter or the receiving error counter in the active main node is accumulated to a preset value, acquiring the fault of the main network, and switching to the standby network to communicate with other nodes.
11. The method of any of claims 1-10, further comprising:
and if the active main node is detected to be in fault, switching to a standby main node to perform data interaction with other related slave nodes.
12. A train network data transmission method based on a CANopen protocol is applied to a slave node and comprises the following steps:
monitoring PDO messages sent by each node related to the slave node through a first CAN channel on a main network according to a pre-configured network node list; the pre-configured network node list is a list which is established according to a network topology map and corresponds to an active master node or a slave node;
judging whether the first CAN channel of each node fails according to the receiving condition of the PDO message sent by each node and the timing condition of a heartbeat timer correspondingly set for each node according to the production prohibition time in the PDO message;
if the PDO message of the second node is not received on the primary network in a preset heartbeat period corresponding to the second node, acquiring the fault of a first CAN channel of the second node, and switching to a standby network to monitor the PDO message sent by the second node through the second CAN channel, wherein the second node is any slave node or active master node related to the slave node;
if the standby network receives the PDO message sent by the second node through the second CAN channel in a preset heartbeat period corresponding to the second node, receiving data sent by the second node on the standby network, and simultaneously receiving data sent by other nodes which normally send the PDO message on the main network.
13. The method of claim 12, wherein after the backup network receives the PDO message sent by the second node over the second CAN channel, further comprising:
recording the current fault message of the first CAN channel of the second node;
and continuously monitoring the PDO message sent by the second node through the first CAN channel on the main network, and if the PDO message of the second node is received in a preset heartbeat cycle corresponding to the second node, knowing that the first CAN channel of the second node recovers communication, switching to the main network to receive the data sent by the second node.
14. The method of claim 12, wherein after the switching to the standby network listens for PDO messages sent by the second node over the second CAN channel, further comprising:
and if the PDO message sent by the second node through the second CAN channel cannot be received in a preset heartbeat period, recording the current fault messages of the first CAN channel and the second CAN channel of the second node.
15. The method of claim 14, further comprising:
and continuously monitoring PDO messages of the second node on the main network and the standby network, and if the main network receives the PDO messages of the second node in a preset heartbeat cycle corresponding to the second node, knowing that the first CAN channel of the second node recovers communication, switching to the main network to receive data sent by the second node.
16. The method of claim 14, further comprising:
continuously monitoring PDO messages sent by the second node on the main network and the standby network, and if receiving the PDO messages of the first slave node from the standby network in a preset heartbeat cycle corresponding to the second node, acquiring that a second CAN channel of the second node recovers communication, and receiving data sent by the second node from the standby network;
and continuously monitoring the PDO message sent by the second node on the main network, and if the PDO message of the second node is received from the main network in a preset heartbeat period corresponding to the second node, switching to the main network to receive the data sent by the second node.
17. The method of claim 12, wherein before the monitoring PDO packets sent by nodes associated with the slave node through the first CAN channel on the active network according to the preconfigured list of network nodes, the method further comprises:
establishing a network node list corresponding to the slave node according to a network topology map, wherein the network node list comprises: each node identification related to the slave node and a corresponding heartbeat timer, wherein the heartbeat timer corresponding to each node is set according to the production prohibition time in the PDO message;
and receiving a network control command sent by an active master node from the master network, starting a first CAN channel and a second CAN channel to enter a PDO message operation mode, and starting a heartbeat timer corresponding to each node related to the slave node.
18. The method of any of claims 12-17, further comprising:
and if the sending error counter or the receiving error counter in the slave node is accumulated to a preset value, acquiring the fault of the main network, and switching to the standby network to communicate with other nodes.
19. An active master node, comprising:
the first monitoring module is used for monitoring PDO messages sent by each slave node related to the active master node through a first CAN channel on the main network according to a pre-configured network node list; the pre-configured network node list is a list which is established according to a network topology map and corresponds to an active master node or a slave node;
the first judgment module is used for judging whether the first CAN channel of each slave node fails according to the receiving condition of the PDO message sent by each slave node and the timing condition of a heartbeat timer correspondingly set for each slave node according to the production prohibition time in the PDO message;
the first obtaining module is used for obtaining a first CAN channel fault of a first node when a PDO message of the first node is not received in the primary network in a preset first heartbeat cycle corresponding to the first node;
the first monitoring module is further configured to switch to a standby network to monitor a PDO packet sent by the first node through a second CAN channel, where the first node is any slave node related to the active master node;
the first receiving module is configured to receive, in a preset first heartbeat cycle corresponding to a first node, data sent by the first node on the standby network when the standby network receives a PDO packet sent by the first node through a second CAN channel, and receive, on the active network, data sent by other slave nodes that normally send the PDO packet at the same time.
20. The active master node of claim 19, further comprising:
a first sending module, configured to send a reset instruction from the primary network to a first node after a PDO packet of the first node is not received by the primary network in a preset first heartbeat cycle corresponding to the first node;
the first monitoring module is further configured to continue to monitor, on the active network, a PDO packet sent by the first node;
the first judging module is further configured to detect whether a PDO packet of the first node is received in the primary network within a preset second heartbeat cycle corresponding to the first node;
the first learning module is further configured to learn that a first CAN channel of the first node has a fault when the PDO packet of the first node is not received in the active network in a preset second heartbeat cycle corresponding to the first node.
21. The active master node of claim 19, further comprising:
the first prompting module is used for sending a current fault message of the first CAN channel of the first node to the operation monitoring node after receiving a PDO message sent by the first node through the second CAN channel, displaying the current fault message to an operator and prompting current fault maintenance;
the first monitoring module is further configured to continue to monitor, on the primary network, a PDO packet sent by the first node through the first CAN channel;
the first learning module is further configured to learn that the first CAN channel of the first node resumes communication when receiving the PDO packet of the first node in a preset first heartbeat cycle corresponding to the first node;
the first receiving module is further configured to switch to the active network to receive the data sent by the first node.
22. The active master node of claim 21,
the first prompting module is further configured to send a historical fault message of the first CAN channel of the first node to the operation monitoring node and display the historical fault message to an operator after the data sent by the first node is received by switching to the active network, so as to prompt troubleshooting of a potential fault hazard.
23. The active master node of claim 19, further comprising:
the second sending module is used for sending a reset instruction to the first node from the standby network when the PDO message of the first node is not received by the standby network in a preset first heartbeat cycle corresponding to the first node;
the first monitoring module is further configured to continue to monitor the PDO packet sent by the first node in the standby network;
the first receiving module is further configured to receive, when receiving the PDO packet sent by the first node on the standby network in a preset second heartbeat cycle corresponding to the first node, data sent by the first node on the standby network, and receive, on the active network, data sent by other slave nodes that normally send PDO packets at the same time.
24. The active master node of claim 23, further comprising:
and the second prompting module is used for sending current fault messages of the first CAN channel and the second CAN channel of the first node to the operation monitoring node when the PDO message sent by the first node is not received on the standby network in a preset second heartbeat cycle corresponding to the first node, displaying the current fault messages to an operator and prompting the current fault maintenance.
25. The active master node of claim 24,
the first monitoring module is further configured to continue to monitor PDO packets sent by the first node on the active network and the standby network;
the first learning module is further configured to learn that the first CAN channel of the first node recovers communication when the PDO packet of the first node is received from the primary network within a preset first heartbeat cycle corresponding to the first node;
the first receiving module is further configured to switch to the active network to receive data sent by the first node;
the second prompting module is further used for sending a current fault message of a second CAN channel of the first node to the operation monitoring node, displaying the current fault message to an operator and prompting current fault maintenance;
the first monitoring module is further configured to continue to monitor a PDO packet sent by the first node on the standby network;
and the second prompting module is further used for sending historical fault messages of the first CAN channel and the second CAN channel of the first node to the operation monitoring node and displaying the historical fault messages to an operator when the PDO message of the first node is received from the standby network in a preset first heartbeat period corresponding to the first node, so as to prompt fault hidden trouble maintenance.
26. The active master node of claim 24,
the first monitoring module is further configured to continue to monitor PDO packets sent by the first node on the active network and the standby network;
the first learning module is further configured to learn that a second CAN channel of the first node recovers communication when a PDO packet of the first node is received from the standby network in a preset first heartbeat cycle corresponding to the first node;
the first receiving module is further configured to receive data sent by the first node from the standby network;
the second prompting module is further used for sending a current fault message of the first CAN channel of the first node to the operation monitoring node, displaying the current fault message to an operator and prompting current fault maintenance;
the first monitoring module is further configured to continue to monitor, on the primary network, a PDO packet sent by the first node through the first CAN channel;
the first receiving module is further configured to switch to the active network to receive data sent by the first node when a PDO packet of the first node is received from the active network within a preset first heartbeat cycle corresponding to the first node;
and the second prompting module is also used for sending historical fault messages of the first CAN channel and the second CAN channel of the first node to the operation monitoring node and displaying the historical fault messages to an operator to prompt fault hidden trouble repair.
27. The active master node of claim 19, further comprising:
a first establishing module, configured to establish a network node list corresponding to the active master node according to a network topology map, where the network node list includes: the slave node identifiers and the corresponding heartbeat timers are related to the active master node, wherein the heartbeat timers corresponding to the slave nodes are set according to the production prohibition time in the PDO message;
and the first control module is used for sending network control instructions to all the slave nodes from the main network and the standby network simultaneously, controlling a first CAN channel and a second CAN channel of the slave nodes to enter a PDO message operation mode, and starting a heartbeat timer corresponding to each slave node related to the active master node.
28. The active master node of claim 19, further comprising:
and the first switching module is used for acquiring the fault of the active network and switching to the standby network to communicate with other nodes when the transmitting error counter or the receiving error counter in the active main node is accumulated to a preset value.
29. The active master node of claim 19, further comprising:
and the second switching module is used for switching to the standby main node to perform data interaction with other related slave nodes when the active main node is detected to be in fault.
30. A slave node, comprising:
the second monitoring module is used for monitoring PDO messages sent by all nodes related to the slave nodes through the first CAN channel on the main network according to a pre-configured network node list; the pre-configured network node list is a list which is established according to a network topology map and corresponds to an active master node or a slave node;
the second judgment module is used for judging whether the first CAN channel of each node fails according to the receiving condition of the PDO message sent by each node and the timing condition of a heartbeat timer correspondingly set for each node according to the production prohibition time in the PDO message;
the second learning module is configured to learn that a first CAN channel of a second node fails when a PDO packet of the second node is not received on the primary network within a preset heartbeat period corresponding to the second node;
the second monitoring module is further configured to switch to a standby network to monitor a PDO packet sent by the second node through a second CAN channel, where the second node is any one of a slave node or an active master node related to the slave node;
and the second receiving module is configured to receive, in a preset heartbeat cycle corresponding to the second node, data sent by the second node on the standby network when the standby network receives the PDO packet sent by the second node through the second CAN channel, and receive, on the primary network, data sent by other nodes that normally send the PDO packet at the same time.
31. The slave node of claim 30, further comprising:
the first recording module is used for recording the current fault message of the first CAN channel of the second node;
the second monitoring module is further configured to continue to monitor, on the primary network, a PDO packet sent by the second node through the first CAN channel;
the second learning module is further configured to learn that the first CAN channel of the second node recovers communication when receiving the PDO packet of the second node in a preset heartbeat period corresponding to the second node;
the second receiving module is further configured to switch to the active network to receive the data sent by the second node.
32. The slave node of claim 30, further comprising:
and the second recording module is used for recording current fault messages of the first CAN channel and the second CAN channel of the second node when the PDO message sent by the second node through the second CAN channel cannot be received in a preset heartbeat period after the PDO message sent by the second node through the second CAN channel is monitored by switching to a standby network.
33. The slave node of claim 32,
the second monitoring module is further configured to continue to monitor PDO packets of the second node on the active network and the standby network;
the second learning module is further configured to learn that the first CAN channel of the second node recovers communication when the primary network receives the PDO packet of the second node in a preset heartbeat cycle corresponding to the second node;
the second receiving module is further configured to switch to the active network to receive the data sent by the second node.
34. The slave node of claim 32,
the second monitoring module is further configured to continue to monitor PDO packets sent by the second node on the active network and the standby network;
the second learning module is further configured to learn that a second CAN channel of a second node resumes communication when receiving the PDO packet of the first slave node from the standby network within a preset heartbeat period corresponding to the second node;
the second receiving module is further configured to receive data sent by the second node from the standby network;
the second monitoring module is further configured to continue to monitor, on the active network, a PDO packet sent by the second node;
the second receiving module is further configured to switch to the active network to receive data sent by the second node when the PDO packet of the second node is received from the active network within a preset heartbeat period corresponding to the second node.
35. The slave node of claim 30, further comprising:
a second establishing module, configured to establish a network node list corresponding to the slave node according to a network topology map, where the network node list includes: each node identification related to the slave node and a corresponding heartbeat timer, wherein the heartbeat timer corresponding to each node is set according to the production prohibition time in the PDO message;
and the second control module is used for receiving a network control instruction sent by the active master node from the master network, starting the first CAN channel and the second CAN channel to enter a PDO message operation mode, and starting the heartbeat timers corresponding to the nodes related to the slave node.
36. The slave node according to any of claims 30-35, further comprising:
and a third switching module, configured to learn the failure of the active network when the transmission error counter or the reception error counter in the slave node is incremented to a preset value, and switch to the standby network to communicate with other nodes.
37. A train network data transmission system based on CANopen protocol is characterized by comprising:
the active master node of any of claims 19-29;
the slave node of any one of claims 30-36;
a primary network;
a standby network.
38. A computer device comprising a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the processor when executing the computer program implements the CANopen protocol-based train network data transmission method according to any one of claims 1 to 11.
39. A computer device comprising a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the processor when executing the computer program implements the CANopen protocol-based train network data transmission method according to any one of claims 12 to 18.
40. A computer-readable medium, characterized by storing a computer program, which is executed by a processor to implement the CANopen protocol-based train network data transmission method according to any one of claims 1 to 11.
41. A computer-readable medium, characterized by storing a computer program which is executed by a processor to implement the CANopen protocol-based train network data transmission method according to any one of claims 12 to 18.
CN201710477075.2A 2017-06-21 2017-06-21 Train network data transmission method, system and device based on CANopen protocol Active CN109104325B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710477075.2A CN109104325B (en) 2017-06-21 2017-06-21 Train network data transmission method, system and device based on CANopen protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710477075.2A CN109104325B (en) 2017-06-21 2017-06-21 Train network data transmission method, system and device based on CANopen protocol

Publications (2)

Publication Number Publication Date
CN109104325A CN109104325A (en) 2018-12-28
CN109104325B true CN109104325B (en) 2020-10-23

Family

ID=64796222

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710477075.2A Active CN109104325B (en) 2017-06-21 2017-06-21 Train network data transmission method, system and device based on CANopen protocol

Country Status (1)

Country Link
CN (1) CN109104325B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110488597B (en) * 2019-08-18 2021-06-22 中车永济电机有限公司 Dual redundant control method for main processing unit of locomotive
CN112600740B (en) * 2021-01-08 2022-06-07 重庆长安汽车股份有限公司 Automatic detection method for Internet of vehicles CAN data uploading frame leakage rate
CN112859713B (en) * 2021-02-08 2022-04-19 航天科工空间工程发展有限公司 Autonomous error correction management method for CAN bus of spacecraft
CN115729202A (en) * 2021-08-31 2023-03-03 罗伯特·博世有限公司 Control method and device for Electronic Control Unit (ECU)
CN114760650B (en) * 2022-03-15 2025-01-21 南京市德赛西威汽车电子有限公司 A vehicle-mounted radar network group control method, system, vehicle and storage medium
CN117768380B (en) * 2023-12-20 2024-06-07 昆易电子科技(上海)有限公司 Data processing method, device, system, electronic equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302064A (en) * 2016-08-16 2017-01-04 新誉集团有限公司 The data transfer optimization method and system of binary-channel redundancy CAN used for electric vehicle
CN106452870A (en) * 2016-10-13 2017-02-22 中车株洲电力机车研究所有限公司 Redundancy control method for primary device of CANopen network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102008049126B3 (en) * 2008-09-26 2010-04-08 Raytheon Anschütz Gmbh Ship rudder control / autopilot with a CAN bus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302064A (en) * 2016-08-16 2017-01-04 新誉集团有限公司 The data transfer optimization method and system of binary-channel redundancy CAN used for electric vehicle
CN106452870A (en) * 2016-10-13 2017-02-22 中车株洲电力机车研究所有限公司 Redundancy control method for primary device of CANopen network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于在线双冗余CANopen架构的管轨列控系统》;李泽荣,王磊,杜会卿,邱瑞昌;《电测与仪表》;20140110;第51卷(第1期);全文 *

Also Published As

Publication number Publication date
CN109104325A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
CN109104349B (en) Method, system and device for train network data transmission based on CANopen protocol
CN109104351B (en) Train network node and train network node monitoring method based on CANopen protocol
CN109104325B (en) Train network data transmission method, system and device based on CANopen protocol
CN109104346B (en) Method, system and device for train network data transmission based on CANopen protocol
CN110474943B (en) Vehicle network redundancy system and gateway switching method based on MVB and Ethernet
CN103955188B (en) Control system and method supporting redundancy switching function
CN109104348B (en) Method, system and device for train network data transmission based on CANopen protocol
CN102082695B (en) Hot standby redundancy network system and redundancy realization method
CN102394787A (en) Dual-link redundancy control method based on EPA switch
CN103647781A (en) Mixed redundancy programmable control system based on equipment redundancy and network redundancy
CN103167543A (en) A Redundant Gateway Based on WIA Network
CN108923530A (en) A kind of double set redundancy switching methods of transformer station measurement and control device
US11646909B2 (en) Method for data transmission in a redundantly operable communications network and coupling communication device
CN112218321B (en) Master-slave link switching method, device, communication equipment and storage medium
CN110635940B (en) Main/standby switching method of EAPS Ethernet ring network
CN107026780A (en) A kind of distribution optical fiber ring network fault point positioning method and system based on Internet of Things
CN103297279B (en) The active and standby single-deck reverse method of software control in a kind of many software process system
CN102420737B (en) Method for processing failure in MRP (Media Redundancy Protocol) looped network and MRP looped network
WO2022016823A1 (en) Method for processing faulty node of optical fibre network system
KR20130022813A (en) Relay dualization apparatus
CN117950300A (en) Redundancy control method, system and storage medium based on controller
KR101234102B1 (en) A circuit automatic switching apparatus and its operational method thereof
JP2017139581A (en) Repeating device and repeating system
CN110572289A (en) Main/standby switching system based on third-party channel
JP6204397B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM

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