[go: up one dir, main page]

CN103139060B - Based on the high fault tolerance CAN digital gateway of two CSTR - Google Patents

Based on the high fault tolerance CAN digital gateway of two CSTR Download PDF

Info

Publication number
CN103139060B
CN103139060B CN201310065829.5A CN201310065829A CN103139060B CN 103139060 B CN103139060 B CN 103139060B CN 201310065829 A CN201310065829 A CN 201310065829A CN 103139060 B CN103139060 B CN 103139060B
Authority
CN
China
Prior art keywords
dsp
network
bus
port
redundant
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
CN201310065829.5A
Other languages
Chinese (zh)
Other versions
CN103139060A (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.)
Hit Robot Group Co ltd
Original Assignee
Harbin Institute of Technology Shenzhen
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 Harbin Institute of Technology Shenzhen filed Critical Harbin Institute of Technology Shenzhen
Priority to CN201310065829.5A priority Critical patent/CN103139060B/en
Publication of CN103139060A publication Critical patent/CN103139060A/en
Application granted granted Critical
Publication of CN103139060B publication Critical patent/CN103139060B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

基于双DSP的高容错性CAN总线数字网关,属于CAN总线网关技术领域。本发明是为了解决现有CAN总线网关在单子节点整体故障时,会导致通信中断,造成数据帧丢失或大延时情况发生的问题。它包括主节点、从节点、双路冗余CAN网络A、双路冗余CAN网络B、非冗余子网络总线#E1和非冗余子网络总线#E2,双路冗余CAN网络A包括网络总线#A1和网络总线#A2;双路冗余CAN网络B包括网络总线#B1和网络总线#B2;它提供了双链路冗余的CAN主干网络之间、CAN主干网络与单链路非冗余的CAN子网之间的协议转换和数据高速缓存及转发。本发明作为CAN总线数字网关。

The invention relates to a highly fault-tolerant CAN bus digital gateway based on double DSPs, belonging to the technical field of CAN bus gateways. The invention aims to solve the problem that the existing CAN bus gateway will cause communication interruption when a single sub-node fails as a whole, resulting in data frame loss or large delay. It includes master node, slave node, dual redundant CAN network A, dual redundant CAN network B, non-redundant sub-network bus #E1 and non-redundant sub-network bus #E2, dual redundant CAN network A includes Network bus #A1 and network bus #A2; dual redundant CAN network B includes network bus #B1 and network bus #B2; it provides dual-link redundant CAN backbone network, CAN backbone network and single-link Protocol conversion and data caching and forwarding between non-redundant CAN subnets. The invention serves as a CAN bus digital gateway.

Description

基于双DSP的高容错性CAN总线数字网关High Fault Tolerance CAN Bus Digital Gateway Based on Double DSP

技术领域technical field

本发明涉及基于双DSP的高容错性CAN总线数字网关,属于CAN总线网关技术领域。The invention relates to a high fault-tolerant CAN bus digital gateway based on double DSPs, and belongs to the technical field of CAN bus gateways.

背景技术Background technique

CAN总线技术已广泛用于工业自动化领域,其具有高可靠、抗干扰、结构简单且低成本等卓越特性。随着技术方面的日趋成熟,CAN总线正逐步走向航天、航空、能源和医疗卫生等安全关键领域SCS,发展前景十分广阔。CAN bus technology has been widely used in the field of industrial automation, which has excellent characteristics such as high reliability, anti-interference, simple structure and low cost. With the maturity of technology, CAN bus is gradually moving towards SCS in safety-critical fields such as aerospace, aviation, energy and medical health, and the development prospect is very broad.

然而,安全关键系统不仅多涉及大量电子设备间复杂的级联和频繁的互操作,组网规模较大,传输性能要求较高,且一旦发生系统功能失效,将引起生命及财产的重大损失,因此设计或运营者往往将系统的可靠性放在最首要的位置。构成安全关键系统的网络不只是结构单一的局域网,而是多个区域子网互联和多种网络拓扑、协议并用来实现隔离故障、均衡带宽与简化布线;并且系统主干网络中多采用带有冗余机制的CAN总线,以加强系统的可靠性与消息传输的确定性。However, safety-critical systems not only involve complex cascading and frequent interoperability among a large number of electronic devices, but also require large-scale networking and high transmission performance requirements. Once the system function fails, it will cause heavy loss of life and property. Therefore, the design or operator often puts the reliability of the system in the most important position. The network that constitutes the safety-critical system is not just a LAN with a single structure, but multiple regional subnets interconnected and multiple network topologies and protocols are used to isolate faults, balance bandwidth and simplify wiring; CAN bus with redundant mechanism to enhance the reliability of the system and the certainty of message transmission.

因此,CAN网关gateway作为实现复杂网络的基础设施,是否能够有效支持这类安全关键系统组网,并满足其设计方面的约束,尤其是可靠性方面的要求变得十分重要。现有的CAN总线网关设计有以下两个方面的缺陷:Therefore, as the infrastructure for complex networks, it is very important whether the CAN gateway can effectively support the networking of such safety-critical systems and meet its design constraints, especially the reliability requirements. The existing CAN bus gateway design has the following two defects:

1.现有CAN总线网关多采用局部冗余结构,即仅对CAN总线的链路、收发器和控制器硬件备份。虽然能够应对传输介质损坏、端口松动、总线驱动器失效中的单一故障或者组合故障,但对网关的CPU故障、电源模块故障乃至控制板卡的整体失效则无能为力。1. Most of the existing CAN bus gateways adopt a local redundant structure, that is, only the links, transceivers and controller hardware of the CAN bus are backed up. Although it can deal with single faults or combination faults in transmission medium damage, loose ports, and bus driver failures, it is powerless against gateway CPU failures, power supply module failures, and even overall failures of control boards.

2.现有的CAN网关在通信机制方面并未实现真正的热冗余,从备份节点或端口仅仅是实时监听。一旦主节点或端口出现故障,仍需要进行主、从节点间的功能切换,从而引入了一定的自愈时间,即切换时间,如此易造成数据帧丢失或大延时等情况发生,这是对于可靠性与确定性要求较高的系统所无法容忍的。2. The existing CAN gateway does not realize real hot redundancy in terms of communication mechanism, and only monitors in real time from the backup node or port. Once the master node or port fails, it still needs to switch between the master and slave nodes, which introduces a certain self-healing time, that is, the switching time, so it is easy to cause data frame loss or large delay, which is for It cannot be tolerated by systems with high reliability and certainty requirements.

发明内容Contents of the invention

本发明目的是为了解决现有CAN总线网关在单子节点整体故障时,会导致通信中断,造成数据帧丢失或大延时情况发生的问题,提供了一种基于双DSP的高容错性CAN总线数字网关。The purpose of the present invention is to solve the problem that the existing CAN bus gateway will cause communication interruption when the overall failure of a single sub-node, resulting in data frame loss or large delay, and provides a high fault-tolerant CAN bus digital bus based on dual DSP. gateway.

本发明所述基于双DSP的高容错性CAN总线数字网关,它包括主节点、从节点、双路冗余CAN网络A、双路冗余CAN网络B、非冗余子网络总线#E1和非冗余子网络总线#E2,The high fault-tolerant CAN bus digital gateway based on dual DSPs of the present invention includes a master node, a slave node, a dual redundant CAN network A, a dual redundant CAN network B, a non-redundant sub-network bus #E1 and a non-redundant sub-network bus #E1. Redundant Subnetwork Bus #E2,

双路冗余CAN网络A包括网络总线#A1和网络总线#A2;Dual redundant CAN network A includes network bus #A1 and network bus #A2;

双路冗余CAN网络B包括网络总线#B1和网络总线#B2;Dual redundant CAN network B includes network bus #B1 and network bus #B2;

主节点包括DSP#A1、DSP#A2、CAN总线端口#A11、CAN总线端口#A12、CAN总线端口#A21和CAN总线端口#A22;The master node includes DSP#A1, DSP#A2, CAN bus port #A11, CAN bus port #A12, CAN bus port #A21 and CAN bus port #A22;

从节点包括DSP#B1、DSP#B2、CAN总线端口#B11、CAN总线端口#B12、CAN总线端口#B21和CAN总线端口#B22;The slave nodes include DSP#B1, DSP#B2, CAN bus port #B11, CAN bus port #B12, CAN bus port #B21 and CAN bus port #B22;

DSP#A1和DSP#A2之间通过SPI数据通道传输数据,DSP#A1通过CAN总线端口#A11与网络总线#A1连接,DSP#A1通过CAN总线端口#A12与非冗余子网络总线#E1连接,DSP#A2通过CAN总线端口#A21与网络总线#B2连接,DSP#A2通过CAN总线端口#A22与非冗余子网络总线#E2连接;Data is transmitted between DSP#A1 and DSP#A2 through SPI data channel, DSP#A1 is connected to network bus #A1 through CAN bus port #A11, DSP#A1 is connected to non-redundant sub-network bus #E1 through CAN bus port #A12 Connection, DSP#A2 is connected to network bus #B2 through CAN bus port #A21, DSP#A2 is connected to non-redundant sub-network bus #E2 through CAN bus port #A22;

DSP#B1和DSP#B2之间通过SPI数据通道传输数据,DSP#B1通过CAN总线端口#B11与网络总线#B1连接,DSP#B1通过CAN总线端口#B12与非冗余子网络总线#E2连接,DSP#B2通过CAN总线端口#B21与网络总线#A2连接,DSP#B2通过CAN总线端口#B22与非冗余子网络总线#E1连接;Data is transmitted between DSP#B1 and DSP#B2 through the SPI data channel, DSP#B1 is connected to the network bus #B1 through the CAN bus port #B11, and DSP#B1 is connected to the non-redundant sub-network bus #E2 through the CAN bus port #B12 Connection, DSP#B2 is connected to network bus #A2 through CAN bus port #B21, DSP#B2 is connected to non-redundant sub-network bus #E1 through CAN bus port #B22;

主节点(1)的DSP#A1(1-1)与从节点(2)的DSP#B1(2-1)和DSP#B2(2-2)之间、主节点(1)的DSP#A2(1-2)与从节点(2)的DSP#B1(2-1)和DSP#B2(2-2)之间通过SPI数据通道传输数据。Between DSP#A1(1-1) of the master node (1) and DSP#B1(2-1) and DSP#B2(2-2) of the slave node (2), DSP#A2 of the master node (1) (1-2) transmits data through the SPI data channel between DSP#B1(2-1) and DSP#B2(2-2) of the slave node (2).

主节点还包括CAN驱动器#A11、CAN驱动器#A12、CAN驱动器#A21和CAN驱动器#A22,The master node also includes CAN driver #A11, CAN driver #A12, CAN driver #A21 and CAN driver #A22,

CAN驱动器#A11设置于DSP#A1与CAN总线端口#A11之间,CAN驱动器#A12设置于DSP#A1与CAN总线端口#A12之间,CAN驱动器#A21设置于DSP#A2与CAN总线端口#A21之间,CAN驱动器#A22设置于DSP#A2与CAN总线端口#A22之间;CAN driver #A11 is set between DSP#A1 and CAN bus port #A11, CAN driver #A12 is set between DSP#A1 and CAN bus port #A12, CAN driver #A21 is set between DSP#A2 and CAN bus port# Between A21, CAN driver #A22 is set between DSP#A2 and CAN bus port #A22;

从节点还包括CAN驱动器#B11、CAN驱动器#B12、CAN驱动器#B21和CAN驱动器#B22,The slave node also includes CAN driver #B11, CAN driver #B12, CAN driver #B21 and CAN driver #B22,

CAN驱动器#B11设置于DSP#B1与CAN总线端口#B11之间,CAN驱动器#B12设置于DSP#B1与CAN总线端口#B12之间,CAN驱动器#B21设置于DSP#B2与CAN总线端口#B21之间,CAN驱动器#B22设置于DSP#B2与CAN总线端口#B22之间。CAN driver #B11 is set between DSP#B1 and CAN bus port #B11, CAN driver #B12 is set between DSP#B1 and CAN bus port #B12, CAN driver #B21 is set between DSP#B2 and CAN bus port# Between B21, CAN driver #B22 is set between DSP #B2 and CAN bus port #B22.

主节点还包括主存储器#A1和主存储器#A2,The master node also includes main storage #A1 and main storage #A2,

主存储器#A1与DSP#A1之间通过外部扩展接口相连接,主存储器#A2与DSP#A2之间通过外部扩展接口相连接;The main memory #A1 is connected to the DSP#A1 through an external expansion interface, and the main memory #A2 is connected to the DSP#A2 through an external expansion interface;

从节点还包括从存储器#B1和从存储器#B2,The slave node also includes slave memory #B1 and slave memory #B2,

从存储器#B1与DSP#B1之间通过外部扩展接口相连接,从存储器#B2与DSP#B2之间通过外部扩展接口相连接。The slave memory #B1 is connected to the DSP#B1 through the external expansion interface, and the slave memory #B2 is connected to the DSP#B2 through the external expansion interface.

它还包括液晶显示及操作器,It also includes LCD display and operator,

液晶显示及操作器作为人机接口,分别与DSP#A1、DSP#A2、DSP#B1和DSP#B2连接。The liquid crystal display and the manipulator are used as man-machine interface, respectively connected with DSP#A1, DSP#A2, DSP#B1 and DSP#B2.

它还包括电源,电源用于为DSP#A1、DSP#A2、DSP#B1和DSP#B2提供工作电源。It also includes a power supply, which is used to provide working power for DSP#A1, DSP#A2, DSP#B1 and DSP#B2.

本发明的优点:本发明所述数字网关具有高容错性,它可以实现包括链路端口、总线收发器、总线控制器、网关CPU和电源模块等在内的全系统双模热冗余,在网关内部的单子节点局部或整体发生故障的条件下,仍然能保证通信不发生中断,且无自愈时间,有利于全面提高网络互连的故障容错性与可靠性。Advantages of the present invention: the digital gateway of the present invention has high fault tolerance, and it can realize dual-mode thermal redundancy of the whole system including link ports, bus transceivers, bus controllers, gateway CPU and power supply modules, etc. Under the condition of partial or overall failure of a single sub-node inside the gateway, it can still ensure that the communication will not be interrupted, and there will be no self-healing time, which is conducive to comprehensively improving the fault tolerance and reliability of network interconnection.

本发明具备很强的兼容性和通用性,提供了双链路冗余的CAN主干网络之间、CAN主干网络与单链路非冗余的CAN子网之间的协议转换和数据高速缓存及转发,能够显著地减少网络间通信延时,适合在实际工业领域推广和普及。The present invention has strong compatibility and versatility, and provides protocol conversion and data high-speed buffering between dual-link redundant CAN backbone networks, and between CAN backbone networks and single-link non-redundant CAN subnets. Forwarding can significantly reduce the communication delay between networks, and is suitable for promotion and popularization in the actual industrial field.

本发明具有双路完全热冗余的网络桥接通道,在单通道故障的情况下,仍然能够保证两网的实时连通不发生中断,具有极高的可靠性。它采用了内部集成有丰富控制模块与高性能CPU的DSP芯片,从而加强了数据的处理和CAN总线收发控制的速度,极大地减少了网关的技术延时。本发明应用SPI接口替代双端口RAM实现双DSP间高速的数据交换,简化布线、降低成本并减少了板内电磁干扰对高速数据通信所带来的影响,提高了系统的可靠性。The present invention has a double-channel fully thermally redundant network bridging channel, which can still ensure that the real-time connection between the two networks will not be interrupted in the case of a single channel failure, and has extremely high reliability. It adopts a DSP chip integrated with rich control modules and high-performance CPU, which enhances the data processing and the speed of CAN bus transceiver control, and greatly reduces the technical delay of the gateway. The invention uses the SPI interface instead of the dual-port RAM to realize high-speed data exchange between the double DSPs, simplifies the wiring, reduces the cost, reduces the influence of the electromagnetic interference in the board on the high-speed data communication, and improves the reliability of the system.

本发明具有较强的故障诊断功能,主节点、从节点通过周期性或时间触发性的互检与自检能够及时地发现故障并向上位机报警,有利于系统的可靠运行及更换维修。配备液晶显示及操作器,使得网关使用操作简单方便,运行状态可被用户实时监控获取。与其它现有产品相比:目前市面上没有类似的可以应用于对可靠性要求非常高的工业领域技术产品。The invention has a strong fault diagnosis function, and the master node and the slave node can find faults in time through periodic or time-triggered mutual inspection and self-inspection and give an alarm to the upper computer, which is beneficial to the reliable operation and replacement and maintenance of the system. Equipped with a liquid crystal display and an operator, the gateway is easy to use and operate, and the operating status can be monitored and obtained by the user in real time. Compared with other existing products: there is currently no similar technical product on the market that can be applied to industrial fields that require very high reliability.

附图说明Description of drawings

图1是本发明所述基于双DSP的高容错性CAN总线数字网关的结构框图;Fig. 1 is the structural block diagram of the high fault-tolerant CAN bus digital gateway based on double DSP of the present invention;

图2是主节点和从节点的内部结构框图;Fig. 2 is the internal structural block diagram of master node and slave node;

图3是双路冗余CAN网络A和双路冗余CAN网络B通过CAN网关相互桥接的连接关系图;Figure 3 is a connection diagram of the dual redundant CAN network A and the dual redundant CAN network B bridging each other through the CAN gateway;

图4是非冗余子网络总线#E1和非冗余子网络总线#E2间通过CAN网关相互桥接的连接关系图;Fig. 4 is a connection relationship diagram of non-redundant sub-network bus #E1 and non-redundant sub-network bus #E2 bridged by CAN gateway;

图5是以非冗余子网络总线#E1和非冗余子网络总线#E2间的桥接为例,主节点的工作流程图;Fig. 5 takes the bridging between non-redundant sub-network bus #E1 and non-redundant sub-network bus #E2 as an example, the working flow diagram of the master node;

图6是以非冗余子网络总线#E1和非冗余子网络总线#E2间的桥接为例,从节点的工作流程图;Fig. 6 takes the bridging between non-redundant sub-network bus #E1 and non-redundant sub-network bus #E2 as an example, the work flow chart of the slave node;

图7是冗余网络与非冗余网络的数据转发通道示意图;Fig. 7 is a schematic diagram of data forwarding channels of a redundant network and a non-redundant network;

图8是本发明应用于小型商用支线飞机的机载电子设备组网示意图。Fig. 8 is a schematic diagram of a network of on-board electronic equipment applied to a small commercial regional aircraft according to the present invention.

具体实施方式Detailed ways

具体实施方式一:下面结合图1说明本实施方式,本实施方式所述基于双DSP的高容错性CAN总线数字网关,它包括主节点1、从节点2、双路冗余CAN网络A3、双路冗余CAN网络B4、非冗余子网络总线#E15和非冗余子网络总线#E26,Specific embodiment one: the present embodiment is described below in conjunction with Fig. 1, the high fault-tolerant CAN bus digital gateway based on double DSP described in the present embodiment, it comprises master node 1, slave node 2, dual-way redundant CAN network A3, dual redundant CAN network B4, non-redundant sub-network bus #E15 and non-redundant sub-network bus #E26,

双路冗余CAN网络A3包括网络总线#A1和网络总线#A2;Dual redundant CAN network A3 includes network bus #A1 and network bus #A2;

双路冗余CAN网络B4包括网络总线#B1和网络总线#B2;Dual redundant CAN network B4 includes network bus #B1 and network bus #B2;

主节点1包括DSP#A11-1、DSP#A21-2、CAN总线端口#A111-3、CAN总线端口#A121-4、CAN总线端口#A211-5和CAN总线端口#A221-6;Master node 1 includes DSP#A11-1, DSP#A21-2, CAN bus port #A111-3, CAN bus port #A121-4, CAN bus port #A211-5 and CAN bus port #A221-6;

从节点2包括DSP#B12-1、DSP#B22-2、CAN总线端口#B112-3、CAN总线端口#B122-4、CAN总线端口#B212-5和CAN总线端口#B222-6;Slave node 2 includes DSP#B12-1, DSP#B22-2, CAN bus port #B112-3, CAN bus port #B122-4, CAN bus port #B212-5 and CAN bus port #B222-6;

DSP#A11-1和DSP#A21-2之间通过SPI数据通道传输数据,DSP#A11-1通过CAN总线端口#A111-3与网络总线#A1连接,DSP#A11-1通过CAN总线端口#A121-4与非冗余子网络总线#E15连接,DSP#A21-2通过CAN总线端口#A211-5与网络总线#B2连接,DSP#A21-2通过CAN总线端口#A221-6与非冗余子网络总线#E26连接;Data is transmitted between DSP#A11-1 and DSP#A21-2 through SPI data channel, DSP#A11-1 is connected to network bus #A1 through CAN bus port #A111-3, and DSP#A11-1 is connected to network bus #A1 through CAN bus port# A121-4 is connected to non-redundant sub-network bus #E15, DSP#A21-2 is connected to network bus #B2 through CAN bus port #A211-5, DSP#A21-2 is connected to non-redundant subnetwork bus #A221-6 through CAN bus port I sub-network bus #E26 connection;

DSP#B12-1和DSP#B22-2之间通过SPI数据通道传输数据,DSP#B12-1通过CAN总线端口#B112-3与网络总线#B1连接,DSP#B12-1通过CAN总线端口#B122-4与非冗余子网络总线#E26连接,DSP#B22-2通过CAN总线端口#B212-5与网络总线#A2连接,DSP#B22-2通过CAN总线端口#B222-6与非冗余子网络总线#E15连接;Data is transmitted between DSP#B12-1 and DSP#B22-2 through the SPI data channel, DSP#B12-1 is connected to the network bus #B1 through the CAN bus port #B112-3, and DSP#B12-1 is connected to the network bus #B1 through the CAN bus port# B122-4 is connected to non-redundant sub-network bus #E26, DSP#B22-2 is connected to network bus #A2 through CAN bus port #B212-5, DSP#B22-2 is connected to non-redundant subnetwork bus #B222-6 through CAN bus port I sub-network bus #E15 connection;

主节点1的DSP#A11-1和DSP#A21-2与从节点2的DSP#B12-1和DSP#B22-2之间通过SPI数据通道传输数据。Data is transmitted between DSP#A11-1 and DSP#A21-2 of the master node 1 and DSP#B12-1 and DSP#B22-2 of the slave node 2 through the SPI data channel.

图1所示,数字网关内部主要由完全相同的两个相互独立的子节点组成,分别称为网关的主节点1和从节点2。主节点1和从节点2物理上完全隔离,同时上电工作,对于不同的任务各有合作与分工,相互间仅通过非冗余子网络总线#E15和非冗余子网络总线#E26松耦合连接,功能上是互为热备份的关系。As shown in Figure 1, the interior of the digital gateway is mainly composed of two identical sub-nodes that are independent of each other, which are called the master node 1 and the slave node 2 of the gateway respectively. The master node 1 and the slave node 2 are completely isolated physically, they are powered on at the same time, they have cooperation and division of labor for different tasks, and they are only loosely coupled through the non-redundant sub-network bus #E15 and the non-redundant sub-network bus #E26 The connection is functionally a relationship of hot backup for each other.

本实施方式中提供了8个独立的CAN总线端口,即CAN总线端口#A111-3、CAN总线端口#A121-4、CAN总线端口#A211-5、CAN总线端口#A221-6、CAN总线端口#B112-3、CAN总线端口#B122-4、CAN总线端口#B212-5和CAN总线端口#B222-6,可实现双路冗余CAN网络A3和双路冗余CAN网络B4之间、双路冗余CAN网络A3和双路冗余CAN网络B4与非冗余子网络总线#E15和非冗余子网络总线#E26之间的网际桥接,在主节点或从节点的局部或整体失效的情况下,仍然能够降级使用,确保网络间的不中断连通。Eight independent CAN bus ports are provided in this embodiment, namely CAN bus port #A111-3, CAN bus port #A121-4, CAN bus port #A211-5, CAN bus port #A221-6, CAN bus port #B112-3, CAN bus port #B122-4, CAN bus port #B212-5 and CAN bus port #B222-6, can realize dual redundant CAN network A3 and dual redundant CAN network B4, dual Internet bridge between one-way redundant CAN network A3 and two-way redundant CAN network B4 and non-redundant sub-network bus #E15 and non-redundant sub-network bus #E26, in case of partial or overall failure of master node or slave node In some cases, it can still be downgraded to ensure uninterrupted connectivity between networks.

具体实施方式二:下面结合图1和图2说明本实施方式,本实施方式对实施方式一作进一步说明,本实施方式所述主节点1还包括CAN驱动器#A111-7、CAN驱动器#A121-8、CAN驱动器#A211-9和CAN驱动器#A221-10,Specific embodiment two: The present embodiment will be described below in conjunction with Fig. 1 and Fig. 2, and this embodiment will further explain the first embodiment, the master node 1 described in this embodiment also includes CAN driver #A111-7, CAN driver #A121-8 , CAN driver #A211-9 and CAN driver #A221-10,

CAN驱动器#A111-7设置于DSP#A11-1与CAN总线端口#A111-3之间,CAN驱动器#A121-8设置于DSP#A11-1与CAN总线端口#A121-4之间,CAN驱动器#A211-9设置于DSP#A21-2与CAN总线端口#A211-5之间,CAN驱动器#A221-10设置于DSP#A21-2与CAN总线端口#A221-6之间;CAN driver #A111-7 is set between DSP#A11-1 and CAN bus port #A111-3, CAN driver #A121-8 is set between DSP#A11-1 and CAN bus port #A121-4, CAN driver #A211-9 is set between DSP#A21-2 and CAN bus port #A211-5, CAN driver #A221-10 is set between DSP#A21-2 and CAN bus port #A221-6;

从节点2还包括CAN驱动器#B112-7、CAN驱动器#B122-8、CAN驱动器#B212-9和CAN驱动器#B222-10,Slave node 2 also includes CAN driver #B112-7, CAN driver #B122-8, CAN driver #B212-9 and CAN driver #B222-10,

CAN驱动器#B112-7设置于DSP#B12-1与CAN总线端口#B112-3之间,CAN驱动器#B122-8设置于DSP#B12-1与CAN总线端口#B122-4之间,CAN驱动器#B212-9设置于DSP#B22-2与CAN总线端口#B212-5之间,CAN驱动器#B222-10设置于DSP#B22-2与CAN总线端口#B222-6之间。CAN driver #B112-7 is set between DSP#B12-1 and CAN bus port #B112-3, CAN driver #B122-8 is set between DSP#B12-1 and CAN bus port #B122-4, CAN driver #B212-9 is set between DSP#B22-2 and CAN bus port #B212-5, CAN driver #B222-10 is set between DSP#B22-2 and CAN bus port #B222-6.

本实施方式中,DSP芯片作为网关子节点核心模块,内部集成有CPU与CAN总线控制模块,其运算速度快、可靠性高,不仅负责管理数据的CAN总线的收发控制、速率匹配、地址重映射和数据的缓存,而且相互间通过SPI、CAN#E1和CAN#E2三种数据通道,基于一定的信息去冗余、信息冗余、数据整形、调度控制等算法,根据实际需求,实现不同网络之间的协议转换与数据转发。In this embodiment, the DSP chip is used as the core module of the gateway sub-node, and the CPU and the CAN bus control module are integrated inside. Its operation speed is fast and its reliability is high. And data cache, and through three data channels of SPI, CAN#E1 and CAN#E2, based on certain algorithms such as information redundancy, information redundancy, data shaping, scheduling control, etc., according to actual needs, different network Protocol conversion and data forwarding between.

具体实施方式三:下面结合图2说明本实施方式,本实施方式对实施方式二作进一步说明,本实施方式所述主节点1还包括主存储器#A11-11和主存储器#A21-12,Specific implementation mode 3: The following describes this implementation mode in conjunction with FIG. 2 . This implementation mode further explains implementation mode 2. The master node 1 in this implementation mode also includes a main memory #A11-11 and a main memory #A21-12.

主存储器#A11-11与DSP#A11-1之间通过外部扩展接口相连接,主存储器#A21-12与DSP#A21-2之间通过外部扩展接口相连接;The main memory #A11-11 is connected with the DSP#A11-1 through the external expansion interface, and the main memory #A21-12 is connected with the DSP#A21-2 through the external expansion interface;

从节点2还包括从存储器#B12-11和从存储器#B22-12,Slave node 2 also includes from memory #B12-11 and from memory #B22-12,

从存储器#B12-11与DSP#B12-1之间通过外部扩展接口相连接,从存储器#B22-12与DSP#B22-2之间通过外部扩展接口相连接。The slave memory #B12-11 is connected with the DSP#B12-1 through the external expansion interface, and the slave memory #B22-12 is connected with the DSP#B22-2 through the external expansion interface.

双DSP间通过SPI串口互连,不仅提供速率高达10M/b数据交换,而且兼顾了传输的抗干扰性与可靠性。CAN驱动器能够实现差分码与二进制数据转换的物理层功能。每个DSP各配有一个存储器SRAM用于待转发数据帧的缓存,DSP与存储器SRAM通过外部扩展接口XINTF相连接。The two DSPs are interconnected through the SPI serial port, which not only provides data exchange at a rate of up to 10M/b, but also takes into account the anti-interference and reliability of transmission. The CAN driver can realize the physical layer function of differential code and binary data conversion. Each DSP is equipped with a memory SRAM for buffering data frames to be forwarded, and the DSP and the memory SRAM are connected through an external expansion interface XINTF.

具体实施方式四:下面结合图2说明本实施方式,本实施方式对实施方式一、二或三作进一步说明,本实施方式还包括液晶显示及操作器7,Specific embodiment four: the present embodiment will be described below in conjunction with FIG. 2 . This embodiment will further describe embodiment one, two or three. This embodiment also includes a liquid crystal display and an operator 7.

液晶显示及操作器7作为人机接口,分别与DSP#A11-1、DSP#A21-2、DSP#B12-1和DSP#B22-2连接。The liquid crystal display and manipulator 7 are used as the man-machine interface, respectively connected with DSP#A11-1, DSP#A21-2, DSP#B12-1 and DSP#B22-2.

液晶显示及操作器7作为人机接口,用于网关子节点的配置与故障报警。The liquid crystal display and the manipulator 7 are used as the man-machine interface for configuration and fault alarm of the sub-nodes of the gateway.

具体实施方式五:下面结合图1至图8说明本实施方式,本实施方式对实施方式一、二、三或四作进一步说明,本实施方式还包括电源8,电源8用于为DSP#A11-1、DSP#A21-2、DSP#B12-1和DSP#B22-2提供工作电源。Specific embodiment five: the present embodiment is described below in conjunction with Fig. 1 to Fig. 8, and present embodiment is further described to embodiment one, two, three or four, and present embodiment also includes power supply 8, and power supply 8 is used for DSP#A11 -1, DSP#A21-2, DSP#B12-1 and DSP#B22-2 provide working power.

本发明的工作原理及运行过程:Working principle and operation process of the present invention:

双路冗余CAN网络A3和双路冗余CAN网络B4间的桥接:Bridge between dual redundant CAN network A3 and dual redundant CAN network B4:

双路冗余CAN网络A3和双路冗余CAN网络B4通过CAN网关相互桥接,如图3所示。此时,网关的主节点1和从节点2同步工作,实现两网数据帧的双向转发。两个数据通道互为热备份,链路P、Q和Z的通断与网关主节点的CAN#A11端口、CAN#A21端口、CAN收发器、DSP#A1、DSP#A2及双DSP间SPI接口的健康状况有关,链路L、M和N的通断则与网关从节点的CAN#B21端口、CAN#B11端口、CAN收发器、DSP#B1、DSP#B2和双DSP间SPI接口的健康状况有关。The dual-channel redundant CAN network A3 and the dual-channel redundant CAN network B4 are bridged to each other through the CAN gateway, as shown in FIG. 3 . At this time, the master node 1 and slave node 2 of the gateway work synchronously to realize bidirectional forwarding of data frames of the two networks. and The two data channels are hot backup for each other, and the on-off of links P, Q, and Z is connected to the CAN#A11 port, CAN#A21 port, CAN transceiver, DSP#A1, DSP#A2 and SPI between the dual DSPs of the gateway master node. The health status of the interface is related, and the on-off of the links L, M and N is related to the CAN#B21 port, CAN#B11 port, CAN transceiver, DSP#B1, DSP#B2 and the SPI interface between the dual DSPs of the gateway slave node. related to health status.

因为从节点与主节点互相是完全独立的,所以假设网关的主节点上发生某种软件或硬件故障造成图3中的数据通道断开,那么网关的数据通道仍然能正常工作,不会造成两网间数据传输的中断,即双路冗余CAN网络A3和双路冗余CAN网络B4中的通信节点仍然可以通过链路同理,当从节点出现部分或全局故障时,网关主节点也同样能够完成两网间的互连。Because the slave node and the master node are completely independent of each other, it is assumed that some kind of software or hardware failure occurs on the master node of the gateway to cause the The data channel is disconnected, then the data channel of the gateway It can still work normally and will not cause interruption of data transmission between the two networks, that is, the communication nodes in the dual redundant CAN network A3 and the dual redundant CAN network B4 can still pass the link Similarly, when a partial or global failure occurs in a slave node, the master node of the gateway can also complete the interconnection between the two networks.

非冗余子网络总线#E15和非冗余子网络总线#E26间的桥接:Bridge between non-redundant subnet bus #E15 and non-redundant subnet bus #E26:

非冗余子网络总线#E15和非冗余子网络总线#E26间通过CAN网关相互桥接,如图4所示。此时,网关的主节点和从节点同时工作,相互监控,各有任务分工。主节点负责两网间数据帧的实时双向转发,而从节点则在接收数据帧后暂不进行转发,而是在等待时间窗Skew_Max内监控主节点所转发的数据帧,并通过对比自身接收到的数据帧与监控到的主节点转发数据帧的内容及序列号,来判断主节点在数据帧转发的过程中是否出现帧错误、帧丢失、传输中断或大延时等情况。如果监控到主节点发生上述错误,从节点则实时补发正确的数据帧、向主节点发送故障查询帧并向上位机报警。此时,在故障条件下从节点可以人工设定为主节点,或者当主节点多次重复故障时从节点自动切换为主节点,且切换过程不会造成通信中断。以非冗余子网络总线#E15和非冗余子网络总线#E26间的桥接为例,主节点和从节点的工作流程分别如图5和图6所示。The non-redundant sub-network bus #E15 and the non-redundant sub-network bus #E26 are bridged to each other through the CAN gateway, as shown in FIG. 4 . At this time, the master node and the slave node of the gateway work at the same time, monitor each other, and each has a division of labor. The master node is responsible for the real-time two-way forwarding of data frames between the two networks, while the slave node does not forward the data frames temporarily after receiving the data frames, but monitors the data frames forwarded by the master node within the waiting time window Skew_Max, and compares the data frames received by itself The data frame and the content and serial number of the data frame forwarded by the master node are monitored to determine whether the master node has a frame error, frame loss, transmission interruption or large delay during the data frame forwarding process. If it is monitored that the above-mentioned errors occur on the master node, the slave node will reissue the correct data frame in real time, send a fault query frame to the master node and alarm the host computer. At this time, the slave node can be manually set as the master node under failure conditions, or the slave node can automatically switch to the master node when the master node repeatedly fails, and the switching process will not cause communication interruption. Taking the bridging between the non-redundant sub-network bus #E15 and the non-redundant sub-network bus #E26 as an example, the workflows of the master node and the slave node are shown in Figure 5 and Figure 6 respectively.

如上述原理,即便主节点或从节点发生局部故障或整体失效的严重情况发生,非冗余子网络总线#E15和非冗余子网络总线#E26间的相互通信仍然不会中断,且等待时间窗Skew_Max的设定不超过1ms,即一旦主节点发生故障,从节点的补发数据帧所引入的技术延时不会超过1ms,此时的CAN总线通信仍然是毫秒级确定的。这种最大限度的结构冗余方式和热备份的工作方式极大地提高了CAN网关的可靠性。According to the above principle, even if the master node or the slave node has a partial failure or a serious situation of overall failure, the mutual communication between the non-redundant sub-network bus #E15 and the non-redundant sub-network bus #E26 will still not be interrupted, and the waiting time The setting of the window Skew_Max does not exceed 1ms, that is, once the master node fails, the technical delay introduced by the reissued data frame of the slave node will not exceed 1ms, and the CAN bus communication at this time is still determined at the millisecond level. This maximum structure redundancy method and hot backup work method have greatly improved the reliability of the CAN gateway.

冗余网络与非冗余网络的桥接:Bridging redundant and non-redundant networks:

本发明可实现冗余CAN网络与非冗余CAN网络间的桥接。网络总线#A1和网络总线#A2互为热冗余,如图7所示,图中通道(一)实现网络总线#A1与非冗余子网络总线#E15之间的数据转发,通道(二)实现网络总线#A2与非冗余子网络总线#E15之间的数据转发,两条数据通道是互为热备份的关系。同理,通道(三)和(四)实现网络总线#B1或网络总线#B2与非冗余子网络总线#E2之间的数据转发。The invention can realize the bridging between redundant CAN network and non-redundant CAN network. The network bus #A1 and the network bus #A2 are mutually thermally redundant, as shown in Figure 7, the channel (1) in the figure realizes the data forwarding between the network bus #A1 and the non-redundant sub-network bus #E15, and the channel (2 ) realizes the data forwarding between the network bus #A2 and the non-redundant sub-network bus #E15, and the two data channels are mutually hot backup. Similarly, channels (3) and (4) implement data forwarding between network bus #B1 or network bus #B2 and non-redundant sub-network bus #E2.

冗余网络与非冗余网络的桥接分为冗余过程和非冗余过程,下面以冗余网络总线#A1或网络总线#A2与非冗余子网络总线#E15之间的桥接为例来具体说明:The bridging between redundant network and non-redundant network is divided into redundant process and non-redundant process. The following is an example of bridging between redundant network bus #A1 or network bus #A2 and non-redundant sub-network bus #E15 Specific instructions:

冗余过程:Redundant process:

非冗余子网络总线#E15至网络总线#A1或网络总线#A2是冗余过程,涉及到CAN网关将非冗余子网络总线#E15上的数据帧进行信息冗余,并同时转发到网络总线#A1和网络总线#A2两个互为热冗余的通信链路上。冗余过程中,网关主节点和从节点是对等的,完成相同的数据帧转发过程。而且,为了尽量减少网关数据处理所引入的技术延时,在转发过程中并不进行相互间的实时对比监控。无论是主节点还是从节点,当接收到非冗余子网络总线#E15的数据帧时,只要校验正确就立即进行转发。同时,为了保证网关主节点和从节点间的同步,两个节点在工作过程中,会通过非冗余子网络总线#E15进行周期性的同步与状态互检。The non-redundant sub-network bus #E15 to the network bus #A1 or the network bus #A2 is a redundant process, which involves the CAN gateway to perform information redundancy on the data frame on the non-redundant sub-network bus #E15 and forward it to the network at the same time The bus #A1 and the network bus #A2 are on two mutually hot redundant communication links. In the redundancy process, the gateway master node and the slave node are equal, and complete the same data frame forwarding process. Moreover, in order to minimize the technical delay introduced by gateway data processing, no real-time comparative monitoring is performed during the forwarding process. Regardless of whether it is the master node or the slave node, when receiving the data frame of the non-redundant sub-network bus #E15, it will forward it immediately as long as the verification is correct. At the same time, in order to ensure the synchronization between the master node and the slave node of the gateway, the two nodes will perform periodic synchronization and status mutual check through the non-redundant sub-network bus #E15 during the working process.

去冗余过程:由网络总线#A1和网络总线#A2到非冗余子网络总线#E15是去冗余过程,主节点1、从节点2基于一定的去冗余控制算法,所述控制算法与CAN网络采用的具体协议有关,这里以ARINC825协议为例,将网络总线#A1和网络总线#A2上的数据帧进行信息的去冗余,再转发到非冗余子网络总线#E15上。去冗余过程中,网关的主节点负责数据的转发,而从节点则在网关正常工作的情况下仅向主节点转发其CAN总线端口#B212-5接收到的数据帧,并由主节点完成对于两路具有相同序列号,即互为备份的数据帧的对比检验、冗余信息的移除和向非冗余子网络总线#E15的转发。在去冗余过程中,由于双路冗余链路传输延时及故障的影响,将会有以下三种的情况发生,分别对应网关的三种工作模式:De-redundancy process: from network bus #A1 and network bus #A2 to non-redundant sub-network bus #E15 is a de-redundancy process. Master node 1 and slave node 2 are based on a certain de-redundancy control algorithm, and the control algorithm It is related to the specific protocol adopted by the CAN network. Here, taking the ARINC825 protocol as an example, the data frames on the network bus #A1 and the network bus #A2 are de-redundant, and then forwarded to the non-redundant sub-network bus #E15. During the de-redundancy process, the master node of the gateway is responsible for data forwarding, while the slave node only forwards the data frame received by its CAN bus port #B212-5 to the master node when the gateway is working normally, and the master node completes For the two paths with the same serial number, that is, the comparison check of the data frames that are mutually backup, the removal of redundant information and the forwarding to the non-redundant sub-network bus #E15. During the de-redundancy process, due to the transmission delay and failure of the dual redundant link, the following three situations will occur, corresponding to the three working modes of the gateway:

1假设由于从节点故障或者网络总线#A2出现延时等情况,主节点的CAN总线端口#A111-3先接收到网络总线#A1发往非冗余子网络总线#E1的数据帧,那么其将在等待时间窗Skew_Max内,等待从节点的经过非冗余子网络总线#E1转发来的备份帧。如果主节点能够在等待时间窗内收到从节点的备份帧,且能够通过对比校验,则主节点对外转发该帧,并更新序列号判断阀值PSN=PSN+1,此时可认为网关及链路的状态均处于良好范围内。如果在时间窗内接收到了从节点发来的备份帧却对比检验不通过,那么认为链路上或者从节点内部发生扰动,主节点会向上位机报错,并请求双路冗余CAN网络A3中相应端节点重新发送该帧。而如果在等待窗口内没有接收到从节点的备份帧,那么主节点将直接向非冗余子网络总线#E15转发接收到的数据帧,然后向从节点发出状态查询帧和对上位机进行故障报警,告知用户出现了丢帧的情况。1 Assuming that due to the failure of the slave node or the delay of the network bus #A2, the CAN bus port #A111-3 of the master node first receives the data frame sent by the network bus #A1 to the non-redundant sub-network bus #E1, then its It will wait for the backup frame forwarded from the slave node through the non-redundant subnetwork bus #E1 within the waiting time window Skew_Max. If the master node can receive the backup frame from the slave node within the waiting time window and can pass the comparison check, the master node will forward the frame externally and update the sequence number judgment threshold PSN=PSN+1, at this time it can be regarded as a gateway and link status are in good range. If the backup frame sent by the slave node is received within the time window but the comparison check fails, then it is considered that there is a disturbance on the link or inside the slave node, and the master node will report an error to the host computer and request the dual redundant CAN network A3 The corresponding end node resends the frame. If the backup frame of the slave node is not received within the waiting window, the master node will directly forward the received data frame to the non-redundant sub-network bus #E15, and then send a status query frame to the slave node and troubleshoot the upper computer. Alarm to inform the user that a frame loss has occurred.

2假设由于主节点端口故障或者网络总线#A1出现延时等情况,主节点先接收到由从节点通过非冗余子网络总线#E15转发来的备份帧,那么其将在等待时间窗内等待网络总线#A1上的具有同样序列号数据帧。然后,如果在等待时间窗内接收到了该数据帧,且通过了对比校验,那么主节点将对外转发该帧。如果在等待时间窗内未收到该帧,则向非冗余子网络总线#E15转发从节点发来的备份帧,并更新序列号判断阀值PSN=PSN+1,同时向上位机进行故障报警。2 Assuming that due to the failure of the master node port or the delay of the network bus #A1, the master node first receives the backup frame forwarded by the slave node through the non-redundant sub-network bus #E15, then it will wait within the waiting time window Data frames with the same sequence number on network bus #A1. Then, if the data frame is received within the waiting time window and passes the comparison check, the master node will forward the frame externally. If the frame is not received within the waiting time window, the backup frame sent from the node is forwarded to the non-redundant subnetwork bus #E15, and the sequence number judgment threshold PSN=PSN+1 is updated, and the upper computer is faulted Call the police.

3假设由于主节点永久性故障或网络总线#A1断开等情况,那么从节点向主节点成功转发网络总线#A2上的备份帧后,在等待时间窗内将不会监控到主节点对外转发的数据帧,那么此时从节点会直接对外转发该备份帧,并更新序列号判断阀值PSN=PSN+1,同时向上位机进行故障报警。3 Assuming that due to the permanent failure of the master node or the disconnection of the network bus #A1, etc., after the slave node successfully forwards the backup frame on the network bus #A2 to the master node, it will not monitor the external forwarding of the master node within the waiting time window At this time, the slave node will directly forward the backup frame to the outside, and update the sequence number judgment threshold PSN=PSN+1, and at the same time issue a fault alarm to the upper computer.

本发明可以应用于小型商用支线飞机的机载电子设备组网,完成基于航空CAN总线,即ARINC825总线的航电系统主干网络与分区子网络之间的桥接。如图8所示,CAN#A1/CAN#A2和CAN#B1/CAN#B2构成某小型商用支线飞机电子系统的两条双冗余主干网络,其中CAN#A1/#A2是机载电子设备的执行器网络,互为冗余,而CAN#A1/#A2则为传感器网络。座舱控制系统作为整个航电系统的控制终端,其内部的航空计算机通过四个独立的CAN端口与两个主干网络互连,负责管理所有的机载电子资源。机舱内各航电子系统须通过网络设备接入主干网络,完成控制指令传输与高度的信息共享。本发明所述的数字网关能够有效支持ARINC825协议,可为子系统网络与主干网络的高速互联提供可靠保证。通过数字网关的转换,航电系统主干冗余网络CAN#A1/CAN#A2和CAN#B1/CAN#B2分别与子系统#3内部的非冗余网络CAN#E1和CAN#E2实现互联桥接,并且只要网关内部的两个子节点中有一个能够正常地工作,那么的数据通信就不会发生任何中断。The invention can be applied to the networking of airborne electronic equipment of small-scale commercial regional aircraft, and completes the bridging between the backbone network of the avionics system and the partition sub-network based on the aviation CAN bus, that is, the ARINC825 bus. As shown in Figure 8, CAN#A1/CAN#A2 and CAN#B1/CAN#B2 constitute two dual-redundant backbone networks of a small commercial branch aircraft electronic system, among which CAN#A1/#A2 are airborne electronic equipment The actuator network of CAN is redundant with each other, while CAN#A1/#A2 is the sensor network. The cockpit control system is the control terminal of the entire avionics system, and its internal aviation computer is interconnected with two backbone networks through four independent CAN ports, and is responsible for managing all onboard electronic resources. Each avionics system in the cabin must be connected to the backbone network through network equipment to complete control command transmission and high-level information sharing. The digital gateway of the invention can effectively support the ARINC825 protocol, and can provide reliable guarantee for the high-speed interconnection between the subsystem network and the backbone network. Through the conversion of the digital gateway, the backbone redundant network CAN#A1/CAN#A2 and CAN#B1/CAN#B2 of the avionics system are interconnected and bridged with the non-redundant network CAN#E1 and CAN#E2 inside the subsystem #3 respectively , and as long as one of the two child nodes inside the gateway is functioning properly, then and data communication without any interruption.

Claims (5)

1. the high fault tolerance CAN digital gateway based on two CSTR, it is characterized in that, it comprises host node (1), from node (2), two-way redundancy CAN network A (3), two-way redundancy CAN network B (4), nonredundancy sub-network bus #E1 (5) and nonredundancy sub-network bus #E2 (6)
Two-way redundancy CAN network A (3) comprises network-bus #A1 and network-bus #A2;
Two-way redundancy CAN network B (4) comprises network-bus #B1 and network-bus #B2;
Host node (1) comprises DSP#A1 (1-1), DSP#A2 (1-2), CAN port #A11 (1-3), CAN port #A12 (1-4), CAN port #A21 (1-5) and CAN port #A22 (1-6);
DSP#B1 (2-1), DSP#B2 (2-2), CAN port #B11 (2-3), CAN port #B12 (2-4), CAN port #B21 (2-5) and CAN port #B22 (2-6) is comprised from node (2);
By SPI data channel transmission data between DSP#A1 (1-1) and DSP#A2 (1-2), DSP#A1 (1-1) is connected with network-bus #A1 by CAN port #A11 (1-3), DSP#A1 (1-1) is connected with nonredundancy sub-network bus #E1 (5) by CAN port #A12 (1-4), DSP#A2 (1-2) is connected with network-bus #B2 by CAN port #A21 (1-5), and DSP#A2 (1-2) is connected with nonredundancy sub-network bus #E2 (6) by CAN port #A22 (1-6);
By SPI data channel transmission data between DSP#B1 (2-1) and DSP#B2 (2-2), DSP#B1 (2-1) is connected with network-bus #B1 by CAN port #B11 (2-3), DSP#B1 (2-1) is connected with nonredundancy sub-network bus #E2 (6) by CAN port #B12 (2-4), DSP#B2 (2-2) is connected with network-bus #A2 by CAN port #B21 (2-5), and DSP#B2 (2-2) is connected with nonredundancy sub-network bus #E1 (5) by CAN port #B22 (2-6);
The DSP#A1 (1-1) of host node (1) and between the DSP#B1 (2-1) and DSP#B2 (2-2) of node (2), the DSP#A2 (1-2) of host node (1) and transmit data by SPI data channel between the DSP#B1 (2-1) and DSP#B2 (2-2) of node (2).
2. the high fault tolerance CAN digital gateway based on two CSTR according to claim 1, it is characterized in that, host node (1) also comprises CAN driver #A11 (1-7), CAN driver #A12 (1-8), CAN driver #A21 (1-9) and CAN driver #A22 (1-10)
CAN driver #A11 (1-7) is arranged between DSP#A1 (1-1) and CAN port #A11 (1-3), CAN driver #A12 (1-8) is arranged between DSP#A1 (1-1) and CAN port #A12 (1-4), CAN driver #A21 (1-9) is arranged between DSP#A2 (1-2) and CAN port #A21 (1-5), and CAN driver #A22 (1-10) is arranged between DSP#A2 (1-2) and CAN port #A22 (1-6);
CAN driver #B11 (2-7), CAN driver #B12 (2-8), CAN driver #B21 (2-9) and CAN driver #B22 (2-10) is also comprised from node (2),
CAN driver #B11 (2-7) is arranged between DSP#B1 (2-1) and CAN port #B11 (2-3), CAN driver #B12 (2-8) is arranged between DSP#B1 (2-1) and CAN port #B12 (2-4), CAN driver #B21 (2-9) is arranged between DSP#B2 (2-2) and CAN port #B21 (2-5), and CAN driver #B22 (2-10) is arranged between DSP#B2 (2-2) and CAN port #B22 (2-6).
3. the high fault tolerance CAN digital gateway based on two CSTR according to claim 2, is characterized in that, host node (1) also comprises main storage #A1 (1-11) and main storage #A2 (1-12),
Be connected by external expansion interface between main storage #A1 (1-11) with DSP#A1 (1-1), be connected by external expansion interface between main storage #A2 (1-12) with DSP#A2 (1-2);
Also comprise from memory #B1 (2-11) with from memory #B2 (2-12) from node (2),
Be connected by external expansion interface between memory #B1 (2-11) with DSP#B1 (2-1), be connected by external expansion interface between memory #B2 (2-12) with DSP#B2 (2-2).
4. the high fault tolerance CAN digital gateway based on two CSTR according to claim 1,2 or 3, is characterized in that, it also comprises liquid crystal display and operator (7),
Liquid crystal display and operator (7), as man-machine interface, are connected with DSP#A1 (1-1), DSP#A2 (1-2), DSP#B1 (2-1) and DSP#B2 (2-2) respectively.
5. the high fault tolerance CAN digital gateway based on two CSTR according to claim 4, it is characterized in that, it also comprises power supply (8), and power supply (8) is for providing working power for DSP#A1 (1-1), DSP#A2 (1-2), DSP#B1 (2-1) and DSP#B2 (2-2).
CN201310065829.5A 2013-03-01 2013-03-01 Based on the high fault tolerance CAN digital gateway of two CSTR Active CN103139060B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310065829.5A CN103139060B (en) 2013-03-01 2013-03-01 Based on the high fault tolerance CAN digital gateway of two CSTR

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310065829.5A CN103139060B (en) 2013-03-01 2013-03-01 Based on the high fault tolerance CAN digital gateway of two CSTR

Publications (2)

Publication Number Publication Date
CN103139060A CN103139060A (en) 2013-06-05
CN103139060B true CN103139060B (en) 2015-10-28

Family

ID=48498390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310065829.5A Active CN103139060B (en) 2013-03-01 2013-03-01 Based on the high fault tolerance CAN digital gateway of two CSTR

Country Status (1)

Country Link
CN (1) CN103139060B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363156B (en) * 2014-10-31 2017-12-01 北奔重型汽车集团有限公司 A kind of dual redundant network topological method
CN105323162A (en) * 2015-09-29 2016-02-10 深圳市安冠科技有限公司 Internet of Things routing system and method
CN109104348B (en) 2017-06-21 2020-09-15 比亚迪股份有限公司 Train network data transmission method, system and device based on CANopen protocol
CN107453913B (en) * 2017-08-14 2020-08-07 深圳通业科技股份有限公司 Gateway redundancy method with high-speed communication between processors
CN107992376B (en) * 2017-11-24 2020-10-30 西安微电子技术研究所 Active fault tolerance method and device for data storage of DSP (digital Signal processor)
CN110134631B (en) * 2019-05-09 2023-05-23 中国航空工业集团公司西安航空计算技术研究所 Self-recovery SPI bus communication interface and self-recovery method thereof
CN110650073B (en) * 2019-09-12 2021-06-11 江苏伦肯智能科技有限公司 CAN bus communication method for mass data transmission
CN111510359B (en) * 2020-03-23 2022-03-11 许昌中科森尼瑞技术有限公司 Low-delay end-to-end communication method based on CAN bus
CN111614532B (en) * 2020-05-13 2022-04-12 湖北三江航天万峰科技发展有限公司 CAN redundant communication system based on DSP
CN112291128B (en) 2020-10-29 2022-10-21 黑芝麻智能科技(上海)有限公司 Bus-based communication system, system on chip and method therefor
CN112929265A (en) * 2021-02-08 2021-06-08 上海弘积信息科技有限公司 Method for any node to place VRRP any node in main in real time
CN113722250B (en) * 2021-09-15 2024-09-27 南京全信传输科技股份有限公司 Aurora protocol-based double-path redundant data exchange method and system
CN114338275B (en) * 2021-12-31 2023-09-19 北京神经元网络技术有限公司 AUTBUS bus network node management method, device, equipment and storage medium
CN114802820B (en) * 2022-05-12 2023-06-02 中国电子科技集团公司第十研究所 Power management control structure and method for spacecraft payload

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889543A (en) * 2006-07-17 2007-01-03 朱宁宁 A communication gate in automatic system
CN101908974A (en) * 2010-07-16 2010-12-08 北京航天发射技术研究所 CAN bus dual redundant hot switching system and hot switching method
CN102063095A (en) * 2009-11-18 2011-05-18 吉林大元电子科技有限公司 CAN bus electronic control device for automobile
CN202190288U (en) * 2011-08-23 2012-04-11 中国北方车辆研究所 Double-gateway redundancy structure for vehicle
CN202737473U (en) * 2012-08-03 2013-02-13 北京东展科博电子有限公司 Dual-redundancy DSP control device for SVG controller

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005333243A (en) * 2004-05-18 2005-12-02 Mitsubishi Electric Corp Media gateway device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889543A (en) * 2006-07-17 2007-01-03 朱宁宁 A communication gate in automatic system
CN102063095A (en) * 2009-11-18 2011-05-18 吉林大元电子科技有限公司 CAN bus electronic control device for automobile
CN101908974A (en) * 2010-07-16 2010-12-08 北京航天发射技术研究所 CAN bus dual redundant hot switching system and hot switching method
CN202190288U (en) * 2011-08-23 2012-04-11 中国北方车辆研究所 Double-gateway redundancy structure for vehicle
CN202737473U (en) * 2012-08-03 2013-02-13 北京东展科博电子有限公司 Dual-redundancy DSP control device for SVG controller

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"基于双DSP的航空发动机电子控制器设计及仿真验证";强宁;《现代制造工程》;20080518;第113-117页 *
"航空发动机双余度智能位置控制器设计";崔勇,黄金泉;《推进技术》;20051231;第26卷(第6期);第535-539页 *
"车载双路CAN总线冗余网关的设计";卢玉传 等;《车辆与动力技术》;20120315;第45-50页 *

Also Published As

Publication number Publication date
CN103139060A (en) 2013-06-05

Similar Documents

Publication Publication Date Title
CN103139060B (en) Based on the high fault tolerance CAN digital gateway of two CSTR
CN104579606B (en) Double-unit traction controller network system redundancy design method
CN103955188B (en) Control system and method supporting redundancy switching function
CN100534024C (en) Fault handling method, system and switching device based on industrial Ethernet
US9565270B2 (en) LPC2468-based MVB-WTB gateway and working method thereof
CN103149907B (en) Hot-redundancy CAN (Controller Area Network)-bus high-fault-tolerance control terminal and method based on dual DSPs (Digital Signal Processors)
CN102035688B (en) Design method for rapidly controlling network link access
CN104669268B (en) A kind of redundancy underwater robot self-control system based on Hot Spare and method
CN105897574B (en) Modbus RTU/TCP gateway device supporting double-network double-master redundancy
CN210225442U (en) double-CAN redundancy system based on full backup
WO2024011906A1 (en) Master-slave redundancy control system and method
CN111711583B (en) Switch supporting configuration of multiple redundancy protocols and transformer substation network system
CN101710376B (en) Hardware platform of safe computer 2-out-of-3 voting method
CN102799153A (en) Wired and wireless hot-standby redundancy multi-master communication method and field network node module
CN102739456A (en) Wired and wireless hot backup redundancy multi-master communication method, and field gateway module
CN102193543A (en) Control system based on profibus redundant network topological structure and switching method of control system
CN106789511A (en) Train based on FPGA CAN communication switching control method and modular converter
WO2025060691A1 (en) Redundant flight control and navigation system
CN104333205B (en) A kind of converter valve level control device for flexible AC transmission
CN106656625B (en) Based on the train of ARM CAN communication switching control method and conversion module
CN102407868B (en) Hot-standby dual-connection method suitable for communication protocol of modern monitoring system of rail transit
CN118381691B (en) A rail transit door system network architecture and network communication method
CN104007657B (en) The docking facilities and method of a kind of triplex level redundancy system and double redundant system
CN207304589U (en) Aerospace vehicle communication system based on plastic optical fiber CAN bus
CN204463106U (en) UM-BUS bus channel fault detection controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20190611

Address after: 150000 Heilongjiang Harbin Dalian economic and Trade Zone, the North Road and Xingkai Road intersection

Patentee after: HIT ROBOT GROUP Co.,Ltd.

Address before: 150001 No. 92 West straight street, Nangang District, Heilongjiang, Harbin

Patentee before: Harbin Institute of Technology

TR01 Transfer of patent right
PP01 Preservation of patent right

Effective date of registration: 20240626

Granted publication date: 20151028

PP01 Preservation of patent right