Files
ESP32-S3-Touch-LCD-5B/wiki/log.md
T
julian 0bd8f5c14d Drive capture: 0x0BA gear ladder verified, output-shaft scaling narrowed
First capture with the vehicle actually moving (raw/log_20260717_145930.txt,
1857 frames, filtered to 0x0BA + 0x1D2).

Verified, closing yesterday's inference: ST_GR_GRB values 6/7/8/9/A observed
directly = 2nd..6th. So 0x0BA byte 0's low nibble is a COMPLETE gear source
on its own - P/R/N plus 1st..6th, reverse included. 0x1D2 is now needed only
for the lever and the D/S/M mode, which 0x0BA does not carry. Value 4 is
still unaccounted for.

Also caught ST_CCLT (torque converter lockup clutch) live - 422 frames
"controlling", clustered in the higher gears. This matters beyond curiosity:
a closed clutch bolts the turbine to the impeller, so turbine == engine
exactly. Any turbine/engine slip ratio read at road speed must check CCLT
first or it will report "not engaged" for a perfectly healthy locked-up box.
Decoded into driveline_t with that warning attached.

Output shaft: identification now verified (rises monotonically 1139->16702
across gears 1->6, zero whenever the output is held). Scaling narrowed to
x0.125 but NOT adopted - it implies a coherent 901->1872 rpm upshift schedule
across five independent 6HP26X ratios, where raw-as-rpm would imply
7,200-15,000 rpm against a ~4,500 redline. Still rests on the unproven
assumption that each gear's max output is its upshift point, so the field
stays in raw counts. One capture including 0x1A2 settles it: turbine/output
gives each ratio directly.

Gearbox confirmed as ZF 6HP26X (user). Same gearset as the 6HP26, so the
ratio table holds; the X is the xDrive output variant, which dates the donor
to E60/E61 rather than E65 - the 7-series never took M57N with xDrive. That
partly answers a standing open question, and raises a new one: the X box
measures its output shaft upstream of the transfer case, so if a Patrol
transfer case sits in the path its ratio enters the km/h conversion and
changes with high/low range.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-17 15:15:35 +02:00

9.3 KiB
Raw Blame History

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 | First drive capture — 0x0BA gear ladder verified, output-shaft scaling narrowed

raw/log_20260717_145930.txt (CANNY 5.3 Pico, 1,857 frames / ~34 s, filtered to 0x0BA + 0x1D2) → can-capture-2026-07-17-drive. First capture with the vehicle actually moving. Closes the inference left open yesterday: ST_GR_GRB values 6/7/8/9/A observed directly (238/77/93/127/94 frames) = 2nd–6th, so 0x0BA D0's low nibble is a complete gear source on its own — P/R/N + 1st–6th, reverse included; 0x1D2 is now needed only for lever + mode. Also caught ST_CCLT (converter lockup) live — 422 frames "controlling" in the higher gears, which matters because a locked clutch makes turbine = engine exactly, so the engagement-ratio test needs to read it before trusting a ratio ≈ 1.0 at road speed. Output shaft identification VERIFIED (rises monotonically 1139→16702 across gears 1→6, zero whenever the output is held). Scaling narrowed to ×0.125 (unverified): implies a coherent 901→1872 rpm upshift schedule across five independent ratios, vs 7,200–15,000 rpm for raw-as-rpm against a ~4,500 redline. User confirmed the box is a ZF 6HP26X — same gearset as 6HP26 so the ratio table holds, and the xDrive output variant dates the donor to E60/E61, not E65 (partly answers open Q#2). New question #11: was the transfer case retained? The X box measures output upstream of it, so a Patrol transfer case in the path would make road speed high/low-range dependent. Remaining assumption on the scaling: max-output-per-gear = upshift point — one capture including 0x1A2 closes it (turbine ÷ output = ratio directly). Updated driveline-speed-signals, gear-box-can-revealings, can-id-candidates, nissan-patrol-swap, open-questions, index.

[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.