Clarify self-poll needs no session/security; record Diagnostics-screen plan

- capture proof: Launch used only 1A/2C/22/23 - no 10/27/3E. Self-polling a
  2C live value needs just the define + poll, no session or security seed.
  Corrected the earlier "needs session handshake" wording.
- design decision: active polling (if built) lives behind a password-
  protected Diagnostics screen - authorized-tech gate, manual, refuses with
  a scan tool connected, read-oriented services. open-questions #12.
- wiki: launch-capture + obd-diagnostic-polling tightened; project memory
  added so the capability and guard rails are not re-researched later

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-23 17:06:20 +02:00
parent 6bdf4d43a9
commit da4c96903b
4 changed files with 23 additions and 5 deletions
+4
View File
@@ -105,3 +105,7 @@ Third session. Added `diag raw on|off` (CANRAW mute) and tools/diag_scan.py (ide
## [2026-09-23] ingest | Launch capture: rail pressure decoded (service 2C) ## [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. 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.
## [2026-09-23] lint | Clarify self-poll requirements; record Diagnostics-screen plan
Tightened the live-data findings after checking the full capture: the Launch used only 1A/2C/22/23 - NO 10 (session), 27 (security), or 3E (tester-present). So self-polling a 2C value (e.g. rail pressure) needs only the 2C 10 15E0 define + 2C 10 00DF poll, no secret; the earlier 21-block NRCs (0x22/0x33) are a different mechanism and do not gate 2C. Corrected the "needs session/define handshake" wording in launch-capture-2026-09-23.md and obd-diagnostic-polling. Recorded the design decision (user, 2026-09-23): active polling, if built, lives behind a password-protected Diagnostics screen (authorized-tech gate, manual, refuses while scan tool connected, read-oriented services) - open-questions #12, and a project memory so the capability is not re-researched later.
+4 -2
View File
@@ -66,7 +66,7 @@ The [[dwr-335d-torque-pids]] source is a worked, gauge-checked set of J1979 mode
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. 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). **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. Crucially, the capture shows the DDE served this in its **default state — no `10` session, no `27` security, no `3E` tester-present** ([[launch-capture-2026-09-23]]); self-polling needs only the `2C 10 15 E0` define + `2C 10 00 DF` poll, no secret. What gates it is our own policy, not the ECU (see *Beyond the probe*).
This depends on the DDE variant, which is still open ([[open-questions]] #2, [[bmw-m57n-engine]]): This depends on the DDE variant, which is still open ([[open-questions]] #2, [[bmw-m57n-engine]]):
@@ -126,7 +126,9 @@ Run via `tools/diag_session.py` (one serial session, logs straight into `wiki/ra
## Beyond the probe `(repo)` ## 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). - **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. - 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.
- **What Route B self-polling actually requires (settled 2026-09-23):** just the `2C 10 15 E0` define then the `2C 10 <id>` poll — **no diagnostic session (`10`), no security access (`27`), no tester-present (`3E`)**, proven from the full Launch capture ([[launch-capture-2026-09-23]]). The `21`-block NRCs (0x22/0x33) that earlier looked like a session/security wall are a *different mechanism* and do not gate the `2C` path. `2C` is not strictly read-only (it writes a dynamic-identifier definition — harmless), so it stays out of the probe whitelist by policy.
- **Design decision — the "Diagnostics" screen (2026-09-23):** if active polling is ever built, it lives behind a **password-protected Diagnostics screen** on Controller A (authorized-technician gate), triggered manually, only while no scan tool is connected, read-oriented services only. This is the deliberate on/off switch for transmit-on-the-bus — not a background poller. Not built yet; captured here so the capability and its guard rails are not re-researched later.
- Protocol v2 dropped the `fault_codes` field in favour of the alert bitmap ([[dual-controller-architecture]]); polled values would need new DATA fields. - 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. - The same request path would also be the only way to read DTCs (service `0x18`/`0x19`, variant-dependent) → [[open-questions]] #7.
+4
View File
@@ -22,6 +22,10 @@ The research frontier. Answering any of these should trigger updates across the
10. **What are the Patrol's final drive ratio and tyre size?** Needed to turn output-shaft rpm into road speed. Swap-specific — not in any donor documentation. → [[nissan-patrol-swap]] 10. **What are the Patrol's final drive ratio and tyre size?** Needed to turn output-shaft rpm into road speed. Swap-specific — not in any donor documentation. → [[nissan-patrol-swap]]
## 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. → [[obd-diagnostic-polling]], [[dual-controller-architecture]]
## Project context ## 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). **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]] 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]]
+11 -3
View File
@@ -26,14 +26,22 @@ Calibration points (sustained, not transient):
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. 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)` ## How the Launch reads it — the mechanism `(observed 2026-09-23)`
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.). 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 `22`/`23` (readData / readMemoryByAddress) reads on connect (ident/programming data, ASCII `"090"` etc.).
### Services the Launch used — and did NOT use `(verified from the full capture)`
Every `0x6F1` request in the ~13 MB log, by service: **`1A`** (ident keep-alive), **`2C`** (live-data define/read), **`22`/`23`** (connect-time ident/memory), plus flow control. **Absent entirely: `10` StartDiagnosticSession, `27` SecurityAccess, `3E` TesterPresent.**
This is the key operational finding: **rail pressure is served in the DDE's default state — no diagnostic session, no security seed/key, no tester-present keep-alive.** The earlier `21 xx` NRCs (0x22 conditions-not-correct, 0x33 security-denied) in [[diag-route-b-2026-09-23]] were specific to the `21` read-by-local-id mechanism — a *different door* — and do **not** apply to the `2C` path. There is no secret algorithm between us and this value.
## Consequences ## 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". - **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. - **Self-poll is feasible without any secret.** To read rail pressure ourselves: send the one-time define `2C 10 15 E0`, then poll `2C 10 00 DF` → parse `6C 10 HHLL`. **No `10` session, no `27` security, no `3E` tester-present required** (proven above). The only barriers are our own choices, not the ECU's — see the two below.
- **It is still a transmit-on-the-bus action, and `2C` is not strictly read-only** (it writes a definition into the ECU's dynamic-identifier table — harmless, but a state change). So it stays outside the current probe whitelist by policy.
- **Intended home (design decision, 2026-09-23):** any active polling belongs behind a **password-protected "Diagnostics" screen** on Controller A — authorized-technician gate — never a background/automatic poller and never while a scan tool is connected. Records [[open-questions]]; not built yet.
- No EGS traffic (`0x618`) — only the DDE (`0x612`) answered; the Launch was on an engine page. - No EGS traffic (`0x618`) — only the DDE (`0x612`) answered; the Launch was on an engine page.
## Related ## Related