Add diag console probe (OBD-II mode 01/09 on 0x7DF); wiki: diagnostic polling, two sources

Firmware:
- CANDriver::transmit(): the single sanctioned transmit path (single-shot,
  echoed as CANTX lines, TX_FAILED alert counted); CAN-task warnings now take
  the serial lock
- DiagProbe module: `diag pids` supported-PID bitmap scan, `diag pid <hex>`,
  `diag vin`, `diag ecu`, `diag status`; ISO-TP reassembly with flow control;
  one request in flight, refused for 3 s after any foreign tester frame
- Console dispatch chained via Tunables::setExtraCommandHandler()
- CLAUDE.md and docs/UART_PROTOCOL.md updated

Wiki:
- New page obd-diagnostic-polling (broadcast vs polled, 0x6F1->0x612 addressing,
  Route A generic OBD PID table, Route B, test-day procedure, firmware probe)
- New sources: google-ai-dde7m57-pids (clipping, unverified, 0x612 direction
  contradicted), dwr-335d-torque-pids (thread + raw/BMW 335d.csv decoded)
- Clippings/ folder added to the schema (Obsidian Web Clipper, treated as raw/)
- bmw-m57n-engine, can-bus-integration, open-questions, index, log updated
This commit is contained in:
2026-09-21 19:51:49 +02:00
parent f60bdac268
commit 974082cb3e
21 changed files with 1357 additions and 24 deletions
+5 -5
View File
@@ -1,7 +1,7 @@
---
type: entity
tags: [engine, bmw, can-bus]
updated: 2026-07-15
updated: 2026-09-21
---
# BMW M57N Engine
@@ -10,8 +10,8 @@ The engine at the heart of the project: the display reads its CAN bus and shows
## This specific engine (verified — user, 2026-07-15)
- Donor chassis: **E60/E65 (2003+)** — so a DDE5/DDE6-generation ECU, exact variant TBD.
- Transmission: **BMW automatic with its EGS ECU wired into the CAN bus** — gearbox temp and gear position have a real data source. Likely a ZF 6HP-family box with GS19-era EGS `(unverified)`.
- Donor chassis: **E60/E61 (2003+)** — narrowed from E60/E65 by the 6HP26X gearbox (xDrive output; the 7-series never had M57N + xDrive) — so a DDE6-generation ECU (Bosch EDC16C31/C35) is the expectation `(unverified)`; the DDE7.3 / EDC17CP09 that Google searches for "dde7 m57" describe is the later M57N2 in the E90/E70. Exact variant still TBD — the Launch's ECU-identification page names it (`D60M57D0`/`D62M57B0` vs `D73N57C0`). → [[obd-diagnostic-polling]]
- Transmission: **ZF 6HP26X** (user-confirmed 2026-07-17) with its EGS ECU wired into the CAN bus — gearbox temp and gear position have a real data source ([[gear-box-can-revealings]]).
## Overview (unverified)
@@ -27,11 +27,11 @@ Per the project goals: coolant temperature, oil temperature, gearbox oil tempera
- Exact DDE version and donor model year — narrows the CAN matrix further. → [[open-questions]]
- Whether the swap harness alters what's broadcast vs. a stock E60.
- Values the DDE keeps to itself (boost, MAF, rail pressure, injection quantity, DTCs) are only reachable by polling → [[obd-diagnostic-polling]].
## CAN IDs
> [!warning]
> The candidate IDs originally seeded here (`0x316`, `0x329`, `0x545`) are from **E46/E39-generation** documentation and probably do NOT apply — the donor is E60/E65, a newer bus generation with a different matrix. E60-specific research is tracked in [[can-bus-integration]]. The firmware's current IDs (`0x4F`, `0x55`, `0x201`, `0x1001`, `0x101F` `(repo)`) remain placeholder-quality either way.
The verified E60 map (coolant, gearbox temp, gear, rpm, torque, battery, turbine and output-shaft speed) lives in [[can-id-candidates]]; the firmware decodes exactly that map `(repo, 2026-09-21)`. The E46/E39-era IDs once seeded here (`0x316`, `0x329`, `0x545`) and the firmware's original placeholders (`0x4F`, `0x55`, `0x201`, `0x1001`, `0x101F`) were all confirmed absent from the live bus.
## Related