Commit Graph

9 Commits

Author SHA1 Message Date
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
Shane Smiskol 8f958e8ee6 fw_versions: clean up some typing (#29350)
* another common type

* here too

* unused
old-commit-hash: 09ce869ee73994af31205e37ae297968e10f66a1
2023-08-11 18:37:17 -07:00
Justin Newberry d487c0501f Ruff: enable most of bugbear (#29320)
* added mutable default args

* most of the Bs

* add comment about lrucache
old-commit-hash: 62c1e6592439119f360dd64b854e7047f35222ba
2023-08-11 15:33:49 -07:00
Shane Smiskol 9bbeb67482 ecu addrs: add warning when skipping remote frame (#27959)
add warning
old-commit-hash: f94528d65dea476eb0bf286110eb6dbb2293ddb5
2023-04-18 15:19:23 -07:00
Shane Smiskol 72453b6040 ecu addrs: check msg length (#27956)
check length
old-commit-hash: 3924c14b74331368fa0193514da5bcf5eb2b2837
2023-04-18 13:15:54 -07:00
Shane Smiskol 746f0ba63b fw_versions: cleanup common types (#27658)
* use common type

* use it in fw_versions

* add typing to queries
old-commit-hash: 727a94cc7837e8556a243170111294440722a233
2023-03-22 21:58:04 -07:00
Shane Smiskol d41cd812d7 get_present_ecus: check available pandas (#27181)
* add num_pandas to get_present_ecus

* always bugged me

* move this to function signature
old-commit-hash: 2a6de71cc0d369314d098a91baa9984f01b05faa
2023-02-01 18:38:00 -08:00
Shane Smiskol c3fb4dda1b vin and ecu_addrs: add more argparse options (#25913)
* add bus options

* use debug

* add timeout and try

* fix

* don't need keywords

* log this too

* fix
old-commit-hash: 0ec8546042091f97072edcf8f5218627ea8a75a9
2022-09-28 14:01:17 -07:00
Shane Smiskol 2f35ca57b1 FPv2: log all present ECU addresses (#24916)
* eliminate brands based on ECUs that respond to tester present

* make it work

* Add type hint for can message

Use make_can_msg

* Only query for addresses in fingerprints, and account for different busses

* These need to be addresses, not response addresses

* We need to listen to response addresses, not query addresses

* add to files_common

* Unused Optional
Drain sock raw

* add logging

* only query essential ecus

comments

* simplify get_brand_candidates(), keep track of multiple request variants per make and request each subaddress

* fixes

make dat bytes

bus is src

Fix check

* (addr, subaddr, bus) can be common across brands, add a match to each brand

* fix length

* query subaddrs in sequence

* fix

* candidate if a platform is a subset of responding ecu addresses

comment

comment

* do logging for shadow mode

* log responses so we can calculate candidates offline

* get has_subaddress from response set

* one liner

* fix mypy

* set to default at top

* always log for now

* log to make sure it's taking exactly timeout time

* import time

* fix logging

* 0.1 timeout

* clean up

Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
old-commit-hash: cccab50b166272d13ab51eab1eb10e21beca604e
2022-06-20 22:14:13 -07:00