Files
ESP32-S3-Touch-LCD-5B/wiki/pages/can-id-candidates.md
T

6.0 KiB
Raw Blame History

type, tags, updated
type tags updated
synthesis
can-bus
reverse-engineering
e60
research
2026-07-15

E60/E65 CAN ID Candidates (Research Results)

Findings from the 2026-07-15 deep-research run (95 claims extracted from ~15 sources, 30 adversarially verified against primary repos before the run was interrupted; synthesis done manually from the journal). These are the IDs to program into the firmware for bench testing against a live capture — none are (verified) until seen on the actual swap's bus.

The map (replaces the firmware's placeholder IDs)

Signal CAN ID Bytes Scaling Sender Rate Confidence
Coolant temp 0x1D0 byte 0 °C = raw − 48 DME/DDE 100 ms High — verified verbatim in E65 docs, present in E90-gen DBC, confirmed live on a real E60 545i, and an E60 tool32 table lists 0x1D0 "Motordaten" from DDE1 (diesel!)
Engine oil temp 0x1D0 byte 1 °C = raw − 48 DME/DDE 100 ms High — same sources as coolant
Gearbox oil temp 0x0B5 ("Torque_request_EGS") byte 7 ⚠ disputed: raw + 0 vs raw + 40 EGS ? Medium — in the E9x community DBC; absent from the E65 repo's decoded EGS messages. Offset must be settled on the bench (a ~40 °C error is dangerous — resolve before trusting)
Gear lever position 0x1D2 ("TransmissionDataDisplay") byte 0 ⚠ two encodings, see below EGS 200 ms High that the ID is right, medium on layout
Current gear number 0x1D2 byte 1 upper nibble (GearAct, −4 offset) or 0x0BA bits 0–3 (E65: values P/R/N…6th) EGS 20–200 ms Medium — two candidate messages; also 0x304 "Status Gang" (event-driven, from E60 tool32 table)
Battery voltage 0x3B4 ("Powermanagement Batteriespannung") ⚠ disputed layout 12-bit LE × 0.015 V (E65, verified: 0x3D9→14.775 V) vs 24-bit BE × 0.001 V (E90 DBC) Power module / DDE 5 s (E65) High on ID (E60 tool32 table confirms, sender DDE1), layout must be settled on bench
Engine RPM (bonus) 0x0AA bytes 4–5 RPM = raw / 4 DME/DDE 10 ms High — cross-generation (E65 + E90 comment)
Ignition/terminal status (bonus) 0x130 byte 0 bitmasks 0xD5/0xC5/0xC1 CAS 100 ms Medium — used by an M57 project as its only passive decode

The 0x1D2 encoding dispute (must resolve on bench)

  • E90-generation DBC: low nibble of byte 0 = 1=P, 2=R, 4=N, 8=D (bitmask style, XOR-inverted copy in high nibble); 2-bit ShiftLeverMode at bit 32 (0=Normal, 1=Sport, 2=Manual). DLC 6.
  • E65 live capture (damienmaguire, verified against code): whole byte 0 = 0xE1=P, 0xD2=R, 0xB4=N, 0x78=D; byte 3 is a rolling counter 0x0D→0xED in steps of 0x10. DLC 5.
  • Same ID, different generation dialects — the E60 could speak either. Note the E65 byte-0 values are consistent with the E90 nibble scheme (0xE1 low nibble = 1 = P, 0xD2 → 2 = R, 0xB4 → 4 = N, 0x78 → 8 = D, high nibble = XOR-inverted copy!) — so the two sources may actually agree and the "dispute" is notation. Bench capture decides.

Fault codes: passive reading is NOT possible ⚠

Consistent across sources: no DTC/fault-code broadcast exists. The dieslg8 project (M57 diesel, later EDC17 DDE) gets coolant temp and DTCs only via active diagnostic requests (send on 0x6F1, parse responses on 0x612; e.g. coolant = raw×0.01 − 100). At most, a MIL/check-engine lamp status bit may be passively derivable (a commercial Patrol-swap CAN module offers a check-engine output). Consequences for the firmware (repo):

  • The fault_codes field in automotive_data_t cannot be filled in LISTEN_ONLY mode.
  • Options: (a) drop the field, (b) show MIL lamp status only, (c) leave LISTEN_ONLY and accept it empty, or (d) later add a diagnostic-request mode (means transmitting on the bus — design decision).

Swap-context validation

A commercial module exists specifically for BMW M57/N57 swaps into Nissan Patrols/Landcruisers that derives tach, check-engine lamp, reverse trigger (from the ZF EGS via CAN — the box has no reverse wire), and fan trigger from the engine CAN. Proof that passive listening on exactly this drivetrain-in-a-Patrol works. → nissan-patrol-swap

Also useful: an E60 forum claim (unverified) that arbitration IDs are identical across E60 K-CAN and PT-CAN (PT-CAN just broadcasts faster, ~10 ms vs ~100 ms) — meaning E90 K-CAN DBC findings likely transfer to our 500 kbps PT-CAN tap.

Sources

  • HeinrichG-V12/E65_ReverseEngineering (GitHub) — E65 760Li PT-CAN, docs verified verbatim by the adversarial pass (0x1D0, 0x3B4, 0x192, 0x1D2, 0x0BA, 0x1A2)
  • damienmaguire/BMW-E65-CANBUS (GitHub) — live E65 735i captures + working EGS emulator code (0x1D2 encoding, 0x192, 0x0AA)
  • TimesNewRomanZ/e60-canbus (GitHub, community bmw_e9x_e8x.dbc) — author runs a real E60 545i; 0x1D0 confirmed live on E60
  • kmalinich/dieslg8 (GitHub) — M57 diesel (E90 335d, EDC17): diagnostic-request-only coolant/DTC evidence
  • loopybunny E90 K-CAN DBC — 0x1D0/0x1D2/0x3B4 E90 layouts
  • E60 forum thread with tool32/EDIABAS-derived ID table — confirms 0x1D0/0x1D2/0x304/0x3B4 exist on E60 with DDE1 as sender
  • Commercial M57/N57 Patrol-swap CAN module product page — swap-context feasibility

Caveats

  • No source used an actual E60 M57N diesel end-to-end; the closest anchors are the E60 tool32 table (lists DDE1 as sender for 0x1D0/0x3B4) and the M57 dieslg8 project (different chassis generation). Engine-side layouts are inferred from petrol DME captures of the same bus generation.
  • Firmware's current IDs (0x4F, 0x55, 0x201, 0x1001, 0x101F) are contradicted by every source — confirmed placeholders. → can-bus-integration
  • Promotion to (verified) requires a live capture from the swap's bus: warm the engine and watch 0x1D0 byte 0 climb, shift through P/R/N/D and watch 0x1D2.

can-bus-integration · bmw-m57n-engine · nissan-patrol-swap · open-questions