wiki: E60/E65 donor confirmed; CAN ID research results (0x1D0/0x1D2/0x0B5/0x3B4)

This commit is contained in:
2026-07-15 12:47:02 +02:00
parent 90862a573b
commit 6770bf111b
7 changed files with 119 additions and 28 deletions
+4 -2
View File
@@ -9,7 +9,8 @@ Catalog of every page in the wiki. Read this first when answering questions. Kee
## Entities
- [[bmw-m57n-engine]] — the 3.0L BMW diesel whose CAN bus we read; DDE ECU, donor-vehicle unknown, candidate CAN IDs listed (all unverified)
- [[bmw-m57n-engine]] — the 3.0L BMW diesel whose CAN bus we read; E60/E65 donor (confirmed), DDE ECU, auto box with EGS on bus
- [[nissan-patrol-swap]] — the target vehicle: Patrol receiving the M57N + BMW auto; the tapped bus is a BMW island in a Nissan
- [[esp32-s3-touch-lcd-5b]] — Waveshare 5" display board (Controller A); onboard TJA1051 CAN transceiver, 7–36 V input, pinout, PSRAM/LCD gotchas
## Concepts
@@ -19,7 +20,8 @@ Catalog of every page in the wiki. Read this first when answering questions. Kee
## Synthesis
- [[open-questions]] — the research frontier: real CAN IDs, donor vehicle, EGS presence, operating temp, transient protection, fault codes
- [[can-id-candidates]] — **the E60/E65 CAN ID map from web research**: 0x1D0/0x1D2/0x0B5/0x3B4 with confidence ratings, layout disputes, sources; fault codes not passively broadcast
- [[open-questions]] — the research frontier: bench-verify the candidate IDs, operating temp, transient protection, fault-code design decision
## Sources
+8
View File
@@ -9,3 +9,11 @@ Created schema (`CLAUDE.md`), `index.md`, `log.md`, and five seed pages built fr
## [2026-07-15] ingest | Waveshare ESP32-S3-Touch-LCD-5 product wiki
Re-clipped `raw/ESP32-S3-Touch-LCD-5B.md` ingested → [[esp32-s3-touch-lcd-5b-waveshare-wiki]]. Answered two open questions: CAN transceiver is onboard (TJA1051T/3/1J, terminal block, 120 Ω termination switch off by default) and power is solved by the 7–36 V DC wide input (vehicle 12 V direct). New concern raised: operating temp spec is 0–65 °C, marginal for automotive. Updated [[esp32-s3-touch-lcd-5b]] and [[open-questions]]; added schematic PDF to sourcing wishlist.
## [2026-07-15] query | Deep research: E60/E65 CAN IDs for M57N + ZF EGS
Deep-research workflow ran (interrupted twice by session task-loss on Windows; ~82 agents total, 95 claims, 30 adversarial verifications completed; synthesis done manually from the journal). Result: [[can-id-candidates]] — coolant/oil temp on **0x1D0** (raw−48, DDE, 100 ms; confirmed live on a real E60), gear on **0x1D2** (EGS, 200 ms, two generation dialects that likely reconcile), gearbox oil temp on **0x0B5** byte 7 (offset disputed 0 vs +40 — bench-critical), battery voltage on **0x3B4** (layout disputed 12-bit×0.015 vs 24-bit×0.001). Fault codes are NOT passively broadcast — require 0x6F1/0x612 diagnostic requests; firmware `fault_codes` field needs a design decision. Firmware's placeholder IDs contradicted by every source. Updated [[can-bus-integration]]; index updated. Cost note: bulk of tokens spent in the initial (pre-interruption) run; resumes replayed from cache.
## [2026-07-15] update | Donor and target vehicle confirmed by user
User confirmed: donor chassis is **E60/E65 (2003+)**, transmission is a **BMW auto with EGS on the CAN bus**, target vehicle is a **Nissan Patrol**. Created [[nissan-patrol-swap]]; updated [[bmw-m57n-engine]] (E46-era candidate IDs flagged as probably wrong generation) and [[open-questions]] (three questions moved to Answered). Next: web research for E60-generation PT-CAN broadcast IDs.
+13 -17
View File
@@ -6,14 +6,18 @@ updated: 2026-07-15
# BMW M57N Engine
The target engine for this project: the display reads its CAN bus and shows live data. Everything below is `(unverified)` LLM prior knowledge until backed by an ingested source or real-world testing — treat as a starting map, not gospel.
The engine at the heart of the project: the display reads its CAN bus and shows live data. Being swapped into a Nissan Patrol → [[nissan-patrol-swap]].
## This specific engine (verified — user, 2026-07-15)
- Donor chassis: **E60/E65 (2003+)** — so a DDE5/DDE6-generation ECU, exact variant TBD.
- Transmission: **BMW automatic with its EGS ECU wired into the CAN bus** — gearbox temp and gear position have a real data source. Likely a ZF 6HP-family box with GS19-era EGS `(unverified)`.
## Overview (unverified)
- 3.0 L inline-6 turbo-diesel, second generation ("N" = updated) of the M57 family, produced roughly 2002–2008.
- Fitted to E46 330d, E39/E60 530d, E53 X5 3.0d, E65 730d, Range Rover L322 (as Td6), among others.
- Engine management: Bosch **DDE** (Digitale Diesel Elektronik) — DDE5/DDE6 era depending on year.
- The DDE broadcasts engine data on the vehicle's **PT-CAN at 500 kbps**, which matches the firmware's configured baud rate `(repo)`.
- Engine management: Bosch **DDE** (Digitale Diesel Elektronik).
- The DDE broadcasts engine data on the vehicle's **PT-CAN at 500 kbps**, which matches the firmware's configured baud rate `(repo)`. E60/E65 also carry a K-CAN (~100 kbps) for body functions — we care about PT-CAN only `(unverified)`.
## Data we want from it
@@ -21,22 +25,14 @@ Per the project goals: coolant temperature, oil temperature, gearbox oil tempera
## Key unknowns
- Which donor vehicle / which DDE version this specific engine came from — this determines the exact CAN matrix. → [[open-questions]]
- Whether gearbox data is available at all: gearbox temperature and gear position come from the **transmission ECU (EGS)**, not the DDE. If the swap kept only the engine + DDE, those messages may not exist on the bus. `(unverified)` → [[open-questions]]
- Whether a standalone/swap harness alters what's broadcast.
- Exact DDE version and donor model year — narrows the CAN matrix further. → [[open-questions]]
- Whether the swap harness alters what's broadcast vs. a stock E60.
## Candidate CAN IDs to verify (unverified — E46/E39-era BMW, widely reported in reverse-engineering communities)
| ID | Reported content |
|------|------------------|
| 0x316 | Engine RPM, key status |
| 0x329 | Coolant temp, throttle/pedal position |
| 0x545 | Check-engine / warning lights, oil temp (some models) |
| 0x43F / 0x43B | EGS gear data (model-dependent) |
## CAN IDs
> [!warning]
> These do NOT match the IDs currently in the firmware (`0x4F`, `0x55`, `0x201`, `0x1001`, `0x101F` `(repo)`). See [[can-bus-integration]] for why the firmware IDs look like placeholders.
> The candidate IDs originally seeded here (`0x316`, `0x329`, `0x545`) are from **E46/E39-generation** documentation and probably do NOT apply — the donor is E60/E65, a newer bus generation with a different matrix. E60-specific research is tracked in [[can-bus-integration]]. The firmware's current IDs (`0x4F`, `0x55`, `0x201`, `0x1001`, `0x101F` `(repo)`) remain placeholder-quality either way.
## Related
[[can-bus-integration]] · [[dual-controller-architecture]] · [[open-questions]]
[[nissan-patrol-swap]] · [[can-bus-integration]] · [[dual-controller-architecture]] · [[open-questions]]
+3
View File
@@ -25,6 +25,9 @@ The core technical challenge of the project: reading real data from the [[bmw-m5
> [!warning] These IDs are almost certainly placeholders, not real BMW IDs.
> Two red flags: (1) `0x1001` and `0x101F` exceed `0x7FF`, the maximum for standard 11-bit CAN identifiers — BMW E-series PT-CAN of the M57N era uses 11-bit frames `(unverified)`, so these would never match. (2) None of the five IDs appear in community BMW reverse-engineering documentation. The map needs to be rebuilt from real bus captures or a trustworthy source before any of the displayed data can be believed.
> [!info] Research done 2026-07-15
> Web research produced a replacement candidate map — **0x1D0** (coolant + oil temp), **0x1D2** (gear), **0x0B5** (gearbox temp), **0x3B4** (battery voltage) — with confidence ratings and two layout disputes to settle on the bench. Full table and sources: [[can-id-candidates]]. Fault codes are NOT passively broadcast (diagnostic requests required) — the `fault_codes` field needs a design decision.
## Verification plan
1. Get a raw capture of the actual bus (candump / Savvy CAN / cheap USB-CAN dongle) with the engine running. File the log into `raw/`.
+61
View File
@@ -0,0 +1,61 @@
---
type: synthesis
tags: [can-bus, reverse-engineering, e60, research]
updated: 2026-07-15
---
# E60/E65 CAN ID Candidates (Research Results)
Findings from the 2026-07-15 deep-research run (95 claims extracted from ~15 sources, 30 adversarially verified against primary repos before the run was interrupted; synthesis done manually from the journal). These are the IDs to program into the firmware **for bench testing against a live capture** — none are `(verified)` until seen on the actual swap's bus.
## The map (replaces the firmware's placeholder IDs)
| Signal | CAN ID | Bytes | Scaling | Sender | Rate | Confidence |
|--------|--------|-------|---------|--------|------|------------|
| Coolant temp | **0x1D0** | byte 0 | °C = raw − 48 | DME/DDE | 100 ms | **High** — verified verbatim in E65 docs, present in E90-gen DBC, confirmed live on a real E60 545i, and an E60 tool32 table lists 0x1D0 "Motordaten" from DDE1 (diesel!) |
| Engine oil temp | **0x1D0** | byte 1 | °C = raw − 48 | DME/DDE | 100 ms | **High** — same sources as coolant |
| Gearbox oil temp | **0x0B5** ("Torque_request_EGS") | byte 7 | ⚠ disputed: raw + 0 vs raw + 40 | EGS | ? | **Medium** — in the E9x community DBC; absent from the E65 repo's decoded EGS messages. Offset must be settled on the bench (a ~40 °C error is dangerous — resolve before trusting) |
| Gear lever position | **0x1D2** ("TransmissionDataDisplay") | byte 0 | ⚠ two encodings, see below | EGS | 200 ms | **High that the ID is right**, medium on layout |
| Current gear number | **0x1D2** byte 1 upper nibble (GearAct, −4 offset) or **0x0BA** bits 0–3 (E65: values P/R/N…6th) | | | EGS | 20–200 ms | **Medium** — two candidate messages; also 0x304 "Status Gang" (event-driven, from E60 tool32 table) |
| Battery voltage | **0x3B4** ("Powermanagement Batteriespannung") | ⚠ disputed layout | 12-bit LE × 0.015 V (E65, verified: 0x3D9→14.775 V) vs 24-bit BE × 0.001 V (E90 DBC) | Power module / DDE | 5 s (E65) | **High on ID** (E60 tool32 table confirms, sender DDE1), layout must be settled on bench |
| Engine RPM (bonus) | **0x0AA** | bytes 4–5 | RPM = raw / 4 | DME/DDE | 10 ms | High — cross-generation (E65 + E90 comment) |
| Ignition/terminal status (bonus) | **0x130** | byte 0 bitmasks | 0xD5/0xC5/0xC1 | CAS | 100 ms | Medium — used by an M57 project as its only passive decode |
### The 0x1D2 encoding dispute (must resolve on bench)
- **E90-generation DBC**: low nibble of byte 0 = 1=P, 2=R, 4=N, 8=D (bitmask style, XOR-inverted copy in high nibble); 2-bit ShiftLeverMode at bit 32 (0=Normal, 1=Sport, 2=Manual). DLC 6.
- **E65 live capture** (damienmaguire, verified against code): whole byte 0 = 0xE1=P, 0xD2=R, 0xB4=N, 0x78=D; byte 3 is a rolling counter 0x0D→0xED in steps of 0x10. DLC **5**.
- Same ID, different generation dialects — the E60 could speak either. Note the E65 byte-0 values are consistent with the E90 nibble scheme (0xE1 low nibble = 1 = P, 0xD2 → 2 = R, 0xB4 → 4 = N, 0x78 → 8 = D, high nibble = XOR-inverted copy!) — so the two sources may actually agree and the "dispute" is notation. Bench capture decides.
## Fault codes: passive reading is NOT possible ⚠
Consistent across sources: **no DTC/fault-code broadcast exists**. The `dieslg8` project (M57 diesel, later EDC17 DDE) gets coolant temp and DTCs only via **active diagnostic requests** (send on 0x6F1, parse responses on 0x612; e.g. coolant = raw×0.01 − 100). At most, a **MIL/check-engine lamp status bit** may be passively derivable (a commercial Patrol-swap CAN module offers a check-engine output). Consequences for the firmware `(repo)`:
- The `fault_codes` field in `automotive_data_t` cannot be filled in LISTEN_ONLY mode.
- Options: (a) drop the field, (b) show MIL lamp status only, (c) leave LISTEN_ONLY and accept it empty, or (d) later add a diagnostic-request mode (means transmitting on the bus — design decision).
## Swap-context validation
A commercial module exists specifically for **BMW M57/N57 swaps into Nissan Patrols/Landcruisers** that derives tach, check-engine lamp, reverse trigger (from the ZF EGS via CAN — the box has no reverse wire), and fan trigger from the engine CAN. Proof that passive listening on exactly this drivetrain-in-a-Patrol works. → [[nissan-patrol-swap]]
Also useful: an E60 forum claim `(unverified)` that arbitration IDs are identical across E60 K-CAN and PT-CAN (PT-CAN just broadcasts faster, ~10 ms vs ~100 ms) — meaning E90 K-CAN DBC findings likely transfer to our 500 kbps PT-CAN tap.
## Sources
- `HeinrichG-V12/E65_ReverseEngineering` (GitHub) — E65 760Li PT-CAN, docs verified verbatim by the adversarial pass (0x1D0, 0x3B4, 0x192, 0x1D2, 0x0BA, 0x1A2)
- `damienmaguire/BMW-E65-CANBUS` (GitHub) — live E65 735i captures + working EGS emulator code (0x1D2 encoding, 0x192, 0x0AA)
- `TimesNewRomanZ/e60-canbus` (GitHub, community `bmw_e9x_e8x.dbc`) — author runs a real E60 545i; 0x1D0 confirmed live on E60
- `kmalinich/dieslg8` (GitHub) — M57 diesel (E90 335d, EDC17): diagnostic-request-only coolant/DTC evidence
- loopybunny E90 K-CAN DBC — 0x1D0/0x1D2/0x3B4 E90 layouts
- E60 forum thread with tool32/EDIABAS-derived ID table — confirms 0x1D0/0x1D2/0x304/0x3B4 exist on E60 with DDE1 as sender
- Commercial M57/N57 Patrol-swap CAN module product page — swap-context feasibility
## Caveats
- No source used an actual **E60 M57N diesel** end-to-end; the closest anchors are the E60 tool32 table (lists DDE1 as sender for 0x1D0/0x3B4) and the M57 dieslg8 project (different chassis generation). Engine-side layouts are inferred from petrol DME captures of the same bus generation.
- Firmware's current IDs (`0x4F`, `0x55`, `0x201`, `0x1001`, `0x101F`) are contradicted by every source — confirmed placeholders. → [[can-bus-integration]]
- Promotion to `(verified)` requires a live capture from the swap's bus: warm the engine and watch 0x1D0 byte 0 climb, shift through P/R/N/D and watch 0x1D2.
## Related
[[can-bus-integration]] · [[bmw-m57n-engine]] · [[nissan-patrol-swap]] · [[open-questions]]
+19
View File
@@ -0,0 +1,19 @@
---
type: entity
tags: [vehicle, swap, project-context]
updated: 2026-07-15
---
# 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.
## 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.
- 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]]
+11 -9
View File
@@ -10,25 +10,27 @@ The research frontier. Answering any of these should trigger updates across the
## Blocking
1. **What are the real CAN IDs for the M57N data we want?** The firmware's current map is placeholder-quality — two IDs aren't even valid 11-bit identifiers. Needs a live bus capture or a trusted source. → [[can-bus-integration]]
2. **Which donor vehicle / DDE version is this engine from?** (E46? E39? E53? Range Rover Td6?) The CAN matrix differs per platform. → [[bmw-m57n-engine]]
3. **Is the transmission ECU (EGS) on the bus?** Gearbox temp and gear position come from the EGS, not the engine ECU. If this is a manual swap or the EGS was removed, those two display fields have no data source. → [[can-bus-integration]]
1. **What are the real CAN IDs for the E60/E65-generation M57N data we want?** The firmware's current map is placeholder-quality — two IDs aren't even valid 11-bit identifiers. Needs web research (in progress 2026-07-15) + a live bus capture to verify. → [[can-bus-integration]]
## Project context
4. **What vehicle is the engine going into?** The parent directory is named `bmw-patrol` — is this an M57N swap into a Nissan Patrol (a well-known diesel swap)? This shapes wiring, power, and what other bus traffic exists. `(unverified guess)`
5. **Standalone harness or full donor loom?** Affects which modules broadcast.
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]]
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]]
## Hardware
6. **Operating temperature 0–65 °C** (source: waveshare-wiki) — outside automotive norms at both ends (sub-zero winter cabins, sun-baked dashboards). Is the mounting location temperature-controlled enough? Any mitigation (mounting away from vents/sun, accepting reduced lifespan)?
7. **Transient protection on the 7–36 V input**: the board takes vehicle 12 V directly, but ISO 7637 load-dump spikes can exceed 36 V `(unverified)`. Consider an upstream TVS diode / automotive-rated buck. Also: ignition-switched vs constant power (the isolated digital input could sense ignition).
8. **Fault codes**: the UART packet reserves a field for fault codes — DDE fault codes are read via diagnostic protocols (KWP2000/UDS over K-line or CAN), not passively broadcast. Is passive reading even possible? `(unverified)`
5. **Operating temperature 0–65 °C** (source: waveshare-wiki) — outside automotive norms at both ends (sub-zero winter cabins, sun-baked dashboards). Is the mounting location temperature-controlled enough? Any mitigation (mounting away from vents/sun, accepting reduced lifespan)?
6. **Transient protection on the 7–36 V input**: the board takes vehicle 12 V directly, but ISO 7637 load-dump spikes can exceed 36 V `(unverified)`. Consider an upstream TVS diode / automotive-rated buck. Also: ignition-switched vs constant power (the isolated digital input could sense ignition).
7. **Fault codes**: the UART packet reserves a field for fault codes — DDE fault codes are read via diagnostic protocols (KWP2000/UDS over K-line or CAN), not passively broadcast. Is passive reading even possible? `(unverified)`
## Answered
- ~~Which donor vehicle?~~ → **E60/E65 (2003+)** (verified — user, 2026-07-15) → [[bmw-m57n-engine]]
- ~~Is the EGS on the bus?~~ → **Yes — BMW auto with EGS wired in**; gearbox temp and gear position have a real source. (verified — user, 2026-07-15)
- ~~Is the target a Nissan Patrol?~~ → **Yes.** (verified — user, 2026-07-15) → [[nissan-patrol-swap]]
- ~~CAN transceiver?~~ → **Onboard TJA1051T/3/1J** on a terminal block; leave the 120 Ω termination switch OFF when tapping the vehicle bus. (source: waveshare-wiki, 2026-07-15) → [[esp32-s3-touch-lcd-5b]]
- ~~12 V → 5 V power conversion?~~ → **Not needed**: board has a 7–36 V DC wide input. Residual transient concern moved to #7. (source: waveshare-wiki, 2026-07-15)
- ~~12 V → 5 V power conversion?~~ → **Not needed**: board has a 7–36 V DC wide input. Residual transient concern moved to #6. (source: waveshare-wiki, 2026-07-15)
## Sourcing wishlist