J1939 CAN ID ↔ PGN

Split a 29-bit identifier into priority, PGN, source and destination, or build one.

How to use it

  1. Type a 29-bit CAN identifier in hex to split it into priority, PGN, source and destination address.
  2. Or fill in priority, PGN and addresses to build the identifier.
  3. Copy the result; PDU1 and PDU2 formats are told apart for you.

Questions

What is the difference between PDU1 and PDU2?

If the PDU format byte is below 240 (PDU1), the next byte is a destination address and is not part of the PGN. From 240 up (PDU2), it is the group extension and belongs to the PGN, and the message goes to everyone.

Which numbers can I type?

Priority 0 to 7, PGN up to 262143 and addresses 0 to 255, in decimal or as 0x hex.

Related tools

  • J1939 log decoder (trucks, buses, off-highway): PGN and SPN decoding with built-in parameter groups or a J1939 DBC; BAM and RTS/CTS reassembly with timing checks; address claims; DM1 faults and lamps.
  • J1939 transport protocol: split a message: A payload over 8 bytes as BAM or RTS/CTS frames, as ASC or candump.
  • CAN log viewer (BLF, ASC, MF4): ASC, BLF, MF4, candump, TRC or CSV: decode with a DBC, plot signals, timing statistics and every diagnostic session explained.
  • Fault code decoder: OBD/UDS DTC bytes ↔ P/C/B/U codes, the UDS status byte, and J1939 SPN/FMI.
  • DBC editor: Create and edit CAN databases with a live bit layout and consistency checks; keeps every attribute when saving.
  • Live bus: Your own CAN interface (Vector, PEAK, Kvaser, CANable, J2534 pass-thru…): trace, DBC decoding, UDS console, rest-bus simulation and test scripts. Listen-only until you allow sending.
  • ISO-TP segmenter: Split a diagnostic message into CAN frames, or reassemble frames into a message.

Also useful for: pgn calculator, j1939 id, 29 bit id, pgn to can id, can id to pgn, source address, pdu1, pdu2.