7a7398243b
- diag probe: add mode 03 (diag dtc), BMW KWP on 0x6F1 with extended addressing (diag ident, diag bmw), read-only service whitelist (1A/18/21/22), MAX_PAYLOAD 64->384, full hex+ascii dump of BMW replies - tools/diag_session.py: one-session probe runner, logs into wiki/raw/ - wiki: Route A results (11 mode-01 PIDs, rpm/coolant cross-checked, mode 09 silent), Route B verified (0x6F1 [12] -> 0x612), 1A 86 ident with VIN prefix WBANC92090 (E60 530d), DTCs P0101/P0113/P0500/P0545/P0030 (disconnected-sensor swap leftovers), open-questions #2/#7 updated Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
6.1 KiB
6.1 KiB
type, updated
| type | updated |
|---|---|
| index | 2026-09-23 |
Index
Catalog of every page in the wiki. Read this first when answering questions. Keep current on every change.
Entities
- patrol-instrument-cluster — what the Patrol cluster expects on its inputs: tach = 2 pulses/rev (verified by calibration), temp = NTC sender 2.1–2.9 kΩ cold → ~250 Ω at 90 °C; the 1 kHz PWM needle-flutter problem and the mitigation ladder (fixed-duty test → 20 kHz → hardware damping)
- 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
- can-bus-integration — the core challenge; current firmware ID map flagged as placeholder, verification plan
- driveline-speed-signals — engine / turbine / output-shaft speeds: turbine speed as physical proof of gear engagement, and the output-shaft field that is our only road-speed source (no DSC on this bus) — the feedback variable for a future cruise-control PoC, with the safety envelope that would require
- dual-controller-architecture — Controller A → UART1 + ESP-NOW, protocol v2 → Controller B (1.3" display + Patrol gauge outputs); A owns alerts and the gauge tunables (
cfgconsole) - obd-diagnostic-polling — why boost / MAF / rail / injection / DTCs never appear on the sniffer and how a tester gets them: Route A generic OBD-II mode 01 on
0x7DFand Route B BMW KWP on0x6F1→0x612— BOTH VERIFIED WORKING 2026-09-23 (minimal PID set, no boost PID, mode 09 silent;1A 86ident identifies the donor; DTCs read via mode 03), the capture-with-Launch procedure (still wanted for the22 D1xxlive-data identifiers), and why polling is a transmit-on-the-bus design decision
Synthesis
- canny-5-3-pico-gauge-drive — why the CANNY-based setup moves the Patrol needles and our ESP32 doesn't: CANNY "negative output" = 12 V-domain low-side switch, ESP32 IO7/IO8 = 3.3 V push-pull; the low-side transistor fix, and why it's not firmware PWM polarity
- can-id-candidates — the E60/E65 CAN ID map — now decoded end-to-end: gear (lever + engaged + mode), coolant, gearbox temp (raw−40), battery (12-bit ×0.015), RPM, turbine speed, engine state all verified; placeholder IDs verified absent; fault codes and boost not passively broadcast
- open-questions — the research frontier: bench-verify the candidate IDs, operating temp, transient protection, fault-code design decision
Sources
- esp32-s3-touch-lcd-5b-waveshare-wiki — official Waveshare product wiki (ingested 2026-07-15); answered CAN-transceiver and power questions, raised the 0–65 °C operating-temp concern
- e60-vfl-can-codes-xlsx — community E60 pre-facelift CAN table (ingested 2026-07-15); E60-specific confirmation of 0x1D0/0x3B4, new 0x304 gear-lever candidate
- 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):
0x1D2byte0 = lever, byte1 = engaged gear 1–6, byte4 = Drive/Sport/Manual mode;0x0BA= the box's own target gear incl. reverse; raw atraw/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
0x0BAgears 2nd–6th directly (making it a complete gear source), catches the lockup clutch live, and produces the ×0.125 output-shaft scaling evidence; raw atraw/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
- esp32-s3-touch-lcd-5-intro-photo — Waveshare annotated board photo (moved into
raw/2026-09-21): terminal-block signal order (VIN/GND/VOUT · SDA/SCL · CAN · RS485 A/B · DO0/DO1 · DI), shared CAN/RS485 120 Ω switch, IO0/IO3/IO4/IO46 strapping pads - google-ai-dde7m57-pids — Google AI Mode clipping on "dde7m57 pids" (ingested 2026-09-21, raw in
Clippings/): uncited; its0x612-as-request claim is contradicted, its D1xx identifiers are(unverified); kept for the Ediabas value names and the user's own observation that0x612appears with the Launch connected - diag-route-a-2026-09-23 — first live Route A probe run (2026-09-23): DDE serves generic OBD mode 01 on
0x7E8(verified: rpm + coolant cross-checked against the broadcast IDs); supported-PID list; MAF/IAT values implausible (explained by Route B session: sensor faults); mode 09 silent (no VIN); 5 stored DTCs, MIL off; raw atraw/diag-20260923-1117*.log - diag-route-b-2026-09-23 — Route B verified + DTCs read (same day):
0x6F1 [12]→0x612confirmed live;1A 86ident = VIN prefix WBANC92090 (E60 530d), DDE part numbers 7799764/7799765/7793887, 2006-03, KWP2000 not UDS;diag dtc= P0101/P0113/P0500/P0545/P0030 (all disconnected-sensor swap leftovers); raw atraw/diag-20260923-124*.log - dwr-335d-torque-pids — DWR's "Extended BMW 335d PIDs for Torque" (thread page 1 +
raw/BMW 335d.csv, ingested 2026-09-21): a gauge-checked set of generic J1979 mode-01 PIDs from an M57 diesel (2009 335d, DDE7.3) — boost via PID 70, exhaust pressure, EGTs, MAF, fuel rate; nothing BMW-proprietary. Basis for the "try generic OBD first" route; the diesel-specific PIDs are probably absent on our EDC16