Launch capture: decode rail pressure (service 2C, bar = raw x 0.03)

- capture-with-Launch session: live data on this DDE comes via KWP service
  2C (2C 10 00 DF -> 6C 10 HHLL), not the 22 D1xx identifiers (absent) or
  the session-gated 21 blocks
- rail pressure actual VERIFIED two-point vs the Launch display:
  bar = HHLL x 0.03 (idle ~305, 2500 rpm ~430)
- recipe now generalises to any Launch-visible value; self-poll needs the
  session/define handshake (captured, deferred design decision)
- wiki: sources/launch-capture-2026-09-23.md, obd-diagnostic-polling,
  open-questions #7, index; raw serial capture (~13 MB)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-23 16:48:10 +02:00
parent 61e190b1b9
commit 6bdf4d43a9
8 changed files with 332746 additions and 4 deletions
+1
View File
@@ -39,5 +39,6 @@ Catalog of every page in the wiki. Read this first when answering questions. Kee
- [[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`
- [[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`
- [[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
@@ -101,3 +101,7 @@ Second session of the day, no Launch needed. Extended the diag probe (read-only:
## [2026-09-23] ingest | Identifier scans: 22 D1xx dead, 21 xx session-locked
Third session. Added `diag raw on|off` (CANRAW mute) and tools/diag_scan.py (identifier-space sweeper). Scanned `22 D100-D1FF`: every DID NRC 0x12 - the google-ai clipping identifiers are confirmed wrong for this DDE. Scanned `21 00-FF`: hits only at 21 20 (ASCII " O_269962 " - Bosch SW ref candidate), 21 06/08 (byte 0x05), 21 10 (empty); refusals 21 90 busy / 21 91 conditions-not-correct / 21 F0 security-access-denied show the measurement blocks are gated behind a diagnostic session (10 xx) and partly security access (27) - both outside the read-only whitelist by design. Conclusion: blind Route B probing is exhausted; live data needs the capture-with-Launch session. Updated sources/diag-route-b-2026-09-23.md and obd-diagnostic-polling; raw logs diagscan-22D1-*.log + diagscan-21-*.log.
## [2026-09-23] ingest | Launch capture: rail pressure decoded (service 2C)
The capture-with-Launch session, finally run (engine idling, our read-only serial_logger recording CANRAW while the Launch polled the DDE; user selected Rail Pressure actual, blipped to 2500 rpm for a second point). Result: live data on this DDE comes via KWP service 2C (dynamicallyDefineLocalIdentifier), NOT the 22 D1xx identifiers (which do not exist here) and not the session-gated 21 blocks the blind scan hit. Poll 2C 10 00 DF -> reply 6C 10 HHLL. Rail pressure VERIFIED two-point against the Launch display: bar = HHLL x 0.03 (idle raw 0x27EF=307 bar vs ~305 shown; 2500 rpm raw 0x3768=425 bar vs ~430 shown; transient spikes to 0x4E31~600 bar at tip-in). Recipe generalises to any Launch-visible value. Self-polling needs the connect-time session/define handshake (captured, but a transmit-on-the-bus design decision - deferred). Wrote sources/launch-capture-2026-09-23.md; updated obd-diagnostic-polling, open-questions #7, index; raw at serial-COM10-20260923-163511.log.
+6 -3
View File
@@ -1,6 +1,6 @@
---
type: concept
tags: [can-bus, dde, egs, diagnostics, kwp2000, uds, obd, design-decision]
tags: [can-bus, dde, egs, diagnostics, kwp2000, uds, obd, design-decision, rail-pressure]
updated: 2026-09-23
---
@@ -64,7 +64,9 @@ The [[dwr-335d-torque-pids]] source is a worked, gauge-checked set of J1979 mode
## 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. **Same day, identifier scans**: the clipping's `22 D1xx` identifiers are confirmed wrong (whole block NRCs), and a `21 xx` sweep shows the measurement blocks are **gated behind a diagnostic session / security access** (NRC 0x22/0x33) — outside the probe's read-only whitelist by design. **Live data over Route B therefore requires the capture-with-Launch session below**, which will reveal the session setup and the real identifiers together.
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. **Same day, identifier scans**: the clipping's `22 D1xx` identifiers are confirmed wrong (whole block NRCs), and a `21 xx` sweep shows the measurement blocks are **gated behind a diagnostic session / security access** (NRC 0x22/0x33) — outside the probe's read-only whitelist by design.
**Capture-with-Launch done, and it worked — [[launch-capture-2026-09-23]].** The Launch reads live values via service **`2C`** (dynamicallyDefineLocalIdentifier), not `21`/`22`: poll `2C 10 00 DF` → reply `6C 10 HHLL`. **Rail pressure actual is fully decoded and verified: bar = HHLL × 0.03** (two points against the Launch display: idle 305, 2500 rpm 430). The method generalises to any value the Launch will display; self-polling it would need the connect-time session/define handshake (captured, but a transmit-on-the-bus design decision).
This depends on the DDE variant, which is still open ([[open-questions]] #2, [[bmw-m57n-engine]]):
@@ -123,7 +125,8 @@ Run via `tools/diag_session.py` (one serial session, logs straight into `wiki/ra
## Beyond the probe `(repo)`
- A continuous poller (Route A or B) would reuse the same transmit path with a fixed request list: one request per ≥100 ms, one identifier at a time, only while no scan tool is connected, never a session-control or write service. Still a design decision: a request storm or a malformed frame can disturb the DDE/EGS, and diagnostic sessions can change what an ECU broadcasts.
- **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).
- A continuous poller (Route A or B) would reuse the same transmit path with a fixed request list: one request per ≥100 ms, one identifier at a time, only while no scan tool is connected, never a session-control or write service. Still a design decision: a request storm or a malformed frame can disturb the DDE/EGS, and diagnostic sessions can change what an ECU broadcasts. **Route B self-polling additionally needs the connect-time session/define handshake** the Launch performs (the blind `21` scan hit NRC 0x22/0x33 without it) — captured in [[launch-capture-2026-09-23]] if we ever choose to replay it.
- Protocol v2 dropped the `fault_codes` field in favour of the alert bitmap ([[dual-controller-architecture]]); polled values would need new DATA fields.
- The same request path would also be the only way to read DTCs (service `0x18`/`0x19`, variant-dependent) → [[open-questions]] #7.
+1 -1
View File
@@ -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. **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]]
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 live-data identifiers. **Update 2026-09-23 — Launch capture done ([[launch-capture-2026-09-23]]):** live data comes via service `2C` (not `22 D1xx`, which don't exist here); **rail pressure fully decoded and verified** (`2C 10 00 DF` → `6C 10 HHLL`, bar = HHLL × 0.03). The recipe now generalises to any Launch-visible value (boost, MAF, injection… one capture session each). Reading them *without* the Launch needs replaying the session/define handshake — a transmit-on-the-bus design decision, deferred. → [[obd-diagnostic-polling]]
## Answered
+24
View File
@@ -0,0 +1,24 @@
[ 3619][I][main.cpp:187] setup(): [MAIN] - Console: type 'cfg help' to tune the Patrol gauge outputs
[ 3628][I][main.cpp:188] setup(): [MAIN] - Screens: Driveline (boot) <- left: Settings | right: Gauge tuning ->
[ 3638][I][main.cpp:189] setup(): [MAIN] - Settings screen has WiFi and UART toggles
[ 3646][I][main.cpp:190] setup(): [MAIN] - WiFi scan updates every 10 seconds when enabled
[ 3654][I][main.cpp:191] setup(): [MAIN] - UART transmits at 5Hz (200ms) when enabled
[ 3800][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #2 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=5 fail=0]
[ 4027][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #3 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=6 fail=0]
[ 4253][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #4 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=7 fail=0]
[ 4479][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #5 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=8 fail=0]
[ 5006][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[ 8518][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
[ 8712][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]
>>> diag raw on
[ 9768][I][can_driver.cpp:709] setRawLogging(): [CANDrv] Raw frame logging ENABLED
[diag] CANRAW logging on
[ 10079][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[ 13531][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 status
[diag] state=idle requests=0 replies=0 timeouts=0 negative=0 | CAN tx=0 tx_failed=0
[diag] no foreign tester seen since boot
[ 13996][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]
[ 15142][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
+78
View File
@@ -0,0 +1,78 @@
[234147][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
[235901][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #76 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=1149 fail=0]
[237817][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[239159][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
[241185][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #101 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=1175 fail=0]
[242880][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[244173][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
[246469][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #126 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=1201 fail=0]
[247945][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[249187][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
[251753][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #151 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=1227 fail=0]
[253006][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[254202][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
[257037][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #176 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=1253 fail=0]
[258096][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[259214][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
[262322][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #201 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=1279 fail=0]
[263178][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[264231][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
[267607][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #226 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=1305 fail=0]
[268243][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[269245][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
[272889][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #251 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=1331 fail=0]
[273334][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[274257][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
[278172][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #20 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=1357 fail=0]
[278382][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[279268][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
[283424][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[283459][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #45 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=1383 fail=0]
[284286][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
[288486][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[288741][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #70 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=1409 fail=0]
[289298][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
[293503][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[294025][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #95 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=1435 fail=0]
[294312][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
[298517][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[299309][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #120 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=1461 fail=0]
[299356][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
[303609][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[304386][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
[304580][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #145 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=1488 fail=0]
[308631][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[309397][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
[309861][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #170 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=1514 fail=0]
[313721][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[314410][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
[315145][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #195 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=1540 fail=0]
[318782][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[319423][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
[320428][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #220 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=1566 fail=0]
[323848][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[324438][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
[325713][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #245 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=1592 fail=0]
[328909][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[329451][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
[330997][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #14 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=1618 fail=0]
[333933][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[334465][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
[336280][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #39 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=1644 fail=0]
[338997][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[339479][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
[341563][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #64 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=1670 fail=0]
[344060][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[344491][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
[346847][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #89 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=1696 fail=0]
[349152][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[349504][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
[352129][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #114 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=1722 fail=0]
[354215][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[354516][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
[357411][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #139 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=1748 fail=0]
[359280][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[359529][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
[362697][I][uart_manager.cpp:126] sendDataFrame(): [UARTTask] TX #164 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=1774 fail=0]
[364368][I][main.cpp:201] loop(): [LOOP] Heartbeat - system running
[364545][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
File diff suppressed because it is too large Load Diff
+41
View File
@@ -0,0 +1,41 @@
---
type: source
tags: [can-bus, obd, dde, kwp2000, launch, rail-pressure, live-data, capture]
updated: 2026-09-23
---
# Launch live-data capture — rail pressure decoded (2026-09-23)
The capture-with-Launch session that [[obd-diagnostic-polling]] had been pointing at since July, finally run. Engine idling, our read-only logger (`tools/serial_logger.py`) on Controller A's USB recording the full `CANRAW` stream while the Launch polled the DDE; then the user selected **Rail Pressure (actual)** and blipped to 2500 rpm for a second calibration point. Raw: `raw/serial-COM10-20260923-163511.log` (~13 MB, both halves of every exchange).
## Headline: rail pressure actual is decoded and VERIFIED
**`(verified 2026-09-23, two operating points against the Launch display)`**
| Direction | CAN ID | Payload | Meaning |
|---|---|---|---|
| Launch → DDE | `0x6F1` | `12 04 2C 10 00 DF` | target `12` (DDE), 4-byte req, service `2C` local-id `10`, operand `00 DF` |
| DDE → Launch | `0x612` | `F1 04 6C 10 HH LL` | `6C` = `2C`+0x40, id `10`, then **16-bit rail value `HHLL`** |
**Rail pressure (bar) = (HH·256 + LL) × 0.03** — linear through zero, no offset.
Calibration points (sustained, not transient):
- idle: raw `0x27EF` (10223) → 307 bar vs Launch **~305** ✓
- 2500 rpm: raw `0x3768` (14184) → 425 bar vs Launch **~430** ✓
- factor from the two points: 0.0298 and 0.0303 → adopt **0.03 bar/count** (≈ raw / 33.3)
Transient spikes to `0x4E31` (20017 → 600 bar) occurred at the instant of throttle tip-in (rail overshoot); they are real but not the steady value the gauge reads.
## How the Launch reads it — the mechanism `(observed, semantics unverified)`
Not the simple `21`/`22` identifier reads the [[diag-route-b-2026-09-23]] blind scan tried (those NRC'd — session/security gated). The live poll is **service `2C`** (KWP dynamicallyDefineLocalIdentifier family): on connect the Launch sends `2C 10 15 E0` once (define), then polls `2C 10 00 DF` repeatedly (~200 ms), each returning a fresh `6C 10 HHLL`. So the value ID `00 DF` is the rail-pressure block. Interpreting `00 DF` / `15 E0` as memory addresses vs block numbers is unconfirmed — for replay only the request bytes matter. The Launch also runs a constant `1A 80` ident keep-alive and did `23` (readMemoryByAddress) reads on connect (ident/programming data, ASCII `"090"` etc.).
## Consequences
- **The method generalises**: any value the Launch will display can be decoded the same way — capture the `2C`/`6C` pair while its screen shows the number, calibrate scale against the display at two points. Boost, MAF, injection quantity, EGTs are each one session away. See [[obd-diagnostic-polling]] "Beyond the probe".
- **Decode ≠ self-poll.** Replaying `2C 10 00 DF` ourselves needs the connect-time session/define handshake first (`2C 10 15 E0`, and the session the blind `21` scan showed is required). Stepping a running DDE into a diagnostic session is a transmit-on-the-bus **design decision**, not something the read-only probe does today. The bytes to do it are in this log if we choose to.
- No EGS traffic (`0x618`) — only the DDE (`0x612`) answered; the Launch was on an engine page.
## Related
[[obd-diagnostic-polling]] · [[diag-route-b-2026-09-23]] · [[diag-route-a-2026-09-23]] · [[bmw-m57n-engine]] · [[open-questions]]