Decode active diagnostic trouble codes from a fleet truck's J1939 DM1 broadcast message including SPN, FMI, and occurrence count

domain: csselectronics.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Listen for PGN 65226 (0xFECA, DM1) broadcast every 1 second or on a DTC state change
  2. Parse the first 2 bytes as lamp status (protect/amber/red/malfunction indicator lamp plus flash bits)
  3. For each subsequent 4-byte DTC block, combine the 16-bit SPN-low bytes with the 3-bit SPN-high segment to reconstruct the full 19-bit SPN
  4. Extract the 5-bit Failure Mode Identifier (FMI) and 7-bit Occurrence Count (OC), noting OC caps at 126 with 127 meaning 'not available'
  5. Detect whether the message fits a single 8-byte frame (0-1 active DTCs) or requires J1939 Transport Protocol reassembly (2+ active DTCs) before parsing DTC blocks

Known gotchas

Related routes

Subscribe to J1939 DM1 broadcasts to detect a heavy-duty vehicle's active diagnostic trouble codes in real time instead of polling
csselectronics.com · 5 steps · unrated
Extract engine RPM from a heavy-duty truck's J1939 CAN bus by decoding SPN 190 out of the PGN 61444 (EEC1) broadcast frame
csselectronics.com · 5 steps · unrated
Read live OBD-II PIDs and diagnostic trouble codes programmatically via ELM327
elmelectronics.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans