From 2a13cc7fe2638f4a61d5d86382e231455f8b8ed3 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Mon, 21 Sep 2026 22:53:00 -0500 Subject: [PATCH] aussie --- opendbc_repo/opendbc/car/hyundai/fingerprints.py | 1 + .../opendbc/car/hyundai/tests/test_hyundai.py | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/opendbc_repo/opendbc/car/hyundai/fingerprints.py b/opendbc_repo/opendbc/car/hyundai/fingerprints.py index a1fbc824fb..773470f31b 100644 --- a/opendbc_repo/opendbc/car/hyundai/fingerprints.py +++ b/opendbc_repo/opendbc/car/hyundai/fingerprints.py @@ -1556,6 +1556,7 @@ FW_VERSIONS = { }, CAR.HYUNDAI_STARIA_4TH_GEN: { (Ecu.fwdCamera, 0x7c4, None): [ + b'\xf1\x00US4 MFC AT AUS RHD 1.00 1.04 99211-CG000 210819', b'\xf1\x00US4 MFC AT KOR LHD 1.00 1.06 99211-CG000 230524', ], (Ecu.fwdRadar, 0x7d0, None): [ diff --git a/opendbc_repo/opendbc/car/hyundai/tests/test_hyundai.py b/opendbc_repo/opendbc/car/hyundai/tests/test_hyundai.py index 51028a969f..2078781746 100644 --- a/opendbc_repo/opendbc/car/hyundai/tests/test_hyundai.py +++ b/opendbc_repo/opendbc/car/hyundai/tests/test_hyundai.py @@ -1667,6 +1667,20 @@ class TestHyundaiFingerprint: assert exact assert matches == {candidate} + def test_staria_2023_australian_route_fw_exact_matches(self): + route_fw = { + (Ecu.fwdCamera, 0x7c4): b'\xf1\x00US4 MFC AT AUS RHD 1.00 1.04 99211-CG000 210819', + (Ecu.fwdRadar, 0x7d0): b'\xf1\x00US4_ RDR ----- 1.00 1.00 99110-CG000 ', + } + car_fw = [ + CarParams.CarFw(ecu=ecu, fwVersion=version, address=address, subAddress=0, brand="hyundai") + for (ecu, address), version in route_fw.items() + ] + + exact, matches = match_fw_to_car(car_fw, "KMFYFX71MPU095311", allow_fuzzy=False, log=False) + assert exact + assert matches == {CAR.HYUNDAI_STARIA_4TH_GEN} + def test_kona_ev_non_scc_has_no_dedicated_fw_coverage(self): assert CAR.HYUNDAI_KONA_EV_NON_SCC not in FW_VERSIONS