Drive capture: 0x0BA gear ladder verified, output-shaft scaling narrowed

First capture with the vehicle actually moving (raw/log_20260717_145930.txt,
1857 frames, filtered to 0x0BA + 0x1D2).

Verified, closing yesterday's inference: ST_GR_GRB values 6/7/8/9/A observed
directly = 2nd..6th. So 0x0BA byte 0's low nibble is a COMPLETE gear source
on its own - P/R/N plus 1st..6th, reverse included. 0x1D2 is now needed only
for the lever and the D/S/M mode, which 0x0BA does not carry. Value 4 is
still unaccounted for.

Also caught ST_CCLT (torque converter lockup clutch) live - 422 frames
"controlling", clustered in the higher gears. This matters beyond curiosity:
a closed clutch bolts the turbine to the impeller, so turbine == engine
exactly. Any turbine/engine slip ratio read at road speed must check CCLT
first or it will report "not engaged" for a perfectly healthy locked-up box.
Decoded into driveline_t with that warning attached.

Output shaft: identification now verified (rises monotonically 1139->16702
across gears 1->6, zero whenever the output is held). Scaling narrowed to
x0.125 but NOT adopted - it implies a coherent 901->1872 rpm upshift schedule
across five independent 6HP26X ratios, where raw-as-rpm would imply
7,200-15,000 rpm against a ~4,500 redline. Still rests on the unproven
assumption that each gear's max output is its upshift point, so the field
stays in raw counts. One capture including 0x1A2 settles it: turbine/output
gives each ratio directly.

Gearbox confirmed as ZF 6HP26X (user). Same gearset as the 6HP26, so the
ratio table holds; the X is the xDrive output variant, which dates the donor
to E60/E61 rather than E65 - the 7-series never took M57N with xDrive. That
partly answers a standing open question, and raises a new one: the X box
measures its output shaft upstream of the transfer case, so if a Patrol
transfer case sits in the path its ratio enters the km/h conversion and
changes with high/low range.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-17 15:15:35 +02:00
parent 1f39e5537a
commit 0bd8f5c14d
12 changed files with 2099 additions and 27 deletions
+1
View File
@@ -31,4 +31,5 @@ Catalog of every page in the wiki. Read this first when answering questions. Kee
- [[listen-and-send-pid-arduino]] — Arduino ELM327→E46-cluster sketch (ingested 2026-07-15); technique reference for a diagnostic-request fallback, not ID evidence
- [[can-capture-2026-07-15]] — **first live CAN dump off the real swap bus** (captured with the board's own logger); confirms 15 IDs incl. all four signal IDs, resolves the 0x1D2 gear encoding, verifies placeholder IDs absent; raw at `raw/can-capture-2026-07-15-gearshift.csv`
- [[gear-box-can-revealings]] — **gear fully decoded & VERIFIED** (2026-07-16/17): `0x1D2` byte0 = lever, **byte1 = engaged gear 1–6**, byte4 = Drive/Sport/Manual mode; `0x0BA` = the box's own target gear incl. **reverse**; raw at `raw/gear_box_can_revealings.csv` + `raw/gearbox_engaged_gear.csv`
- [[can-capture-2026-07-17-drive]] — **first capture with the vehicle moving** (2026-07-17): verifies `0x0BA` gears 2nd–6th directly (making it a complete gear source), catches the lockup clutch live, and produces the ×0.125 output-shaft scaling evidence; raw at `raw/log_20260717_145930.txt`
- [[e65-reverse-engineering-repo]] — **E65 per-ID DBC-style docs (ingested 2026-07-17)** — the highest-value source yet: settled the gearbox-temp offset (raw−40) and battery layout (12-bit ×0.015), proved the engine was running in our capture, and revealed turbine speed, output shaft, pedal position and cruise state
+4
View File
@@ -26,6 +26,10 @@ User confirmed: donor chassis is **E60/E65 (2003+)**, transmission is a **BMW au
User captured steady byte values per lever detent (`raw/gear_box_can_revealings.csv`) → [[gear-box-can-revealings]]. **0x1D2 verified as the gear source**: byte0 = P `0xE1` / R `0xD2` / N `0xB4` / D `0x78` (all match documented codes exactly); byte0 can't split D from S/M (shared `0x78`) so byte4 does it (`0xF0` auto / `0xF1` Sport-Manual / `0xF2` downshift −); byte1 is a drive-gate flag (`0x0F`→`0x5F`); byte3 = rolling counter (confirms prediction). 0x0BA also tracks the lever but is messier (D/S-M collide) — don't use. Promoted 0x1D2 gear row to VERIFIED and rewrote the encoding-dispute section in [[can-id-candidates]]; updated index. Still open: actual engaged gear number (needs a drive capture) and the manual up-shift (+) value. Next: rewrite firmware gear map to 0x1D2 byte0 (+byte4).
## [2026-07-17] ingest | First drive capture — 0x0BA gear ladder verified, output-shaft scaling narrowed
`raw/log_20260717_145930.txt` (CANNY 5.3 Pico, 1,857 frames / ~34 s, filtered to 0x0BA + 0x1D2) → [[can-capture-2026-07-17-drive]]. **First capture with the vehicle actually moving.** Closes the inference left open yesterday: **`ST_GR_GRB` values 6/7/8/9/A observed directly** (238/77/93/127/94 frames) = 2nd–6th, so **`0x0BA` D0's low nibble is a complete gear source on its own** — P/R/N + 1st–6th, reverse included; `0x1D2` is now needed only for lever + mode. Also caught `ST_CCLT` (converter lockup) live — 422 frames "controlling" in the higher gears, which matters because a locked clutch makes turbine = engine exactly, so the engagement-ratio test needs to read it before trusting a ratio ≈ 1.0 at road speed. **Output shaft identification VERIFIED** (rises monotonically 1139→16702 across gears 1→6, zero whenever the output is held). **Scaling narrowed to ×0.125** `(unverified)`: implies a coherent 901→1872 rpm upshift schedule across five independent ratios, vs 7,200–15,000 rpm for raw-as-rpm against a ~4,500 redline. User confirmed the box is a **ZF 6HP26X** — same gearset as 6HP26 so the ratio table holds, and the xDrive output variant **dates the donor to E60/E61, not E65** (partly answers open Q#2). New question #11: was the transfer case retained? The X box measures output **upstream** of it, so a Patrol transfer case in the path would make road speed high/low-range dependent. Remaining assumption on the scaling: max-output-per-gear = upshift point — **one capture including `0x1A2` closes it** (turbine ÷ output = ratio directly). Updated [[driveline-speed-signals]], [[gear-box-can-revealings]], [[can-id-candidates]], [[nissan-patrol-swap]], [[open-questions]], index.
## [2026-07-17] ingest | E65_ReverseEngineering repo — both disputes resolved, driveline speeds discovered
User pointed at `HeinrichG-V12/E65_ReverseEngineering` (per-ID DBC-style docs, worked example on every page) → [[e65-reverse-engineering-repo]]. Highest-value source to date; combined with re-analysis of our own `raw/can-capture-2026-07-15-gearshift.csv` it closed most of the frontier. **Resolved**: gearbox oil temp = **raw − 40** (source example + our own gearbox-31 °C-vs-coolant-37 °C warm-up cross-check; my earlier "leaning offset 0" was wrong); battery = **12-bit LE × 0.015**; engine **was running** in the 2026-07-15 capture (`ST_ENGINE_RUN`=2 in 397/397) — **cold-start capture no longer needed**; RPM = `0x0AA` ×0.25 (679–684 idle). **Discovered**: `0x1A2` `RPM_GRB_TURB` turbine speed — a *physical* engagement proof (P/N ≈634/628 free-spinning vs D ≈70, R ≈0 stalled — textbook converter behaviour), plus `0x0BA` bits 20–39 output shaft (undocumented anywhere; zero in every stationary frame incl. engaged-in-D, non-zero once wheels turn), plus `ANG_ACPD` pedal % and `ST_CLCTR_V` cruise state. New page [[driveline-speed-signals]] — emphasized per user: **no DSC on this bus ⇒ output shaft is our only road-speed source**, hence the feedback variable for a future cruise-control PoC (safety envelope documented; actuation = transmitting torque requests, a different risk class from everything read-only so far). **Corrected three of my own 2026-07-16 claims**: `0x1D2` D1 is the *engaged gear* (not a "drive-gate flag" — it read 1 because the car was stationary); D4 `0xF2` is a persistent *Manual mode* (not a "downshift event" — it holds across gears 2–6); `0x0BA` is **not** to be dismissed (I'd read D7, an alive counter, instead of D0's `ST_GR_GRB` — which is the only source of engaged **reverse**, `0x1D2` D1 staying `0x0F` in R). Also: boost is **not** broadcast (`AIP_ENG` caps at 1108 hPa = barometric) — confirms the Launch must poll. Updated [[can-id-candidates]], [[gear-box-can-revealings]], [[open-questions]], index. Next: firmware pass over the whole verified map.
+3 -2
View File
@@ -34,11 +34,12 @@ Findings from the 2026-07-15 deep-research run (95 claims extracted from ~15 sou
| Gear lever position | **0x1D2** ("TransmissionDataDisplay") | **byte 0** | `0xE1`=P `0xD2`=R `0xB4`=N `0x78`=D/(S/M) | EGS | 200 ms | **✅ VERIFIED on the swap bus 2026-07-16** — every code matches. Full decode: [[gear-box-can-revealings]] |
| Gearbox mode | **0x1D2** | **byte 4** | `0xF0`=Drive(auto) `0xF1`=Sport `0xF2`=Manual | EGS | 200 ms | **✅ VERIFIED 2026-07-17** — `0xF2` is a *persistent mode*, not a downshift event (earlier claim corrected) |
| Engaged gear number | **0x1D2** | **byte 1** | `gear = (D1 >> 4) − 4`; `0x0F` = none (P/R/N) | EGS | 200 ms | **✅ VERIFIED 2026-07-17** — clean +16 ladder across gears 1–6, identical in D and M/S ([[gear-box-can-revealings]]). **Never set for R** |
| Engaged gear **incl. reverse** | **0x0BA** (`ST_GR_GRB`) | byte 0 low nibble | `1`=N `2`=**R** `3`=P `5`–`A`=1st–6th `0xF`=invalid | EGS | 20 ms | **✅ VERIFIED 2026-07-17** for 1/2/3/5 against our capture; 6–A inferred. **The only source of engaged reverse** — `0x1D2` D1 is blind to it |
| Engaged gear **incl. reverse** | **0x0BA** (`ST_GR_GRB`) | byte 0 low nibble | `1`=N `2`=**R** `3`=P `5`–`A`=1st–6th `0xF`=invalid | EGS | 20 ms | **✅ FULLY VERIFIED 2026-07-17** — all of 1/2/3/5/6/7/8/9/A observed live in the drive capture ([[can-capture-2026-07-17-drive]]). **A complete gear source on its own**, and the only source of engaged reverse (`0x1D2` D1 is blind to it). Value `4` unobserved |
| Converter lockup clutch | **0x0BA** (`ST_CCLT`) | byte 0 bits 6–7 | `0`=disengaged `1`=controlled `2`=closed `3`=invalid | EGS | 20 ms | **✅ VERIFIED 2026-07-17** — 422 frames "controlling", clustered in higher gears. Matters for the turbine-ratio test: when locked, turbine = engine exactly → [[driveline-speed-signals]] |
| Battery voltage | **0x3B4** (`U_BT`) | bits 0–11 | **`((D1 & 0x0F) << 8 \| D0) × 0.015` V** | Power module | 5 s | **✅ RESOLVED 2026-07-17** — 12-bit LE × 0.015 confirmed by [[e65-reverse-engineering-repo]] worked example (`0x3D9`→14.775 V). The E90 24-bit BE × 0.001 reading is **wrong for us**. Bonus: `ENG_ST` bits 16–19 |
| Engine RPM | **0x0AA** (`RPM_ENG`) | bits 32–47 | **`(D4 + D5×256) × 0.25`** 1/min | DME/DDE | 10 ms | **✅ VERIFIED 2026-07-17** — 679–684 rpm at idle on our capture, matching `RPM_IDLE_TARGET`=700 from `0x1D0` |
| **Turbine speed** | **0x1A2** (`RPM_GRB_TURB`) | bits 0–15 | **`(D0 + D1×256) × 0.125 + 6`** 1/min | EGS | 20 ms | **✅ VERIFIED 2026-07-17** — physical proof of gear engagement; collapses ~630→~0 when the box engages. → [[driveline-speed-signals]] |
| **Output shaft speed** | **0x0BA** | bits 20–39 (D3/D4) | ⚠ **uncalibrated** | EGS | 20 ms | 🔬 **Hypothesis, strong** — undocumented in the source repo; zero in every stationary frame incl. engaged-in-D, non-zero once wheels turn. **Our only road-speed signal** (no DSC on this bus) → [[driveline-speed-signals]] |
| **Output shaft speed** | **0x0BA** | bits 20–39 (D3/D4) | 🔬 raw × **0.125** = rpm (hypothesis) | EGS | 20 ms | **ID ✅ verified 2026-07-17** — rises monotonically 1st→6th in the drive capture, zero in every stationary frame incl. engaged-in-D. **Scaling still 🔬**: ×0.125 implies a coherent 901→1872 rpm upshift schedule (raw-as-rpm would imply 7,200–15,000 rpm — ruled out), but rests on "max-per-gear = upshift point". **Our only road-speed signal** (no DSC on this bus) → [[driveline-speed-signals]] |
| Engine run state | **0x1D0** (`ST_ENGINE_RUN`) | bits 20–21 | `0`=off `1`=starting `2`=running `3`=invalid | DME/DDE | 100 ms | **✅ VERIFIED 2026-07-17** — read 2 ("running") in 397/397 frames of the 2026-07-15 capture |
| Pedal position / cruise state | **0x0AA** | `ANG_ACPD` bits 24–31 (×0.39063 %); `ST_CLCTR_V` bits 52–55 | see [[driveline-speed-signals]] | DME/DDE | 10 ms | (source: [[e65-reverse-engineering-repo]]) — relevant to a cruise-control PoC |
| Gearbox cooling demand | **0x0B5** (`ST_OTMP_GRB`) | bits 38–39 | `0`=none `1`=stage 1 `2`=stage 2 `3`=invalid | EGS | 10 ms | (source: [[e65-reverse-engineering-repo]]) — the box's own overheat opinion; better display warning than a raw threshold |
+45 -7
View File
@@ -65,6 +65,8 @@ This directly answers the UX problem that motivated the search — *"lever says
> [!warning] The ratio is only meaningful under known output conditions
> On a **lift with the wheels free**, an engaged box spins the wheels up until the turbine approaches engine speed again — so `ratio ≈ 1.0` is normal there and does **not** indicate a fault. The test is only valid when the output is loaded (on the ground). Any firmware use of this must gate on output-shaft speed ≈ 0, or the display will cry wolf every time the car is jacked up.
>
> **Second exception: the lockup clutch.** `ST_CCLT` (`0x0BA` D0 bits 6–7) mechanically bolts the turbine to the impeller at cruise to eliminate slip — when it's closed, turbine = engine speed *exactly*. So at road speed, ratio ≈ 1.0 means "locked up", not "not engaged". Seen live in the higher gears of the 2026-07-17 capture (422 frames reading "controlling"). Any moving-vehicle use of the ratio must read `ST_CCLT` first. The standstill test is unaffected — the clutch is open at rest.
## Output shaft speed — the cruise-control variable 🔬
@@ -81,16 +83,52 @@ Evidence that they are an output-shaft/road-speed field (verified, 2026-07-17):
The field is zero in *every* stationary frame **including engaged-in-D**, and non-zero the moment the wheels actually rotate. That decouples it from engine, turbine, and gear state — it tracks the **output shaft** and nothing else. Which is exactly the definition of road speed, minus a diff ratio and a tyre circumference.
Read as 16-bit Intel at bit 24: `0x01A8` = 424. At the ×0.125 factor its neighbours use, ~53 rpm — plausible for lifted wheels idling in R, but **the scaling is a guess off a single snapshot and must not be trusted yet.**
### The drive capture — identification settled, scaling narrowed
### Calibrating it (the next capture)
The 2026-07-17 drive capture ([[can-capture-2026-07-17-drive]]) put the vehicle in motion through all six gears. Output vs `ST_GR_GRB` gear:
1. Wheels lifted, hold a steady speed in **D**, log `0x0BA` + `0x1A2` + `0x0AA` together.
2. Step through 1st→6th if the box will shift, recording D3/D4 at each. Turbine ÷ output at each gear should reproduce the **6HP26 gear ratios** — which is a self-check: if the ratios come out right, the scaling is right.
3. `6HP26.pdf` lives in the source repo's `docs/` and gives those ratios. → [[open-questions]] wishlist.
4. Cross-check against the Launch's road-speed readout if it exposes one. → [[obd-diagnostic-polling]]
| Gear | Frames | Min | Avg | Max |
|---|---|---|---|---|
| 1 | 189 | 0 | 1139 | 1728 |
| 2 | 238 | 40 | 2911 | 4832 |
| 3 | 77 | 1640 | 6133 | 7888 |
| 4 | 93 | 2192 | 9152 | 11464 |
| 5 | 127 | 5160 | 12991 | 17272 |
| 6 | 94 | 13640 | 16702 | 18312 |
Getting from output-shaft rpm to km/h needs the **final drive ratio and tyre size of the Patrol**, not the donor — a swap-specific number nobody has written down yet. → [[nissan-patrol-swap]]
Monotonic with gear, overlapping at shift points, starting at zero. **The identification as output shaft speed is settled.** (verified, 2026-07-17)
### 🔬 Scaling: ×0.125 — strong hypothesis, not measured
Taking each gear's max output as its upshift instant and multiplying by the 6HP26 ratio recovers the engine speed at that shift:
| Gear | ×0.125 → rpm | ratio | **implied engine rpm** |
|---|---|---|---|
| 1 | 216 | 4.171 | **901** |
| 2 | 604 | 2.340 | **1413** |
| 3 | 986 | 1.521 | **1500** |
| 4 | 1433 | 1.143 | **1638** |
| 5 | 2159 | 0.867 | **1872** |
A smooth, gently-rising upshift schedule — textbook M57N at light throttle. Five independent ratios landing on a coherent curve is hard to get by chance. The alternative (raw = rpm) implies upshifts at **7,200–15,000 rpm** against a ~4,500 redline — ruled out.
The gearbox is a confirmed **6HP26X** (user, 2026-07-17), so the ratio table is right. The one assumption left standing is **max-output-per-gear = upshift point**.
### Finishing it (one capture)
Log **`0x1A2` alongside `0x0BA`** at steady speed through the gears. **Turbine ÷ output gives each gear ratio directly** — no assumption about shift points — and simultaneously cross-checks the box identity against the 6HP26 table. `0x0AA` for engine rpm makes it airtight. The 2026-07-17 capture was filtered to `0x0BA`/`0x1D2` only, which is the sole reason this is still open.
`docs/6HP26.pdf` in the source repo would confirm the ratios from a document rather than recollection. → [[open-questions]] wishlist.
### 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:
- BMW transfer case retained → rear output ~1:1, math unaffected
- Transfer case deleted, 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**, making road speed range-dependent
Plus the Patrol's final drive ratio and tyre size. → [[nissan-patrol-swap]], [[open-questions]] #10
## Cruise control: what the bus already gives us
+17 -4
View File
@@ -1,19 +1,32 @@
---
type: entity
tags: [vehicle, swap, project-context]
updated: 2026-07-15
updated: 2026-07-17
---
# Nissan Patrol M57N Swap
The target vehicle (verified — user, 2026-07-15): a **Nissan Patrol** receiving the [[bmw-m57n-engine]] from an E60/E65 donor, with the BMW automatic + EGS wired into the CAN bus. The display system ([[dual-controller-architecture]]) replaces/augments instrumentation for the swapped drivetrain.
The target vehicle (verified — user, 2026-07-15): a **Nissan Patrol** receiving the [[bmw-m57n-engine]] from an **E60/E61** donor, with the BMW automatic + EGS wired into the CAN bus. The display system ([[dual-controller-architecture]]) replaces/augments instrumentation for the swapped drivetrain.
## Drivetrain
- 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
> [!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:
> - **BMW case retained** → its rear output is ~1:1, math unaffected
> - **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
## 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.
- 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]].
## Related
[[bmw-m57n-engine]] · [[can-bus-integration]] · [[open-questions]]
[[bmw-m57n-engine]] · [[driveline-speed-signals]] · [[can-capture-2026-07-17-drive]] · [[can-bus-integration]] · [[open-questions]]
+6 -3
View File
@@ -14,7 +14,9 @@ The research frontier. Answering any of these should trigger updates across the
## Active
8. **What is the scaling of `0x0BA` D3/D4 (output shaft speed)?** The field is undocumented in every source; we know it's zero when the output is held and non-zero when the wheels turn, but not what a count is worth. **This is the project's only road-speed signal** — there is no DSC/wheel-speed module on the swap bus — so anything speed-dependent (notably a cruise-control PoC) waits on this. Calibrate by logging `0x0BA` + `0x1A2` + `0x0AA` at steady speed through gears 1–6; turbine ÷ output should reproduce the 6HP26 ratios as a self-check. → [[driveline-speed-signals]]
8. **What is the scaling of `0x0BA` D3/D4 (output shaft speed)?** *Narrowed 2026-07-17.* The **identification is now verified** (rises monotonically 1st→6th under drive, zero whenever the output is held) and **×0.125 is a strong hypothesis** — it implies a coherent 901→1872 rpm upshift schedule across five independent 6HP26 ratios, where raw-as-rpm would imply 7,200–15,000 rpm against a ~4,500 redline. **Remaining assumption:** that each gear's max output is its upshift point. **One capture closes this** — log `0x1A2` alongside `0x0BA` at steady speed through the gears; turbine ÷ output gives each ratio directly with no shift-point assumption. The 2026-07-17 capture was filtered to `0x0BA`/`0x1D2` only, which is the sole reason it's still open. Still the project's only road-speed signal (no DSC on this bus). → [[driveline-speed-signals]]
11. **Was the BMW transfer case retained, and what's downstream?** The 6HP26**X** measures its output shaft *upstream* of the transfer case, so raw counts → km/h depends on the path: BMW case retained (rear output ~1:1, math unaffected) / deleted and 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**, making road speed range-dependent). → [[nissan-patrol-swap]]
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]]
@@ -22,7 +24,7 @@ The research frontier. Answering any of these should trigger updates across the
## Project context
2. **Exact donor model year / DDE version and EGS variant?** Chassis generation is known (E60/E65); the precise ECU versions would narrow the matrix further. → [[bmw-m57n-engine]]
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. → [[bmw-m57n-engine]]
3. **Standalone harness or full donor loom? Which BMW modules were retained?** Affects which modules broadcast on the swap's bus. → [[nissan-patrol-swap]]
4. **Which Patrol generation, and how is the display being mounted/powered?** → [[nissan-patrol-swap]]
@@ -39,7 +41,8 @@ The research frontier. Answering any of these should trigger updates across the
- ~~Battery voltage layout: 12-bit LE ×0.015 or 24-bit BE ×0.001?~~ → **12-bit LE × 0.015** (source: E65 repo worked example `0x3D9`→14.775 V, 2026-07-17).
- ~~What is the actual engaged gear number, and does it need a drive capture?~~ → **`0x1D2` D1**, `gear = (D1>>4)−4`. **No drive capture needed** — a per-detent capture sufficed. (verified, 2026-07-17) → [[gear-box-can-revealings]]
- ~~What is the manual up-shift (+) value on `0x1D2` D4?~~ → **The question was malformed.** D4 is a persistent *mode* (`0xF0` auto / `0xF1` Sport / `0xF2` Manual), not a shift-event field; `+` and `−` have no distinct codes. (verified, 2026-07-17)
- ~~Is engaged **reverse** observable?~~ → **Yes, but not on `0x1D2`** (D1 stays `0x0F` in R). Use **`0x0BA` `ST_GR_GRB` = 2**. For physical proof of engagement, use turbine speed. (verified, 2026-07-17) → [[driveline-speed-signals]]
- ~~Is engaged **reverse** observable?~~ → **Yes, but not on `0x1D2`** (D1 stays `0x0F` in R, moving or stationary). Use **`0x0BA` `ST_GR_GRB` = 2**. For physical proof of engagement, use turbine speed. (verified, 2026-07-17) → [[driveline-speed-signals]]
- ~~Are `0x0BA` `ST_GR_GRB` values 6–A really 2nd–6th?~~ → **Yes, all observed directly** in the drive capture. `0x0BA` D0's low nibble is a **complete gear source on its own** (P/R/N + 1st–6th, reverse included). (verified, 2026-07-17) → [[can-capture-2026-07-17-drive]]
- ~~Is boost passively broadcast?~~ → **No.** `0x1D0` `AIP_ENG` is barometric (caps at 1108 hPa vs ~2500 needed). Diagnostic polling only. (2026-07-17)
- ~~Which donor vehicle?~~ → **E60/E65 (2003+)** (verified — user, 2026-07-15) → [[bmw-m57n-engine]]
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,112 @@
---
type: source
tags: [can-bus, capture, verified, gear, egs, speed, drive]
updated: 2026-07-17
---
# Drive Capture — 2026-07-17 (VERIFIED)
Raw at `raw/log_20260717_145930.txt` — 1,857 frames over ~34 s, captured with the CANNY 5.3 Pico (tab-separated: ID, "CAN", DLC, data bytes, ASCII, timestamp ms, RX0). Filtered to **`0x0BA` (1,681 frames) and `0x1D2` (176)** only.
**The first capture with the vehicle actually moving and the box shifting.** It closes the `0x0BA` gear-ladder question outright and produces the first real evidence for the output-shaft scaling.
## ✅ `ST_GR_GRB` values 6–A — VERIFIED
The 2026-07-16/17 pages carried `0x0BA` gears 2nd–6th as `(unverified)`, inferred from the parallel `0x1D2` D1 ladder. **All five values now observed directly:**
| Nibble | Gear | Frames |
|---|---|---|
| `1` | N | 248 |
| `2` | R | 408 |
| `3` | P | 207 |
| `5` | 1st | 189 |
| **`6`** | **2nd** | **238** |
| **`7`** | **3rd** | **77** |
| **`8`** | **4th** | **93** |
| **`9`** | **5th** | **127** |
| **`A`** | **6th** | **94** |
(verified, 2026-07-17)
**Consequence: `0x0BA` D0's low nibble is a complete gear source on its own** — P, R, N and 1st–6th from one nibble, including the reverse that `0x1D2` D1 cannot express. `0x1D2` remains necessary only for the **lever** (what the driver selected) and the **mode** (`0xF0`/`0xF1`/`0xF2`), which `0x0BA` does not carry.
Value `4` still never observed. The `0xF`=invalid marker never appeared either.
## `ST_CCLT` — torque converter lockup clutch, caught live
`0x0BA` D0 bits 6–7. Across this capture: **1,259 frames = `0` (disengaged), 422 frames = `1` (controlled/slipping)**, the latter clustered in the higher gears — which is exactly when the clutch is supposed to start locking up to kill converter slip at cruise.
Relevant to the turbine-speed engagement test: **when the clutch is locked, turbine speed = engine speed exactly**, so a ratio ≈ 1.0 at road speed means "locked up", not "not engaged". → [[driveline-speed-signals]]
## Output shaft (`0x0BA` D3/D4) — behaves as road speed
Grouped by `ST_GR_GRB`, read as 16-bit Intel:
| Gear | Frames | Min | Avg | Max |
|---|---|---|---|---|
| 1 | 189 | 0 | 1139 | 1728 |
| 2 | 238 | 40 | 2911 | 4832 |
| 3 | 77 | 1640 | 6133 | 7888 |
| 4 | 93 | 2192 | 9152 | 11464 |
| 5 | 127 | 5160 | 12991 | 17272 |
| 6 | 94 | 13640 | 16702 | 18312 |
Monotonic with gear, overlapping across shift points, starting at zero. A vehicle accelerating through the box. Combined with the earlier finding that the field is **zero in every stationary frame including engaged-in-D**, the identification as output shaft speed is settled; only the *scaling* remains open.
## 🔬 Scaling evidence: ×0.125 (strong hypothesis, not verified)
Assuming each gear's **max** output is the instant it upshifted, multiplying by the 6HP26 ratio should recover engine speed at that shift:
| Gear | raw max | ×0.125 → output rpm | 6HP26 ratio | **implied engine rpm** |
|---|---|---|---|---|
| 1 | 1728 | 216 | 4.171 | **901** |
| 2 | 4832 | 604 | 2.340 | **1413** |
| 3 | 7888 | 986 | 1.521 | **1500** |
| 4 | 11464 | 1433 | 1.143 | **1638** |
| 5 | 17272 | 2159 | 0.867 | **1872** |
| 6 | 18312 | 2289 | 0.691 | *1582 (not an upshift — 6th is top)* |
A smooth, gently-rising upshift schedule — textbook M57N under light throttle. Five independent gear ratios landing on a coherent curve is not an easy coincidence.
The alternative (raw = rpm directly) implies upshifts at **7,200 → 15,000 rpm**. The M57N redlines around 4,500. Ruled out.
> [!warning] Why this is still `(unverified)`
> One assumption remains unchecked: **max-output-per-gear = the upshift point**. Plausible while accelerating, but not proven from this log. (The 6HP26 ratio assumption is now **confirmed** — see below.)
>
> **`0x1A2` was not in this capture.** Turbine ÷ output gives each gear ratio *directly*, with no assumption about shift points, and simultaneously cross-checks the box identity against the ratio table. One capture including `0x1A2` (and `0x0AA`) converts this from inference to measurement. → [[open-questions]] #8
## ✅ Gearbox identified: ZF **6HP26X**
User-confirmed 2026-07-17. Two consequences:
1. **The ratio assumption above holds.** The 6HP26X shares the 6HP26 internal gearset; the "X" is the output end — a different housing and output shaft to drive a transfer case. `(unverified — from LLM prior knowledge; the repo's `docs/6HP26.pdf` would confirm from a document)`
2. **The donor is an xDrive chassis** — so **E60/E61, not E65**: the 7-series never took M57N + xDrive. Partly answers [[open-questions]] #2. → [[bmw-m57n-engine]]
### New question this raises
The EGS measures the **gearbox output shaft**, which on an X box sits **upstream of the transfer case**. So `0x0BA` D3/D4 is propshaft-*input* speed, and the raw→km/h conversion depends on what's downstream:
- BMW transfer case retained → its rear output is ~1:1, math unaffected
- Transfer case 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**, making road speed range-dependent
→ [[nissan-patrol-swap]], [[open-questions]] #10
## `0x1D2` — consistent, plus auto-mode gears
| D0 | D1 | D4 | Frames | Reading |
|---|---|---|---|---|
| `D2` | `0F` | `F0` | 43 | R — no gear number, as established |
| `78` | `5F` | `F0` | 28 | D, 1st |
| `E1` | `0F` | `F0` | 23 | P |
| `B4` | `0F` | `F0` | 23 | N |
| `78` | `6F` | `F0` | 22 | D, 2nd |
| `78` | `7F`/`8F`/`9F`/`AF` | `F0` | 11/10/10/6 | D, 3rd–6th |
Two useful confirmations: the D1 ladder holds **in automatic Drive** (`D4=F0`), where the earlier evidence came only from the manual gate; and R again shows `D1=0F` while moving, so reverse is unnumbered under all conditions, not just at rest.
Note `0x1D2` D0 = `0xF0` — the unrecognized lever code seen in an earlier discarded log — **does not appear here**. Consistent with it being a transient EGS-not-initialised state rather than a real lever position.
## Related
[[gear-box-can-revealings]] · [[driveline-speed-signals]] · [[can-id-candidates]] · [[e65-reverse-engineering-repo]] · [[nissan-patrol-swap]] · [[bmw-m57n-engine]]
+7 -3
View File
@@ -82,7 +82,11 @@ engaged R → 0x0BA D0 low nibble == 2
>
> Similarly "D5/D6 fluctuate so there are no values" — **D5 = `CHKSM_GRB` (checksum), D6 = `ALIV_GRB` (alive counter)**. The observation was correct; the fluctuation is by design, not noise.
`ST_GR_GRB` = D0 low nibble: `1`=N, `2`=**R**, `3`=P, `5`–`A`=gears 1–6, `0xF`=invalid. Values 1/2/3/5 verified against our capture; 6–A inferred from the matching `0x1D2` ladder `(unverified)`.
`ST_GR_GRB` = D0 low nibble: `1`=N, `2`=**R**, `3`=P, `5`–`A`=gears 1–6, `0xF`=invalid. **All of 1/2/3/5/6/7/8/9/A verified** — 5–A confirmed directly by the 2026-07-17 drive capture ([[can-capture-2026-07-17-drive]]), retiring the earlier inference. Value `4` still unobserved.
**This makes `0x0BA` D0 a complete gear source on its own** — P/R/N and 1st–6th from one nibble, reverse included. `0x1D2` is still required for the **lever** (what the driver selected) and the **mode** (D/S/M), neither of which `0x0BA` carries.
D0 bits 6–7 = `ST_CCLT`, the torque converter lockup clutch (`0`=disengaged, `1`=controlled, `2`=closed) — seen live in the higher gears.
`0x0BA` **D3/D4** carry what is almost certainly **output shaft speed** — undocumented in the source repo, zero in every stationary frame, non-zero the moment the wheels turn. This is the project's only road-speed signal. → [[driveline-speed-signals]]
@@ -92,9 +96,9 @@ engaged R → 0x0BA D0 low nibble == 2
## Still open
- `0x0BA` `ST_GR_GRB` values `6`–`A` (2nd–6th) not directly observed — inferred.
- Value `4` in the `ST_GR_GRB` ladder unaccounted for.
- `0x0BA` D3/D4 **scaling uncalibrated** → [[driveline-speed-signals]].
- `0x0BA` D3/D4 **scaling** — ×0.125 is now a strong hypothesis but not measured → [[driveline-speed-signals]].
- `0x1D2` D0 = `0xF0`, an unrecognized lever code seen once in a discarded log; absent from the drive capture. Probably an EGS-not-initialised transient. The firmware rejects it as `GEAR_UNKNOWN`, which is the right conservative behaviour either way.
## Related