当前位置:网站首页>Hongke share | bring you a comprehensive understanding of "can bus error" (II) -- can error types
Hongke share | bring you a comprehensive understanding of "can bus error" (II) -- can error types
2022-07-29 06:44:00 【Hongke Industrial Communication Division】
In this series of articles , We will give you a detailed introduction to CAN Knowledge about bus errors , Include CAN The basic concept of bus error 、CAN Type of bus error 、CAN Error frame and CAN Node error status , And generate and record through the actual application test CAN error .
CAN Wrong type
CAN The bus protocol specifies 5 Kind of CAN Wrong type :
- Bit error [ transmitter ]
- Bit fill error [ Receiver ]
- Format error [ The receiver ]
- ACK Wrong answer ( The reply )[ transmitter ]
- CRC Check error ( Cyclic redundancy check )[ Receiver ]

In the last article ” Hongke sharing | Bring you a comprehensive understanding “CAN Bus error ”( One )——CAN Bus errors and error frames “ in , We have learned something about bit errors and bit filling errors , Both are evaluated at the incumbent level . The other three CAN Error types are evaluated at the message level .
Next, we will introduce each error type in detail .
1) Bit error
CAN Each on the bus CAN The node will monitor the signal level at any given time —— This means sending CAN Nodes will also “ Read back ” It sends every bit . If the data bit level read by the transmitter is different from the content it sends , Then the transmitter will detect it as a bit error . however , If in the course of arbitration ( Send CAN ID when ) Bit mismatch occurs , It will not be interpreted as a bit error . Similarly , Reply slot (ACK Field ) Mismatches in do not cause bit errors , because ACK The field specifically requires that the recessive bits from the transmitter be overwritten by the dominant bits from the receiver .
2) Bit fill error
As mentioned earlier , Bit padding is CAN Part of the standard . It stipulates that every at the same logical level 5 After consecutive bits , The first 6 Bits must be complements . This is necessary to ensure continuous synchronization of the network by providing a rising edge . Besides , It ensures that the bit stream is not misunderstood as an error frame or the inter frame space marking the end of the message (7 Bit recessive sequence ). all CAN Nodes will automatically delete redundant bits .
If in CAN In message ( stay SOF and CRC Between fields ) A with the same logic level is observed on the bus of 6 Bit sequence , Then the receiver detects it as a bit filling error , That is, filling errors .
3) Format error
This message level check utilizes CAN Some fields in the message / The fact that bits must always be at some logical level . say concretely ,1 position SOF Must be explicit , And the whole 8 position EOF Fields must be implicit . Besides ,ACK and CRC Delimiters must be implicit . If the receiver finds that any of these bits has an invalid logic level , Then the receiver detects it as a format error .
4) ACK Wrong answer ( The reply )
When the transmitter sends CAN When the message , It will contain ACK Field ( The reply ), The transmitter will send a hidden bit . All listening CAN Nodes should send dominant bits in this field to verify the receipt of messages ( Whether or not the node is interested in the message ). If the transmitter does not read ACK Dominant bit in time slot , Then the transmitter will detect it as ACK error .
5) CRC Check error ( Cyclic redundancy check )
Every CAN Each message contains a 15 Bit cyclic redundancy checksum field . ad locum , The transmitter has calculated CRC Value and add it to the message . Each receiving node will also calculate CRC. If the receiver CRC Calculate with the transmitter CRC Mismatch , The receiver will detect it as CRC error .
Hongke industrial control team has been deeply engaged in the industrial communication bus industry for more than ten years , Provide customers with CAN card 、CAN Data recorder 、 Data acquisition module 、CAN Hardware devices such as gateways and converters , as well as PCAN-Explore 6 Such as software . Please contact us by private letter or comment !
边栏推荐
- 7、 Next generation Internet IPv6
- day03_2_作业
- day13_ Under multithreading
- day06_ Classes and objects
- 8、 Network security
- Hongke white paper | how to use TSN time sensitive network technology to build a digital factory in industry 4.0?
- Sequence list and linked list
- After the EtherCAT master station is disconnected, how to ensure that the target system is not affected by the fault?
- 6、 Network interconnection and Internet
- 最新PyCharm2018破解教程
猜你喜欢

华为交换机CE12808导入导出配置文件

Hongke share | FPGA implementation of pass through and store and forward switching delay

FIR filter design (1) -- using the FDATool toolbox of MATLAB to design FIR filter parameters

day13_多线程下

基于FPGA的IIR型滤波器设计

有用网站

Network Security Learning (II)

Why are the job requirements for software testing in 2022 getting higher and higher? Is there any secret in it?

Ansible(自动化软件)

10种常见的软件架构模式
随机推荐
网站被挂马的解决方案
20个hacker神器
day09_ Static & Final & code block & abstract class & Interface & internal class
Day16 set
MySQL 事物四种隔离级别分析
What is the lifecycle of automated testing?
Idea practical shortcut key novice must see
Hongke share | bring you a comprehensive understanding of "can bus error" (I) -- can bus error and error frame
Using STP spanning tree protocol to solve the problem of two-layer loop in network
Network Security Learning (II)
C语言内存-栈与堆使用
[interview questions] the latest software test interview questions in 2022 (400) [with answers] continue to update
day10_ Exception handling & enumeration
IPv6 representation and configuration cases
day10_异常处理&枚举
LVM逻辑卷组的管理
The difference between DDoS attack and CC attack
什么是DNS放大攻击
TCP socket communication experiment
day15_泛型