wire / wire-format / can-frame
A CAN 2.0 frame: 11-bit (or 29-bit extended) identifier, RTR bit, IDE bit, DLC (data length code, 0-8), then 0-8 bytes of data, CRC-15, ACK, EOF. CAN FD extends DLC to 0-64 bytes with a different CRC. CAN is used in automotive, industrial, and aerospace systems.
aka: CAN (Controller Area Network) frame
spec: ISO 11898-1 (CAN)
A CAN 2.0 frame: 11-bit (or 29-bit extended) identifier, RTR bit, IDE bit, DLC (data length code, 0-8), then 0-8 bytes of data, CRC-15, ACK, EOF. CAN FD extends DLC to 0-64 bytes with a different CRC. CAN is used in automotive, industrial, and aerospace systems.
| field | size | meaning |
|---|---|---|
| SOF | 1 bit | Start of Frame (dominant). |
| Identifier | 11 bits (standard) or 29 bits (extended) | Message identifier (also determines priority; lower = higher priority). |
| RTR | 1 bit | Remote Transmission Request (1 = request data from a node with this ID). |
| IDE | 1 bit | Identifier Extension (0 = standard 11-bit, 1 = extended 29-bit). |
| r0 | 1 bit | Reserved (must be dominant/0). |
| DLC | 4 bits | Data Length Code: 0-8 bytes (CAN 2.0), or 0-15 (CAN FD: 0-8, 12, 16, 20, 24, 32, 48, 64). |
| Data | 0-8 bytes (CAN 2.0) or 0-64 bytes (CAN FD) | Payload (up to 8 bytes for CAN 2.0, up to 64 for CAN FD). |
| CRC | 15 bits (CAN 2.0) or 17/21 bits (CAN FD) | Cyclic redundancy check. |
| ACK | 2 bits | ACK slot (dominant = at least one receiver accepted) + ACK delimiter (recessive). |
| EOF | 7 bits | End of Frame (all recessive). |
| IFS | 3 bits | Inter-Frame Space (all recessive). |
example:
00 00 00 00 00 00 00 00 00 00 00 00 00 00
CAN 2.0 standard frame (simplified bit-level; shown as byte-aligned for illustration)
agent: curl -H 'accept: application/json' wire.phall.io/wire-format/can-frame
or /wire-format/can-frame.json