Engine data screen: live rail, boost, charge-air temp, battery from the DDE

New screen (Engine data button on Driveline) polls the DDE with the
Launch's KWP `2C 10 <id>` reads: 00DF rail (bar = raw x 0.03, verified),
0091 boost (mbar = raw / 8), 16A8 charge-air temp, 0093 battery - the last
three provisional (one engine-off point each), tagged on screen with the
raw value shown for calibration.

DiagProbe live mode: `2C 10 15 E0` once, then the four reads in turn, one
in flight, ~100 ms apart, quiet on the console, paused by the foreign-tester
guard, stops 1.5 s after the screen stops asking. 2C stays forbidden from
the console. CANDriver::transmit gains an echo flag (live frames echoed only
with CANRAW on). Wiki: the three CANNY captures ingested, identifier table
and the no-password decision recorded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 19:48:00 +02:00
parent 40a21557f0
commit a28cbada59
17 changed files with 40926 additions and 13 deletions
+2 -1
View File
@@ -1,6 +1,6 @@
---
type: index
updated: 2026-09-27
updated: 2026-10-07
---
# Index
@@ -41,5 +41,6 @@ Catalog of every page in the wiki. Read this first when answering questions. Kee
- [[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`
- [[launch-capture-2026-09-23]] — **rail pressure decoded via Launch capture (2026-09-23)**: the DDE serves live data through service `2C` (`2C 10 00 DF` → `6C 10 HHLL`); **rail pressure bar = HHLL × 0.03**, verified two-point against the Launch (idle 305 / 2500 rpm 430); recipe generalises to any Launch-visible value; self-poll needs the session handshake (design decision); raw at `raw/serial-COM10-20260923-163511.log`
- [[launch-captures-2026-10-07]] — **boost, charge-air temp and battery identifiers** found with the CANNY logger while the Launch polled (engine off): `0091` boost (mbar ≈ raw ÷ 8), `16A8` charge-air temp, `0093` battery — scalings provisional (one point each); feeds the Engine data screen
- [[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
+4
View File
@@ -146,3 +146,7 @@ User asked to refactor the Settings and Gauge Tuning UX, save the Wi-Fi connecti
`include/ui/` deleted (the SquareLine export: ui_init, placeholder screen, helpers, theme manager); its one live line, the dark LVGL theme, moved to `display_init.cpp`. User verified on `dev` (Wi-Fi forget/scan/rejoin, dialogs, keyboard) and installed v0.1.6 from the screen: "all good". SquareLine references left in `.pio/libdeps` are library examples, never compiled. Recorded the agreed display plan in open-questions #13 (baseline -> bounce buffers -> XIP_FROM_PSRAM on a branch), including why bounce buffers alone won't fix flash-write flicker, and why CAN / wire / ESP-NOW need no buffering (dropped-frame counter deferred by the user).
## [2026-10-07] ingest + build | Boost / charge-air temp / battery identifiers; Engine data screen
Ingested three CANNY-logger captures (`raw/airtemp38-63.txt`, `raw/boost.txt`, `raw/battery12-27.txt`) -> [[launch-captures-2026-10-07]]: the Launch reads `2C 10 16A8` (charge-air temp), `0091` (boost actual), `0093` (battery), each a 2-byte `6C 10` reply. Engine off throughout, so one calibration point each: boost mbar = raw / 8 fits 1028-1034 mbar; temp and battery fits are guesses. User decision: a no-password **Engine data screen** (button on Driveline) showing rail, boost, charge-air temp, battery - polled only while shown, paused while another tester is on the bus, provisional values tagged and raw shown. Updated [[obd-diagnostic-polling]] (identifier table, decision), index.
+16 -1
View File
@@ -1,7 +1,7 @@
---
type: concept
tags: [can-bus, dde, egs, diagnostics, kwp2000, uds, obd, design-decision, rail-pressure]
updated: 2026-09-23
updated: 2026-10-07
---
# OBD / Diagnostic Polling
@@ -123,6 +123,21 @@ Run via `tools/diag_session.py` (one serial session, logs straight into `wiki/ra
5. `diag status` once at the end (counters, tester guard), then stop the monitor.
6. Copy the log into `raw/`, write a `sources/` page with the supported-PID list and the VIN, update this page (Route A verified / refuted) and [[open-questions]] #2 and #7.
## Known live-data identifiers (`2C 10 <id>` → `6C 10 HH LL`)
| Value | ID | Scaling | Status |
|---|---|---|---|
| Rail pressure, actual | `00DF` | bar = raw × 0.03 | `(verified 2026-09-23)`, two points |
| Charge-air pressure, actual (boost, absolute) | `0091` | mbar = raw ÷ 8 | `(unverified)` one point, engine off |
| Charge-air temperature | `16A8` | °C = raw × 0.01 − 15 | `(unverified)` one point, engine off |
| Battery voltage | `0093` | V = raw × 0.002455 | `(unverified)` one point, engine off |
Evidence: [[launch-capture-2026-09-23]], [[launch-captures-2026-10-07]]. Each provisional scaling needs one more capture at a different operating point.
## Engine data screen `(repo, 2026-10-07)`
**Decision (user, 2026-10-07):** the four values above get their own screen on Controller A, opened by an **"Engine data" button on the Driveline screen**, **no password**. This replaces the 2026-09-23 plan of a password-protected Diagnostics screen for these reads. Guard rails kept: polling runs **only while the screen is shown** (stops ~1.5 s after it is left), one request in flight, ~100 ms apart (each value ~2.5 Hz), **pauses while another tester is on the bus** (3 s guard), only these fixed frames - `2C` stays forbidden from the `diag` console. Sends the Launch's `2C 10 15 E0` once per start, then the four reads in turn. Provisional scalings are tagged on screen and every value shows its raw number for calibration against the Launch. A password can still come with a future Diagnostics screen for anything beyond these reads.
## Beyond the probe `(repo)`
- **The decode recipe (proven 2026-09-23):** log `CANRAW` while the Launch shows a live value → find the `2C 10 <id>` / `6C 10 <data>` pair whose data tracks the reading → calibrate scale against the display at two operating points (idle + a blip). One session per parameter. Boost, MAF, injection quantity, EGTs all reachable this way. Worked example: [[launch-capture-2026-09-23]] (rail pressure).
+1 -1
View File
@@ -24,7 +24,7 @@ The research frontier. Answering any of these should trigger updates across the
## Design decisions (parked, not blocking)
12. **The "Diagnostics" screen (planned 2026-09-23).** Active diagnostic polling — replaying the `2C` live-data reads we decoded ([[launch-capture-2026-09-23]]) so values like rail pressure appear on Controller A without the Launch — is now technically unblocked (no session/security needed). Intended design when built: a **password-protected Diagnostics screen**, authorized-technician access only, manual trigger, refuses while a scan tool is connected, read-oriented services only. The same gate covers the general transmit-on-the-bus decision. This is deliberately deferred, but the capability, the byte sequences, and these guard rails are recorded so the work resumes from here, not from scratch. OTA check/install was meant to live here too (2026-09-26); **decided otherwise 2026-09-27**: it is on the Settings screen behind a confirm dialog ([[ota-updates]]). Whatever password this screen gets must be stored as a salted hash in NVS because the firmware is public. → [[obd-diagnostic-polling]], [[dual-controller-architecture]], [[ota-updates]]
12. **The "Diagnostics" screen (planned 2026-09-23).** Active diagnostic polling — replaying the `2C` live-data reads we decoded ([[launch-capture-2026-09-23]]) so values like rail pressure appear on Controller A without the Launch — is now technically unblocked (no session/security needed). Intended design when built: a **password-protected Diagnostics screen**, authorized-technician access only, manual trigger, refuses while a scan tool is connected, read-oriented services only. The same gate covers the general transmit-on-the-bus decision. This is deliberately deferred, but the capability, the byte sequences, and these guard rails are recorded so the work resumes from here, not from scratch. **Update 2026-10-07:** the first live reads (rail, boost, charge-air temp, battery) ship on a no-password **Engine data screen** instead (user decision; guard rails in [[obd-diagnostic-polling]]); this password-gated screen remains the plan for anything beyond those reads. OTA check/install was meant to live here too (2026-09-26); **decided otherwise 2026-09-27**: it is on the Settings screen behind a confirm dialog ([[ota-updates]]). Whatever password this screen gets must be stored as a salted hash in NVS because the firmware is public. → [[obd-diagnostic-polling]], [[dual-controller-architecture]], [[ota-updates]]
## Project context
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+8065
View File
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,42 @@
---
type: source
tags: [can-bus, obd, dde, kwp2000, launch, boost, charge-air, battery, live-data, capture]
updated: 2026-10-07
---
# Launch live-data captures — boost, charge-air temp, battery (2026-10-07)
Three short captures taken by the user with the **CANNY 5.3 Pico logger** (tab-separated `ID CAN DLC bytes… ascii timestamp RX0`) while the Launch scanner showed one parameter at a time. **Engine off, ignition on** in all three (rpm 0 on `0x0AA`, coolant 72–74 °C on `0x1D0`). Raw: `raw/airtemp38-63.txt` (12.9 s), `raw/boost.txt` (13.8 s), `raw/battery12-27.txt` (43.5 s).
## What the Launch sends
Same mechanism as [[launch-capture-2026-09-23]], one value per request, each cycle every ~210–240 ms:
1. `6F1: 12 02 1A 80` → multi-frame ident reply on `612` (the Launch re-reads the ECU ident every cycle; we don't need it)
2. `6F1: 12 04 2C 10 <id>` → `612: F1 04 6C 10 HH LL` — a 2-byte value
No define (`2C 10 15 E0`) appears in these logs - the Launch session was already open - so reads work at least after one define per session `(verified)`.
## Identifiers found
| Launch parameter | ID | Raw seen (engine off) | Launch showed | Scaling (best current) | Confidence |
|---|---|---|---|---|---|
| Charge-Air Temperature | `16A8` | 5295–5301 | 36–38 °C | °C = raw × 0.01 − 15 → 38.0 | `(unverified)` one point; the Launch's 2 °C spread doesn't fit a 6-count raw spread, so multiplier/offset are not separable yet |
| Charge-Air Pressure, Actual | `0091` | 8271 (flat) | 1028 mbar off (read later, separate session); first read as "1080 pascal" (misread) | mbar = raw ÷ 8 → 1034 | `(unverified)` one point, within 0.6% (weather drift between sessions plausible); 1/8 mbar per count is a typical ECU fixed-point unit |
| Battery Voltage | `0093` | 4990–5006 | 12.27 V (from the file name; not confirmed by the user) | V = raw × 0.002455 | `(unverified)` one point |
| Rail Pressure (start of the battery log) | `00DF` | 212 / 285 | — | bar = raw × 0.03 → 6.4 / 8.6 bar residual | `(verified 2026-09-23)` |
The user also read, without a log: idle ≈ 1033 mbar, free-rev to 4000 rpm ≈ 1300 mbar (normal: a diesel turbo barely spools without load). `0x3B4` broadcast only its invalid marker in these logs, so it could not cross-check the battery value.
## To close the scalings
One capture per parameter at two clearly different states, with the Launch value noted at each: battery engine off (~12.3 V) vs running (~14 V); boost engine off vs held ~2500–3000 rpm (and ideally under load); charge-air temp cold vs after a drive. If raw ÷ 8 is right, 1300 mbar reads ~10400 raw (`0x28A0`).
## Consequences
- **Boost is reachable** — the value the project wanted from the start and that the DDE never broadcasts ([[obd-diagnostic-polling]]).
- Built 2026-10-07 into Controller A's **Engine data screen** (rail, boost, charge-air temp, battery), polled only while the screen is shown, pausing while another tester is on the bus; provisional scalings are tagged on screen and raw values shown for calibration `(repo)`.
## Related
[[obd-diagnostic-polling]] · [[launch-capture-2026-09-23]] · [[bmw-m57n-engine]] · [[open-questions]]