Files
ESP32-S3-Touch-LCD-5B/wiki/pages/bmw-m57n-engine.md
T
julian 974082cb3e Add diag console probe (OBD-II mode 01/09 on 0x7DF); wiki: diagnostic polling, two sources
Firmware:
- CANDriver::transmit(): the single sanctioned transmit path (single-shot,
  echoed as CANTX lines, TX_FAILED alert counted); CAN-task warnings now take
  the serial lock
- DiagProbe module: `diag pids` supported-PID bitmap scan, `diag pid <hex>`,
  `diag vin`, `diag ecu`, `diag status`; ISO-TP reassembly with flow control;
  one request in flight, refused for 3 s after any foreign tester frame
- Console dispatch chained via Tunables::setExtraCommandHandler()
- CLAUDE.md and docs/UART_PROTOCOL.md updated

Wiki:
- New page obd-diagnostic-polling (broadcast vs polled, 0x6F1->0x612 addressing,
  Route A generic OBD PID table, Route B, test-day procedure, firmware probe)
- New sources: google-ai-dde7m57-pids (clipping, unverified, 0x612 direction
  contradicted), dwr-335d-torque-pids (thread + raw/BMW 335d.csv decoded)
- Clippings/ folder added to the schema (Obsidian Web Clipper, treated as raw/)
- bmw-m57n-engine, can-bus-integration, open-questions, index, log updated
2026-09-21 19:51:49 +02:00

39 lines
2.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
type: entity
tags: [engine, bmw, can-bus]
updated: 2026-09-21
---
# BMW M57N Engine
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/E61 (2003+)** — narrowed from E60/E65 by the 6HP26X gearbox (xDrive output; the 7-series never had M57N + xDrive) — so a DDE6-generation ECU (Bosch EDC16C31/C35) is the expectation `(unverified)`; the DDE7.3 / EDC17CP09 that Google searches for "dde7 m57" describe is the later M57N2 in the E90/E70. Exact variant still TBD — the Launch's ECU-identification page names it (`D60M57D0`/`D62M57B0` vs `D73N57C0`). → [[obd-diagnostic-polling]]
- Transmission: **ZF 6HP26X** (user-confirmed 2026-07-17) with its EGS ECU wired into the CAN bus — gearbox temp and gear position have a real data source ([[gear-box-can-revealings]]).
## Overview (unverified)
- 3.0 L inline-6 turbo-diesel, second generation ("N" = updated) of the M57 family, produced roughly 2002–2008.
- 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
Per the project goals: coolant temperature, oil temperature, gearbox oil temperature, gear position/number, battery voltage, fault codes → see [[can-bus-integration]] for the message-ID question.
## Key unknowns
- 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.
- Values the DDE keeps to itself (boost, MAF, rail pressure, injection quantity, DTCs) are only reachable by polling → [[obd-diagnostic-polling]].
## CAN IDs
The verified E60 map (coolant, gearbox temp, gear, rpm, torque, battery, turbine and output-shaft speed) lives in [[can-id-candidates]]; the firmware decodes exactly that map `(repo, 2026-09-21)`. The E46/E39-era IDs once seeded here (`0x316`, `0x329`, `0x545`) and the firmware's original placeholders (`0x4F`, `0x55`, `0x201`, `0x1001`, `0x101F`) were all confirmed absent from the live bus.
## Related
[[nissan-patrol-swap]] · [[can-bus-integration]] · [[dual-controller-architecture]] · [[open-questions]]