Adeeb Shihadeh
16ec56398c
add openpilot prefix to imports ( #29498 )
...
* add openpilot prefix to imports
* more
* more
* fix docs
* fix linter
* bump submodules
* fix patched tests
* update dynamic imports
* debug
* Revert "debug"
This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.
* fix pm test
old-commit-hash: a9626f95b69af19306143fc4def02fb5769405d2
2023-08-20 20:49:55 -07:00
Justin Newberry
7b677910df
Linter: Fix >160 line length test ( #29287 )
...
* test
* fix line length
* fix line length
* fix file size
* revert poetry
* cleanup for PR
old-commit-hash: cf64b27168614f851087adab2d7f766425922f64
2023-08-08 17:13:35 -07:00
Shane Smiskol
3278d3f557
test fw query: fix migration import ( #29283 )
...
huh this was just broken
old-commit-hash: b34341e7e5736d1e67dfb20c8edd9a07d269e2a1
2023-08-08 13:48:11 -07:00
Shane Smiskol
85c7764c45
FW versions: import common variable ( #27905 )
...
* just import from fw_versions
* fix
* more fix
old-commit-hash: 1520716d429a7d4278c97d4689a6f77eae71bd40
2023-04-14 01:42:37 -07:00
Shane Smiskol
241cc7b622
test_fw_query_on_routes.py: don't print FW for logging
...
old-commit-hash: 7f10c736ab0e1f027738b5f64ca75308435a3ade
2023-03-01 15:57:11 -08:00
Adeeb Shihadeh
7c96e7876a
cleanup panda types everywhere ( #26574 )
...
* cleanup panda types everywhere
* one more
old-commit-hash: 65fa87a96965000986e76604ac868891e35a86bc
2022-11-21 23:43:24 -08:00
Shane Smiskol
e422f77099
test_fw_query_on_routes: find first non-none path ( #25628 )
...
find first non-none path
old-commit-hash: bd9966c4777a7b4393d65cc0f62d726a9fdf1ff1
2022-08-31 17:54:21 -07:00
Adeeb Shihadeh
35ff65121e
pre-commit: add codespell ( #25571 )
...
old-commit-hash: 6590fb2b93baedb2e1c5267b4f191f8e20fcd1d2
2022-08-30 11:20:55 -07:00
Shane Smiskol
3f420d31e8
Revert "FPv2: fingerprint on all FW combinations" ( #25417 )
...
* Revert "FPv2: fingerprint on all FW combinations (#25204 )"
This reverts commit c7e0622fa5bbf3ed8b000c86666f54f2b0a8c63d.
* Revert "Revert "FPv2: fingerprint on all FW combinations (#25204 )""
This reverts commit bb68b7bc1c28ba8c67f3051b8f99fabc42e85771.
* For breaking, match only with current brand's FW
* Add comment for fuzzy matching
* fingerprint (online) only using FW from that brand
* test_fw_query_on_routes fingerprints like online
* extend match_fw_to_car to work for test_fw_query_on_routes
* Apply suggestions from code review
old-commit-hash: 45cfcfa3bba6ae75c89114e58de445eaef4c5627
2022-08-12 23:36:50 -07:00
Shane Smiskol
430a888fc3
FPv2: log all responses ( #25239 )
...
* should be all that's required
* try using rx_addr (should be the same)
* log bus
* bump cereal
* remove debugging
* bump cereal to master
* rm line
* add printing to offline debug script
old-commit-hash: 937013e48867862bccf0153064f104778e356f5d
2022-07-21 16:35:47 -07:00
Shane Smiskol
e4024c4d9a
FPv2: fingerprint on all FW combinations ( #25204 )
...
* Try to fingerprint on all possible combinations
* build_fw_dict creates set dict, tries each fw version for addr, subaddr
* clean up
* static analysis
* comment
* fix comment
* revert changes to test_fw_query_on_routes
* remove comment
old-commit-hash: ee081f278b090b5bd4a06f12749fffeb780c6162
2022-07-18 17:05:16 -07:00
Erich Moraga
c9dc7a9458
Add missing HIGHLANDERH_TSS2 ESP & engine f/w ( #25066 )
...
* Add missing HIGHLANDERH_TSS2 ESP & engine f/w
`@pkozlowski#5214` 2022 Highlander Hybrid (Poland) DongleID/route b2e9858e29db492b|2022-07-07--17-57-24
* Fix test_fw_query_on_routes with older routes
Co-authored-by: Shane Smiskol <shane@smiskol.com >
old-commit-hash: 94c8717cac0cfad4603d57a8da108a124019dd73
2022-07-08 20:03:21 -07:00
Shane Smiskol
ab7beb99de
FW query debug script: print version brand ( #25058 )
...
* test_fw_query_on_routes: print brand
* dynamic paddign
old-commit-hash: 30cb9ac962395a86464fdfc079b5f0030c7b9b9d
2022-07-07 00:28:21 -07:00
Shane Smiskol
4eabd3b9d9
FW fingerprinting: log all FW versions ( #25042 )
...
* get_fw_versions returns all fw versions with request's brand
* keep track of everything received
* debug
* need to regen or write a hack in build_fw_dict
* to be safe, still replace old responses within same brands (hyundai responds to two queries, can fix later)
to be safe, still replace old responses within same brands (hyundai responds to two queries, can fix later)
* update test_fw_query_on_routes
* clean up
* better name
* slightly cleaner
* fix test_startup unit test
del
* fix imports
* fix test_fw_fingerprint
fix test_fw_fingerprint
fix
* fingerprint on all FW_VERSIONS, not just brands with requests
* support old routes in test_fw_query_on_routes
* regen and update refs
* similar function style to before
* better comment
* space
switch name
* try to exact match first
* useless else
* fix debug script
* simpler dictionary
* bump cereal to master
old-commit-hash: ea241bf3dc1d6dec2610bec9fceb1b8659014436
2022-07-06 19:42:58 -07:00
Shane Smiskol
998d5ae1a1
test_fw_query_on_routes: warn on no CarParams ( #24655 )
...
add warning for no carparams
old-commit-hash: e32a735a58706d9be732748b555a6dbeee00511e
2022-05-26 13:59:19 -07:00
Adeeb Shihadeh
2b56bba1f4
test fw query: add nissan
...
old-commit-hash: 5b098a1db597ce44b2f6b33ecbc91f180140403a
2022-04-13 22:54:45 -07:00
martinl
d4db9082db
Subaru: add FW for Impreza Limited UDM 2017 ( #23802 )
...
* FPv2: Add Subaru Impreza Limited USM 2017
* test_fw_query_on_routes.py: add subaru support
Co-authored-by: Willem Melching <willem.melching@gmail.com >
old-commit-hash: 412e43206e819193839eab5525fdb6358349856b
2022-02-22 12:17:48 +01:00
Robbe Derks
58c99158a1
Make pandaState and safetyMode a list ( #22454 )
...
* wip: move to pandaStates
* bump cereal
* wip: SafetyMode struct
* move to safetyMode
* fix typo
* this can be None
* fix potential empty pandaStates list
* fix thermald
* fix controlsd
* rename safetyModes to safetyConfigs
* update process_replay
* fix test_models
* bump cereal
old-commit-hash: 91987f38d425e2a5dc61d09571933cffb9536113
2021-10-08 17:54:34 +02:00
Jafar Al-Gharaibeh
f108d93bc0
Mazda FP 2.0 support ( #20879 )
...
* Mazda FP 2.0 support
ECU FW for CX-5 2017 and Mazda3 2017
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com >
* Use standard UDS request/reponse, fix missing arg.
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com >
* Add CX-5 FW test
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com >
* update/add FW FP
Current suported models:
CX-5 2017/2021
CX-9 2019/2020
Mazda3 2017/2018
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com >
* Add Cx-9 2019 FW FP
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com >
* Remove comments, remove TESTER_PRESENT_REQUEST from Mazda
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com >
* add transmission ecu to startup test
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com >
old-commit-hash: 824f93303d95695a761d10a00b0e9547274db6a9
2021-05-28 15:50:58 +02:00
Willem Melching
86ff70a234
fix test_fw_query_on_routes.py
...
old-commit-hash: 62545f6c2bf1c6d03cdf8712947f19291654954d
2021-05-25 13:25:42 +02:00
Adeeb Shihadeh
e58a495396
Remove ignored CAN fingerprints ( #20994 )
...
* VW is all FW
* fix test
* toyota
* honda
* hyundai
* remove IGNORED_FINGERPRINTS
* toyota
old-commit-hash: e5575a6a4ccf1b43ba652ec7c3009d2389edac63
2021-05-24 13:50:10 -07:00
Willem Melching
0375063e3f
Batch of FW versions ( #20850 )
...
old-commit-hash: 26e518a6af9b605c427678c150894ca1d58832b0
2021-05-07 15:02:51 +02:00
Willem Melching
ee0e80a6d4
Fuzzy match on ECU FW versions ( #20687 )
...
* Fuzzy match on 3+ ECUs
* reuse dict
* exclude some shared ecus to be sure
* show alert for fuzzy match
* use title case
* require community toggle
* refactor
* do both exact and fuzzy in test script
* update test script
* add fuzz test and lower matches to >= 2
* strip alert length
* sort mismatches
* add fw tests to test_startup
* bump cereal
old-commit-hash: e4f73fbda5c2dd07cbb15816ac1bf30b010408fe
2021-04-20 12:00:36 +02:00
Willem Melching
2176a2b044
add VW support for fw fingerprint test script
...
old-commit-hash: 03753165b8b8503f30e5ca8890f483aef1f014f8
2021-04-06 10:41:00 +02:00
Adeeb Shihadeh
05eb44115e
cereal cleanup part 2 ( #20092 )
...
* car stuff
* thermal
* Revert "car stuff"
This reverts commit 77fd1c65ebd01abfa8493ae12c9e6b14f7ada976.
* panda state
* camera stuff
* start deg
* most is building
* builds
* planner + controls run
* fix up paramsd
* cleanup
* process replay passes
* fix webcam build
* camerad
* no more frame
* thermald
* ui
* paramsd
* camera replay
* fix long tests
* fix camerad tests
* maxSteeringAngle
* bump cereal
* more frame
* cereal master
old-commit-hash: 312b681a46b8153314a8420611b6479dd6f70dfc
2021-02-16 21:39:32 -08:00
Adeeb Shihadeh
966945880b
Cereal cleanup ( #20003 )
...
* start cleanup
* fan speed
* cleanup dm
* fix cereal
* hwType -> pandaType
* update refs
* update refs
* bump cereal
* freeSpacePercent
* cereal master
old-commit-hash: 000bd226aa9902da01e6010bf26762fca2c20df0
2021-02-03 19:57:30 -08:00
Willem Melching
3e44be1461
Add sonata firmware version
...
old-commit-hash: 6e476e06676bdc6da9f6f3e1a865d6568a199b49
2020-11-18 12:48:21 +01:00
Willem Melching
839b6af9ce
Update 2020 Hyundai Palisade FW versions ( #2322 )
...
* add fw versions
* carParams is sometimes not in first segment
* Update can fingerprint
old-commit-hash: 0365db20d8853845dce79727e347b02ec07b472c
2020-10-12 15:57:06 +02:00
Willem Melching
9779b2cd8f
Big batch of FW versions ( #1682 )
...
* wip big batch of fw versions
* Add the rest
* And two more
old-commit-hash: 66ae0854b4cdee8dbc763d365c6e10b57237cec7
2020-06-11 16:37:45 -07:00
Willem Melching
2b60ee9531
Run mypy commit hook ( #1591 )
...
* run mypy commit hook
* fix mypy errors
old-commit-hash: 3d08dcc3b27936cb14c0eae63605be9a6c077380
2020-05-28 15:05:04 -07:00
Willem Melching
91037edde7
add argparser to test_fw_query script
...
old-commit-hash: a71f5823fa6552e1cf9bffb746286ca02f92593a
2020-02-24 10:53:42 -08:00
Willem Melching
90631998fa
Add CHR FW versions
...
old-commit-hash: a2a44f4e4be8e883330fbda31d7f98c4859a6591
2020-02-13 14:39:33 -08:00
Willem Melching
5123c0d630
Add some more firmware fingerprints
...
old-commit-hash: 7c94b36171
2020-02-03 11:24:25 -08:00
Willem Melching
0d0f17aad2
move fw query debug script
...
old-commit-hash: df6fa7acbd
2020-02-01 18:53:43 -08:00