openpilot0/release
Shane Smiskol cccab50b16
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>
2022-06-20 22:14:13 -07:00
..
build_devel.sh Merge common/ and selfdrive/common (#24556) 2022-05-18 14:11:57 -07:00
build_release.sh Merge common/ and selfdrive/common (#24556) 2022-05-18 14:11:57 -07:00
check-submodules.sh check submodule commits on master (#21446) 2021-07-01 23:12:39 -07:00
files_common FPv2: log all present ECU addresses (#24916) 2022-06-20 22:14:13 -07:00
files_pc navd: rewrite in python (#24621) 2022-05-30 15:15:51 +02:00
files_tici Move camerad to system/ (#24836) 2022-06-19 14:43:49 -07:00
identity.sh CI: build master-ci in Actions (#24533) 2022-05-14 00:18:30 -07:00
verify.sh add devel 2021-11-29 17:50:10 -08:00