Files
ESP32-S3-Touch-LCD-5B/wiki/sources/launch-capture-2026-09-23.md
T
julian 6bdf4d43a9 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>
2026-09-23 16:48:10 +02:00

42 lines
3.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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]]