From acc2a03812e7da748297366750c7d23e3a269d92 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 7 Feb 2024 02:23:16 -0600 Subject: [PATCH] HKG CAN FD: potentially get VIN without OBD port on some platforms (#31348) * add cluster * think this works * update refs not 1 * only add the new address * bb * comment old-commit-hash: 8f5dcb30199faf0e1e89f0b6ad6a3af3880afc1e --- selfdrive/car/fw_query_definitions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/selfdrive/car/fw_query_definitions.py b/selfdrive/car/fw_query_definitions.py index 1d6104574e..ed886a69db 100755 --- a/selfdrive/car/fw_query_definitions.py +++ b/selfdrive/car/fw_query_definitions.py @@ -15,7 +15,9 @@ LiveFwVersions = Dict[AddrType, Set[bytes]] OfflineFwVersions = Dict[str, Dict[EcuAddrSubAddr, List[bytes]]] # A global list of addresses we will only ever consider for VIN responses -STANDARD_VIN_ADDRS = [0x7e0, 0x7e2, 0x760, 0x18da10f1, 0x18da0ef1] # engine, hybrid controller, Ford abs, 29-bit engine, PGM-FI +# engine, hybrid controller, Ford abs, Hyundai CAN FD cluster, 29-bit engine, PGM-FI +# TODO: move these to each brand's FW query config +STANDARD_VIN_ADDRS = [0x7e0, 0x7e2, 0x760, 0x7c4, 0x18da10f1, 0x18da0ef1] def p16(val):