Subaru: make OBD query logging (#31785)

* make OBD query logging

* Update selfdrive/car/subaru/values.py

Co-authored-by: Justin Newberry <justin@comma.ai>

* wording

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
pull/31783/head^2
Shane Smiskol 2 years ago committed by GitHub
parent 428397a18b
commit 90442e3597
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      selfdrive/car/subaru/values.py

@ -234,21 +234,24 @@ FW_QUERY_CONFIG = FwQueryConfig(
[StdQueries.TESTER_PRESENT_REQUEST, SUBARU_VERSION_REQUEST], [StdQueries.TESTER_PRESENT_REQUEST, SUBARU_VERSION_REQUEST],
[StdQueries.TESTER_PRESENT_RESPONSE, SUBARU_VERSION_RESPONSE], [StdQueries.TESTER_PRESENT_RESPONSE, SUBARU_VERSION_RESPONSE],
whitelist_ecus=[Ecu.abs, Ecu.eps, Ecu.fwdCamera, Ecu.engine, Ecu.transmission], whitelist_ecus=[Ecu.abs, Ecu.eps, Ecu.fwdCamera, Ecu.engine, Ecu.transmission],
logging=True,
), ),
# Non-OBD requests
# Some Eyesight modules fail on TESTER_PRESENT_REQUEST # Some Eyesight modules fail on TESTER_PRESENT_REQUEST
# TODO: check if this resolves the fingerprinting issue for the 2023 Ascent and other new Subaru cars # TODO: check if this resolves the fingerprinting issue for the 2023 Ascent and other new Subaru cars
Request( Request(
[SUBARU_VERSION_REQUEST], [SUBARU_VERSION_REQUEST],
[SUBARU_VERSION_RESPONSE], [SUBARU_VERSION_RESPONSE],
whitelist_ecus=[Ecu.fwdCamera], whitelist_ecus=[Ecu.fwdCamera],
bus=0,
), ),
# Non-OBD requests
Request( Request(
[StdQueries.TESTER_PRESENT_REQUEST, SUBARU_VERSION_REQUEST], [StdQueries.TESTER_PRESENT_REQUEST, SUBARU_VERSION_REQUEST],
[StdQueries.TESTER_PRESENT_RESPONSE, SUBARU_VERSION_RESPONSE], [StdQueries.TESTER_PRESENT_RESPONSE, SUBARU_VERSION_RESPONSE],
whitelist_ecus=[Ecu.abs, Ecu.eps, Ecu.fwdCamera, Ecu.engine, Ecu.transmission], whitelist_ecus=[Ecu.abs, Ecu.eps, Ecu.fwdCamera, Ecu.engine, Ecu.transmission],
bus=0, bus=0,
), ),
# GEN2 powertrain bus query
Request( Request(
[StdQueries.TESTER_PRESENT_REQUEST, SUBARU_VERSION_REQUEST], [StdQueries.TESTER_PRESENT_REQUEST, SUBARU_VERSION_REQUEST],
[StdQueries.TESTER_PRESENT_RESPONSE, SUBARU_VERSION_RESPONSE], [StdQueries.TESTER_PRESENT_RESPONSE, SUBARU_VERSION_RESPONSE],

Loading…
Cancel
Save