CAN / CAN FD
Classical CAN and ISO CAN FD carry frames identified by message priority. A transceiver turns the controller’s logic levels into bus states. A dominant 0 overrides a recessive 1 when nodes transmit together. All nodes can observe the frame, and each controller can filter which identifiers it delivers to its application.
Frame formats
Bosch CAN 2.0 Part A describes the 11-bit base format. Part B covers the base and 29-bit extended formats. Extended frames send the leading 11 identifier bits first, then SRR and IDE, then the remaining 18 identifier bits. A Classical data frame carries up to eight bytes. A Classical remote frame uses RTR to request a data frame with the same identifier and carries a requested length in DLC. ISO CAN FD uses FDF to signal the FD format, replaces RTR with dominant RRS and supports data frames up to 64 bytes. Bosch CAN Specification 2.0, CiA Classical CAN, CiA CAN FD.
| Property | Classical CAN | ISO CAN FD |
|---|---|---|
| Identifier | 11 or 29 bits | 11 or 29 bits |
| Payload | 0–8 bytes | 0–8, 12, 16, 20, 24, 32, 48 or 64 bytes |
| Remote request | Recessive RTR, no payload | Unavailable |
| Bit timing | Nominal timing throughout | Optional data timing between the BRS and CRC delimiter sample points |
| CRC sequence | 15 bits | 17 bits through 16 bytes, 21 bits above 16 bytes |
- SOF
- Identifier and arbitration
- Control and DLC
- Data if present
- CRC-15
- CRC delimiter, ACK and EOF
- SOF
- Identifier and arbitration
- FDF, BRS, ESI and DLC
- Data if present
- Stuff count, parity and CRC-17/21 with fixed stuff bits
- CRC delimiter, ACK and EOF
The DLC describes a length or requested length. The application protocol or message database defines payload byte order, signal positions and units.
Arbitration and acknowledgement
Nodes transmit identifier bits most significant bit first and read back the bus. A contender sending recessive that observes dominant during arbitration yields and can retry later. The lower identifier wins among frames of the same identifier width with different identifiers. For an identical 11-bit prefix, the base frame beats the extended frame at RTR/SRR or IDE. With the same identifier and width, a Classical data frame beats a remote request at RTR. The same arbitration bits leave both nodes transmitting, so unique producer assignments matter. CiA Classical CAN.
The transmitter sends recessive in the ACK slot. A receiver that accepts the frame can pull it dominant. This confirms reception at the CAN layer by at least one node. The destination application's handling of the payload requires separate evidence. EOF is seven recessive bits and the minimum intermission before a new data or remote frame is three recessive bits. CiA Classical CAN.
Stuffing, integrity and error confinement
In Classical CAN, dynamic stuffing applies from SOF through the CRC sequence. After five consecutive equal bits in that region the transmitter inserts a complementary bit. In FD, dynamic stuffing applies before the CRC field. The ISO FD CRC field has fixed-position stuff bits and a Gray-coded dynamic stuff count modulo eight protected by a parity bit. The CRC delimiter, ACK and EOF follow the CRC sequence and its stuffing. A SocketCAN log shows controller-delivered frame data and optional error reports. A bus trace is needed to inspect actual wire bits, stuffing or ACK behavior. CiA CAN CRC, Linux SocketCAN. Inspect a SocketCAN capture
Nodes detect bit, stuff, CRC, form and acknowledgment errors. An error-active node signals with six dominant bits in an active error flag. An error-passive node signals with six recessive bits in a passive error flag. Transmit and receive error counters govern state transitions. Either counter reaching 128 makes the node error-passive and a transmit error count above 255 takes it bus-off. A bus-off node stops participating until recovery is allowed by its controller and configuration. Error and overload signaling are distinct from normal data and remote frames. CiA Classical CAN.
ISO and Bosch non-ISO CAN FD
CAN FD was introduced by Bosch in 2012 and standardized in ISO 11898-1:2015. This page models standardized FD using the data link layer scope of ISO 11898-1:2024. The earlier Bosch format lacks the ISO FD CRC stuff count and has a different CRC field format. Nodes exchanging FD frames must agree on ISO or non-ISO operation. SocketCAN exposes FD-NON-ISO where the driver supports it. A legacy Classical controller can disrupt FD traffic when it detects an FD frame as an error. Bosch CAN FD controllers can also send Classical frames. Bosch CAN FD, ISO 11898-1:2024, Linux SocketCAN.
Bit timing
A bit starts with a one-quantum synchronization segment. Propagation and phase segment 1 form TSEG1. The sample point follows TSEG1, and phase segment 2 forms TSEG2. The synchronization jump width, SJW, limits how many quanta resynchronization can adjust. When BRS is recessive, an FD frame switches at the BRS sample point and returns to nominal timing at the CRC delimiter sample point. ESI reports the transmitter’s error state, with dominant used by error-active controllers and recessive indicating error-passive operation. CiA CAN FD, CiA 601 guidelines.
Controller clock, prescaler bounds, segment ranges and SJW limits determine which configurations are available. Transceiver delay, wiring, oscillator tolerance and transmitter delay compensation can further limit the workable timing. Linux SocketCAN, CiA 601 guidelines.
High-speed CAN physical layer
Connect the host to the CAN controller through the controller’s host interface. The controller passes TXD and RXD logic signals to the transceiver, which drives and senses the differential CANH/CANL pair. Use a twisted-pair trunk with short stubs and termination matched to the cable at both ends. A common high-speed design uses 120 Ω at each end. Check common-mode range, signal reference, output levels, transceiver standby state and transceiver rating at the required data-phase bitrate.
For the specifications and a bench example, see ISO 11898-2:2026, high-speed PMA, CiA high-speed transmission and the Classical CAN bench lab.