Diag day: Route A+B verified live, DTCs read, donor identified as E60 530d

- diag probe: add mode 03 (diag dtc), BMW KWP on 0x6F1 with extended
  addressing (diag ident, diag bmw), read-only service whitelist
  (1A/18/21/22), MAX_PAYLOAD 64->384, full hex+ascii dump of BMW replies
- tools/diag_session.py: one-session probe runner, logs into wiki/raw/
- wiki: Route A results (11 mode-01 PIDs, rpm/coolant cross-checked, mode
  09 silent), Route B verified (0x6F1 [12] -> 0x612), 1A 86 ident with
  VIN prefix WBANC92090 (E60 530d), DTCs P0101/P0113/P0500/P0545/P0030
  (disconnected-sensor swap leftovers), open-questions #2/#7 updated

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-23 12:54:24 +02:00
parent e9fc24778a
commit 7a7398243b
20 changed files with 87140 additions and 51 deletions
+8
View File
@@ -15,11 +15,19 @@
* Console (USB serial, same line reader as `cfg`):
* diag pids scan the mode-01 supported-PID bitmaps (00, 20, 40, ...)
* diag pid <hex> one mode-01 request, e.g. `diag pid 0C` (rpm)
* diag dtc mode 03 — stored generic DTCs
* diag vin mode 09 PID 02 — VIN (identifies the donor)
* diag ecu mode 09 PID 0A — ECU name string
* diag ident [addr] BMW KWP `1A 80` ECU identification on 0x6F1 (default 12 = DDE)
* diag bmw <addr> <hex...> raw BMW-addressed request; read-only services only
* diag status counters, responders seen, tester-guard timer
* diag help
*
* BMW requests use ISO 15765 extended addressing: TX on 0x6F1 with byte 0 =
* target ECU address, reply on 0x600+address with byte 0 = 0xF1. Allowed
* services are whitelisted in sendBmwRequest(): 1A (ident), 18 (DTCs),
* 21/22 (read data) — never session control, resets, or writes.
*
* Every frame we send is echoed on the console as
* CANTX,<ts_ms>,<id_hex>,0,<dlc>,<data_hex>
* — the same shape as CANRAW — so a capture holds both halves of every exchange.