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:
@@ -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 |
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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]]
|
||||
|
||||
@@ -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]]
|
||||
|
||||
Reference in New Issue
Block a user