0a58afca9a
The gear lever is fully decoded and confirmed on the actual swap bus (raw/gear_box_can_revealings.csv): 0x1D2 byte0 = P 0xE1 / R 0xD2 / N 0xB4 / D 0x78, matching the documented BMW codes exactly. Byte4 splits D vs S/M (0xF0 auto) and carries manual +/- shifts. Firmware: - automotive_data.h: replace placeholder gear map (0x1001) with CAN_ID_GEAR_LEVER 0x1D2, verified byte-0 codes, byte-4 mode define, and can_to_gear_lever(). - can_driver.cpp: decode 0x1D2 byte0 into gear_position via the enum; reject unrecognized codes instead of copying the raw byte. - Scope: P/R/N/D only (verified). S/M shows as D for now (no enum slot; engaged gear number needs a drive capture) — TODO'd, not faked. Coolant/oil/battery left as flagged placeholders pending a cold-start capture. Wiki: - New source page gear-box-can-revealings + raw CSV filed. - can-id-candidates: 0x1D2 gear row -> VERIFIED; encoding "dispute" section rewritten with the full lever+mode decode table. - Updated index + log. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2.2 KiB
2.2 KiB
type, updated
| type | updated |
|---|---|
| index | 2026-07-16 |
Index
Catalog of every page in the wiki. Read this first when answering questions. Keep current on every change.
Entities
- 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
- dual-controller-architecture — Controller A → UART 5Hz → Controller B (1.3" display); packet format
Synthesis
- can-id-candidates — the E60/E65 CAN ID map from web research, now CONFIRMED live: 0x1D0/0x1D2/0x0B5/0x3B4 present on the real bus; placeholder IDs verified absent; fault codes 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 lever fully decoded & VERIFIED (2026-07-16): 0x1D2 byte0 = P/R/N/D codes, byte4 = D-vs-S/M + manual +/− shift; raw at
raw/gear_box_can_revealings.csv