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.
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.
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.
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).
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.
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.
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.
2.7. Frame End
Like CAN, the end of the CAN FD frame is also 7 consecutive recessive bits.
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
- Popular Resources
- Popular amplifiers
- New Energy Vehicle Control System Inspection and Maintenance (Edited by Bao Pili)
- Detailed explanation of big data technology system: principles, architecture and practice (Dong Xicheng)
- Automotive CAN embedded intrusion detection system based on deep learning
- Lightweight FPGA-based IDS-ECU architecture for automotive CAN networks
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- 【CODING TALK】How would you implement a queue?
- RVB2601 Development Board Quick Start Guide
- How to input xy coordinates for hole location in pads packaging
- Strange behavior of Firefox browser
- Detailed explanation of ADC function in C8051F020 microcontroller
- Q and D values of capacitors
- [Nucleo G071 Review] PWM breathing light
- [EETalk] Why do smart homes not use ZigBee but are keen on Bluetooth and Wi-Fi?
- Selection of the discharge resistor of the X capacitor
- Help on ADN8834 burning out