j1939

Protocol Data Units

Converting CAN Id

For a j1939 message, the CAN identifier is divided into the following fields:

Priority Extended Data Page Data Page PDU Format PDU Specific Source Address
3 bit 1 bit 1 bit 8 bit 8 bit 8 bit

Use pdu_from_can_id and can_id_from_pdu to convert.