Skip to content

Commit

Permalink
Hyundai: remove outdated abs FW (commaai#32008)
Browse files Browse the repository at this point in the history
* rm from ed882557605319f9

* rm from ffce4a1d578827ee

* rm from 700d37ccd12315cf

* can't find, but probably same

* rm from 15755effe9d073b1

* rm from 5b7caafa7ec1a5cf

* rm from ec07911a91f863f3

* rm from 7627c16a16a6f69b

* rm from 007d5e4ad9f86d13

* rm from 06a3b9e474ce581d

* rm from 22203eb8892a6f28

* rm from ff973b941a69366f

* rm from 3ea622c3c0ec3055

* rm from commaai#23517

* rm from b0e1cdf87262c7ad

* old format FW version

* rm from 54f0bbcb6527012e & 4cbcc16b655c1591

* test abs

* format
  • Loading branch information
sshane authored and cydia2020 committed May 14, 2024
1 parent 89cfe30 commit bf70783
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 22 deletions.
28 changes: 8 additions & 20 deletions selfdrive/car/hyundai/fingerprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,6 @@
b'\xf1\x00DN ESC \x07 106 \x07\x01 58910-L0100',
b'\xf1\x00DN ESC \x07 107"\x08\x07 58910-L0100',
b'\xf1\x00DN ESC \x08 103\x19\x06\x01 58910-L1300',
b'\xf1\x8758910-L0100\xf1\x00DN ESC \x06 104\x19\x08\x01 58910-L0100',
b'\xf1\x8758910-L0100\xf1\x00DN ESC \x06 106 \x07\x01 58910-L0100',
b'\xf1\x8758910-L0100\xf1\x00DN ESC \x07 104\x19\x08\x01 58910-L0100',
b'\xf1\x8758910-L0100\xf1\x00DN ESC \x07 106 \x07\x01 58910-L0100',
],
(Ecu.eps, 0x7d4, None): [
b'\xf1\x00DN8 MDPS C 1,00 1,01 56310L0010\x00 4DNAC101',
Expand Down Expand Up @@ -291,11 +287,8 @@
b'\xf1\x00TM ESC \x03 101 \x08\x02 58910-S2DA0',
b'\xf1\x00TM ESC \x04 101 \x08\x04 58910-S2GA0',
b'\xf1\x00TM ESC \x04 102!\x04\x05 58910-S2GA0',
b'\xf1\x00TM ESC \x1e 102 \x08\x08 58910-S1DA0',
b'\xf1\x00TM ESC 103!\x030 58910-S1MA0',
b'\xf1\x8758910-S1DA0\xf1\x00TM ESC \x1e 102 \x08\x08 58910-S1DA0',
b'\xf1\x8758910-S2DA0\xf1\x00TM ESC \x03 101 \x08\x02 58910-S2DA0',
b'\xf1\x8758910-S2GA0\xf1\x00TM ESC \x02 101 \x08\x04 58910-S2GA0',
b'\xf1\x8758910-S2GA0\xf1\x00TM ESC \x04 102!\x04\x05 58910-S2GA0',
],
(Ecu.eps, 0x7d4, None): [
b'\xf1\x00TM MDPS C 1.00 1.01 56310-S1AB0 4TSDC101',
Expand Down Expand Up @@ -592,9 +585,7 @@
b'\xf1\x00DL ESC \x06 101 \x04\x02 58910-L3200',
b'\xf1\x00DL ESC \x06 103"\x08\x06 58910-L3200',
b'\xf1\x00DL ESC \t 100 \x06\x02 58910-L3800',
b'\xf1\x8758910-L3200\xf1\x00DL ESC \x06 101 \x04\x02 58910-L3200',
b'\xf1\x8758910-L3600\xf1\x00DL ESC \x03 100 \x08\x02 58910-L3600',
b'\xf1\x8758910-L3800\xf1\x00DL ESC \t 101 \x07\x02 58910-L3800',
b'\xf1\x00DL ESC \t 101 \x07\x02 58910-L3800',
],
},
CAR.KIA_K5_HEV_2020: {
Expand Down Expand Up @@ -641,11 +632,9 @@
CAR.HYUNDAI_KONA_EV_2022: {
(Ecu.abs, 0x7d1, None): [
b'\xf1\x00OS IEB \x02 102"\x05\x16 58520-K4010',
b'\xf1\x00OS IEB \x03 101 \x11\x13 58520-K4010',
b'\xf1\x00OS IEB \x03 102"\x05\x16 58520-K4010',
b'\xf1\x00OS IEB \r 102"\x05\x16 58520-K4010',
b'\xf1\x8758520-K4010\xf1\x00OS IEB \x02 101 \x11\x13 58520-K4010',
b'\xf1\x8758520-K4010\xf1\x00OS IEB \x03 101 \x11\x13 58520-K4010',
b'\xf1\x8758520-K4010\xf1\x00OS IEB \x04 101 \x11\x13 58520-K4010',
],
(Ecu.fwdCamera, 0x7c4, None): [
b'\xf1\x00OSP LKA AT AUS RHD 1.00 1.04 99211-J9200 904',
Expand Down Expand Up @@ -758,8 +747,8 @@
b'\xf1\x8799110Q5100\xf1\x00SP2_ SCC FHCUP 1.01 1.05 99110-Q5100 ',
],
(Ecu.abs, 0x7d1, None): [
b'\xf1\x8758910-Q5450\xf1\x00SP ESC \x07 101\x19\t\x05 58910-Q5450',
b'\xf1\x8758910-Q5450\xf1\x00SP ESC \t 101\x19\t\x05 58910-Q5450',
b'\xf1\x00SP ESC \x07 101\x19\t\x05 58910-Q5450',
b'\xf1\x00SP ESC \t 101\x19\t\x05 58910-Q5450',
],
(Ecu.eps, 0x7d4, None): [
b'\xf1\x00SP2 MDPS C 1.00 1.04 56300Q5200 ',
Expand Down Expand Up @@ -867,9 +856,8 @@
],
(Ecu.abs, 0x7d1, None): [
b'\xf1\x00CN ESC \t 101 \x10\x03 58910-AB800',
b'\xf1\x8758910-AA800\xf1\x00CN ESC \t 104 \x08\x03 58910-AA800',
b'\xf1\x8758910-AA800\xf1\x00CN ESC \t 105 \x10\x03 58910-AA800',
b'\xf1\x8758910-AB800\xf1\x00CN ESC \t 101 \x10\x03 58910-AB800\xf1\xa01.01',
b'\xf1\x00CN ESC \t 104 \x08\x03 58910-AA800',
b'\xf1\x00CN ESC \t 105 \x10\x03 58910-AA800',
],
},
CAR.HYUNDAI_ELANTRA_HEV_2021: {
Expand Down Expand Up @@ -1030,8 +1018,8 @@
],
(Ecu.fwdRadar, 0x7d0, None): [
b'\xf1\x00NQ5__ 1.00 1.02 99110-P1000 ',
b'\xf1\x00NQ5__ 1.00 1.03 99110-P1000 ',
b'\xf1\x00NQ5__ 1.00 1.03 99110-CH000 ',
b'\xf1\x00NQ5__ 1.00 1.03 99110-P1000 ',
b'\xf1\x00NQ5__ 1.01 1.03 99110-CH000 ',
b'\xf1\x00NQ5__ 1.01 1.03 99110-P1000 ',
],
Expand Down
4 changes: 2 additions & 2 deletions selfdrive/car/hyundai/tests/test_hyundai.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def test_correct_ecu_response_database(self):
for car_model, ecus in FW_VERSIONS.items():
with self.subTest(car_model=car_model.value):
for ecu, fws in ecus.items():
# TODO: enable for Ecu.fwdRadar, Ecu.abs, Ecu.eps
if ecu[0] in (Ecu.fwdCamera,):
# TODO: enable for Ecu.fwdRadar, Ecu.eps
if ecu[0] in (Ecu.fwdCamera, Ecu.abs):
self.assertTrue(all(fw.startswith(expected_fw_prefix) for fw in fws),
f"FW from unexpected request in database: {(ecu, fws)}")

Expand Down

0 comments on commit bf70783

Please sign in to comment.