12-OBD-Speed: watch mode for the unknown PCM DIDs

- After the DID scan, the log page reads the 327 PCM DIDs of unknown meaning
  round after round and logs every change ("W did data"), 3 per request if
  the PCM allows it (reply split with the lengths from the scan)
- tools/make_watch_dids.py generates src/watch_dids.h from the scan logs
- README/CLAUDE.md: scan results, test-drive plan, git remote

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mangavalkandClaude Opus 5.5 committed 2026-11-18 16:18:52 +01:00
1 parent c9ad39c8ed
commit 970f6a3d64
5 files changed
+220 -6

No files matched your search

+9 -3
View File
@@ -11,7 +11,7 @@ Goal: write a **new custom program** for this device.
smooth. Background work (BLE/OBD polling, scans, logging, SD, a future WiFi/web UI) must never make the display
stutter or lag — measure FPS before/after when adding load, and give up features/RAM elsewhere first.
(Accepted exception for now: the temporary diagnostic scan slows speed updates to ~2 s; user OK'd 2026-11-08.)
- The folder is a **git repo** (local only, no remote). Commit `9ee85bf` = original kit snapshot before any cleanup.
- The folder is a **git repo**, remote `origin` = `https://mangavalk.com/mangavalk/JC3636W518EN.git` (user's own server). Commit `9ee85bf` = original kit snapshot before any cleanup.
## Hardware summary
| Item | Detail |
@@ -82,7 +82,7 @@ Display color format is `RGB565_SWAPPED` (ST77916 byte order, set in `lv_conf.h`
|---|---|
| `1-Instructions` | Spec PDF (duplicate), AIDA64 remote-sensor layout `aida_remote_1.85.rslcd`, MJPEG conversion tool (Windows .NET, converts video to 360×360 MJPEG 25 fps) |
| `2-Program Example/Demo_Arduino` | **Vendor only:** `library/` (3 libs), `lv_conf.h` (vendor original), `sd/` (SD listing example; its lv_conf.h has FATFS edits), `docs/` (setup screenshots + compile instructions). The vendor's original LVGL demo sketch no longer exists unmodified. |
| `tools` | `gif_to_360.py` — converts GIFs to 360×360 for the device (Pillow; scale to cover + center crop, keeps frame timing) |
| `tools` | `gif_to_360.py` — converts GIFs to 360×360 for the device (Pillow; scale to cover + center crop, keeps frame timing); `make_watch_dids.py` — builds `12-OBD-Speed/src/watch_dids.h` from the DID scan logs |
| `shared` | **Shared code for all JC3636W518 projects:** `jc3636w518.ini` (PlatformIO base config), `include/lv_conf.h` (LVGL 9.6), `lib/JC3636W518` (board library). See its `README.md` |
| `12-OBD-Speed` | (+ log page: CAN logger / diagnostic DID scan, 2026-11, see "User's car") **The new program — working in the car (2026-10-23):** speed from the ELM327 over BLE as big number + arc gauge on a GIF background, battery-voltage arc in the bottom gap, idle/screen-off mode (both **verified by the user**); swipe left for the adapter menu (scan, select → remembered in NVS, auto-reconnect every 3 s), again for settings (rotation, idle/screen-off timeout), again for the background (GIF from SD `/gifs` copied into an 11.9 MB raw flash partition, own `partitions.csv`). See its `README.md` |
| `13-Dash-Mount` | **3D-printed dashboard holder** (OpenSCAD, 2026-10-23; **base printed 2026-10-24, user: "perfect"**): snap-in cup with lip over the bezel + USB-C opening on the side, detent tilt hinge (36 face teeth = 10° steps, M3×20 bolt + captive nut + printed knob), flat foot for VHB tape. ASA. User's choices: adhesive base, detent hinge, M3, cable exits sideways, only a USB-C opening needed. OpenSCAD is installed (`C:\Program Files\OpenSCAD\openscad.exe`, use from bash for `-D part="..."` quoting). See its `README.md` |
@@ -134,7 +134,13 @@ D127 140E, D134 00, D137 00. Scan rate only ~200 ms per DID (BLE + clone), PCM a
The PCM is promising anyway: per opendbc it *receives* `IsaVLim_D_Rq` (speed limit) and it runs the cruise control.
Firmware after drive 2: probe again with `3E00` + 1 s timeout (once, NVS `probed`), 3 DIDs per request
(single CAN frame, hits re-asked one by one; tested per module with `22F1FFF188F1FE`), BLE interval 7.5-15 ms requested,
`E progress` line every 512 DIDs with ms/DID. Flashed, not yet driven.
`E progress` line every 512 DIDs with ms/DID.
**Scan finished (2026-11-18)**: probe found no other module; **PCM has 389 DIDs** (175 ms/DID, multi-DID test timed out).
Known: F190 = VIN (keep logs private), DD01 = odometer (136 822 km), F4xx = mode 01 copies. Single readings can't tell
which DID is the set speed / limit -> **watch mode** (flashed 2026-11-18, not yet driven): 327 unknown DIDs
(`src/watch_dids.h`, generated by `tools/make_watch_dids.py`) read in rounds (~55 s, ~20 s if 3 per request works),
changes logged as `W`. Agreed test drive: ACC at **unusual set speeds** (e.g. 47 then 63, ~2 min each, user reports the
values), marks at speed signs (user remembers the order).
## Future ideas (not started)
- **Web UI hosted by the puck** (user's idea, 2026-11-12): WiFi access point / web server on the puck showing all the