Introduction to CAN FD frame structure

Publisher:DazzlingSpiritLatest update time:2023-09-04 Source: elecfansKeywords:CAN Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

CAN FD frame structure

CAN FD nodes can receive and send CAN messages normally, but CAN nodes cannot receive and send CAN FD messages correctly because their frame formats are inconsistent.


Like CAN, CAN FD consists of 7 parts: frame start, arbitration segment, control segment, data segment, CRC segment, ACK segment and frame end.


2.1. Frame start

CAN and CANFD use the same SOF flag to mark the start of a message. The frame start consists of 1 dominant bit, marking the beginning of the message and playing a synchronization role on the bus.

picture

2.2 Arbitration Section

Unlike CAN, CAN FD cancels the support for remote frames and replaces the RTR bit with the RRS bit, which is always dominant. IDE is used to distinguish between standard frames and extended frames.

picture

The arbitration segment of a standard frame consists of an 11-bit ID, r1 bit (dominant), and IDE (dominant), for a total of 13 bits. The arbitration segment of an extended frame consists of a 29-bit ID, SRR (recessive), IDE (recessive), and r1 bit (dominant), for a total of 32 bits.

SRR: replaces the RTR bit in the CAN standard frame;

IDE: extended frame flag;

r1: reserved bit, dominant.

2.3 Control Segment

CAN FD has the same IDE, res and DLC bits as CAN, and adds three more bits: FDF, BRS and ESI.

FDF bit (Flexible Data Rate Format): A reserved bit in the original CAN data frame. Indicates whether it is a CAN message or a CAN-FD message. The FDF
bit is usually recessive (1), indicating a CAN FD message.

BRS bit (Bit Rate Switch): indicates bit rate switching. When BRS is dominant (0), the bit rate of the data segment is consistent with the bit rate of the arbitration segment (constant rate). When BRS
is recessive (1), the rate is variable (i.e., BSR to CRC is transmitted at the switching rate).

ESI bit (Error State Indicator): Sends node error status indication. It sends a dominant bit (0) when an active error occurs and a recessive bit (1) when a passive error occurs.

picture

2.4 Data Segment

CAN FD is compatible with CAN data formats and supports a maximum of: 12, 16, 20, 24, 32, 48 and 64 bytes.

Like in Classical CAN, the CAN FD DLC is 4 bits and indicates the number of data bytes in the frame. To maintain a 4-bit DLC, CAN
FD uses the remaining 7 values ​​from 9 to 15 to indicate the number of data bytes used (12, 16, 20, 24, 32, 48, 64).

picture

2.5 CRC segment

The cyclic redundancy check (CRC) in traditional CAN is 15 bits, while in CAN
FD it consists of fixed stuffing bits FSB (6/7 bits), stuffing bit count (4 bits), CRC (17/21 bits) and CRC delimiter (1 bit), for a total of 28 or 33 bits. In traditional CAN, the CRC can contain 0 to 3 stuffing bits, while in CAN
FD, there are always 4 fixed stuffing bits to improve communication reliability.

picture

Fixed fill bit (FSB): Every 4 bits in the CRC segment are filled with a bit that is opposite to the upper bit.

When using CRC17, FSB is 6 bits;

When using CRC21, FSB is 7 bits.

Stuffing bit count: It consists of the stuffing bit count (3 bits) and the parity bit (1 bit).

CRC:

When the message length is less than 16, CRC17 is used, which consists of 17 bits;

When the message length is greater than 16, CRC21 is used, which consists of 21 bits.

CRC delimiter: fixed as recessive bit; after sampling from this bit, switch to arbitration domain baud rate.

picture

2.6 ACK segment

ACK is followed by the CRC end marker bit. The difference is that CAN FD supports the recognition of 2 bits of ACK, which consists of the ACK bit and the ACK delimiter bit.

ACK: Receiving node acknowledgement bit, the receiving node should acknowledge the dominant bit;

ACK delimiter, fixed as implicit.

picture

2.7. Frame End

Like CAN, the end of the CAN FD frame is also 7 consecutive recessive bits.


Keywords:CAN Reference address:Introduction to CAN FD frame structure

Previous article:MACsec - Advanced In-Vehicle Network Security Solution
Next article:Introduction to the eight functional systems of ADAS

Recommended ReadingLatest update time:2024-11-16 09:29

Application of high-speed digitizer and AWG in vehicle bus (CAN/LIN/PSI5) testing (1)
introduction Modular instruments are significantly smaller than traditional instruments and fit onto circuit cards, allowing multiple cards to be inserted into a frame with a common computer interface , power supply and interconnection. Modular instrumentation frameworks include computers using standard PCIe interfa
[Automotive Electronics]
Popular Science Series: Introduction to the Fault Tolerance Mechanism of Low-Speed ​​Fault-Tolerant CAN
The CAN bus of a car can be roughly divided into three categories: single-wire CAN (GM-specific low-speed CAN), high-speed CAN (high communication rate) and low-speed fault-tolerant CAN (low communication rate but good fault tolerance). This article will talk about low-speed fault-tolerant CAN. In the traditional di
[Embedded]
Popular Science Series: Introduction to the Fault Tolerance Mechanism of Low-Speed ​​Fault-Tolerant CAN
Design strategy of RS-485/CAN intelligent converter based on PIC18 microcontroller
    RS-485 is an electrical interface specification that defines a multi-point, bidirectional (half-duplex) communication link based on a single-pair of balanced lines. It only specifies the electrical characteristics of the interface without involving connectors, cables or protocols. On this basis, users can establis
[Microcontroller]
Design strategy of RS-485/CAN intelligent converter based on PIC18 microcontroller
Understanding CAN transceivers and how to verify the performance of multi-node CAN systems
summary This article describes the correct system-level test method for evaluating Controller Area Network (CAN) transceivers. The advantages of this test method are explained by showing how to avoid actual data transmission problems when performing data transmission between different CAN nodes in a
[Analog Electronics]
Understanding CAN transceivers and how to verify the performance of multi-node CAN systems
Using CAN interrupt for simple data reception
CAN is the abbreviation of Controller Area Network (CAN), which is one of the most widely used field buses in the world. In North America and Western Europe, the CAN bus protocol has become the standard bus for automotive computer control systems and embedded industrial control local area networks, and has a J1939 pro
[Microcontroller]
Using CAN interrupt for simple data reception
LIN, CAN and FlexRay Serial Bus Debugging with Oscilloscopes
  In order to improve system communication efficiency and reduce costs, all current automotive designs use a large number of serial bus communication protocols. I2C and SPI protocols are commonly used in chip-to-chip communication of electronic control units (ECUs). For long-distance serial communication and control b
[Test Measurement]
LIN, CAN and FlexRay Serial Bus Debugging with Oscilloscopes
Canalys: Global AI PC shipments reached 8.8 million units in Q2 this year, accounting for 14% of total PC shipments in the quarter
On August 14, market research firm Canalys released the latest global AI PC shipment report. Data showed that in the second quarter of this year, shipments of PCs with AI functions reached 8.8 million units, accounting for 14% of total PC shipments. The report believes that with the smooth implementation of AI
[Home Electronics]
Canalys: Global AI PC shipments reached 8.8 million units in Q2 this year, accounting for 14% of total PC shipments in the quarter
Design of intelligent control system for car windows based on CAN controller P8xC591 and sensors
1 Introduction At present, automotive electronics represented by microcontrollers are widely used in vehicle electronic systems, and automotive control is shifting from electromechanical control systems to intelligent systems based on distributed networks. CAN bus is a serial communication network that supports dist
[Automotive Electronics]
Design of intelligent control system for car windows based on CAN controller P8xC591 and sensors
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号