Gear decode VERIFIED: real 0x1D2 map in firmware + wiki
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>
This commit is contained in:
@@ -29,3 +29,4 @@ Catalog of every page in the wiki. Read this first when answering questions. Kee
|
||||
- [[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`
|
||||
|
||||
Reference in New Issue
Block a user