CAN Frame Types: How Standard, Extended and Remote Frames Differ

Key takeaways

  • A standard CAN frame has an 11-bit ID and an extended frame has a 29-bit ID. The IDE bit tells them apart.
  • A remote frame has no data field and an RTR bit of 1. It asks another node for a data frame, and cars rarely use it.
  • With the same ID, a data frame beats a remote frame because its RTR bit is the dominant 0.
Light trails from traffic on a curving highway at night, with the words CAN Frame Types
Traffic light trails on a curving highway at night. Image: Techqio

CAN frame types multiplied because cars outgrew the first one, as the 11-bit message ID ran short once vehicles took on more electronics. Two characteristics tell the frames apart, the length of the message ID and whether the frame carries a data field. Standard and extended are the ID formats, data and remote are the frame types, and CAN picks among the four combinations to suit the need.

1. Message ID length: 11-bit standard vs. 29-bit extended

An 11-bit ID makes the standard format, and a 29-bit ID makes the extended format. The message ID is the unique name of a message. It is also the message’s priority, used for arbitration when two or more messages collide on the CAN bus.

The 11-bit ID of a standard frame runs from 0 to 2047. That range was once large enough. Cars with more electronics needed more messages, and the extended frame with its 29-bit ID gave them a wider range. Both ID lengths remain part of ISO 11898-1:2024, which now covers classical CAN and CAN FD together, CiA notes.

2. Data field: data frame vs. remote frame

A frame with a data field is a data frame, and one without is a remote frame. A node sends a remote frame to ask another node for the data frame with that ID, which Kvaser calls soliciting the transmission of the corresponding data frame. Error recovery is a separate job, since the CAN controller retransmits a failed frame on its own.

Chart of four CAN frames: remote and data frames, each in standard format with an 11-bit ID and extended format with a 29-bit ID. An arrow from the standard data frame up to the standard remote frame reads that a node requests the frame carrying the data it needs, and an arrow to the extended data frame reads when more ID bits are needed
Four frame boxes sorted by ID length and data field, linked by arrows. Image: Techqio

Cars seldom use the remote frame. A car mostly sends and receives its messages periodically, so a node that misses the data picks it up on the next round instead of asking for it. Remote frames are used in the aircraft and ship industries, where every piece of data has to be received exactly or large volumes of data are exchanged.

Since cars rarely send it, I’d treat the remote frame as a format to recognize on the bus rather than one to argue for or against. CAN FD leaves the remote frame out. CiA, the CAN industry association, states that the CAN FD protocol does not support remotely requested data frames.

How the CAN frame types are built

Every CAN frame, standard or extended, data or remote, follows one structure. A CAN message divides into five fields, shown in the figure below. The figure also marks the start-of-frame (SOF) bit, the delimiter (DEL) bits and the 7-bit end-of-frame (EOF) that bracket them.

Bit layout of a CAN standard frame: SOF, 11-bit ID, RTR, IDE, r, 4-bit DLC, data field of 0 to 8 bytes, 15-bit CRC, delimiters, ACK and 7-bit EOF, grouped into arbitration, control, data, check and ACK fields
Bit layout of a standard frame with field labels. Image: Techqio
  • Arbitration field: holds the message ID, which is also the priority needed when messages collide on the bus.
  • Control field: holds the bit values that control the message. The IDE bit shows whether the frame is standard or extended. The DLC bits give the length of the message data.
  • Data field: holds the data, the actual content of the communication. A CAN message can carry up to 8 bytes.
  • Check field: holds the CRC values that confirm no data was altered.
  • ACK field: holds the value that tells the other nodes on the bus the message was received properly.

Texas Instruments’ CAN primer confirms both sizes, listing a 4-bit DLC and up to 64 bits of application data. That is the 8-byte limit.

How the IDE and SRR bits mark an extended frame

The IDE bit separates the two formats. A value of 0 marks the standard frame format, and a value of 1 marks the extended frame format. In an extended frame, 18 bits are added to the original 11 ID bits, so 29 bits can serve as the ID. In the figure, a red line under a bit marks a dominant 0 and a line above it a recessive 1.

Bit layouts of a CAN standard frame and a CAN extended frame. The extended frame adds an SRR bit, an 18-bit ID extension and reserved bits r1 and r0 around the IDE bit
Standard and extended frame bit layouts, with red lines along some bits and the IDE bit outlined. Image: Techqio

An SRR bit comes with the extension. It is a dummy bit with a value of 1. TI describes it as a placeholder in the position the RTR bit holds in a standard message. The r0 and r1 bits are reserved bits, set aside for functions that may be added later.

When both formats start with the same 11 ID bits, the base-format data frame wins arbitration against the extended one, CiA notes. I’d move to the 29-bit ID only when 11 bits can no longer name every message, since both formats can share one bus.

How the RTR bit marks a remote frame

A frame with its RTR bit set to 1 is a remote frame. The arbitration field covers the 11 ID bits through the RTR bit, so bitwise arbitration settles priority with the RTR bit included.

Bit layouts of a CAN standard frame and a CAN remote frame. The remote frame has the RTR bit marked and no data field between the DLC and the CRC
Standard and remote frame bit layouts, with red lines along the RTR, IDE and r bits. Image: Techqio

Suppose a standard data frame and a remote frame with the same ID collide on the bus. The data frame wins arbitration and transmits its message. Its RTR bit is the dominant 0, one of the two bus levels a CAN transceiver puts on the wires. That outcome fits the remote frame’s role, because it only asks for the data the data frame already carries.

Which frame a car network ends up using

Of the CAN frame types, the data frame is nearly every frame a logger captures on a car’s bus, because periodic messages carry the traffic. Reading one means checking the IDE bit, which says whether an 18-bit ID extension follows the 11 base bits. On CAN FD networks the data-versus-remote split disappears entirely, and only the choice of ID length remains.

Sources

Share this article

Similar Posts

Leave a Reply

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