Commit Graph
4 Commits
Author SHA1 Message Date
Quintine 4af585573e tools: byd_can_dump — add --verify-checksums and --decode-508 diagnostics
The Seal's ADAS re-faults on every comma boot despite the 508 spoof
running. Two prime suspects need data: (a) wrong checksum algorithm on
the spoofed 508 (camera rejects corrupt frames), (b) EPS rejecting our
790 and raising TORQUE_FAILED in stock 508 which we faithfully forward.

--verify-checksums recomputes byd_checksum against real frames per
address and prints match rates + mismatch samples.
--decode-508 histograms TORQUE_FAILED/TORQUE_TEMP_FAILED/LKSPrepare/
Cruise_Activated from stock 508 frames.
2026-07-25 20:06:55 +10:00
Quintine f7c2ac18fe tools: byd_can_dump — show openpilot TX (sendcan), decode CRUISE_STATE + LKAS_ACTIVE
The RX table filters panda's own transmissions (bus+128), so the 508
camera-feedback spoof was invisible. Now the dump also prints the
sendcan table (proves the spoof is being sent and on which bus), a
CRUISE_STATE histogram from 813 (tells instantly if the ADAS ECU is in
failure states 8/9 or healthy), and the camera's 790 LKAS_ACTIVE ratio.
2026-07-25 19:49:01 +10:00
Quintine 5684dd9d0e tools: byd_can_dump — skip 'boot' dir, robust rlog/qlog discovery, fix sys.path
The auto-detect picked /data/media/0/realdata/boot (boot logs, no rlog).
Now scans newest-first for a dir that actually contains an rlog/qlog,
skips 'boot', and inserts repo root into sys.path so it runs from any CWD.
2026-07-25 18:42:59 +10:00
Quintine 264ebf956e tools: add byd_can_dump.py — per-bus CAN address/rate dump for BYD bring-up
BYD Seal reports steering torque on 508 STEERING_TORQUE_ANGLE while the
Han uses 792 STEERING_TORQUE, and PCM_BUTTONS bus assignment is harness
dependent. This tool prints bus/addr/len/rate tables (with key BYD
addresses flagged) from either the latest recorded route (safe, no
hardware) or a live panda sniff (manager stopped).
2026-07-25 18:25:27 +10:00