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).
This commit is contained in:
Quintine committed 2026-07-25 18:25:27 +10:00
1 parent fbaba23ec1
commit 264ebf956e
2 files changed
+145

No files matched your search

+3
View File
@@ -1,5 +1,6 @@
from typing import NamedTuple
from opendbc.car.byd.values import CAR as BYD
from opendbc.car.chrysler.values import CAR as CHRYSLER
from opendbc.car.gm.values import CAR as GM
from opendbc.car.ford.values import CAR as FORD
@@ -20,6 +21,8 @@ from opendbc.car.psa.values import CAR as PSA
# FIXME: add routes for these cars
non_tested_cars = [
MOCK.MOCK,
BYD.BYD_HAN_EV_23,
BYD.BYD_SEAL_PERFORMANCE_25,
GM.CADILLAC_ATS,
GM.HOLDEN_ASTRA,
GM.CHEVROLET_MALIBU,