CAN FD Frame Format Explained: FDF, BRS, ESI, DLC and the Stuff Count

Key takeaways

  • CAN FD raises the maximum payload from 8 to 64 bytes and can use a faster data-phase bit rate.
  • FDF marks the frame type, BRS switches the bit rate, and ESI reports the sender’s error state.
  • A new transceiver is needed only if the current one cannot handle the faster data rate.
CAN FD frame format title over a highway with red light trails at dusk
Light trails on a highway at dusk. Image: Techqio

A Classic CAN frame tops out at 8 bytes of data. The CAN FD frame format raises that limit to 64 bytes and can send those bytes at a faster bit rate. A few new or repurposed control bits make that work.

You can tell the six CAN frame types apart by three properties:

  • ID length: 11 bits for a Standard frame, 29 bits for an Extended frame
  • Frame kind: a Data frame can carry a data field, a Remote frame never does
  • Data length: 0 to 8 bytes for Classic CAN (CAN 2.0), up to 64 bytes in set steps for CAN FD
Diagram of CAN remote, data and CAN FD data frames in standard and extended formats with ID and data lengths
Six frame formats in labeled boxes. Image: Techqio

What is the CAN FD protocol?

CAN FD (CAN with Flexible Data-Rate) extends CAN with a data field of up to 64 bytes and a switchable data bit rate. Cars kept adding electronics, in-vehicle traffic grew with them, and the 8-byte field of Classic CAN became a bottleneck. Bosch introduced CAN FD in 2012, and it was standardized as ISO 11898-1:2015.

A faster data phase can shorten transmission time, and larger payloads can carry the same data in fewer frames. Both can reduce bus load. The current edition, ISO 11898-1:2024, also covers CAN XL, whose data field reaches 2,048 bytes.

Bar graph of payload per frame: Classic CAN 8 bytes, CAN FD 64 bytes
Maximum payload per frame. Image: Techqio. Source: CAN in Automation

Arbitration runs at the nominal rate in both protocols. When BRS turns on the faster rate, each data-phase bit takes less time on the wire. More data then fits in the same time.

How the CAN FD frame format is laid out

A CAN FD frame keeps the overall layout of a Classic CAN frame and changes a few bits. Our CAN frame format guide covers the fields the two share. This article sticks to the bits that are new or mean something different.

The diagrams below show the 11-bit Standard format. The 29-bit version is the FD extended frame format, with a recessive IDE bit.

CAN FD frame with an 11-bit ID, from SOF through RRS, IDE, FDF, reserved bit, BRS, ESI, DLC, data, CRC, delimiters, ACK, EOF and ITM
Color-coded frame diagram, SOF to ITM. Image: Techqio

The FDF bit marks a CAN FD frame

The FD Format (FDF) bit takes over the reserved r bit that Classic CAN set aside for a future protocol. A recessive (1) FDF marks a CAN FD frame, and a dominant (0) one marks Classic CAN.

Remote Request Substitution (RRS) sits where Classic CAN has RTR. CAN FD has no remote frames, so RRS is always dominant. A remote frame carries no data field, which leaves it no reason to change bit rate.

CAN FD frame above a Classic CAN frame, showing RRS and FDF beside RTR and the reserved bit
FD frame diagram above a Classic frame. Image: Techqio

Where does the BRS bit change the bit rate?

The Bit Rate Switch (BRS) decides whether the data phase speeds up. Recessive (1) switches to the higher data bit rate at the BRS sample point, and dominant (0) keeps the arbitration rate. A switched frame returns to the nominal rate at the sample point of the CRC delimiter.

CAN FD therefore does not always need a new transceiver. You need one only when the higher bit rate exceeds what the current part supports. Typical CAN FD data phases run at 2 or 5 Mbit/s, and those speeds call for a transceiver qualified for them.

CAN FD frame with the optional high bit rate data phase running from BRS to the CRC delimiter, between two arbitration phases
Data phase from BRS to the CRC delimiter. Image: Techqio

ESI shows the sender’s error state

The Error State Indicator (ESI) reports the transmitter’s error state. Recessive (1) means the sending node is Error Passive, and dominant (0) means it is Error Active. Our guide to CAN bus off and fault confinement explains both states.

DLC: how 4 bits describe 64 bytes

CAN FD keeps the 4-bit Data Length Code (DLC) of Classic CAN and gives the top codes new meanings. Values 0 to 8 mean the same in both protocols. Codes 9 to 15 stand for 12, 16, 20, 24, 32, 48 and 64 bytes in CAN FD.

Table of DLC 0 to 15: Classic CAN stops at 8 bytes, CAN FD maps 9 to 15 to 12, 16, 20, 24, 32, 48 and 64 bytes
DLC table with Classic and FD columns. Image: Techqio

Stuff bit counter and CRC

ISO CAN FD puts a stuff bit counter at the start of the CRC field, before the CRC sequence. Its 3-bit stuff count in Gray code covers the stuff bits from SOF through the data field and travels with a parity bit. Receivers get one more way to catch a corrupted message. Non-ISO CAN FD has no such counter.

Diagram of the fields after the data field: 3-bit Gray code stuff count, even parity bit, and a 17 or 21 bit CRC sequence
Stuff count, parity and CRC fields. Image: Techqio

CRC length depends on the data field. Frames with up to and including 16 bytes use a 17-bit CRC, and longer frames use a 21-bit CRC. CAN FD also includes stuff bits in the CRC calculation, which Classic CAN does not.

The CRC block in the frame diagrams shows a larger number because it also holds the 3-bit count and its parity bit. That field carries fixed stuff bits too.

What CAN FD changes on a real network

Payload and bit rate are separate decisions. A design that only needs longer frames can leave BRS dominant and keep its existing transceivers. One chasing a faster data phase needs transceivers rated for that speed. That makes BRS the first bit to settle in the CAN FD frame format when planning a move from Classic CAN.

Sources

Share this article

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *