Vector .DBC Grammar, 32-Bit BO_ Extended CAN IDs & 64-Bit Endianness Math
Whether you are configuring a Linux SocketCAN telematics gateway, parsing heavy-equipment CAN logs with Python cantools, or building a custom diagnostic display, every SAE J1939 parameter follows bitwise packing rules governed by SAE J1939-21, SAE J1939-71, and the Vector DBC file format.
1. 29-Bit SAE J1939 CAN ID to 32-Bit Vector DBC BO_ Header
An SAE J1939-21 Extended Frame Format (EFF) identifier packs Priority (3 bits), Data Page (2 bits), PDU Format PF (8 bits), PDU Specific PS (8 bits), and Source Address SA (8 bits) into 29 bits. To distinguish 29-bit extended frames from 11-bit standard CAN frames inside a .dbc file, Vector sets Bit 31 (0x80000000):
2. Intel Little-Endian (@1) vs. Motorola Big-Endian (@0) Matrix Indexing
In Vector DBC SG_ definitions, bit numbering spans 0 to 63 across an 8-byte frame (Byte 0 = bits 0..7, Byte 7 = bits 56..63):
Published Engineering References & Protocol Standards
- SAE J1939-71 — Vehicle Application Layer (Surface Vehicle Recommended Practice)(SAE International)
Defines Suspect Parameter Number (SPN) scaling, offset, data ranges, and special status byte indicators (0xFE Error Indicator, 0xFF Not Available).
- SAE J1939-21 — Data Link Layer — 29-Bit Extended CAN Identifier & PDU Formatting(SAE International)
Specifies the 29-bit CAN identifier bit fields: Priority (3 bits), Extended Data Page/Data Page (2 bits), PDU Format PF (8 bits), PDU Specific PS (8 bits), and Source Address SA (8 bits).
- Vector DBC File Format v1.0.5 — DBC Database File Format Documentation for CAN / CAN FD Networks(Vector Informatik GmbH)
Defines BO_ message headers (with Bit 31 0x80000000 set for 29-bit extended CAN identifiers) and SG_ signal definitions (StartBit|Length@ByteOrderSign (Scale,Offset) [Min|Max] "Unit" Receiver).
- ISO 11898-1:2015 — Road vehicles — Controller area network (CAN) — Part 1: Data link layer and physical signalling(International Organization for Standardization (ISO))
Standardizes 29-bit Extended Frame Format (EFF) arbitration identifiers and 0–8 byte (0–64 bit) classic CAN data payload framing.





