Files
julian 61e190b1b9 Diag scans: 22 D1xx refuted, 21 xx session-locked; add diag raw toggle + scanner
- diag probe: `diag raw on|off` console command (mutes CANRAW during scans)
- tools/diag_scan.py: identifier-space sweeper via `diag bmw`
- findings: whole 22 D1xx block NRCs (clipping identifiers wrong for this
  DDE); 21 xx sparse - 21 20 = O_269962, measurement blocks gated behind
  diagnostic session / security access -> Launch capture is the path to
  live data
- wiki: route-b source page + obd-diagnostic-polling updated, raw scan logs

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-23 16:02:18 +02:00

5.8 KiB
Raw Permalink Blame History

type, tags, updated
type tags updated
source
can-bus
obd
dde
diagnostics
kwp2000
dtc
vin
capture
2026-09-23

Route B probe + DTC read — same day, second session (2026-09-23)

Follow-up to diag-route-a-2026-09-23, same setup (tapped PT-CAN, no Launch). The diag probe gained three read-only commands (dtc = generic mode 03, ident = BMW KWP 1A 80, bmw <addr> <hex> = raw whitelisted request on 0x6F1) and they paid off immediately. Raw console logs in raw/: diag-20260923-124138.log (DTCs), diag-20260923-124226.log (first 1A 86 hit), diag-20260923-124544.log (full ident dump), diag-20260923-124331.log / -124643.log (negative-response probes).

Headline 1: Route B works — BMW addressing verified on our own bus

(verified 2026-09-23) Request 0x6F1 [12] 02 1A 86 → the DDE answers on 0x612 with a 65-byte multi-frame KWP reply (our flow control [12] 30 00 00 on 0x6F1 accepted). This settles the addressing question from google-ai-dde7m57-pids in favour of dieslg8's scheme: tester 0x6F1 + target address byte, ECU replies on 0x600+address — from our own exchange now, no longer just sources.

Headline 2: the stored DTCs — all five are swap leftovers

diag dtc (generic mode 03 on 0x7DF, ignition on, engine off) — reply 43 05 00 30 05 00 05 45 01 13 01 01 (verified):

Code Generic meaning Swap interpretation (unverified)
P0101 MAF circuit range/performance explains the absurd 258 g/s MAF PID reading — sensor unplugged/failed, not a scaling issue
P0113 intake air temp circuit high input explains the absurd 155 °C IAT PID reading — open circuit reads max
P0500 vehicle speed sensor A expected: no DSC/ABS module on the swap bus, nothing sends road speed
P0545 EGT sensor 1 circuit low sensor presumably gone with the donor exhaust
P0030 O2/lambda heater control circuit (B1S1) lambda presumably gone with the donor exhaust

Consequences: the Route A "MAF/IAT non-standard scaling" warning is withdrawn — they are sensor faults, not scalings. And with a dead MAF the DDE almost certainly runs its fallback air-mass map (less precise fuelling/EGR) (unverified) — worth knowing for how the engine behaves.

Headline 3: the donor identifies itself

diag bmw 12 1A 86 full reply (65 B):

5A 86 40 42 38 39 32 35 32 34 20 06 03 07 00 00 07 79 97 64 00 00 07 79 97 65
00 00 07 79 38 87 01 11 11 31 32 33 34 35 00 30 30 38 39 51 35 30 41 39 36 32
42 57 42 41 4E 43 39 32 30 39 30 FF FF FF

Parsed (verified bytes; field meanings unverified):

  • ASCII "B892524" + BCD 06 03 07 — looks like an ident string and a date (2006-03-07 or 07.03.06).
  • Three BCD BMW part numbers: 7 799 764, 7 799 765, 7 793 887 — DDE hardware/software numbers; a parts-catalogue lookup would name the exact DDE variant. → open-questions #2
  • Trailing ASCII "12345", "0089Q50", "A962B", then "WBANC92090" + FF padding.
  • WBANC92090 is a VIN prefix: WBA = BMW, NC9x = E60 530d (unverified model-code decode — check against a VIN table). The 7-char serial tail is not in this block. Consistent with everything else known (E60/E61, M57N + 6HP26X); a 2006 build date would make it a 530d LCI-era M57N2 (231 hp), DDE6.2-generation (unverified).

What did NOT answer

  • 1A 80 — ACKed, silent. 1A 88 — NRC 0x12 (not supported). 21 80 — NRC 0x12.
  • 1A 90 (dedicated VIN read) — NRC 0x21 busyRepeatRequest on every try (ignition-only and engine running once); a single-shot probe won't get it (KWP expects the tester to retry, possibly within a session). Not needed — 1A 86 gave the prefix.
  • 22 F1 90 (UDS-style VIN DID) — NRC 0x10: not a UDS ECU, KWP2000 only — another DDE6/EDC16-era hint (unverified).

Third session: identifier scans — live data is session-locked

Engine idling, tools/diag_scan.py (new: sweeps an identifier space via diag bmw, CANRAW muted with the new diag raw off). Raw: raw/diagscan-22D1-20260923-155515.log, raw/diagscan-21-20260923-155831.log.

  • 22 D1 00–D1 FF: nothing. Every identifier NRCs 0x12 — the google-ai-dde7m57-pids clipping's 22 D1xx identifiers (D10C boost etc.) are confirmed wrong for this DDE (verified). (First scan ran with CANRAW on; its two "hits" are garbled NRC lines.)
  • 21 00–21 FF: sparse. Positive: 21 20 → ASCII " O_269962 " (Bosch software reference? — lookup candidate), 21 06/21 08 → one byte 05 each, 21 10 → empty reply. Many identifiers ACKed-but-silent.
  • The telling refusals: 21 90 NRC 0x21 (busy), 21 91 NRC 0x22 (conditions not correct), 21 F0 NRC 0x33 security access denied.

Conclusion (verified behaviour, unverified interpretation): the DDE's measurement blocks exist but are gated behind a diagnostic session (KWP 10 xx startDiagnosticSession, possibly plus 27 securityAccess for some) — both deliberately outside the probe's read-only whitelist. Blind probing has hit its safe limit; the Launch capture is now the only sensible next step for live data: it will reveal the session setup and the identifiers, and then replaying them is an informed decision instead of a guess.

Multi-frame TX flow control on 0x6F1 with extended addressing worked first try; MAX_PAYLOAD had to grow 64 → 384 (the first 1A 86 capture clipped at 192 mid-VIN). All requests single-shot, whitelisted read-only services (1A/18/21/22), zero TX failures once the bus was awake. Reminder from the first attempt of the day: a silent bus (ignition off) shows up as "not ACKed by any node" + TWAI bus errors — check ignition before suspecting wiring.

diag-route-a-2026-09-23 · obd-diagnostic-polling · bmw-m57n-engine · open-questions