Reverse lights on DO0, Sport + Vehicle screens, per-DDE live data, ECU identification
Firmware / build (push) Successful in 10m49s

- ReverseLight: isolated output DO0 (CH422G OC0 -> PC817 -> NPN sink) drives the
  reverse-lamp relay while the lever is in R on a live bus with ignition on; 10 Hz
  decision confirmed over 200 ms, written through the panel library's expander
  object so the backlight cannot undo it; `reverse status|on|off|force` console,
  default ON (NVS `revlight_en`). Wiki page reverse-lights-output with the wiring.
- Sport screen: BMW-style power + torque gauges (lv_meter on a dial-face image,
  image needle); PNG sources in assets/, tools/png2lvgl.py converter.
- Vehicle: final drive ratio + tyre circumference -> road speed, hp from torque;
  Settings > Vehicle page; `vehicle` console.
- Bench simulation (`sim` console) overlays torque / rpm / shaft on the snapshot.
- EcuIdent: KWP 1A 86 / 1A 80 read once, stored in NVS, shown on Settings >
  Vehicle, passive ECU CHANGED? check; `ecu` console.
- Ignition fallback from the 0x1D2 lever byte on buses without 0x3B4 (Patrol 2).
- Engine data: per-DDE `2C 10` identifier profiles (Patrol 1 vs Patrol 2
  rail 00C2 / boost 003A / battery 002F); DiagProbe liveConfigure().
- Wiki: Patrol 2 captures, vehicles page, obd identifier table per DDE, logs.
This commit is contained in:
2026-10-28 16:46:42 +01:00
parent 8ded9c2a08
commit 1cba9f30bc
60 changed files with 70386 additions and 100 deletions
+4 -1
View File
@@ -1,7 +1,7 @@
---
type: synthesis
tags: [can-bus, reverse-engineering, e60, research]
updated: 2026-07-17
updated: 2026-10-18
---
# E60/E65 CAN ID Candidates (Research Results)
@@ -26,6 +26,9 @@ Findings from the 2026-07-15 deep-research run (95 claims extracted from ~15 sou
## The map (replaces the firmware's placeholder IDs)
> [!warning] 2026-10-18 — the map holds on a SECOND Patrol, but `0x3B4` is not there
> [[can-capture-2026-10-18-patrol-2]]: a different DDE unit (7794904 / 2004 vs 7796678 / 2006) broadcasts every ID below byte-for-byte the same; rpm, pedal, torque, turbine, coolant, run state, gearbox temp, lever and target gear all decode correctly `(verified)`. **But `0x3B4`, `0x3B3` and `0x332` (the 5-s trio) are absent** on that bus, `0x38E` is new and `0x1B6` changed — the difference is which modules are wired, not the ECU. Ignition therefore has a fallback: the `0x1D2` lever byte (`0xF0` = key off, any lever code = key on) `(verified timing)`, used whenever no `0x3B4` has been seen for 10 s `(repo)`. `0x0A8` `TORQ_AVL` holds a junk value with the key on and the engine off (812 Nm there, 245 Nm here) — gate it on `ST_ENGINE_RUN`. One row per setup: [[vehicles]].
| Signal | CAN ID | Bytes | Scaling | Sender | Rate | Confidence |
|--------|--------|-------|---------|--------|------|------------|
| Coolant temp | **0x1D0** | byte 0 | °C = raw − 48 | DME/DDE | 100 ms | **Very high** — verified verbatim in E65 docs, present in E90-gen DBC, confirmed live on a real E60 545i, E60 tool32 table lists 0x1D0 "Motordaten" from DDE1 (diesel!), and the [[e60-vfl-can-codes-xlsx]] sheet shows 0x7A→74 °C on a real E60 VFL (raw−48 checks out) |
+3 -1
View File
@@ -139,7 +139,9 @@ Still worth logging **`0x1A2` alongside `0x0BA`** in the same capture: turbine
### Raw counts → km/h
Still needs numbers nobody has written down. The 6HP26**X** measures its output shaft **upstream of the transfer case**, so the conversion depends on the swap's driveline:
**Firmware since 2026-10-13 `(repo)`**: `~km/h = shaft rpm ÷ final drive × tyre circumference × 60 ÷ 1000`, with final drive 4.11:1 (user) and the tyre circumference as a setting (default 2440 mm, unverified) on Main CTRL's Settings → Vehicle page; shown on the Driveline and the Sport screen. The `~` is inherited from the shaft factor below.
Still needs numbers nobody has written down for the transfer case. The 6HP26**X** measures its output shaft **upstream of the transfer case**, so the conversion depends on the swap's driveline:
- BMW transfer case retained → rear output ~1:1, math unaffected
- Transfer case deleted, straight to the Patrol driveline → also fine
+1 -1
View File
@@ -40,7 +40,7 @@ Main CTRL of the [[dual-controller-architecture]] — the main in-cabin display.
| Interface | Details |
|-----------|---------|
| RS485 | SP3485, auto TX/RX direction; terminal block used for UART1 → Inst. Cluster, GPIO 43/44, 115200 baud `(repo)` |
| Isolated I/O | Optocoupler digital in 5–36 V (dry/wet contact), open-drain out sinking 450 mA/ch — could read ignition-on or drive a relay later |
| Isolated I/O | Optocoupler digital in 5–36 V (dry/wet contact) — DI0/DI1 read the diff locks ([[diff-lock-inputs]]); outputs DO0/DO1 = NPN power transistor (450 mA sink, emitter on board GND) behind a PC817 from CH422G OC0/OC1 — DO0 drives the reverse-light relay ([[reverse-lights-output]]) `(source: schematic)` |
| I2C | Terminal block SDA/SCL, level-shifted to `I2C_VCC` (= VOUT, 3.3 V or 5 V via `H8`); CH422G expander occupies 0x20–0x27 & 0x30–0x3F, GT911 touch at 0x5D — avoid these addresses |
| RTC | PCF85063 + CR927 coin cell |
| TF card | SPI: MOSI IO11, SCK IO12, MISO IO13; SD_CS via CH422G EXIO4 (source: schematic) |
+4 -2
View File
@@ -1,7 +1,7 @@
---
type: entity
tags: [vehicle, swap, project-context]
updated: 2026-07-17
updated: 2026-10-18
---
# Nissan Patrol M57N Swap
@@ -12,6 +12,7 @@ The target vehicle (verified — user, 2026-07-15): a **Nissan Patrol** receivin
- Gearbox: **ZF 6HP26X** (verified — user, 2026-07-17). The "X" is the xDrive output variant — same internal gearset as the 6HP26, different output housing/shaft to drive a transfer case. Ratios: 4.171 / 2.340 / 1.521 / 1.143 / 0.867 / 0.691.
- **This dates the donor**: M57N + xDrive means **E60/E61, not E65** — the 7-series never took that combination. → [[open-questions]] #2
- Final drive (differential) ratio: **4.11:1** (user, 2026-10-13). Tyre rolling circumference: not stated yet; the firmware defaults to 2440 mm (a 265/70 R16, `(unverified)` for this car) and both numbers are editable on Main CTRL's Settings → Vehicle page `(repo)`.
> [!question] Was the BMW transfer case retained?
> Open, and it blocks road-speed display. The EGS measures the gearbox output shaft **upstream of the transfer case**, so the raw→km/h conversion depends on what sits downstream:
@@ -19,13 +20,14 @@ The target vehicle (verified — user, 2026-07-15): a **Nissan Patrol** receivin
> - **Deleted, coupled straight to the Patrol driveline** → also fine
> - **A Patrol transfer case in the path** → its ratio enters the calculation, **and changes with high/low range** — road speed would become range-dependent, which the firmware would have to know about
>
> Also still needed for km/h: the Patrol's **final drive ratio** and **tyre size**. → [[driveline-speed-signals]], [[open-questions]] #10/#11
> Also needed for km/h: the Patrol's **final drive ratio** (4.11:1, user 2026-10-13) and **tyre size** (still open). The firmware now computes `~km/h = shaft rpm ÷ 4.11 × circumference` on the Driveline and Sport screens `(repo)`; the `~` stays until the shaft factor (#8) and the tyre are confirmed. → [[driveline-speed-signals]], [[open-questions]] #8/#10/#11
## Why this matters for research
- The M57-into-Patrol swap is popular (especially in Australia and the Middle East), so swap-community forums likely contain solved CAN-ID lists and gauge projects for exactly this drivetrain. `(unverified)` → [[can-bus-integration]]
- The bus the display taps is essentially a **BMW island in a Nissan vehicle**: only the modules the swap harness retains (DDE, EGS, possibly others) are broadcasting. Nissan-side electronics are not on this bus. **Confirmed by absence**: no DSC/CAS traffic appears, which is why there is no wheel-speed message and why the gearbox output shaft is our only road-speed source. → [[driveline-speed-signals]]
- Patrol generation, swap-harness maker (or DIY), and which BMW modules were retained are still unknown → [[open-questions]].
- **There is more than one Patrol (2026-10-18).** A second Patrol with the same M57N carries a different DDE unit and a differently populated bus (no `0x3B4`), and a third setup is expected; the firmware now labels each setup by its DDE identification and adapts to the frames present → [[vehicles]], [[can-capture-2026-10-18-patrol-2]]. Patrol 2's donor is an **E65 7-series** (VIN prefix WBAGM21070 from its `1A 86`), Patrol 1's an E60 530d.
## Related
+18 -10
View File
@@ -1,7 +1,7 @@
---
type: concept
tags: [can-bus, dde, egs, diagnostics, kwp2000, uds, obd, design-decision, rail-pressure]
updated: 2026-10-07
updated: 2026-10-18
---
# OBD / Diagnostic Polling
@@ -123,20 +123,28 @@ 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`)
## Known live-data identifiers (`2C 10 <id>` → `6C 10 HH LL`) — PER DDE
| 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 |
> [!warning] The identifiers belong to one DDE software, not to the M57N `(verified 2026-10-18)`
> With the board on Patrol 2 (DDE 7794904) and Patrol 1's set in the firmware, the Engine data screen showed **no rail pressure, a flat "2800 mbar" boost and a charge-air temperature above 300 °C** (user). The Launch, which re-reads `1A 80` on every cycle precisely to pick its data set, polled **`00C2`** for rail pressure on that car instead of `00DF`. So `2C 10 <id>` is an address inside each unit's software (the "define" `15 E0` was not seen on Patrol 2 either). The firmware now keeps **one identifier set per DDE part number** (`(repo)` `engine_screen.cpp` `PROFILES[]`, keyed by `EcuIdent`) and asks nothing for a slot it has no identifier for. Every value on a new DDE must be captured with the Launch again (recipe below).
Evidence: [[launch-capture-2026-09-23]], [[launch-captures-2026-10-07]]. Each provisional scaling needs one more capture at a different operating point.
| Value | DDE 7796678 / 7799764 (Patrol 1) | DDE 7794904 / 7796156 (Patrol 2) | Scaling | Status |
|---|---|---|---|---|
| One-time define sent by the Launch | `15E0` | none seen | — | — |
| Rail pressure, actual | `00DF` | `00C2` | bar = raw × 0.03 | Patrol 1 `(verified 2026-09-23)`, two points; Patrol 2 `(unverified)` — raw 11 016–11 304 at idle = 330–339 bar at the same scale, the Launch showed "rail pressure" while polling it (label/value not noted) |
| Charge-air pressure, actual (boost, absolute) | `0091` | **`003A`** | mbar = raw ÷ 8 | Patrol 1 `(unverified)` one point, engine off; Patrol 2 `(unverified scale)` — 1 018 mbar idle → 1 186 on a rev blip, physically right, Launch value not noted ([[launch-captures-2026-10-18-patrol-2]]) |
| Charge-air temperature | `16A8` | not captured | °C = raw × 0.01 − 15 | `(unverified)` one point, engine off |
| Battery voltage | `0093` | **`002F`** | V = raw × 0.002455 | Patrol 1 `(unverified)` one point; Patrol 2 `(unverified scale)` — 14.0 V running, 12.7 V after the engine stop, Launch value not noted ([[launch-captures-2026-10-18-patrol-2]]) |
Evidence: [[launch-capture-2026-09-23]], [[launch-captures-2026-10-07]], [[can-capture-2026-10-18-patrol-2]], [[launch-captures-2026-10-18-patrol-2]]. Each provisional scaling needs one more capture at a different operating point; the remaining empty Patrol 2 cell (charge-air temperature) needs one Launch session. Note how every identifier moved between the two DDEs while the scalings stayed the same — expect the same on setup 3.
## ECU identification (`1A 80` / `1A 86`) `(verified 2026-09-23 / 2026-10-18)`
The Launch re-reads `1A 80` on every cycle and both Patrols' DDEs answer it in their default state (31 / 37-byte replies); our own probe's `1A 80` was silent on Patrol 1 on 2026-09-23 while `1A 86` answered with 65 bytes. Observed layouts (field names `(unverified)`): `1A 80` → BCD part number at payload bytes 4–7, BCD date YY MM DD at 15–17; `1A 86` → ASCII `"@B892524 "`, date at 11–13, three 6-byte BCD part-number fields from byte 16, VIN prefix at 53–62. The firmware stores both blocks once per setup ([[vehicles]], `(repo)` `EcuIdent`) and compares the Launch's `1A 80` passively.
## 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.
**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 profile's define once per start (Patrol 1: `2C 10 15 E0`), then its reads in turn. **Since 2026-10-18 the identifier set is chosen per identified DDE** (table above): an unidentified ECU or one without a profile polls nothing and the status line says so; a slot without an identifier reads "identifier not known for this ECU yet". Provisional scalings are tagged on screen and every value shows its raw number and identifier for calibration against the Launch. A password can still come with a future Diagnostics screen for anything beyond these reads.
## Beyond the probe `(repo)`
+4 -2
View File
@@ -1,7 +1,7 @@
---
type: synthesis
tags: [meta, todo]
updated: 2026-09-27
updated: 2026-10-18
---
# Open Questions
@@ -20,7 +20,9 @@ The research frontier. Answering any of these should trigger updates across the
9. **Is a cruise-control PoC worth pursuing, and under what safety envelope?** The bus architecture supports it natively (the DME arbitrates torque requests from the EGS and ACC; `ST_CLCTR_V` reports which regulator has control). But actuation means **transmitting frames that command engine torque**, with unknown checksum/alive-counter algorithms and **no brake-pedal signal on this bus** to build the standard cancel interlock from. Design decision, not a research question. → [[driveline-speed-signals]]
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?** *Half answered 2026-10-13.* Final drive **4.11:1** (user). Tyre size still open — the firmware defaults to a 2440 mm rolling circumference (265/70 R16) and the Settings → Vehicle page lets the user correct it `(repo)`. Road speed is shown as `~km/h` until this, #8 and #11 are settled. → [[nissan-patrol-swap]]
15. **Patrol 2's bus (2026-10-18): who sent the 5-s trio on Patrol 1, and what are `0x38E` / `0x1B6` / `00C2`?** [[can-capture-2026-10-18-patrol-2]]. `0x332` / `0x3B3` / `0x3B4` came every 5 s from one transmitter on Patrol 1 (battery field always invalid) and are absent on Patrol 2 — a retained donor module (CAS? cluster? junction box?) or an EWS-delete difference `(unverified)`; the answer tells which cars keep `0x3B4`'s ignition nibble (the firmware no longer depends on it). `0x38E` (2 B, 10 Hz) is new on Patrol 2, `0x1B6` changed content and rate. The Launch's `2C 10 00 C2` reads 11 016–11 304 raw at idle while showing rail pressure (330–339 bar at the `00DF` scale) — setpoint or actual? Ask the user for the Launch's label next time. **Same evening, with the board on Patrol 2:** Patrol 1's live identifiers returned junk there (no rail, boost flat at 2800 mbar, charge-air temp > 300 °C) — the `2C 10` identifiers are per DDE software, so Patrol 2 needs its own Launch sessions — done the same evening for **boost `003A` and battery `002F`** ([[launch-captures-2026-10-18-patrol-2]]); **charge-air temperature is the one still missing**, and the Launch's own readings for all three Patrol 2 values are still wanted to confirm the (Patrol 1) scales → [[obd-diagnostic-polling]]. The output speed that stayed at 0 was the stationary car: the user confirmed it reads correctly when rolling. Also open: which modules are on each car's PT-CAN ([[vehicles]]). Patrol 2's `1A 86` block was read by the board the same evening: part **7796156**, 2006-05-17 (the Launch's `1A 80` says 7794904 / 2004-01-21 — as on Patrol 1 the two blocks carry different numbers and dates, hardware vs software `(unverified)`); full dump on [[vehicles]]: three part numbers 7796156 / 7796157 / 7789877 and **VIN prefix WBAGM21070 = E65 7-series**, so the two donors are different cars (E60 530d vs E65), which may be the reason for both the missing 5-s trio and the different `2C 10` addresses `(unverified)`.
## Design decisions (parked, not blocking)
+54
View File
@@ -0,0 +1,54 @@
---
type: concept
tags: [hardware, patrol, outputs, ch422g, wiring, relay, reverse]
updated: 2026-10-28
---
# Reverse lights from the board (DO0)
The Patrol's reverse lamps have no signal of their own after the swap; the gear lever position is on the bus (`0x1D2` byte 0, `(verified)` → [[can-id-candidates]]). The Main CTRL lights them through a 12 V relay on its isolated output **DO0** whenever the lever is in **R** (user request, 2026-10-28).
## The output circuit `(source: [[esp32-s3-touch-lcd-5-schematic]], sheet 1 "DI/DO", read from the PDF text)`
- CH422G **OC0** (pin 8) → R24 100 Ω → PC817 (T1) LED, anode via R74 510 Ω to 3V3. **OC0 LOW = LED on.**
- PC817 phototransistor → R58 1 kΩ → base of NPN power transistor T2 (R60 10 kΩ base pull-down). T2 collector = terminal **`DOUT0`** (silkscreen `DO0`), **emitter = board GND**, C102 100 nF across.
- DO1 is the same circuit on OC1 / T3 / T4 / `DOUT1`.
- Waveshare's rating: 5–36 V, **450 mA sink per channel** (source: [[esp32-s3-touch-lcd-5b-waveshare-wiki]]). The transistor's part number is not readable in the schematic text `(unverified)`.
> [!warning] "Isolated" only between the expander and the transistor
> There is no `DO_COM` terminal: the load current flows out of DO0 into the board's **GND**. The optocoupler isolates the CH422G from the output transistor, not the output from the board's ground. Fine here, because the board already shares vehicle ground for CAN and for the diff-lock inputs — but never return the relay current anywhere but the board's `GND`/vehicle ground.
The chip powers up with OC0 high (LED off), and the panel library writes that default again at every display init `(source: ESP32_IO_Expander, esp_io_expander_ch422g.c reset())`, so the lamps are off from reset until the firmware decides otherwise.
## Wiring
| Relay pin (ISO mini relay) | Connect to |
|---|---|
| 86 (coil +) | +12 V — the same supply that feeds the board's `VIN` (switched with the ignition is best) |
| 85 (coil −) | **`DO0`** |
| flyback diode (1N4007 or similar) | across 85/86, cathode (stripe) on the +12 V side |
| 30 / 87 | the reverse-lamp feed, as the lamp circuit needs |
- A standard 30 A mini relay coil is 70–90 Ω → 130–200 mA at 14 V, well inside 450 mA `(unverified: typical values)`.
- Not from USB power: the coil must return into the board's GND terminal with the 7–36 V supply on VIN.
- A ready-made 5 V relay module with an opto input also works: DO0 to its active-low `IN`, module VCC from `VOUT` set to 5 V (`H8` jumper, [[esp32-s3-touch-lcd-5b]]), grounds common.
- The 2N2222 the user has is not needed on this board (no spare native GPIO). It would be the right part to drive a relay from an Inst. Cluster GPIO instead: GPIO → 1 kΩ → base, emitter to GND, coil between +12 V and the collector, same diode.
## Firmware `(repo, 2026-10-28)`
`reverse_light.cpp`: every 100 ms, DO0 on ⇔ lever == R **and** CAN running **and** ignition on — the same snapshot the Driveline's big letter shows. A change is applied after two equal decisions (200 ms) so a one-frame glitch cannot chatter the relay. The CAN driver forgets the lever 2 s after the bus goes silent, and the key-off lever code `0xF0` clears ignition, so both turn the lamps off. The output is written through the panel library's expander object (OC0 = pin 8), never raw I2C: the backlight writes the library's cached OC register back to the chip on every on/off, so a raw write would be undone during an OTA install.
Console: `reverse status | on | off | force on|off|auto`. `on/off` is saved (NVS `revlight_en`, default ON); `force` drives DO0 regardless of the lever for the wiring check, never saved, ends itself after 60 s. No Settings row — the System page is full at four rows.
## Check in the car
1. Bench first: `reverse force on` → relay clicks, lamps on; `reverse force off` → off. `reverse status` shows the DO0 state and write counters.
2. Car, key on, engine off: move the lever to R — lamps on within ~0.3 s, `[reverse] lights ON (lever R)` on the console; back to N/P — off.
3. Key off in R: lamps must go off (lever code `0xF0` clears ignition).
4. Watch for relay chatter when the lever passes through R between P and D; if any, raise `CONFIRM` in the module.
Status: **not yet seen in the car** `(unverified)`.
## Related
[[esp32-s3-touch-lcd-5b]] · [[esp32-s3-touch-lcd-5-schematic]] · [[diff-lock-inputs]] · [[can-id-candidates]] · [[nissan-patrol-swap]]
+49
View File
@@ -0,0 +1,49 @@
---
type: entity
tags: [vehicles, patrol, dde, ident, can-bus]
updated: 2026-10-18
---
# Vehicles — one row per setup this firmware has met
The project started on one Patrol; on 2026-10-18 the user brought logs from a **second Patrol** ([[can-capture-2026-10-18-patrol-2]]) and announced a third setup for 2026-10-19. The two DDEs turned out to be different units that broadcast identical frames; what differed was **which other modules sit on the PT-CAN**. Two rules follow `(design, 2026-10-18)`:
1. **The ECU identity is a label.** The firmware reads it once (KWP `1A 86`, then `1A 80`), stores it, shows it on Settings → Vehicle, and never asks again until Re-read ECU (`(repo)` `EcuIdent`). It tags captures and this table; no broadcast scaling depends on it.
2. **Behaviour adapts to the frames present**, never to the ECU name: e.g. ignition from `0x3B4` when that frame is on the bus, from the `0x1D2` lever byte otherwise.
3. **Exception, found the same evening: the diagnostic live-data identifiers are per DDE software.** Patrol 1's `2C 10` set read junk on Patrol 2 (no rail, boost flat at 2800 mbar, charge-air temp above 300 °C); the Launch polls `00C2` there instead of `00DF`. The Engine data screen therefore keys its identifier set on the stored part number and asks nothing it has no identifier for → [[obd-diagnostic-polling]] table.
| Setup | DDE `1A 80` (part number, date) | DDE `1A 86` | IDs on the bus | Live-data identifiers (`2C 10`) | Differences | Evidence |
|---|---|---|---|---|---|---|
| **Patrol 1** (July – October 2026; the board's first car) | **7796678**, 2006-02-16 (from the Launch's reads in `raw/boost.txt`) | 7799764 / 7799765 / 7793887, 2006-03-07, VIN prefix WBANC92090 (E60 530d) — our probe, 2026-09-23 | `0A8 0A9 0AA 0B5 0BA 1A2 1B6 1D0 1D2 200 332 3B3 3B4 492 498 592 598` | define `15E0`; rail `00DF`, boost `0091`, charge-air temp `16A8`, battery `0093` | `0x3B4` present but battery field always invalid; `1A 80` from our probe went unanswered on 2026-09-23 | [[can-capture-2026-07-15]], [[diag-route-b-2026-09-23]], [[launch-captures-2026-10-07]] |
| **Patrol 2** (2026-10-18) | **7794904**, 2004-01-21 (from the Launch's reads) | **7796156** / 7796157 / 7789877, 2006-05-17, `"@DR55820 "`, **VIN prefix WBAGM21070 — an E65 7-series (730d `(unverified)`)**, not an E60 like Patrol 1 — the board's own read, `ecu dump` 2026-10-18 evening (`1A 80` also stored by the board: 7794904 / 2004-01-21, 31 B) | `0A8 0A9 0AA 0B5 0BA 1A2 1B6 1D0 1D2 200 38E 492 498 592 598` | rail `00C2`, boost `003A`, battery `002F` (all `(unverified scale)`, Patrol 1's formulas fit — [[launch-captures-2026-10-18-patrol-2]]); charge-air temp **not captured**; Patrol 1's identifiers return junk here | no `0x332` / `0x3B3` / `0x3B4` (ignition from the lever); `0x38E` new; `0x1B6` content/rate changed; output shaft `0x0BA` bytes 3–4 work here too (user, rolling, 2026-10-18 evening) | [[can-capture-2026-10-18-patrol-2]] |
| **Setup 3** (planned 2026-10-19) | — | — | — | — | said to differ from both | — |
Human names for the part numbers (a parts-catalogue lookup would name the exact DDE variant) are `(unverified)`; both are M57N DDE6-era units by behaviour (KWP2000, same `2C` live-data service, same broadcast map). **The donors differ: Patrol 1's DDE came from an E60 530d (WBANC92090), Patrol 2's from an E65 7-series (WBAGM21070)** — a plausible reason for the different `2C 10` addresses and the different bus population (the E60's 5-s trio `0x332/0x3B3/0x3B4` absent, `0x38E` present) `(unverified link)`.
Raw `1A 86` of Patrol 2 (66 bytes, this board, 2026-10-18):
```
+000 5A 86 40 44 52 35 35 38 32 30 20 06 05 17 00 00 |Z.@DR55820 .....|
+016 07 79 61 56 00 00 07 79 61 57 00 00 07 78 98 77 |.yaV...yaW...x.w|
+032 01 11 11 31 32 33 34 35 9E 30 30 38 39 45 48 30 |...12345.0089EH0|
+048 41 51 39 31 42 57 42 41 47 4D 32 31 30 37 30 FF |AQ91BWBAGM21070.|
+064 FF FF |..|
```
Raw `1A 80` (31 bytes): `5A 80 00 00 07 79 49 04 10 00 00 10 35 39 20 04 01 21 08 08 02 30 08 FF FF 02 03 01 00 00 00`. Same layout as Patrol 1's blocks (part number at `1A 86` byte 16, date at 11; `1A 80` part at 4, date at 15) — the decoder fits both cars `(verified)`.
## What to capture on a new setup `(procedure)`
Three CANNY logs plus notes, the way Patrol 2 was done:
1. **Key on only**, ~15 s, then key off and keep logging until the bus goes quiet (gives the wake-up and after-run timing, and the lever byte's `F0` behaviour).
2. **Start, idle, two throttle blips, lever through R / N / D with the brake held, key off**, keep logging.
3. **Launch connected on each live parameter the Engine data screen shows** — rail pressure, charge-air pressure, charge-air temperature, battery voltage — one at a time, ~20 s each, noting the parameter's name and the value on the Launch screen (the `2C 10 <id>` identifiers differ per DDE, so this is the only way the screen gets its identifiers on a new car). The Launch's `1A 80` cycle identifies the DDE even without our board.
4. A note of **what else is wired to the PT-CAN** besides DDE and EGS.
5. If drivable: a short drive with a GPS speed reading at one steady moment (the output-shaft factor is still provisional, [[driveline-speed-signals]]) — and a check that `0x0BA` bytes 3–4 move at all on that car's EGS.
With the board on the car: `ecu show` after a few seconds with the key on (it reads the identification once by itself), `diag status`, and a `CANRAW` capture for the ID census (`tools/serial_logger.py`). Offline, the per-ID census and the decoded timeline come from the scripts used for Patrol 2 (per-ID counts, rates, per-byte variability; half-second decoded timeline).
## Related
[[can-capture-2026-10-18-patrol-2]] · [[nissan-patrol-swap]] · [[bmw-m57n-engine]] · [[can-id-candidates]] · [[obd-diagnostic-polling]] · [[open-questions]]