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
+4 -2
View File
@@ -1,6 +1,6 @@
---
type: index
updated: 2026-09-21
updated: 2026-09-23
---
# Index
@@ -19,7 +19,7 @@ Catalog of every page in the wiki. Read this first when answering questions. Kee
- [[can-bus-integration]] — the core challenge; current firmware ID map flagged as placeholder, verification plan
- [[driveline-speed-signals]] — **engine / turbine / output-shaft speeds**: turbine speed as physical proof of gear engagement, and the output-shaft field that is our **only road-speed source** (no DSC on this bus) — the feedback variable for a future cruise-control PoC, with the safety envelope that would require
- [[dual-controller-architecture]] — Controller A → UART1 + ESP-NOW, protocol v2 → Controller B (1.3" display + Patrol gauge outputs); A owns alerts and the gauge tunables (`cfg` console)
- [[obd-diagnostic-polling]] — **why boost / MAF / rail / injection / DTCs never appear on the sniffer** and how a tester gets them: Route A generic OBD-II mode 01 on `0x7DF` (PID table, `01 00` bitmap as the first test — **implemented as the `diag pids` console probe**), Route B BMW addressing (tester `0x6F1` → DDE replies on `0x612`), DDE6 vs DDE7.3 variants, the capture-with-Launch procedure, and why polling is a transmit-on-the-bus design decision
- [[obd-diagnostic-polling]] — **why boost / MAF / rail / injection / DTCs never appear on the sniffer** and how a tester gets them: Route A generic OBD-II mode 01 on `0x7DF` and Route B BMW KWP on `0x6F1` → `0x612` — **BOTH VERIFIED WORKING 2026-09-23** (minimal PID set, no boost PID, mode 09 silent; `1A 86` ident identifies the donor; DTCs read via mode 03), the capture-with-Launch procedure (still wanted for the `22 D1xx` live-data identifiers), and why polling is a transmit-on-the-bus design decision
## Synthesis
@@ -38,4 +38,6 @@ Catalog of every page in the wiki. Read this first when answering questions. Kee
- [[e65-reverse-engineering-repo]] — **E65 per-ID DBC-style docs (ingested 2026-07-17)** — the highest-value source yet: settled the gearbox-temp offset (raw−40) and battery layout (12-bit ×0.015), proved the engine was running in our capture, and revealed turbine speed, output shaft, pedal position and cruise state
- [[esp32-s3-touch-lcd-5-intro-photo]] — Waveshare annotated board photo (moved into `raw/` 2026-09-21): terminal-block signal order (VIN/GND/VOUT · SDA/SCL · CAN · RS485 A/B · DO0/DO1 · DI), shared CAN/RS485 120 Ω switch, IO0/IO3/IO4/IO46 strapping pads
- [[google-ai-dde7m57-pids]] — Google AI Mode clipping on "dde7m57 pids" (ingested 2026-09-21, raw in `Clippings/`): uncited; its `0x612`-as-request claim is **contradicted**, its D1xx identifiers are `(unverified)`; kept for the Ediabas value names and the user's own observation that `0x612` appears with the Launch connected
- [[diag-route-a-2026-09-23]] — **first live Route A probe run (2026-09-23)**: DDE serves generic OBD mode 01 on `0x7E8` (verified: rpm + coolant cross-checked against the broadcast IDs); supported-PID list; MAF/IAT values implausible (explained by Route B session: sensor faults); mode 09 silent (no VIN); **5 stored DTCs, MIL off**; raw at `raw/diag-20260923-1117*.log`
- [[diag-route-b-2026-09-23]] — **Route B verified + DTCs read (same day)**: `0x6F1 [12]` → `0x612` confirmed live; `1A 86` ident = **VIN prefix WBANC92090 (E60 530d), DDE part numbers 7799764/7799765/7793887, 2006-03, KWP2000 not UDS**; `diag dtc` = P0101/P0113/P0500/P0545/P0030 (all disconnected-sensor swap leftovers); raw at `raw/diag-20260923-124*.log`
- [[dwr-335d-torque-pids]] — **DWR's "Extended BMW 335d PIDs for Torque"** (thread page 1 + `raw/BMW 335d.csv`, ingested 2026-09-21): a gauge-checked set of **generic J1979 mode-01 PIDs** from an M57 diesel (2009 335d, DDE7.3) — boost via PID 70, exhaust pressure, EGTs, MAF, fuel rate; nothing BMW-proprietary. Basis for the "try generic OBD first" route; the diesel-specific PIDs are probably absent on our EDC16
+8
View File
@@ -89,3 +89,11 @@ User raised temp_pwm_hz to 20000 via the tuning screen; needle now steady at fix
## [2026-09-23] update | Tach steppy-needle saga resolved; trim -13; temp gauge stable
Full day of override-ramp experiments (ignition on, engine off; tools/tach_ramp.py + tach_ramp2.py drive A over serial). Four-layer diagnosis on B, all firmware in the 1.3 repo: (1) 5 Hz staircase -> slew limiter; (2) Arduino ledcChangeFrequency() re-inits the timer mid-period -> replaced LEDC with esp_timer toggle; (3) esp_timer task jitter from WiFi bursts -> hardware-timer ISR, phase-continuous; (4) the floor: the cluster counts pulses in ~150 rpm quanta (alternating +100/+200 needle steps on a clean ramp) -> random dither +/-45 rpm with an adaptive envelope that fades at steady rpm. Scale: cluster over-reads x1.20 low / x1.15 high (nonlinear); user settled tach_trim = -13%. Also found mid-session: user trim change via touchscreen had never registered (B stayed on cfg v99) - config state now verified over serial before every test. [[patrol-instrument-cluster]] rewritten with the saga; new tools: serial_logger.py, serial_cmd.py, tach_ramp*.py, dual_serial_capture.py. Status: RPM and temp gauges "fairly good", tach dither constants may get a future pass.
## [2026-09-23] ingest | Route A OBD probe - first live run: the DDE answers
The deferred test-day mission finally executed. `tools/diag_session.py` (new: one serial session, full console log into `wiki/raw/`) ran the `diag` sequence with the engine idling, Launch unplugged. Result: **Route A verified** - the DDE serves generic OBD-II mode 01 on `0x7E8`. Supported PIDs `01,04,05,0B,0C,0D,0F,10,1C,20,21`; rpm and coolant cross-checked live against the broadcast IDs (681 rpm / 64 C, matching). Boost PID `70` absent, mode 09 (VIN/ECU name) silent, MAF/IAT scalings implausible under J1979 (flagged unverified). PID 01: MIL off, **5 stored DTCs** - reading them needs mode 03 (probe extension or Launch). Probe counters clean: 15 req / 12 replies / 3 timeouts / 0 tx failures, no retry storms. Wrote sources/diag-route-a-2026-09-23.md; updated obd-diagnostic-polling (Route A section), open-questions #2 (OBD cannot identify the donor; EDC16 hints) and #7 (DTC path now concrete); raw logs diag-20260923-111737.log + diag-20260923-111851.log.
## [2026-09-23] ingest | Route B verified, DTCs read, donor identified (E60 530d)
Second session of the day, no Launch needed. Extended the diag probe (read-only: mode 03 `diag dtc`, BMW KWP `diag ident` / `diag bmw` on 0x6F1 with a 1A/18/21/22 service whitelist; MAX_PAYLOAD 64->384). Results, all on the tapped bus: (1) `diag dtc` read the 5 stored codes - P0101 MAF, P0113 IAT, P0500 VSS, P0545 EGT, P0030 O2 heater - all disconnected-sensor swap leftovers; the "implausible MAF/IAT scaling" flags from the morning are withdrawn (sensor faults). (2) BMW addressing verified live: 0x6F1 [12] -> reply on 0x612; the google-ai clipping's reversed claim is dead. (3) `1A 86` ident (65 B): part numbers 7799764/7799765/7793887, date 2006-03, VIN prefix WBANC92090 -> E60 530d (unverified decode); 22 F190 rejected -> KWP2000 not UDS -> DDE6/EDC16-era. 1A 90 (full VIN) always answers busyRepeatRequest to single-shots. Wrote sources/diag-route-b-2026-09-23.md; updated obd-diagnostic-polling (Route B verified, warning callout resolved), open-questions #2 (donor mostly identified - part-number lookup remains) and #7 (DTCs read), bmw-m57n-engine; raw logs diag-20260923-1241*/1242*/1243*/1245*/1246*.log. Firmware change in src/modules/diag_probe.cpp+.h (design rule kept: still the single transmit path, human-typed, single-shot).
+2 -2
View File
@@ -1,7 +1,7 @@
---
type: entity
tags: [engine, bmw, can-bus]
updated: 2026-09-21
updated: 2026-09-23
---
# BMW M57N Engine
@@ -10,7 +10,7 @@ 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/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]]
- Donor chassis: **E60/E61 (2003+)** — narrowed from E60/E65 by the 6HP26X gearbox (xDrive output; the 7-series never had M57N + xDrive). **2026-09-23: the DDE identified itself over KWP** ([[diag-route-b-2026-09-23]]): VIN prefix **`WBANC92090` → E60 530d** `(unverified decode)`, ident date 2006-03, part numbers 7 799 764 / 7 799 765 / 7 793 887, and it speaks **KWP2000 not UDS** — all consistent with a DDE6-generation ECU (Bosch EDC16); a 2006 build would mean the **M57N2 231 hp** revision `(unverified)`. Remaining: look up the part numbers to name the exact variant. → [[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)
+25 -7
View File
@@ -1,7 +1,7 @@
---
type: concept
tags: [can-bus, dde, egs, diagnostics, kwp2000, uds, obd, design-decision]
updated: 2026-09-21
updated: 2026-09-23
---
# OBD / Diagnostic Polling
@@ -25,12 +25,23 @@ E60-generation BMWs use one shared diagnostic ID pair with an ECU address in the
- **What the user saw (2026-09-21):** `0x612` appears on the tapped bus only while the Launch is connected. That is the DDE *answering* — consistent with the table. The requests should be present in the same capture as `0x6F1`; the user's recollection of "`0x6F2`" is almost certainly `0x6F1`.
> [!warning]
> The [[google-ai-dde7m57-pids]] clipping states the opposite (`0x612` = request, `0x6F2` = response). Two sources (dieslg8's working code on a real M57, and the `0x6xx` = ECU-address convention) against one uncited AI summary: **we go with tester `0x6F1` → DDE `0x612`** until our own capture shows the pair. Nothing is verified until then.
> [!note]
> **Resolved 2026-09-23**: our own probe sent `0x6F1 [12] 1A 86` and the DDE answered on `0x612` `(verified)` — dieslg8's scheme was right, the [[google-ai-dde7m57-pids]] clipping's reversed claim is dead. See [[diag-route-b-2026-09-23]].
- **Generic EOBD** (`0x7DF` functional / `0x7E0` physical → reply `0x7E8`, mode `01`) is a second, standard route `(unverified)` — early E60s served EOBD over K-line, later ones over CAN. See the next section: it is the cheaper experiment and needs no BMW knowledge.
- **Generic EOBD** (`0x7DF` functional → reply `0x7E8`, mode `01`) is a second, standard route — **`(verified 2026-09-23)`: the DDE answers it on the PT-CAN.** See Route A results below.
## Route A — generic OBD-II mode 01 (try this first)
## Route A — generic OBD-II mode 01 — **VERIFIED WORKING (2026-09-23)**
First live run done, engine idling, probe on the tapped bus: **the DDE replies on `0x7E8`** (and only the DDE — the EGS stays silent on generic OBD). Full readings, raw logs and the two scaling warnings: [[diag-route-a-2026-09-23]].
- Supported PIDs (bitmap scan): `01, 04, 05, 0B, 0C, 0D, 0F, 10, 1C, 20, 21` — a minimal EOBD set, consistent with EDC16/DDE6 `(unverified)`. No boost `70`, no EGT `78`, no baro `33`, no fuel rate `5E`.
- Cross-checked live: rpm 681 (CAN said 678–682) and coolant 64 °C (CAN said 63–64) — request path and decode both `(verified)`.
- MAP `0B` = 104 kPa at idle; the 255 kPa clip question needs a drive with boost.
- MAF `10` and IAT `0F` reply with implausible values (258 g/s, 155 °C at idle) — **explained the same afternoon: those are sensor faults (P0101, P0113), not scalings** ([[diag-route-b-2026-09-23]]).
- **Mode 09 (VIN, ECU name) is ACKed but never answered** — the donor could not be identified via generic OBD; Route B's `1A 86` did it instead.
- **PID `01` reports MIL off with 5 stored DTCs** — read the same day via the new `diag dtc` (mode 03): P0101, P0113, P0500, P0545, P0030, all swap leftovers ([[diag-route-b-2026-09-23]]).
The original pre-test notes and PID reference table follow.
The [[dwr-335d-torque-pids]] source is a worked, gauge-checked set of J1979 mode-01 PIDs from an M57 diesel (a 2009 335d, DDE7.3). They are ECU-agnostic by design, so whichever subset our DDE supports can be read with standard frames and no reverse-engineering:
@@ -51,7 +62,9 @@ The [[dwr-335d-torque-pids]] source is a worked, gauge-checked set of J1979 mode
- **Implemented on Controller A (2026-09-21) `(repo)`** as the `diag` console command — see *Firmware: the `diag` probe* below. The whole test is `diag pids` typed on the USB console.
- Route A cannot give fault codes beyond generic mode `03` DTCs (P0xxx) — BMW-specific codes need Route B.
## Route B — BMW proprietary (KWP2000 / UDS on `0x6F1` → `0x612`)
## Route B — BMW proprietary (KWP2000 on `0x6F1` → `0x612`) — **VERIFIED WORKING (2026-09-23)**
First live exchange without any scan tool: `diag bmw 12 1A 86` → 65-byte multi-frame ident from `0x612`, containing DDE part numbers (7 799 764 / 7 799 765 / 7 793 887), a 2006-03 date, and the **VIN prefix `WBANC92090` → E60 530d** `(verified bytes / unverified decode)` — full breakdown in [[diag-route-b-2026-09-23]]. `22 F1 90` (UDS) is rejected: the DDE speaks **KWP2000, not UDS** — pointing at DDE6/EDC16. `1A 90` (full VIN) answers busyRepeatRequest to a single-shot probe. The `0x22 D1xx` live-data identifiers below remain untested — that is the remaining reason to capture with the Launch.
This depends on the DDE variant, which is still open ([[open-questions]] #2, [[bmw-m57n-engine]]):
@@ -82,11 +95,16 @@ Controller A now has **one** transmit path onto the PT-CAN: `CANDriver::transmit
| `diag pid <hex>` | one mode-01 request | raw reply bytes + a decoded value for the PIDs in the Route A table |
| `diag vin` | mode 09 PID 02 | the VIN as text — identifies the donor ([[open-questions]] #2) |
| `diag ecu` | mode 09 PID 0A | the ECU name string |
| `diag dtc` | mode 03 on `0x7DF` | the stored generic DTCs, decoded (added 2026-09-23) |
| `diag ident [addr]` | BMW KWP `1A 80` on `0x6F1` (default addr `12` = DDE) | ECU identification, full hex+ASCII dump (added 2026-09-23) |
| `diag bmw <addr> <hex...>` | one raw BMW-addressed request | reply dump; **whitelisted read-only services only** (`1A` ident, `18` DTCs, `21`/`22` read data — never session control or writes) |
| `diag status` | nothing | request/reply/timeout counters, responders seen, tester-guard timer |
Safety rules baked in: one request in flight at a time; frames are **single-shot** (no retransmit storm if nobody ACKs, the failure is just counted); **refused for 3 s after any foreign tester frame** (`0x7DF`, `0x7E0–7`, `0x6F1`), so it cannot collide with the Launch; only services `01` and `09`, never session control or writes; multi-frame replies are reassembled with a standard flow-control frame (`30 00 00`) to the responder's physical ID. Every transmitted frame is echoed as `CANTX,<ts>,<id>,0,<dlc>,<hex>` next to the `CANRAW` lines, so a saved console log holds both halves of every exchange.
### Test-day procedure (Route A probe)
### Test-day procedure (Route A probe) — executed 2026-09-23, outcome: Route A works
Run via `tools/diag_session.py` (one serial session, logs straight into `wiki/raw/`); results in [[diag-route-a-2026-09-23]]. Procedure kept for re-runs (e.g. the boost-clip drive test):
1. Engine running, **Launch unplugged** (the probe refuses to send for 3 s after any tester frame, and the Launch keeps polling while attached).
2. Laptop on the 5B's USB, console at 115200 with the output saved to a file, e.g. from the repo root:
+3 -3
View File
@@ -1,7 +1,7 @@
---
type: synthesis
tags: [meta, todo]
updated: 2026-09-21
updated: 2026-09-23
---
# Open Questions
@@ -24,7 +24,7 @@ The research frontier. Answering any of these should trigger updates across the
## Project context
2. **Exact donor model year / DDE version and EGS variant?** *Partly answered 2026-07-17.* The gearbox is a **ZF 6HP26X** (user-confirmed) — the X is the xDrive output variant, which means the donor is an **E60/E61, not an E65**: the 7-series never took M57N + xDrive. Remaining: model year and DDE version. **Cheap to close (2026-09-21):** the Launch scanner's ECU-identification page (or any INPA "control unit found" string) names the variant — `D60M57D0`/`D62M57B0` = DDE6 (EDC16), `D73N57C0` = DDE7.3 (EDC17). → [[bmw-m57n-engine]], [[obd-diagnostic-polling]]
2. **Exact donor model year / DDE version and EGS variant?** *Partly answered 2026-07-17.* The gearbox is a **ZF 6HP26X** (user-confirmed) — the X is the xDrive output variant, which means the donor is an **E60/E61, not an E65**: the 7-series never took M57N + xDrive. Remaining: model year and DDE version. **Cheap to close (2026-09-21):** the Launch scanner's ECU-identification page (or any INPA "control unit found" string) names the variant — `D60M57D0`/`D62M57B0` = DDE6 (EDC16), `D73N57C0` = DDE7.3 (EDC17). **Update 2026-09-23:** generic OBD can NOT close this — mode 09 (VIN `09 02`, ECU name `09 0A`) is ACKed but never answered ([[diag-route-a-2026-09-23]]). **Same afternoon, mostly ANSWERED via Route B**: `1A 86` on `0x6F1` returned the DDE ident — **VIN prefix `WBANC92090` → E60 530d** `(unverified decode)`, DDE part numbers **7 799 764 / 7 799 765 / 7 793 887**, date 2006-03, and the DDE speaks **KWP2000 not UDS** ([[diag-route-b-2026-09-23]]). Remaining sliver: look up the part numbers / NC9x model code online to pin the exact DDE variant (DDE6.1 vs 6.2, M57N vs M57N2) — a web/parts-catalogue task now, no more hardware needed. → [[bmw-m57n-engine]], [[obd-diagnostic-polling]]
3. **Standalone harness or full donor loom? Which BMW modules were retained?** Affects which modules broadcast on the swap's bus. → [[nissan-patrol-swap]]
4. **Which Patrol generation, and how is the display being mounted/powered?** → [[nissan-patrol-swap]]
@@ -32,7 +32,7 @@ The research frontier. Answering any of these should trigger updates across the
5. **Operating temperature 0–65 °C** (source: waveshare-wiki) — outside automotive norms at both ends (sub-zero winter cabins, sun-baked dashboards). Is the mounting location temperature-controlled enough? Any mitigation (mounting away from vents/sun, accepting reduced lifespan)?
6. **Transient protection on the 7–36 V input**: the board takes vehicle 12 V directly, but ISO 7637 load-dump spikes can exceed 36 V `(unverified)`. Consider an upstream TVS diode / automotive-rated buck. Also: ignition-switched vs constant power (the isolated digital input could sense ignition).
7. **Fault codes**: the UART packet reserves a field for fault codes — DDE fault codes are read via diagnostic protocols (KWP2000/UDS over K-line or CAN), not passively broadcast. Is passive reading even possible? `(unverified)` — **update 2026-07-17**: the same barrier explains why the Launch scanner shows boost/gearbox data our dump lacks (it polls; nothing broadcasts them). A capture *while the Launch is connected* would record both request and reply frames, handing us the exact bytes to replay. **Update 2026-09-21**: the user has seen `0x612` appear on the tapped bus while the Launch is connected — that is the DDE *replying* (`0x600` + DDE address `0x12`); the requests go out on `0x6F1`. Diagnostic traffic therefore reaches our tap, so the capture will contain both halves. Page written with the capture procedure and the firmware implications (polling = transmitting on the bus). **Cheapest first experiment** (from [[dwr-335d-torque-pids]]): one generic `01 00` supported-PID query on `0x7DF` — tells whether this DDE answers EOBD on the PT-CAN and which mode-01 PIDs it has, with zero BMW-specific knowledge. → [[obd-diagnostic-polling]]
7. **Fault codes**: the UART packet reserves a field for fault codes — DDE fault codes are read via diagnostic protocols (KWP2000/UDS over K-line or CAN), not passively broadcast. Is passive reading even possible? `(unverified)` — **update 2026-07-17**: the same barrier explains why the Launch scanner shows boost/gearbox data our dump lacks (it polls; nothing broadcasts them). A capture *while the Launch is connected* would record both request and reply frames, handing us the exact bytes to replay. **Update 2026-09-21**: the user has seen `0x612` appear on the tapped bus while the Launch is connected — that is the DDE *replying* (`0x600` + DDE address `0x12`); the requests go out on `0x6F1`. Diagnostic traffic therefore reaches our tap, so the capture will contain both halves. Page written with the capture procedure and the firmware implications (polling = transmitting on the bus). **Cheapest first experiment** (from [[dwr-335d-torque-pids]]): one generic `01 00` supported-PID query on `0x7DF` — tells whether this DDE answers EOBD on the PT-CAN and which mode-01 PIDs it has, with zero BMW-specific knowledge. **Update 2026-09-23 — experiment run, answer: YES.** The DDE serves mode 01 on `0x7E8` `(verified)`, and PID `01` shows **MIL off with 5 stored DTCs** ([[diag-route-a-2026-09-23]]). **Same afternoon: `diag dtc` (mode 03) read them** `(verified)`: P0101 (MAF), P0113 (IAT), P0500 (VSS), P0545 (EGT), P0030 (O2 heater) — all disconnected-sensor swap leftovers, and the first two explain the garbage MAF/IAT PID values ([[diag-route-b-2026-09-23]]). Route B addressing also verified live (`0x6F1 [12]` → `0x612`). What remains of this question: BMW-specific (non-P0xxx) codes and the `22 D1xx` live-data identifiers — that still wants a capture with the Launch polling. → [[obd-diagnostic-polling]]
## Answered
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+30
View File
@@ -0,0 +1,30 @@
[ 8546][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v107 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
[ 8741][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #25 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=29 fail=0]
[ 10025][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[ 13558][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v107 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
>>> diag dtc
CANTX,13676,7DF,0,8,0103000000000000
[ 13676][W][can_driver.cpp:554] canTask(): [CANTask] Bus error detected (count: 1)
[ 13684][W][can_driver.cpp:563] canTask(): [CANTask] TX failed (no ACK / bus error) - 1 so far
[diag] -> 0x7DF 03
[ 14024][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #50 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=55 fail=0]
[diag] no reply within 500 ms (request 03) - frame was not ACKed by any node
[ 15034][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
>>> diag ident
CANTX,17669,6F1,0,8,12021A8000000000
[ 17669][W][can_driver.cpp:554] canTask(): [CANTask] Bus error detected (count: 2)
[ 17677][W][can_driver.cpp:563] canTask(): [CANTask] TX failed (no ACK / bus error) - 2 so far
[diag] -> 0x6F1 [12] 1A 80 (reply expected on 0x612)
[diag] no reply within 500 ms (request 1A 80) - frame was not ACKed by any node
[ 18574][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v107 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
[ 19308][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #75 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=81 fail=0]
[ 20114][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
>>> diag status
[diag] state=idle requests=2 replies=0 timeouts=2 negative=0 | CAN tx=2 tx_failed=2
[diag] no foreign tester seen since boot
[ 23585][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v107 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
[ 24591][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #100 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=107 fail=0]
[ 25185][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
+3
View File
@@ -0,0 +1,3 @@
[ 28574][I][uart_manager.cpp:158] sendConfigFrame(): [UARTTask] TX CONFIG v107 (periodic): ppr=2 trim=-13 temp_hz=20000 slope=150 offset=50 min=40 override=0
[ 29850][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #125 gear=P(t0/e0) rpm=0 cool=89.0 gb=85.0 batt=12.45 alerts=0x00 valid=0x3F [27 B uart+espnow, espnow tx=133 fail=0]
[ 30324][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+57
View File
@@ -0,0 +1,57 @@
---
type: source
tags: [can-bus, obd, dde, diagnostics, capture]
updated: 2026-09-23
---
# Route A probe — first live run (2026-09-23)
First execution of the [[obd-diagnostic-polling]] Route A test: the `diag` console probe on Controller A, engine idling, Launch unplugged, tapped PT-CAN. Two sessions, raw console logs (CANRAW + CANTX + diag output interleaved):
- `raw/diag-20260923-111737.log` — `pids`, `pid 0C`, `pid 05`, `pid 0B`, `pid 70`, `vin`, `ecu`, `status`
- `raw/diag-20260923-111851.log` — `pid 10`, `pid 04`, `pid 0F`, `pid 0D`, `pid 1C`, `pid 01`, `pid 21`, `status`
## Headline
**The DDE answers generic OBD-II (mode 01) on the PT-CAN at `0x7E8`.** `(verified 2026-09-23)` Route A works; no BMW-specific knowledge needed for the PIDs it supports. Only one responder — the EGS does not answer generic OBD (nothing from `0x7E9`).
## Supported-PID bitmap (`diag pids`)
Blocks `01 00` and `01 20` answered; bitmap `41 20 80 00 00 00` → no blocks past 0x21. Full supported set:
`01, 04, 05, 0B, 0C, 0D, 0F, 10, 1C, 20, 21` — a minimal EOBD set. None of the 2007+ diesel PIDs (`70` boost, `78` EGT…), no `33` barometric, no `5E` fuel rate. Consistent with an EDC16-era DDE6 `(unverified)`.
## Readings at idle, engine warm-ish (coolant 63–66 °C during the runs)
| PID | Raw reply | Decoded (J1979) | Verdict |
|---|---|---|---|
| `0C` rpm | `41 0C 0A A4` | **681 rpm** | `(verified)` — CAN `0x0AA` read 678–682 simultaneously |
| `05` coolant | `41 05 68` | **64 °C** | `(verified)` — CAN `0x1D0` read 63–64 °C simultaneously |
| `0B` MAP | `41 0B 68` | **104 kPa abs** | plausible at idle (baro + a touch); the 255 kPa clip untested — needs a boost run |
| `0D` speed | `41 0D 00` | 0 km/h | `(verified)` — parked |
| `1C` OBD standard | `41 1C 06` | 6 = **EOBD (Europe)** | as expected |
| `10` MAF | `41 10 64 E5` | 258.29 g/s | **implausible** — see warning |
| `0F` intake air | `41 0F C3` | 155 °C | **implausible** — see warning |
| `04` load | `41 04 43` | 26 % | plausible idle load |
| `01` monitor status | `41 01 05 46 80 80` | MIL **off**, **5 stored DTCs** | see below |
| `21` distance w/ MIL | `41 21 00 00` | 0 km | consistent with MIL off |
| `70` boost | — | no reply (ACKed, silent) | PID absent, as predicted for EDC16 |
> [!warning]
> **MAF and IAT come back with non-standard-looking scalings.** By the book, `0x64E5`/100 = 258 g/s and `0xC3`−40 = 155 °C — both absurd at idle (expect ~20–30 g/s and <60 °C). ×0.1 on the MAF gives a very plausible 25.8 g/s; the IAT law is unknown (BMW's internal 0.75·x−48 would give 98 °C — still hot). Treat both PIDs as **present but unscaled** `(unverified)` until cross-checked against the Launch's live-data page or a cold-engine reading.
## Mode 09: silent
`09 02` (VIN) and `09 0A` (ECU name) were ACKed but never answered. **The donor cannot be identified over generic OBD** — [[open-questions]] #2 still needs the Launch's ECU-identification page (or a Route B `0x6F1` capture).
## The 5 stored DTCs
PID `01` byte A = `0x05`: MIL off, 5 confirmed DTCs in memory. Reading them is generic mode `03` — a small, read-only extension to the probe (currently services 01/09 only), or one Launch session. Feeds [[open-questions]] #7.
## Probe behaviour `(repo)`
Counters across both runs: 15 requests, 12 replies, 3 timeouts (the three unsupported/silent ones), 0 negatives, 0 tx failures, no foreign tester seen. Single-shot + guard logic worked as designed; the bus never saw a retry storm.
## Related
[[obd-diagnostic-polling]] · [[dwr-335d-torque-pids]] · [[can-id-candidates]] · [[open-questions]]
+57
View File
@@ -0,0 +1,57 @@
---
type: source
tags: [can-bus, obd, dde, diagnostics, kwp2000, dtc, vin, capture]
updated: 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)`.
## Probe behaviour `(repo)`
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.
## Related
[[diag-route-a-2026-09-23]] · [[obd-diagnostic-polling]] · [[bmw-m57n-engine]] · [[open-questions]]