OPEN-SOURCE MIT

Last Updated: November 11, 2026

Open-Source SAE J1939 Virtual ECU, DM1 (PGN 65226) & Multi-Packet BAM Frame Simulator

Per SAE J1939-73, PGN 65226 (DM1, 0x18FECA<SA>) encodes lamp states in bytes 1–2 and 4 bytes per DTC (19-bit SPN + 5-bit FMI + 7-bit OC), switching to BAM (0x18ECFF<SA>) above 1 DTC.

Interactive SAE J1939 Virtual ECU DM1 & Multi-Packet BAM Simulator

Byte 1 (Lamp Status) & Byte 2 (Lamp Flash Frequency)
Malfunction Indicator Lamp (MIL · Bits 8–7)
Red Stop Lamp (RSL · Bits 6–5)
Amber Warning Lamp (AWL · Bits 4–3)
Engine Protect Lamp (Bits 2–1)
Active Diagnostic Trouble Codes (3 DTCs — Multi-Packet BAM Active)
Multi-Packet BAM (TP.CM_BAM + 2 TP.DT)

SA 0x00 (0) · Engine #1 (Primary Diesel ECM)

Byte 1 = 0x54 · Byte 2 = 0xD3 · 3 Active DTC(s) · 14 Bytes Total

CAN Frames Generated
3 Frame(s)
PGN 60416 + 60160
Red Stop Lamp (RSL = 01b) Active — Immediate Engine / Machine Shutdown Condition

Byte 1 bits 6–5 are set to 01b (Red Stop Lamp ON). Per SAE J1939-73, this signals a critical fault severe enough to require immediate safe machine shutdown to prevent catastrophic powertrain failure.

Multi-Packet SAE J1939-21 BAM Transport Active (14 Bytes Across 2 Data Packets)

Because 3 DTCs are active (payload = 2 + 4×3 = 14 bytes > 8 bytes), PGN 65226 cannot be sent on 0x18FECA00. Your CAN receiver must reassemble TP.CM_BAM (0x18ECFF00) + TP.DT (0x18EBFF00) packets.

SAE J1939-73 Lamp Cluster & J1939-21 BAM Packet BurstByte 1=0x54 · Byte 2=0xD3
SAE J1939-73 DM1 Lamp Status & Multi-Packet BAM Frame SequenceVisualizes the four J1939 operator dashboard lamps (MIL, Red Stop, Amber Warning, Protect) and the byte-by-byte CAN frame structure for PGN 65226 or PGN 60416/60160 BAM transport.MIL (Bits 8–7)ON (01b)Flash: Solid (11b)Red Stop (Bits 6–5)ON (01b)Flash: 2 Hz Fast (01b)Amber Warn (Bits 4–3)ON (01b)Flash: 1 Hz Slow (00b)Protect (Bits 2–1)OFF (00b)Flash: Solid (11b)Byte 1Byte 2Byte 3Byte 4Byte 5Byte 6Byte 7Byte 8BAM (0xECFF)0x18ECFF000x200x0E0x000x020xFF0xCA0xFE0x00TP.DT #10x18EBFF000x010x540xD30x6E0x000x000x020x64TP.DT #20x18EBFF000x020x000x010x050xA80x000x040x01
4-Byte DTC Bit-Packing Breakdown (Conversion Method CM = 0)
DTC #1: SPN 110 · FMI 00x6E000002
B3=0x6E · B4=0x00 · B5=0x00 · B6=0x02 (OC=2)
DTC #2: SPN 100 · FMI 10x64000105
B3=0x64 · B4=0x00 · B5=0x01 · B6=0x05 (OC=5)
DTC #3: SPN 168 · FMI 40xA8000401
B3=0xA8 · B4=0x00 · B5=0x04 · B6=0x01 (OC=1)
Linux SocketCAN (cansend vcan0) Replay Script
#!/usr/bin/env bash
# SAE J1939 Virtual ECU Simulator — Engine #1 (Primary Diesel ECM) (SA 0x00)
cansend vcan0 18ECFF00#200E0002FFCAFE00
sleep 0.05
cansend vcan0 18EBFF00#0154D36E00000264
sleep 0.05
cansend vcan0 18EBFF00#02000105A8000401
SAE J1939-81 PREFERRED

SAE J1939 ECU Source Address (SA) to Single-Frame DM1 & BAM CAN ID Matrix

Deterministic reference table mapping standard heavy-equipment ECU Source Addresses (SA 0x00 to 0xF9) to their exact 29-bit CAN identifiers for single-frame DM1 (0x18FECA<SA>), TP.CM_BAM (0x18ECFF<SA>), and TP.DT (0x18EBFF<SA>).

Engine #1 (Primary Diesel ECM)

SA 0x00
Single DM1 ID:0x18FECA00
BAM / DT IDs:0x18ECFF00 / 0x18EBFF00

Transmission #1 (Powershift / Hydrostatic TCM)

SA 0x03
Single DM1 ID:0x18FECA03
BAM / DT IDs:0x18ECFF03 / 0x18EBFF03

Brakes — System Controller (ABS / Wet Disc Brake ECU)

SA 0x0B
Single DM1 ID:0x18FECA0B
BAM / DT IDs:0x18ECFF0B / 0x18EBFF0B

Instrument Cluster #1 (Cab Operator Display)

SA 0x17
Single DM1 ID:0x18FECA17
BAM / DT IDs:0x18ECFF17 / 0x18EBFF17

Body Controller (Auxiliary Electro-Hydraulic Implement ECU)

SA 0x21
Single DM1 ID:0x18FECA21
BAM / DT IDs:0x18ECFF21 / 0x18EBFF21

Management Computer #1 (Machine Master VECU)

SA 0x27
Single DM1 ID:0x18FECA27
BAM / DT IDs:0x18ECFF27 / 0x18EBFF27

Exhaust Emission Controller (Tier 4 Final SCR / DPF ACM)

SA 0x3D
Single DM1 ID:0x18FECA3D
BAM / DT IDs:0x18ECFF3D / 0x18EBFF3D

Off-Board Diagnostic-Service Tool #1 (RP1210 / SocketCAN Tester)

SA 0xF9
Single DM1 ID:0x18FECAF9
BAM / DT IDs:0x18ECFFF9 / 0x18EBFFF9
SAE J1939-73 & J1939-21 TRANSPORT PROTOCOL SPECIFICATION

PGN 65226 (DM1) Bit-Packing, Lamp Flash Masks & Multi-Packet BAM Framing

Most J1939 parsers fail in field testing because engineers only test single-fault 0x18FECA00 frames. In real heavy-equipment fault cascades, an engine or transmission ECU raises 2 to 6 simultaneous DTCs—instantly shifting the diagnostic stream from PGN 65226 to SAE J1939-21 Broadcast Announce Message (BAM) across PGN 60416 and PGN 60160.

1. 4-Byte DTC Bit-Packing (Conversion Method CM = 0)

Under SAE J1939-73 Section 5.7.1, each active fault occupies 4 bytes (32 bits) starting at Byte 3 of the DM1 payload:

Byte A = SPN & 0xFF (SPN LSB bits 7..0)
Byte B = (SPN >> 8) & 0xFF (SPN middle bits 15..8)
Byte C = (((SPN >> 16) & 0x07) << 5) | (FMI & 0x1F)
Byte D = (CM << 7) | (OC & 0x7F) [where CM = 0]

2. Multi-Packet BAM Transport (PGN 60416 & PGN 60160)

When N_DTC >= 2, total DM1 payload size is Size = 2 + 4 × N_DTC (> 8 bytes). The ECU broadcasts:

TP.CM_BAM (0x18ECFF<SA>): [0x20, Size_LSB, Size_MSB, K_Packets, 0xFF, 0xCA, 0xFE, 0x00]
TP.DT #1..#K (0x18EBFF<SA>): [Seq_1..K, DataByte_1..7 (padded with 0xFF)]

Published Engineering References & Diagnostic Standards

FREQUENTLY ASKED QUESTIONS

SAE J1939 DM1 (PGN 65226) & Multi-Packet BAM Engineering FAQs

Technical explanations on TP.CM_BAM packet reassembly, 19-bit SPN Conversion Method 0, lamp flash bitmasks, and Preferred Source Addresses.

A single classic CAN 2.0B frame holds at most 8 data bytes. In SAE J1939-73, DM1 uses Bytes 1–2 for Lamp Status and 4 bytes for each active DTC (2 + 4N bytes total). With 0 or 1 active DTC (6 bytes + 2 padding bytes 0xFFFF = 8 bytes), DM1 fits into one frame on PGN 65226 (0x18FECA<SA>). As soon as 2 or more DTCs are active (2 + 4×2 = 10 bytes > 8 bytes), SAE J1939-21 Transport Protocol Broadcast Announce Message (BAM) takes over: the ECU sends a TP.CM_BAM header on PGN 60416 (0x18ECFF<SA>, control byte 0x20, total byte count, packet count, and target PGN 0xCAFE00 in little-endian) followed by 7-byte TP.DT data packets on PGN 60160 (0x18EBFF<SA>) with sequence numbers 1..K.

Heavy Equipment Fleet Triage & Preventive Maintenance

Catch Multi-Fault J1939 Cascades Before Red Stop Lamp (01b) Shutdowns

Simulating PGN 65226 (DM1) frames tests your gateway — Rigovely links multi-packet J1939 fault bursts across mixed heavy fleets directly to shop repair orders, expanding productive wrench capacity by +57% (SMRP Metric 5.6.1).

Shop bench

Free shop calculators grounded in published standards (Parker Catalog 4300, SAE J1939, AS568). They run in the browser with no login and no paywall.

Need the Exact Factory Schematic or Torque Table for This Machine?

Stop scrolling through 1,200 to 4,000-page OEM PDFs on a phone screen. Upload your shop's Service and Test & Adjust manuals into Rigovely's isolated Scoped OEM Index. The Beta diagnostic co-pilot pinpoints the wiring pinout, relief pressure, or torque sequence by S/N prefix alongside Fleetio, SAP, or Maximo.

100% Shop-Controlled Library: Your internal manuals are encrypted and never used to train public AI models.Start 7-Day Free Trial - Upload Your Shop PDFs
View All Free Tools
Shop Downtime & ROI Scenario Calculator
01 · Fleet & Shop Economics

Shop Downtime & ROI Scenario Calculator

Model technician manual search friction, wrong-part restocking penalties, and independent equipment downtime using your shop’s actual repair order volume.

  • SMRP Metric 5.6.1
  • USACE EP 1110-1-8
  • Multi-Currency ROI
AS568 Hydraulic O-Ring Size & Nominal Gland Calculator
02 · SAE AS568 · Parker 2-xxx

AS568 Hydraulic O-Ring Size & Nominal Gland Calculator

Identify standard AS568 dash numbers and Parker 2-xxx designations from caliper ID and CS measurements with tolerance overlap and rectangular gland fill math.

  • SAE AS568 Rev D
  • Parker ORD 5700
  • 2D Interval Overlap
Hydraulic Fitting Torque & Thread Reference
03 · JIC 37° · ORFS · SAE ORB

Hydraulic Fitting Torque & Thread Reference

Look up thread designations, sealing mechanisms, and manufacturer assembly conditions for JIC 37° flare, ORFS face seal, and SAE O-ring boss connections.

  • SAE J514 · J1453
  • SAE J1926-1 ORB
  • No 0.75× Multipliers
Fastener Preload & Bolt Torque Calculator (T = K × F × d)
04 · ISO 898-1 · SAE J429

Fastener Preload & Bolt Torque Calculator (T = K × F × d)

Calculate tensile stress area (As), proof load, target clamp preload (F), and tightening torque (T = K × F × d) with explicit nut factor K and anti-seize yield risk simulation.

  • ISO 898-1 Class 8.8/10.9/12.9
  • SAE J429 Grade 5/8
  • Bossard F-047
SAE J1939 Fault Code (SPN/FMI) & Deutsch 9-Pin Reference
05 · SAE J1939-73 · Deutsch 9-Pin

SAE J1939 Fault Code (SPN/FMI) & Deutsch 9-Pin Reference

Decode 5-bit Failure Mode Identifiers (FMI 0–31), curated Suspect Parameter Numbers (SPN), proprietary OEM SPN ranges, and Deutsch HD10-9-1939 9-pin connector cavities.

  • SAE J1939-73 FMI 0–31
  • Deutsch HD10-9-1939
  • Gateway Guardrails
SAE J518 4-Bolt Split Flange (Code 61 / Code 62 / CAT) Calculator
06 · SAE J518 · Parker 4300 T6

SAE J518 4-Bolt Split Flange (Code 61 / Code 62 / CAT) Calculator

Match caliper flange head OD, thickness, and bolt pattern to SAE Code 61, Code 62, or Caterpillar 14.22 mm (0.560") high-pressure flanges with AS568 O-ring and 3-step cross-bolt torque specs.

  • SAE J518 / ISO 6162
  • Code 62 vs CAT 14.22 mm
  • Parker Table T6