CAN / CAN FD Bus Data Frame
Last updated
Last updated
Copyright © 2024 | All Rights Reserved
The CAN / CAN FD bus data frame does the work on CAN / CAN FD. The whole point of CAN / CAN FD is to send data between networked controllers - and that is the job of the data frame.
The data frame begins with a single SOF (start of frame) bit and is followed by the CAN / CAN FD Identifier. The CAN / CAN FD Identifier is used to identify the message and the node the message is coming from. The identifier can be either 11 bits long or 29 bits long depending on the state of some reserved bits.
After the CAN / CAN FD Identifier, there is a data section that first begins with a data length. The CAN / CAN FD data frame can have 0 to 8 bytes so it uses 4 bits to encode length. The data bytes directly follow the data length.
Following the data is the CRC. The CRC is a calculation that is made on the first part of the CAN / CAN FD frame by both the receiver and transmitter. If they match the receiver assumes that it received the data correctly.
Following the CRC is the Ack field. This field will be set by all other nodes on the network who properly received the frame.
After the Ack bit there will be a quiet time called end of frame space followed by a minimum inter-frame space.