Ingest HeinrichG-V12/E65_ReverseEngineering (per-ID DBC-style docs with worked examples) and re-analyse our own 2026-07-15 capture against it. Resolves both outstanding scaling disputes, closes the engine-state question, and adds the driveline speeds. Resolved: - Gearbox oil temp = raw - 40 (not offset 0, not +40). Source's worked example plus our own cross-check: the box read 31 C while coolant was at 37 C and climbing; offset 0 would have the transmission warming faster than the engine. - Battery = 12-bit LE * 0.015 (0x3B4 U_BT); the E90 24-bit BE reading is wrong for us. The high nibble of byte 1 is ST_BTSW, not voltage. - Engine was running during the 2026-07-15 capture (ST_ENGINE_RUN = 2 in 397/397 frames), so its coolant trace is genuine warm-up data and the planned cold-start capture is unnecessary. - Engaged gear = 0x1D2 byte 1, gear = (D1>>4)-4. No drive capture needed. New signals (0x1A2 turbine, 0x0BA output shaft, 0x0AA RPM/pedal). Turbine speed physically proves engagement: it free-spins at ~engine speed in P/N and collapses to ~0 when the box loads up. Output shaft is the only road-speed source on this bus - there is no DSC module - so it is the feedback variable any future cruise-control work would need. Scaling is uncalibrated; it is carried as raw counts with no physical unit. Corrects three of my own earlier claims: - 0x1D2 D1 is the engaged gear, not a "drive-gate flag" (it only ever showed two values because the car was stationary in 1st). - 0x1D2 D4 0xF2 is a persistent Manual mode, not a "downshift event" - it holds across gears 2-6. - 0x0BA was dismissed on the strength of D7, which is an alive counter. The gear is in D0's low nibble, and it is the only source of engaged reverse: 0x1D2 D1 stays 0x0F in R. Firmware: real IDs replace the placeholder map (all 11-bit standard now, so the extended-ID assumption is gone), full gear decode incl. Sport vs Manual, and a debounced lever-vs-gearbox mismatch fault - the "lever says R but the box never took it" case. Engine oil temp reads 0xFF here (sensor not populated), so its valid flag is left clear rather than publishing -207 C. Driveline speeds are kept out of automotive_data_t deliberately: that struct is the UART wire format and widening it would break Controller B. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
7.6 KiB
Log
Append-only. grep "^## \[" log.md | tail -5 for recent activity.
[2026-07-15] setup | Wiki instantiated
Created schema (CLAUDE.md), index.md, log.md, and five seed pages built from repo knowledge: bmw-m57n-engine, esp32-s3-touch-lcd-5b, can-bus-integration, dual-controller-architecture, open-questions. Deleted Obsidian's default Welcome.md. Flagged: the firmware's CAN ID map looks like placeholders (two IDs exceed 11-bit range); raw/ESP32-S3-Touch-LCD-5B.md is an empty clip and needs re-clipping.
[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] ingest | E60 VFL CAN codes spreadsheet + Listen_and_send_PID Arduino sketch
Two raw sources ingested. (1) E60 VFL CAN-Bus Codes.xlsx (community table, ~130 ID blocks from a real pre-facelift E60) → e60-vfl-can-codes-xlsx: independently confirms 0x1D0 coolant raw−48 (0x7A→74 °C) and 0x3B4 battery voltage (leaning 12-bit LE layout, factor ≈0.0147–0.015), adds 0x304 as a 2-byte gear-lever candidate (P=E3/R=C2/N=D1/M=C9, D value suspect), engine-running flag in 0x3B4 byte 3; contains no oil-temp or gearbox-temp rows. (2) Listen_and_send_PID_009c (Arduino MCP2515+ELM327, 2013) → listen-and-send-pid-arduino: transmits E46 cluster frames from OBD PID polling — filed as technique reference for a future diagnostic-request mode; no map changes. can-id-candidates updated: coolant now "very high" confidence; oil/gearbox temps flagged as weakest signals.
[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.
[2026-07-16] ingest | Gear lever fully decoded & VERIFIED (0x1D2)
User captured steady byte values per lever detent (raw/gear_box_can_revealings.csv) → gear-box-can-revealings. 0x1D2 verified as the gear source: byte0 = P 0xE1 / R 0xD2 / N 0xB4 / D 0x78 (all match documented codes exactly); byte0 can't split D from S/M (shared 0x78) so byte4 does it (0xF0 auto / 0xF1 Sport-Manual / 0xF2 downshift −); byte1 is a drive-gate flag (0x0F→0x5F); byte3 = rolling counter (confirms prediction). 0x0BA also tracks the lever but is messier (D/S-M collide) — don't use. Promoted 0x1D2 gear row to VERIFIED and rewrote the encoding-dispute section in can-id-candidates; updated index. Still open: actual engaged gear number (needs a drive capture) and the manual up-shift (+) value. Next: rewrite firmware gear map to 0x1D2 byte0 (+byte4).
[2026-07-17] ingest | E65_ReverseEngineering repo — both disputes resolved, driveline speeds discovered
User pointed at HeinrichG-V12/E65_ReverseEngineering (per-ID DBC-style docs, worked example on every page) → e65-reverse-engineering-repo. Highest-value source to date; combined with re-analysis of our own raw/can-capture-2026-07-15-gearshift.csv it closed most of the frontier. Resolved: gearbox oil temp = raw − 40 (source example + our own gearbox-31 °C-vs-coolant-37 °C warm-up cross-check; my earlier "leaning offset 0" was wrong); battery = 12-bit LE × 0.015; engine was running in the 2026-07-15 capture (ST_ENGINE_RUN=2 in 397/397) — cold-start capture no longer needed; RPM = 0x0AA ×0.25 (679–684 idle). Discovered: 0x1A2 RPM_GRB_TURB turbine speed — a physical engagement proof (P/N ≈634/628 free-spinning vs D ≈70, R ≈0 stalled — textbook converter behaviour), plus 0x0BA bits 20–39 output shaft (undocumented anywhere; zero in every stationary frame incl. engaged-in-D, non-zero once wheels turn), plus ANG_ACPD pedal % and ST_CLCTR_V cruise state. New page driveline-speed-signals — emphasized per user: no DSC on this bus ⇒ output shaft is our only road-speed source, hence the feedback variable for a future cruise-control PoC (safety envelope documented; actuation = transmitting torque requests, a different risk class from everything read-only so far). Corrected three of my own 2026-07-16 claims: 0x1D2 D1 is the engaged gear (not a "drive-gate flag" — it read 1 because the car was stationary); D4 0xF2 is a persistent Manual mode (not a "downshift event" — it holds across gears 2–6); 0x0BA is not to be dismissed (I'd read D7, an alive counter, instead of D0's ST_GR_GRB — which is the only source of engaged reverse, 0x1D2 D1 staying 0x0F in R). Also: boost is not broadcast (AIP_ENG caps at 1108 hPa = barometric) — confirms the Launch must poll. Updated can-id-candidates, gear-box-can-revealings, open-questions, index. Next: firmware pass over the whole verified map.
[2026-07-16] ingest | First live CAN capture — research map CONFIRMED
First real dump off the swap's bus, taken with the board's own new raw-frame logger ((repo); USB-CDC stream, serial mutex, ~486 frame/s, ~1.4% line loss). Raw filed at raw/can-capture-2026-07-15-gearshift.csv (20,596 frames) → can-capture-2026-07-15. Findings: 15 IDs live incl. all four researched signal IDs (0x1D0, 0x1D2, 0x0B5, 0x3B4) + bonus 0x0AA/0x0BA; firmware's placeholder IDs (0x4F/0x55/0x201/0x1001/0x101F) verified absent; researched-but-absent: 0x130/0x304/0x192. 0x1D0 b0 drifts 0x55→0x58 (coolant −48, ~37→40 °C); 0x1D0 b1 = 0xFF (oil temp unpopulated). 0x1D2 gear encoding resolved: DLC 6, byte0 whole-byte codes (0xE1=P, 0xB4=N, 0x78=D seen live). 0x3B4 at ~5 s rate but payload dormant (0xFF) — engine state unconfirmed. Updated can-id-candidates, can-bus-integration, esp32-s3-touch-lcd-5b, open-questions, index. Also corrected a firmware fact across pages: driver runs TWAI_MODE_NORMAL (ACKs the bus), not LISTEN_ONLY; TJA1051 is non-isolated → must share vehicle ground. Next: cold-start + confirmed-engine-running capture to lock coolant/battery scaling; use differential (per-position) captures for gear.