Add sonata firmware version

pull/2570/head
Willem Melching 5 years ago
parent 7b216e7cbb
commit 6e476e0667
  1. 1
      selfdrive/car/hyundai/values.py
  2. 4
      selfdrive/debug/test_fw_query_on_routes.py

@ -167,6 +167,7 @@ FW_VERSIONS = {
], ],
(Ecu.esp, 0x7d1, None): [ (Ecu.esp, 0x7d1, None): [
b'\xf1\x00DN ESC \x01 102\x19\x04\x13 58910-L1300\xf1\xa01.02', b'\xf1\x00DN ESC \x01 102\x19\x04\x13 58910-L1300\xf1\xa01.02',
b'\xf1\x00DN ESC \x06 104\x19\x08\x01 58910-L0100',
b'\xf1\x8758910-L0100\xf1\x00DN ESC \x06 104\x19\x08\x01 58910-L0100\xf1\xa01.04', b'\xf1\x8758910-L0100\xf1\x00DN ESC \x06 104\x19\x08\x01 58910-L0100\xf1\xa01.04',
], ],
(Ecu.engine, 0x7e0, None): [ (Ecu.engine, 0x7e0, None): [

@ -37,7 +37,7 @@ if __name__ == "__main__":
for route in tqdm(routes): for route in tqdm(routes):
route = route.rstrip() route = route.rstrip()
dongle_id, time = route.split('|') dongle_id, time = route.split('|')
qlog_path = f"cd:/{dongle_id}/{time}/1/qlog.bz2" qlog_path = f"cd:/{dongle_id}/{time}/0/qlog.bz2"
if dongle_id in dongles: if dongle_id in dongles:
continue continue
@ -65,7 +65,7 @@ if __name__ == "__main__":
live_fingerprint = args.car live_fingerprint = args.car
if live_fingerprint not in list(TOYOTA_FINGERPRINTS.keys()) + list(HONDA_FINGERPRINTS.keys()) + list(HYUNDAI_FINGERPRINTS.keys()): if live_fingerprint not in list(TOYOTA_FINGERPRINTS.keys()) + list(HONDA_FINGERPRINTS.keys()) + list(HYUNDAI_FINGERPRINTS.keys()):
continue break
candidates = match_fw_to_car(car_fw) candidates = match_fw_to_car(car_fw)
if (len(candidates) == 1) and (list(candidates)[0] == live_fingerprint): if (len(candidates) == 1) and (list(candidates)[0] == live_fingerprint):

Loading…
Cancel
Save