WO2014176864A1 - Line concentration method for multi-channel isolation of can bus - Google Patents

Line concentration method for multi-channel isolation of can bus Download PDF

Info

Publication number
WO2014176864A1
WO2014176864A1 PCT/CN2013/084098 CN2013084098W WO2014176864A1 WO 2014176864 A1 WO2014176864 A1 WO 2014176864A1 CN 2013084098 W CN2013084098 W CN 2013084098W WO 2014176864 A1 WO2014176864 A1 WO 2014176864A1
Authority
WO
WIPO (PCT)
Prior art keywords
bus
opposite side
level
state
delay
Prior art date
Application number
PCT/CN2013/084098
Other languages
French (fr)
Chinese (zh)
Inventor
刘宏博
郑玉平
周华良
邹志杨
胡钰林
Original Assignee
国电南瑞科技股份有限公司
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 国电南瑞科技股份有限公司 filed Critical 国电南瑞科技股份有限公司
Publication of WO2014176864A1 publication Critical patent/WO2014176864A1/en

Links

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/40169Flexible bus arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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

Definitions

  • the invention belongs to the technical field of industrial control field bus communication, and particularly relates to a line gathering method for realizing multi-way isolation of CAN bus.
  • CAN Controller Area Network
  • CAN bus is connected by cable bus.
  • connection methods such as interconnecting the remote side buses with optical fibers, or interconnecting multiple regional buses.
  • the above problem is solved by adding a smart bus (HUB) of the CAN bus, and the smart hub is
  • the CAN data of each side CAN bus is decoded and forwarded, which can effectively solve the self-locking problem of the CAN bus, and allow the rates of the CAN buses on different sides to be different.
  • the data has a large delay (more than 2). Milliseconds), which reduces the data on the CAN bus
  • the throughput rate and data transmission rate cannot be used for monitoring systems with strong real-time requirements.
  • the object of the present invention is to overcome the problems in the prior art.
  • the present invention provides a CAN bus multi-channel isolation method, which satisfies the isolation interconnection of multiple CAN buses and the optical interconnection of CAN buses on both sides, and the CAN bus can directly Interconnection, no need to forward, high data transparent transmission, short data transmission delay, well meet the real-time requirements of industrial control, reduce design cost and bus power consumption, have good response Use the foreground.
  • a CAN bus multi-channel isolation method characterized in that: the following steps are included: Step (1) Real-time detection of the bus level on the side of the CAN bus;
  • Step (2) Judging the state of the bus level on the side of the CAN bus
  • Step (3) if the level of the current side of the CAN bus is dominant, limiting the dominant state rotation of the opposite side of the CAN bus;
  • Step (4) If the level of the current side of the CAN bus changes to a recessive state, delay is performed to continue limiting the dominant signal forwarded by the opposite side of the CAN bus until the delay ends;
  • Step (5) Real-time detection of whether the CAN bus enters the self-locking state. If the CAN bus enters the self-locking state, the self-locking state is released until the delay of the same time as the step (4) ends.
  • the foregoing CAN bus multi-channel isolation collecting method is characterized in that: (2) determining the state of the bus level on the side of the CAN bus, including the network name of the local port of the CAN bus and the corresponding high and low levels.
  • the network name includes the receiving end and the transmitting end.
  • the foregoing CAN bus multi-channel isolation method is characterized in that: (3) limiting the method of the dominant state rotation on the opposite side of the CAN bus, including the following steps,
  • the output low side of the opposite side of the CAN bus passes through the extended edge circuit to limit the transmitting end T of the CAN bus to the high level, and allows the low level of the opposite side of the CAN bus to pass through the side of the CAN bus.
  • the transmitting terminal T turns the CAN bus to the dominant state.
  • step (4) continues to limit The dominant signal forwarded by the opposite side of the CAN bus until the end of the delay is when the dominant side of the CAN bus disappears, the falling edge signal is output through the logic gate, and is applied to the input end of the lower edge extension circuit.
  • the lower edge extension circuit continues to limit the transmit terminal T on the opposite side of the CAN bus to a high level until the delay of the next skip signal ends.
  • the above-mentioned CAN bus multi-channel isolation method is characterized in that: the criterion of the self-locking state of the step (5) is that the level of the current side and the opposite side of the CAN bus are both low level, and the self-locking is released.
  • the steps of the state are as follows.
  • the output is a lower edge signal, which is respectively applied to the input end of the lower edge extension circuit, so that the transmitting side T of the CAN bus side and the opposite side are limited. It is high until the end of the delay, and the self-locking state is completed.
  • the foregoing method for collecting multiple lines of the CAN bus is characterized in that: the delay time of the delay according to the step (4) is greater than the recessive state of the opposite side of the CAN bus to the rotation of the side of the CAN bus. Transmission delay time.
  • the invention has the beneficial effects of: realizing optical fiber interconnection, multiple CAN field bus isolation interconnection; data transparent and no delay transmission, meeting real-time requirements; adapting to various complex network topologies, greatly reducing cost and power consumption, CAN
  • the bus can be directly interconnected without forwarding, the data transparent transmission is high, the data transmission delay is short, the real-time requirements of industrial control are well met, and the design cost and bus function are also reduced. Consumption, has a good application prospects.
  • Figure 1 is a block diagram of a CAN bus multi-channel isolation system of the present invention.
  • the CAN bus multi-channel isolation concentrating method of the invention can realize optical fiber interconnection, multiple CAN field bus isolation interconnection, data transparent and no delay transmission, meet real-time requirements; adapt to various complex network topologies, and greatly reduce Cost and power consumption, CAN bus can be directly interconnected, no need to forward, data transparent transmission is high, data transmission delay is short, it satisfies the real-time requirements of industrial control, and reduces design cost and bus power consumption, including the following steps ,
  • Step (1) Real-time detection of the bus level on the side of the CAN bus;
  • Step (2) determining the state of the bus level on the current side of the CAN bus, and determining the state of the bus level on the local side of the CAN bus, including the network name of the port on the local side of the CAN bus and the corresponding high and low levels, the network name including Receiver and sender;
  • Step (3) If the level of the current side of the CAN bus is dominant, the dominant state of the opposite side of the CAN bus is limited, and the dominant state of the opposite side of the CAN bus is limited as follows:
  • the opposite side of the CAN bus is a dominant state, and the receiving terminal R of the opposite side of the CAN bus is controlled to output a low level through a logic gate;
  • Step (4) If the level of the current side of the CAN bus changes to a recessive state, delay is performed and the limit is continued.
  • the dominant signal forwarded by the opposite side of the CAN bus until the end of the delay.
  • the falling edge signal is output through the logic gate, applied to the input of the lower edge extension circuit, and passes through the lower edge.
  • the extension circuit continues to limit the transmitting terminal T on the opposite side of the CAN bus to a high level until the delay of the falling edge signal ends;
  • Step (5) Real-time detection of whether the CAN bus enters the self-locking state. If the CAN bus enters the self-locking state, the self-locking state is released, until the delay of the same time as the step (4) ends, the criterion of the self-locking state is The level of the current side and the opposite side of the CAN bus are both low, and the steps of releasing the self-locking state are as follows.
  • the output is a lower edge signal, which is respectively applied to the input end of the lower edge extension circuit, so that the transmitting end T of the CAN bus side and the opposite side are limited to High level until the end of the delay, the self-locking state is completed.
  • the delay time for performing the delay is greater than the delay time of the opposite side of the CAN bus to the transmission delay time of the CAN bus to the side of the side.
  • the CAN bus multi-channel isolation line system includes
  • 1CAN, 2CAN transceiver the bus of this CAN transceiver has two states, dominant and recessive state; when the transmitter is low, the bus is dominant; when the bus is dominant, receive The terminal is low; however, the CAN transceiver is self-receiving, which is the cause of the bus being self-locking; 2) Digital isolator: For anti-interference, the logic does not change, but there is a certain delay. The invention needs to use a small delay digital isolator.
  • the signal thus forcing 1T, 2 ⁇ to 1, releases the self-locking state until the erroneous dominant state disappears in the entire domain.
  • the delay width of the lower edge extension circuit U4, U8 module depends on the path of the signal in Figure 1, taking the 1# side as an example, 1R from the low to high level as the starting point, and the delay from the OR gate U6 to 2T , then delayed by the digital isolator to the transmitter of the 2CAN transceiver, and then delayed by the transmitter of the 2CAN transceiver to the total CAN Line 2# side, and then the delay of the 2# side through the 2CAN transceiver's receiver to 2R is up, the above path time is actually the sum of the delay time of the signal flowing through each device, select the appropriate device, delay time The sum can be less than 250 nS, the delay time of the general delay is greater than the above path time, and also less than half of the BIT bit time of the CAN.
  • the delay time can be 450nS, which is relative.

Abstract

A line concentration method for multi-channel isolation of a CAN (Controller Area Network) bus is disclosed, the method comprising the following steps: detecting the electrical level of a bus on the local side of the CAN bus in real time; judging the state of the electrical level of the bus on the local side of the CAN bus; if the electrical level of the bus on the local side of the CAN bus is in a dominant state, limiting the rotation of the dominant state of the opposite side of the CAN bus; if the electrical level of the bus on the local side of the CAN bus turns into a recessive state, carrying out delaying, continuously limiting dominant signals forwarded from the opposite side of the CAN bus until the end of the delaying; and detecting whether the CAN bus enters a self-locking state in real time, if the CAN bus enters the self-locking state, releasing the self-locking state. By using the line concentration method for the multi-channel isolation of the CAN bus of the present invention, the isolation and the interconnection of the multi-channel CAN buses and the interconnection of optical fibers of the two lateral CAN buses are achieved, the forwarding is avoided, the transparent transmission of the data is high, the delaying is short, the instantaneity of industrial control is achieved, and the design cost and the bus power consumption are further lowered, so that the line concentration method will have a good applying prospect.

Description

说 明 书  Description
CAN总线多路隔离的集线方法  CAN bus multi-channel isolation method
技术领域 Technical field
本发明属于工业控制现场总线通信技术领域, 具体涉及一种实现 CAN总线 多路隔离的集线方法。  The invention belongs to the technical field of industrial control field bus communication, and particularly relates to a line gathering method for realizing multi-way isolation of CAN bus.
背景技术 Background technique
目前, CAN ( Controller Area Network )现场总线广泛地运用于工业自动化、 汽车电子、 楼宇自动化、 电力自动化和安防等诸多领域, 并成为这些行业的主 要通讯手段, CAN总线是以电缆总线的形式相互连接, 但在实际应用过程中, 由于布线现场的复杂环境和复杂网络拓扑往往需要用多种联接方式, 如将较远 的两侧总线用光纤互联、 或将多个区域总线隔离互联等情况, 当采用上述方式 互联时, 若采用不加措施的直接互连会造成 CAN总线的自锁, 导致无法正常通 讯, 目前, 解决上述问题是通过增加 CAN总线的智能型集线器 (HUB), 智能 型集线器是将各侧 CAN总线的 CAN数据解码后转发,能够有效的解决 CAN总 线的自锁问题, 允许各侧 CAN总线的速率不同, 但是由于智能型集线器转发会 造成数据存在较大的延时 (大于 2毫秒), 这样就降低了 CAN总线的数据吞吐 率和数据传输速率, 从而不能用于实时性要求较强的监控系统。  At present, CAN (Controller Area Network) fieldbus is widely used in industrial automation, automotive electronics, building automation, power automation and security, and has become the main communication means in these industries. CAN bus is connected by cable bus. However, in the actual application process, due to the complex environment of the wiring site and the complex network topology, it is often necessary to use a variety of connection methods, such as interconnecting the remote side buses with optical fibers, or interconnecting multiple regional buses. When interconnected by the above method, if the direct interconnection without the measure causes the self-locking of the CAN bus, the normal communication cannot be performed. At present, the above problem is solved by adding a smart bus (HUB) of the CAN bus, and the smart hub is The CAN data of each side CAN bus is decoded and forwarded, which can effectively solve the self-locking problem of the CAN bus, and allow the rates of the CAN buses on different sides to be different. However, due to the intelligent hub forwarding, the data has a large delay (more than 2). Milliseconds), which reduces the data on the CAN bus The throughput rate and data transmission rate cannot be used for monitoring systems with strong real-time requirements.
发明内容 Summary of the invention
本发明的目的是克服现有技术中的问题, 本发明提供的一种 CAN总线多路 隔离的集线方法,满足多路 CAN总线的隔离互联和两侧 CAN总线的光纤互联, CAN总线能够直接互联, 无须转发, 数据透明传输高, 数据传输延时短, 很好 的满足工业控制的实时性要求, 还降低了设计成本和总线功耗, 具有良好的应 用前景。 The object of the present invention is to overcome the problems in the prior art. The present invention provides a CAN bus multi-channel isolation method, which satisfies the isolation interconnection of multiple CAN buses and the optical interconnection of CAN buses on both sides, and the CAN bus can directly Interconnection, no need to forward, high data transparent transmission, short data transmission delay, well meet the real-time requirements of industrial control, reduce design cost and bus power consumption, have good response Use the foreground.
为了达到上述目的, 本发明所采用的技术方案是:  In order to achieve the above object, the technical solution adopted by the present invention is:
一种 CAN总线多路隔离的集线方法, 其特征在于: 包括以下歩骤, 歩骤 (1 ) 实时检测 CAN总线本侧的总线电平;  A CAN bus multi-channel isolation method, characterized in that: the following steps are included: Step (1) Real-time detection of the bus level on the side of the CAN bus;
歩骤 (2) 判断 CAN总线本侧的总线电平的状态;  Step (2) Judging the state of the bus level on the side of the CAN bus;
歩骤(3 )若 CAN总线本侧的电平为显性状态, 则限制该 CAN总线对侧的 显性状态回转;  Step (3) if the level of the current side of the CAN bus is dominant, limiting the dominant state rotation of the opposite side of the CAN bus;
歩骤 (4) 若 CAN总线本侧的电平转为隐性状态, 则进行延时, 继续限制 该 CAN总线对侧转发来的显性信号, 直至延时结束;  Step (4) If the level of the current side of the CAN bus changes to a recessive state, delay is performed to continue limiting the dominant signal forwarded by the opposite side of the CAN bus until the delay ends;
歩骤(5 )实时检测 CAN总线是否进入自锁状态, 若 CAN总线进入自锁状 态, 解除自锁状态, 直至与歩骤 (4) 相同时间的延时结束为止。  Step (5) Real-time detection of whether the CAN bus enters the self-locking state. If the CAN bus enters the self-locking state, the self-locking state is released until the delay of the same time as the step (4) ends.
前述的 CAN总线多路隔离的集线方法, 其特征在于: 歩骤 (2) 判断 CAN 总线本侧的总线电平的状态包括 CAN总线本侧端口的网络名和对应的高、低电 平, 所述网络名包括接收端和发送端。  The foregoing CAN bus multi-channel isolation collecting method is characterized in that: (2) determining the state of the bus level on the side of the CAN bus, including the network name of the local port of the CAN bus and the corresponding high and low levels. The network name includes the receiving end and the transmitting end.
前述的 CAN总线多路隔离的集线方法,其特征在于:歩骤(3 )限制该 CAN 总线对侧的显性状态回转的方法, 包括以下歩骤,  The foregoing CAN bus multi-channel isolation method is characterized in that: (3) limiting the method of the dominant state rotation on the opposite side of the CAN bus, including the following steps,
( 1 ) CAN总线对侧为显性状态, 并通过逻辑门控制 CAN总线对侧的接收 端 R输出低电平;  (1) The opposite side of the CAN bus is dominant, and the low-level output of the receiving terminal R on the opposite side of the CAN bus is controlled by the logic gate;
(2) CAN总线对侧的输出低电平通过一下沿延伸电路, 使 CAN总线对侧 的发送端 T限制为高电平, 同时允许 CAN总线对侧输出的低电平通过 CAN总 线本侧的发送端 T, 使 CAN总线本侧转为显性状态。  (2) The output low side of the opposite side of the CAN bus passes through the extended edge circuit to limit the transmitting end T of the CAN bus to the high level, and allows the low level of the opposite side of the CAN bus to pass through the side of the CAN bus. The transmitting terminal T turns the CAN bus to the dominant state.
前述的 CAN总线多路隔离的集线方法, 其特征在于: 歩骤 (4) 继续限制 该 CAN总线对侧转发来的显性信号, 直至延时结束的过程为当 CAN总线对侧 的显性消失时, 通过逻辑门输出下跳沿信号, 施加在一下沿延伸电路的输入端, 通过此下沿延伸电路继续使 CAN总线对侧的发送端 T限制为高电平直至下跳沿 信号的延时结束。 The aforementioned CAN bus multi-channel isolation method is characterized in that: step (4) continues to limit The dominant signal forwarded by the opposite side of the CAN bus until the end of the delay is when the dominant side of the CAN bus disappears, the falling edge signal is output through the logic gate, and is applied to the input end of the lower edge extension circuit. The lower edge extension circuit continues to limit the transmit terminal T on the opposite side of the CAN bus to a high level until the delay of the next skip signal ends.
前述的 CAN总线多路隔离的集线方法, 其特征在于: 所述歩骤 (5 ) 自锁 状态的判据为 CAN总线本侧和对侧的电平皆为低电平, 其解除自锁状态的歩骤 如下,  The above-mentioned CAN bus multi-channel isolation method is characterized in that: the criterion of the self-locking state of the step (5) is that the level of the current side and the opposite side of the CAN bus are both low level, and the self-locking is released. The steps of the state are as follows.
( 1 ) 当 CAN总线本侧和对侧的电平均为低电平时, 通过或非逻辑门将低 电平输出高电平;  (1) When the level of the current side and the opposite side of the CAN bus are both low, the low level is output to the high level through the NAND gate;
(2) 输出高电平分别通过一下沿延伸电路, 使 CAN总线本侧和对侧的发 送端 T变成高电平; 同时自锁状态消失, 并保持本侧和对侧的发送端 T成高电 平。  (2) The output high level is respectively passed through the following edge extension circuit, so that the transmitting end T of the CAN bus side and the opposite side becomes a high level; at the same time, the self-locking state disappears, and the transmitting side T of the present side and the opposite side is maintained. High level.
(3 ) 当 CAN总线本侧和对侧的接收端转变成高电平时, 输出为下跳沿信 号, 分别施加在下沿延伸电路的输入端, 使 CAN总线本侧和对侧的发送端 T限 制为高电平直至延时结束, 完成解除自锁状态。  (3) When the receiving side of the CAN bus and the receiving side of the opposite side are turned to a high level, the output is a lower edge signal, which is respectively applied to the input end of the lower edge extension circuit, so that the transmitting side T of the CAN bus side and the opposite side are limited. It is high until the end of the delay, and the self-locking state is completed.
前述的 CAN总线多路隔离的集线方法, 其特征在于: 歩骤 (4) 所述进行 延时的延时时间要大于 CAN总线对侧的隐性状态到经 CAN总线本侧的回转中 的传输延时时间。  The foregoing method for collecting multiple lines of the CAN bus is characterized in that: the delay time of the delay according to the step (4) is greater than the recessive state of the opposite side of the CAN bus to the rotation of the side of the CAN bus. Transmission delay time.
本发明的有益效果是: 实现光纤互联、 多重 CAN现场总线的隔离互联; 数 据透明无延时传输, 满足实时性要求; 适应各种复杂的网络拓扑结构,, 大幅降 低了成本和功耗, CAN总线能够直接互联, 无须转发, 数据透明传输高, 数据 传输延时短, 很好的满足工业控制的实时性要求, 还降低了设计成本和总线功 耗, 具有良好的应用前景。 The invention has the beneficial effects of: realizing optical fiber interconnection, multiple CAN field bus isolation interconnection; data transparent and no delay transmission, meeting real-time requirements; adapting to various complex network topologies, greatly reducing cost and power consumption, CAN The bus can be directly interconnected without forwarding, the data transparent transmission is high, the data transmission delay is short, the real-time requirements of industrial control are well met, and the design cost and bus function are also reduced. Consumption, has a good application prospects.
附图说明 DRAWINGS
图 1是本发明的 CAN总线多路隔离的系统框图。  BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a block diagram of a CAN bus multi-channel isolation system of the present invention.
具体实施方式 detailed description
下面将结合说明书附图, 对本发明作进一歩的说明。  The invention will now be further described in conjunction with the drawings of the specification.
本发明的 CAN总线多路隔离的集线方法, 能够实现光纤互联、 多重 CAN 现场总线的隔离互联, 数据透明无延时传输, 满足实时性要求; 适应各种复杂 的网络拓扑结构, 大幅降低了成本和功耗, CAN总线能够直接互联, 无须转发, 数据透明传输高, 数据传输延时短, 很好的满足工业控制的实时性要求, 还降 低了设计成本和总线功耗, 包括以下歩骤,  The CAN bus multi-channel isolation concentrating method of the invention can realize optical fiber interconnection, multiple CAN field bus isolation interconnection, data transparent and no delay transmission, meet real-time requirements; adapt to various complex network topologies, and greatly reduce Cost and power consumption, CAN bus can be directly interconnected, no need to forward, data transparent transmission is high, data transmission delay is short, it satisfies the real-time requirements of industrial control, and reduces design cost and bus power consumption, including the following steps ,
歩骤 (1 ) 实时检测 CAN总线本侧的总线电平;  Step (1) Real-time detection of the bus level on the side of the CAN bus;
歩骤(2)判断 CAN总线本侧的总线电平的状态, 判断 CAN总线本侧的总 线电平的状态包括 CAN总线本侧端口的网络名和对应的高、 低电平, 所述网络 名包括接收端和发送端;  Step (2) determining the state of the bus level on the current side of the CAN bus, and determining the state of the bus level on the local side of the CAN bus, including the network name of the port on the local side of the CAN bus and the corresponding high and low levels, the network name including Receiver and sender;
歩骤(3 )若 CAN总线本侧的电平为显性状态, 则限制该 CAN总线对侧的 显性状态回转, 限制该 CAN总线对侧的显性状态回转过程如下:  Step (3) If the level of the current side of the CAN bus is dominant, the dominant state of the opposite side of the CAN bus is limited, and the dominant state of the opposite side of the CAN bus is limited as follows:
1 ) CAN总线对侧为显性状态, 并通过逻辑门控制 CAN总线对侧的接收端 R输出低电平;  1) The opposite side of the CAN bus is a dominant state, and the receiving terminal R of the opposite side of the CAN bus is controlled to output a low level through a logic gate;
2) CAN总线对侧的输出低电平通过一下沿延伸电路, 使 CAN总线本侧的 发送端 T限制为高电平, 同时允许 CAN总线对侧输出的低电平通过 CAN总线 本侧的发送端 T, 使 CAN总线本侧转为显性状态;  2) The output low level of the opposite side of the CAN bus passes through the extended edge circuit to limit the transmitting end T of the CAN bus to the high level, and allows the low level of the opposite side of the CAN bus to be transmitted through the CAN bus. Terminal T, the local side of the CAN bus is turned into a dominant state;
歩骤 (4) 若 CAN总线本侧的电平转为隐性状态, 则进行延时, 继续限制 该 CAN总线对侧转发来的显性信号, 直至延时结束, 当 CAN总线对侧的显性 消失时, 通过逻辑门输出下跳沿信号, 施加在一下沿延伸电路的输入端, 通过 下沿延伸电路继续使 CAN总线对侧的发送端 T限制为高电平直至下跳沿信号的 延时结束; Step (4) If the level of the current side of the CAN bus changes to a recessive state, delay is performed and the limit is continued. The dominant signal forwarded by the opposite side of the CAN bus until the end of the delay. When the dominant side of the CAN bus disappears, the falling edge signal is output through the logic gate, applied to the input of the lower edge extension circuit, and passes through the lower edge. The extension circuit continues to limit the transmitting terminal T on the opposite side of the CAN bus to a high level until the delay of the falling edge signal ends;
歩骤(5 )实时检测 CAN总线是否进入自锁状态, 若 CAN总线进入自锁状 态, 解除自锁状态, 直至与歩骤 (4) 相同时间的延时结束为止, 自锁状态的判 据为 CAN总线本侧和对侧的电平皆为低电平, 其解除自锁状态的歩骤如下, Step (5) Real-time detection of whether the CAN bus enters the self-locking state. If the CAN bus enters the self-locking state, the self-locking state is released, until the delay of the same time as the step (4) ends, the criterion of the self-locking state is The level of the current side and the opposite side of the CAN bus are both low, and the steps of releasing the self-locking state are as follows.
1 ) 当 CAN总线本侧和对侧的电平均为低电平时, 通过或非逻辑门将低电 平输出高电平; 1) When the level of the current side and the opposite side of the CAN bus are both low, the low level is output high through the NAND gate;
2) 输出高电平分别通过一下沿延伸电路, 使 CAN总线本侧和对侧的发送 端 T变成高电平; 同时自锁状态消失, 并保持本侧和对侧的发送端 T成高电平。  2) The output high level is respectively passed through the extension circuit to make the transmitting end T of the CAN bus and the opposite side of the CAN bus become high level; at the same time, the self-locking state disappears, and the transmitting end T of the present side and the opposite side are kept high. Level.
3 ) 当 CAN总线本侧和对侧的接收端转变成高电平时, 输出为下跳沿信号, 分别施加在下沿延伸电路的输入端,使 CAN总线本侧和对侧的发送端 T限制为 高电平直至延时结束, 完成解除自锁状态。  3) When the receiving side of the CAN bus and the receiving end of the opposite side are turned to a high level, the output is a lower edge signal, which is respectively applied to the input end of the lower edge extension circuit, so that the transmitting end T of the CAN bus side and the opposite side are limited to High level until the end of the delay, the self-locking state is completed.
所述进行延时的延时时间要大于 CAN总线对侧的隐性状态到经 CAN总线 对本侧的回转中的传输延时时间。  The delay time for performing the delay is greater than the delay time of the opposite side of the CAN bus to the transmission delay time of the CAN bus to the side of the side.
下面结合一实施例, 对本发明的 CAN总线多路隔离的集线方法, 做详细介 绍, 如图 1所示, CAN总线多路隔离的集线系统, 包括  In the following, in conjunction with an embodiment, a detailed description of the CAN bus multi-channel isolation method of the present invention is shown. As shown in FIG. 1, the CAN bus multi-channel isolation line system includes
1 ) 1CAN、 2CAN收发器, 此种 CAN收发器的总线有两种状态, 显性和隐 性状态; 当发送端为低电平时, 总线为显性状态; 当总线为显性状态时, 接收 端为低电平; 但是此种, CAN收发器是自发自收的, 这是造成总线会被自锁原 因; 2) 数字隔离器: 是为了抗干扰用, 逻辑并不改变, 但有一定延时, 本发明 需要选用小延时的数字隔离器。 1) 1CAN, 2CAN transceiver, the bus of this CAN transceiver has two states, dominant and recessive state; when the transmitter is low, the bus is dominant; when the bus is dominant, receive The terminal is low; however, the CAN transceiver is self-receiving, which is the cause of the bus being self-locking; 2) Digital isolator: For anti-interference, the logic does not change, but there is a certain delay. The invention needs to use a small delay digital isolator.
由图 1可知 CAN总线 1#侧的显性 (这里指的是只因远方侧而产生的显性) 判据为接收端 1R=0, 发送端 1T=1 ; CAN总线 2#侧的显性(这里指的是只因本 地侧而产生的显性) 判据为接收端 2R=0, 发送端 2T=1 ; 总线自锁状态判据为 1R、 1T、 2R、 2T=0; It can be seen from Fig. 1 that the dominantness of the CAN bus 1# side (herein referred to as the dominant only due to the far side) is judged as the receiving end 1R=0, the transmitting end 1T=1; the dominant side of the CAN bus 2# side (This refers to the dominant only due to the local side.) The criterion is that the receiving end 2R=0, the transmitting end 2T=1 ; the bus self-locking state criterion is 1R, 1T, 2R, 2T=0;
当某一侧的如 1#侧(同样 2#侧也然)的总线被检测到进入显性状态(1R=0, 1T=1 ) 时, 与门 U3输出 1, 下沿延伸电路 U4输出 1, 使输出 1T强制为 1, 这 就避免了因 1R=0使 2Τ=0, 并由 2CAN收发器延时后使 2R=0, 经 U2而反转至 1T=0, 因此避免了总线自锁;  When the bus of the 1# side (also the 2# side) of one side is detected to enter the dominant state (1R=0, 1T=1), the AND gate U3 outputs 1 and the lower edge extension circuit U4 outputs 1 , the output 1T is forced to 1, which avoids 2Τ=0 due to 1R=0, and 2R=0 after delay by 2CAN transceiver, and reverses to 1T=0 via U2, thus avoiding bus self-locking ;
当 1#侧的总线回到隐性后, 此时 2R仍然为 0, 为此 1T仍然需要强制维持 为 1(由 U4产生下沿延时为 Twl 的脉冲信号:), 直至 1R信号延时反转至 2R, 此 刻 1#侧的显性状态在全域中消失, 1T恢复为总线 2#侧的状态 2R (若 2R=0, 只能说明总线 2#侧为显性)。  When the bus on the 1# side returns to recessive, 2R is still 0 at this time. For this reason, 1T still needs to be forced to maintain 1 (the pulse signal with the lower edge delay of Twl generated by U4:), until the 1R signal delays Go to 2R, at this moment the dominant state on the 1# side disappears in the whole domain, and 1T returns to the state 2R on the bus 2# side (if 2R=0, only the bus 2# side is dominant).
考虑到开机或干扰有可能造成 CAN总线进入自锁状态, 为防止这种状况, 当 1R、 1T、 2R、 2T=0时, 与非门 U9输出 1使与非门 U3、 U7输出也为 1, 随 后 1T、 2Τ为 1而导致与非门 U9输出 0, 使得非门 U3、 U7输出由 1变 0, 其触 发了下沿延伸电路 U4、 U8产生下沿延时分别为 Twl、 Tw2 的脉冲信号, 从而 强制 1T、 2Τ为 1, 解除自锁状态直至错误的显性状态在全域中消失。  Considering that the power-on or interference may cause the CAN bus to enter the self-locking state, to prevent this, when 1R, 1T, 2R, 2T=0, the NAND gate U9 outputs 1 to make the NAND gates U3 and U7 output also 1 Then, 1T and 2Τ are 1 and the NAND gate U9 outputs 0, so that the output of the NOT gate U3 and U7 changes from 1 to 0, which triggers the lower edge extension circuits U4 and U8 to generate pulses with lower edge delays of Twl and Tw2, respectively. The signal, thus forcing 1T, 2Τ to 1, releases the self-locking state until the erroneous dominant state disappears in the entire domain.
下沿延伸电路 U4、 U8模块的延时宽度的选取, 取决于图 1中信号的路径, 以 1#侧为例, 1R由低变高电平时刻为起点, 经或门 U6延时至 2T, 再由数字隔 离器延时至 2CAN收发器的发送端,再由 2CAN收发器的发送端延时至 CAN总 线 2#侧, 再由 2#侧经 2CAN收发器的接收端延时至 2R为至, 以上路径时间其 实是信号流经各器件的延时时间的总和, 选用合适的器件, 延时时间的总和可 小于 250 nS, 一般延时的延时时间要大于以上路径时间, 同时也要小于 CAN的 BIT位时间的一半, 具体的讲, 选用 CAN总线的最高 1MHz时, 延时时间可取 450nS, 相对于传统的 CAN总线数据传送存在较大的延时(大于 2毫秒), 这样 就降低了 CAN总线的数据吞吐率和数据传输速率, 从而不能用于实时性要求较 强的监控系统。 The delay width of the lower edge extension circuit U4, U8 module depends on the path of the signal in Figure 1, taking the 1# side as an example, 1R from the low to high level as the starting point, and the delay from the OR gate U6 to 2T , then delayed by the digital isolator to the transmitter of the 2CAN transceiver, and then delayed by the transmitter of the 2CAN transceiver to the total CAN Line 2# side, and then the delay of the 2# side through the 2CAN transceiver's receiver to 2R is up, the above path time is actually the sum of the delay time of the signal flowing through each device, select the appropriate device, delay time The sum can be less than 250 nS, the delay time of the general delay is greater than the above path time, and also less than half of the BIT bit time of the CAN. Specifically, when the maximum 1MHz of the CAN bus is selected, the delay time can be 450nS, which is relative. There is a large delay (more than 2 milliseconds) in the traditional CAN bus data transmission, which reduces the data throughput rate and data transmission rate of the CAN bus, and thus cannot be used for a monitoring system with strong real-time requirements.
以上显示和描述了本发明的基本原理、 主要特征及优点。 本行业的技术人 员应该了解, 本发明不受上述实施例的限制, 上述实施例和说明书中描述的只 是说明本发明的原理, 在不脱离本发明精神和范围的前提下, 本发明还会有各 种变化和改进, 这些变化和改进都落入要求保护的本发明范围内。 本发明要求 保护范围由所附的权利要求书及其等效物界定。  The basic principles, main features and advantages of the present invention have been shown and described above. It should be understood by those skilled in the art that the present invention is not limited by the foregoing embodiments, and that the present invention is only described in the foregoing embodiments and the description of the present invention, without departing from the spirit and scope of the invention. Various changes and modifications are intended to fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and their equivalents.

Claims

权利要求书 claims
1、 CAN总线多路隔离的集线方法, 其特征在于: 包括以下歩骤, 歩骤 (1 ) 实时检测 CAN总线本侧的总线电平; 1. The CAN bus multi-channel isolation collection method is characterized by: including the following steps: (1) Real-time detection of the bus level on the local side of the CAN bus;
歩骤 (2) 判断 CAN总线本侧的总线电平的状态; Steps (2) Determine the status of the bus level on this side of the CAN bus;
歩骤(3 )若 CAN总线本侧的电平为显性状态, 则限制该 CAN总线对侧的 显性状态回转; Step (3) If the level on this side of the CAN bus is in the dominant state, limit the dominant state rotation on the other side of the CAN bus;
歩骤 (4) 若 CAN总线本侧的电平转为隐性状态, 则进行延时, 继续限制 该 CAN总线对侧转发来的显性信号, 直至延时结束; Step (4) If the level on this side of the CAN bus changes to a recessive state, perform a delay and continue to limit the dominant signal forwarded from the opposite side of the CAN bus until the delay ends;
歩骤(5 )实时检测 CAN总线是否进入自锁状态, 若 CAN总线进入自锁状 态, 解除自锁状态, 直至与歩骤 (4) 相同时间的延时结束为止。 Step (5) Detect in real time whether the CAN bus enters the self-locking state. If the CAN bus enters the self-locking state, release the self-locking state until the delay of the same time as step (4) ends.
2、 根据权利要求 1所述的 CAN总线多路隔离的集线方法, 其特征在于: 歩骤(2)判断 CAN总线本侧的总线电平的状态包括 CAN总线本侧端口的网络 名和对应的高、 低电平, 所述网络名包括接收端和发送端。 2. The CAN bus multi-channel isolation collection method according to claim 1, characterized in that: Step (2) Determining the status of the bus level on the local side of the CAN bus includes the network name of the port on the local side of the CAN bus and the corresponding High and low levels, the network name includes the receiving end and the sending end.
3、 根据权利要求 1所述的 CAN总线多路隔离的集线方法, 其特征在于: 歩骤 (3 ) 限制该 CAN总线对侧的显性状态回转的方法, 包括以下歩骤, 3. The CAN bus multi-channel isolation collection method according to claim 1, characterized in that: Step (3) The method of limiting the dominant state rotation of the opposite side of the CAN bus includes the following steps:
( 1 ) CAN总线对侧为显性状态, 并通过逻辑门控制 CAN总线对侧的接收 端 R输出低电平; (1) The opposite side of the CAN bus is in a dominant state, and the receiving end R on the opposite side of the CAN bus is controlled by a logic gate to output a low level;
(2) CAN总线对侧的输出低电平通过一下沿延伸电路, 使 CAN总线对侧 的发送端 T限制为高电平, 同时允许 CAN总线对侧输出低电平通过过 CAN总 线本侧的发送端 T, 使 CAN总线本侧转为显性状态。 (2) The low level output of the opposite side of the CAN bus passes through the lower edge extension circuit, limiting the sending terminal T on the opposite side of the CAN bus to a high level, and at the same time allowing the low level output of the opposite side of the CAN bus to pass through the local side of the CAN bus. The sending end T turns the CAN bus side into a dominant state.
4、 根据权利要求 1所述的 CAN总线多路隔离的集线方法, 其特征在于: 歩骤 (4)继续限制该 CAN总线对侧转发来的显性信号, 直至延时结束的过程 为当 CAN总线对侧的显性消失时, 通过逻辑门输出下跳沿信号, 施加在下沿延 伸电路 U4模块的输入端, 通过下沿延伸电路继续使 CAN总线对侧的发送端 T 限制为高电平直至下跳沿信号的延时结束。 4. The CAN bus multi-channel isolation gathering method according to claim 1, characterized in that: step (4) continues to limit the dominant signal forwarded from the opposite side of the CAN bus until the delay is completed. When the dominance of the opposite side of the CAN bus disappears, the lower edge signal is output through the logic gate and applied to the input end of the lower edge extension circuit U4 module. The lower edge extension circuit continues to limit the sending end T of the opposite side of the CAN bus to high. level until the delay of the next edge signal ends.
5、 根据权利要求 1所述的 CAN总线多路隔离的集线方法, 其特征在于: 所述歩骤 (5 ) 自锁状态的判据为 CAN总线本侧和对侧的电平皆为低电平, 其 解除自锁状态的歩骤如下, 5. The CAN bus multi-channel isolation collection method according to claim 1, characterized in that: the criterion of the self-locking state in step (5) is that the levels of the local side and the opposite side of the CAN bus are both low. level, the steps to release the self-locking state are as follows:
( 1 ) 当 CAN总线本侧和对侧的电平均为低电平时, 通过或非逻辑门将低 电平输出高电平; (1) When the levels on this side and the opposite side of the CAN bus are both low level, the low level is output to high level through the NOR logic gate;
(2) 输出高电平分别通过一下沿延伸电路, 使 CAN总线本侧和对侧的发 送端 T变成高电平; 同时自锁状态消失, 并保持 CAN总线本侧和对侧的发送端 T成高电平; (2) The output high level passes through the lower edge extension circuit respectively, causing the sending end T on this side and the opposite side of the CAN bus to become high level; at the same time, the self-locking state disappears, and the sending end T on this side and the opposite side of the CAN bus is maintained. T becomes high level;
(3 ) 当 CAN总线本侧和对侧的接收端转变成高电平时, 输出为下跳沿信 号, 分别施加在下沿延伸电路的输入端, 使 CAN总线本侧和对侧的发送端 T限 制为高电平直至延时结束, 完成解除自锁状态。 (3) When the receiving end of the CAN bus on this side and the opposite side turns to high level, the output is a lower edge signal, which is applied to the input end of the lower edge extension circuit respectively, so that the sending end of the CAN bus on this side and the opposite side T limit It remains high until the delay ends, and the self-locking state is released.
6、 根据权利要求 1所述的 CAN总线多路隔离的集线方法, 其特征在于: 歩骤 (4)所述进行延时的延时时间要大于 CAN总线对侧的隐性状态到经 CAN 总线本侧的回转中的传输延时时间。 6. The CAN bus multi-channel isolation gathering method according to claim 1, characterized in that: the delay time of the delay in step (4) is greater than the recessive state of the opposite side of the CAN bus to the CAN bus. The transmission delay time in the roundabout on this side of the bus.
PCT/CN2013/084098 2013-04-28 2013-09-24 Line concentration method for multi-channel isolation of can bus WO2014176864A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2013101534355 2013-04-28
CN201310153435.5A CN103220199B (en) 2013-04-28 2013-04-28 The line concentration method of CAN multichannel isolation

Publications (1)

Publication Number Publication Date
WO2014176864A1 true WO2014176864A1 (en) 2014-11-06

Family

ID=48817682

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/084098 WO2014176864A1 (en) 2013-04-28 2013-09-24 Line concentration method for multi-channel isolation of can bus

Country Status (2)

Country Link
CN (1) CN103220199B (en)
WO (1) WO2014176864A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087358A (en) * 2020-09-09 2020-12-15 天津津航计算技术研究所 CPCI-based multi-channel CAN bus communication universal module implementation method

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220199B (en) * 2013-04-28 2015-12-23 国电南瑞科技股份有限公司 The line concentration method of CAN multichannel isolation
CN106789372A (en) * 2017-03-02 2017-05-31 欣旺达电动汽车电池有限公司 A kind of addressing based on LIN buses and the system and method alarmed
WO2023137593A1 (en) * 2022-01-18 2023-07-27 华为数字能源技术有限公司 Bus processing apparatus and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1417984A (en) * 2001-11-05 2003-05-14 清华同方股份有限公司 Concentrator based on two-line two-state communication bus system
CN1790995A (en) * 2005-12-21 2006-06-21 浙江大学 Multipath controller LAN bus physical repeater
CN102594641A (en) * 2012-02-03 2012-07-18 上海新时达电气股份有限公司 CAN (Controller Area Network) branching device
CN103220199A (en) * 2013-04-28 2013-07-24 国电南瑞科技股份有限公司 Line concentration method for multi-channel isolation of CAN (Controller Area Network) bus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2831355B1 (en) * 2001-10-22 2004-01-02 Renault LOGIC COUPLER IN A COMMUNICATION NETWORK

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1417984A (en) * 2001-11-05 2003-05-14 清华同方股份有限公司 Concentrator based on two-line two-state communication bus system
CN1790995A (en) * 2005-12-21 2006-06-21 浙江大学 Multipath controller LAN bus physical repeater
CN102594641A (en) * 2012-02-03 2012-07-18 上海新时达电气股份有限公司 CAN (Controller Area Network) branching device
CN103220199A (en) * 2013-04-28 2013-07-24 国电南瑞科技股份有限公司 Line concentration method for multi-channel isolation of CAN (Controller Area Network) bus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087358A (en) * 2020-09-09 2020-12-15 天津津航计算技术研究所 CPCI-based multi-channel CAN bus communication universal module implementation method
CN112087358B (en) * 2020-09-09 2022-04-05 天津津航计算技术研究所 CPCI-based multi-channel CAN bus communication universal module implementation method

Also Published As

Publication number Publication date
CN103220199B (en) 2015-12-23
CN103220199A (en) 2013-07-24

Similar Documents

Publication Publication Date Title
US9652423B2 (en) CAN and flexible data rate CAN node apparatus and methods for mixed bus CAN FD communications
CN102055633B (en) Satellite-borne double-CAN (Controller Area Network) bus node failure self-restoration system
CN103218339B (en) The communication switching system of a kind of 1553B bus and RS485 bus and control method
CN102355507B (en) Serial communication interface with functions of self-detection and conflict detection
WO2014176864A1 (en) Line concentration method for multi-channel isolation of can bus
CN103424660A (en) RS-485 communication interface polarity detection device, method and chip
CN104199795B (en) Data transferring and receiving method of bus framework
WO2011011915A1 (en) Data communication method, communication equipment and communication system
CN102967822B (en) Method and system for automatically detecting fault of RS-485 chip
CN104184638B (en) The bus anti-collision methods of RS 485, interface chip and its communication network
CN101374115B (en) Rapid discriminating multiport control method based on PROFIBUS packet
CN105207785A (en) PoE system
CN103795520A (en) Method for real-time synchronization based on FPGA message
CN106059878A (en) RS232 communication system supporting multipoint long-distance communication
CN105530245A (en) System for improving non-private network GOOSE message transmission reliability
CN104092490A (en) Multi-channel fiber self-healing method
CN103973533B (en) The baud rate recognition methods of isolated form RS485/RS422 relaying isolators and method of data flow control
CN101547131A (en) EAPS looped network single-channel fault location and protection method
CN102957586A (en) Device and method for full duplex RS485 bus communication based on collision-free protocol
CN107995080B (en) Multi-host communication method based on two-wire bus
CN104753598A (en) Communication method for passive beam splitting RS-485 optical fiber bus
CN201274492Y (en) PROFIBUS hub with relay function
CN204390224U (en) A kind of fault-tolerant master-slave synchronisation serial communication system based on FPGA
CN202750101U (en) Ethernet message processor
CN202904869U (en) RS485 bus interface with relay function

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13883524

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13883524

Country of ref document: EP

Kind code of ref document: A1