Commit Graph

97 Commits

Author SHA1 Message Date
Shane Smiskol 7ecfda8b79 Revert "FW query: query one sub-address in parallel" (#29550)
Revert "FW query: query one sub-address in parallel (#28675)"

This reverts commit 3d4c32284699dfd4f78bb2f5bb645344c98f1b46.
old-commit-hash: 365bdd342200b5348370de418a652301da2e3949
2023-08-23 01:41:28 -07:00
Shane Smiskol c5099d5000 FW query: query one sub-address in parallel (#28675)
* put one subaddr in parallel_addrs

* p

* remove print

* update test refs

* test

* revert test changes

* do same in present ECU query, lower threshold to catch (~0.82 to ~0.72 right within bounds)

* type

* clean up

* update test ref
old-commit-hash: 861ceb2feeb8e9f303b96c0e7a9ef19c5423938d
2023-08-23 01:31:04 -07:00
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 89b56e9661 FPv2: fingerprint on current brand's candidates (#28435)
* pass in brand

* needs to be flipped for exact matching since it's subtractive

* new helper

* makes more sense flipped

* clean up
old-commit-hash: f5a361a1112440b941d50b22b2203192e2d68e3d
2023-08-11 18:47:12 -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 a14f162bc7 Ruff: comprehensions conventions (#29317)
ignore c408
old-commit-hash: 4a9afd7554060ac5353e96f1d7feb06d3a3671e9
2023-08-10 16:40:30 -07:00
Shane Smiskol 206e06456b FPv2: fast fuzzy fingerprinting (#29233)
* fast fuzzy fingerprinting

* use match_fw_to_car helper

* fix and comment

* alone

* Update selfdrive/car/fw_versions.py

* Update selfdrive/car/fw_versions.py
old-commit-hash: 082fe6868d3833923ff9b0b73b3fe703ef43f366
2023-08-04 16:10:49 -07:00
Shane Smiskol 6e2a086252 FPv2: don't add debug candidates to versions globally (#28562)
* debugging

* this test works, but find a better place

* make test more generic to start testing more than timings

no need to run again in another test function. eventually we
can simulate ECUs and have IsoTpParallelQuery work properly

* Revert "make test more generic to start testing more than timings"

This reverts commit 58e8536b1d8b138902d373e1e1194e70c9eb4b24.

* 2nd try

* clean up

* not even MappingProxyType works

* works

* test that too

* clean up

* refactor to avoid modification online

* revert tests

* more revert

* no longer needed

* clean up
old-commit-hash: 56614124f0f3e927caadf9bb66fa68e9532fe247
2023-06-15 16:32:32 -07:00
Shane Smiskol 5f3569faf2 HKG: use platform codes to fuzzy fingerprint (#28531)
* get gas/ev/hev from FW (not all correct, poc)

* add test for essential ecus for fuzzy fingerprinting

* kinda works

* stash

* clean up

* add code

* simpler

* use the function

* test it with our cars

* no re

no re

no re

* debugging

* handle empty dict

* simpl

* this is promising

start on making existing fingerprinting functions use the config, instead of entirely replacing them

* needs to allow 1 match

* lay out how this should look

* changes

* executable

* some work

* use config

* fuzzy ecus

* config test

* comment and some clean up

* test platform codes

* use regex, simpler and fixes bug

* in func

* rm bad func

* typing for new func and remove old from dc

* todo done

* tested!

* remove fake platform codes

* thought we needed this, but actually...

* not needed

* not applicable any more

* use config for essential ecus

* first draft of test to make adding/removing fuzzy FP platform intentional

* compile

* clean up test

* even cleaner

* fix default ecus type

* temp fix

* this is mostly in tests now

* test every fuzzy ecu fw returns one platform code

* experiment with dates

* Revert "experiment with dates"

This reverts commit 3251b9cc5c3ca41ca92c8b75ad9b2234b720aa0b.

* clean that up

* comment

* test

* work on all cars

* fix fuzz_fw_fingerprint

* comment

* get first by search

* bit more clean up

* and more

* use compiled pattern for nicer syntax

* default

* flip dat around, much cleaner

* clean up hyundai test a bit

* flip order

same here

* rename test and flip subTest

* fix pylint

* revert fw changes

revert fw changes

* line

* add original functions to test

* needs to be a list

* cmt

* draft (need to count one ecu as a match)

* tiny clean up

* todo: date range

* only in notebook

* remove comment (still can be either list or set)

* same, only notebook

* more consistent signature

* copilot inspired

* copilot no good

* test for date parsing

* better name

* good, now we don't have to worry about the dates mismatching in another test/logic

* comment up+

* some stuff

* clean up

fix test

fix test

* test

* comment

* use utils

* clean up (utils are cleaner and less buggy)

* clean up (utils are cleaner and less buggy)

* fixup test

* use a dash (prettier) and remove some platforms that can fingerprint now!

* compile global pattern

* same as what we do in values

* remove comments

* fuzzy_get_platform_codes is one or none here

* more clean up

* sort imports

* woah woah woah

* add comment

* fix reassigning different types

* add types

* adapt fuzzy test recently added (nice it caught this!)

* update lock

* options

comments

* stash

* comments and fixes

* better comments

* better

* test: run on exact fuzzy matching logic, same results!

* use match_fw_to_car

* test all fw

* ex

* unused random

* this is a possibility

* this is more clear

* fix

* revert

* revert to needing both ECUs to match to reduce false positives, test

* fix excluded platform test :( but it's ok

* add comment

* we actually want to only test fuzzy ecus to make it explicit

* fix mypy

* comment for tomorrow

* just add matches with fuzzy FP

* add comment

* this was the cleanest I could think of, but still working on it. not very easy to understand

* think this is better, but also worse...

* comment: reframing how this works

* revert back to what we did before

* was swapped

* else set

* remove old comment

* fixes from merge

* remove fuzzy_min_match_count from this pr

* fix static analysis

* also unused

* different method first draft

* copy existing fuzzy func

* check all possible ecus exist, only platform codes, slightly refactor main loop

* fix

* Revert recent

Revert "fix"

This reverts commit 5cdb7bda835f1e48e750ab4195e891afe08e11ea.

Revert "check all possible ecus exist, only platform codes, slightly refactor main loop"

This reverts commit d3e918fa20fa4ce881445850f5f7428a3c11adf8.

Revert "copy existing fuzzy func"

This reverts commit 34c8c0545097c84f55f4b4f61907606c93760ddd.

Revert "different method first draft"

This reverts commit b91139055d7d1802c1eb726504798c156a183c9c.

* new func

* fixup test

* remove changes from v1 from fw_versions.py

* clean up a bit

* return part as part of code

* fix test

* add original fuzzy function

* add an ecu match if the date is within range (or date doesn't exist)

* add format for what we're going to do

* not working stash

* the exact matching function does more of what we want with less code and less custom logic

* we don't care about found versions, only codes and dates

* actually we do have an exception

* this works pretty nicely now

* up here

* this is better

* some minor clean up

* old function=now junk

* fix platform code test

* remove old platform code function

* now rename _new to

* use FW_QUERY_CONFIG

* clean up imports

* rename that too

* one line

* correct typing

correct typing

* draft tests

* so that works

* fixup excluded platform test now too

* this is tested by excluded platform test

* test parts and dates

* remove old comment

* old import

* take platform code stuff out of FwQueryConfig

* fix test

* revert debug script

* flip order

* make this a set by default

* revert this part

* correct typing

* clean up comments

* clean that test up too/pylint

* combine these three tests ina clean way

* not right

* more general

* be consistent with quotes

* comment

* comment

* comment in fw_versions

* flip order

* this is more readable

* could test all this, but it's tested in test_hyundai and doesn't do a lot here

* only assert brands which use this

* invalidate all CAN FD ICE and hybrid

* tuple

* can get away without filtering

* add comment reasons

* fix

* some review suggestions

* this works (first draft)

* this is better

* script to print platform codes and dates

* sanity check for dates are in correct ecus and platforms

* mypy

* better variable name and comment

* rename

* same

* slightly better name

* subset

* exclude platforms and live car without dates

* consistent

* self explan

* better name

* test to make sure the functions agree

* clean that up

* comment

* we get other responses from queries not in DB, only check any

* not used or typed
old-commit-hash: f788edb6a5c8d3f516076f886fe0d831ee43b580
2023-06-15 02:50:45 -07:00
Shane Smiskol 8e29e20860 FPv2: rename live FW versions dict (#28550)
rename
old-commit-hash: e771660fa331a34a111f1b5878c75adb50b216b8
2023-06-15 01:29:55 -07:00
Shane Smiskol 1b7d771059 exact matching: use set for invalid (#28537)
use set
old-commit-hash: fcc268b8be70e72654252e5424840ca37ad04196
2023-06-13 20:00:54 -07:00
Shane Smiskol 1a3b5137b6 FPv2: add comment about nuance of fuzzy fingerprinting (#28465)
add comment describing this nuance of fuzzy fingerprint function
old-commit-hash: 3234243c97c7c6bf6fb4bb1298a7fd262e697c04
2023-06-08 20:47:55 -07:00
Shane Smiskol 5482d71145 fuzzy fingerprint: track number of matching ECUs, not FW versions (#28423)
* first attempt trying to do it implicitly bad

* back to lists and explicitly do this

* continue checking if candidate switches on these, that's fine to check

* debugging

* clean up

* more clean up

* spot free

* only need to create/update on change

* fix test

* draft

* Revert "draft"

This reverts commit dbe32f58b172eddc8f9699044c6a5956e753305d.

* Revert "fix test"

This reverts commit 1d34269fe2de35d314aa0658fa47a78a08d93e08.

* fix test for real

* first draft of test

* this should be good

* can replace existing fuzzy test

* rm

* matching

* test non-empty fws

* TEST DOWN HERE

* no test

* unique + fix skip message + comment + clean up

* less confusing

* ing

* better
old-commit-hash: 9e8936be9863ea27c598685ee1b14775aa12cac4
2023-06-07 00:03:01 -07:00
Shane Smiskol 5cbd015f3a FPv2: test minimum fuzzy fingerprint ECUs (#28433)
* basic messy test

* draft

* clean up

* clean up

* clean up

* clean up

* never was fuzzy, but be explicit

* switch it up
old-commit-hash: 0acc30d2644729283cb3e3a6021c05e41f965ded
2023-06-06 21:38:10 -07:00
Shane Smiskol 9feba19670 FPv2: brand filter helper (#28439)
* pass in brand

* needs to be flipped for exact matching since it's subtractive

* new helper

* makes more sense flipped

* clean up

* not that stuff here

* not here
old-commit-hash: 2b07ec4bde5c7994d97746737cd40e2f3fa1adcd
2023-06-06 21:14:03 -07:00
Shane Smiskol 83f4532169 match_fw_to_car: pass down log (#28434)
pass in log from match_fw_to_car
old-commit-hash: 2dda9a0532dc9b848e53317bd1a6dab1ef83e5c3
2023-06-06 20:28:56 -07:00
Shane Smiskol e9806172a9 match_fw_to_car_exact: get config once per candidate (#28384)
lesss
old-commit-hash: 7c26fc716aa2611acc2e80ff19c138e9a077803c
2023-06-04 18:57:11 -07:00
Shane Smiskol b127fb0ee7 fw_versions: add some typing (#28369)
* typing

* sort

* brand addrs

* don't type match_fw_to_car_fuzzy

* or this unfortunately

* no space

* add back

* and this
old-commit-hash: 23430dd35f545f70a472668c67beaf005165bbfe
2023-06-02 13:02:04 -07:00
Shane Smiskol b76bd9b4b5 FPv2: only query brands with matching present ECUs (#27697)
* speed up fingerprinting for CAN fp cars

* add comment to describe this behavior

* more explicit, no defaultdict

* do this later

* fix

* a little more clear I think
old-commit-hash: 9b1095a27e6d9645ef64fcea3a6375117bccfe6e
2023-04-18 21:34:49 -07:00
Shane Smiskol 53bf3256f3 FPv2: match brand against extra ecus (#27688)
* query extra ecus (still need to match)

* match against extra ecus

* clean p

* clean p

* switch that around

* can clean that up

* values
old-commit-hash: 6f35d23c062ab000af90f5a0d7704eab8682479d
2023-03-25 01:07:58 -07:00
Shane Smiskol 5a3c857303 FPv2: replace temporary variable with config (#27692)
* query extra ecus (still need to match)

* match against extra ecus

* clean p

* clean p

* switch that around

* can clean that up

* values

* rm

* not used
old-commit-hash: 084e83cda1415189539755343e74e9342e7ec42d
2023-03-25 01:02:11 -07:00
Shane Smiskol b6897bce1a FPv2: only set multiplexing when needed (#27669)
* only set multiplexing if bus matters

* these don't matter anymore
old-commit-hash: 9e023b3eadcf4d8ed0b59fd5fbe4041342be322f
2023-03-24 00:29:48 -07:00
Shane Smiskol 7a56692c24 FPv2: log OBD multiplexed requests (#27667)
* log multiplexed requests

* bump cereal

* bump cereal to master
old-commit-hash: 2ad9eec882e6be5aff4ae6a55e3ffb6f76a3d85b
2023-03-24 00:25:37 -07:00
Shane Smiskol cdcf06e9e2 boardd: ability to switch between ELM safety params (#27656)
* indecisive

* rename to generic FW query

* remove code and update comment

* we need this to start off, unless we set multiplexing immediately

* draft

* draft 2

* try that

* can't do this either, boardd might read Enabled after removing, but before setting new Request param

* this should work

* use one less param

* fix params

* match behavior (set all pandas to safety param of 1, disabling multiplexing for fingerprinting

* clean up (some tests may temp break)

* fix param name and sort

* time it

* yes it does matter

* add to hyundai's bus 5 query

* remove hyundai for now

* this should work

* clean up

* clean up

* flip argument around, clean up

* fix test_startup

* some clean up

* rm line

* comment makes more sense

* required typing

* clean up common type

* comments

* Update selfdrive/car/car_helpers.py

* line

* whoops, need to set before vin!

* fix debug

* annoying

* more debugging

* bug fix (needs both keys always)

* debuGG

debuGG

* Revert "debuGG"

This reverts commit 55b2f429324c0b92d5cfb2cabf8b20db1e166248.

* Revert "more debugging"

This reverts commit 02934c3403ad5270f03093508b704c151d1ccb2a.

* Revert "annoying"

This reverts commit 8b4e5e09989f9a0217e3ec1c0ba68735929b7366.

* clean that up

* bumpback

* bumpback

* every second write param

* flip

* stuff

* move up?

* fix timing out in CI

* rm
old-commit-hash: 42449b482d46565242341ca2d7e3a7255572f6a2
2023-03-23 00:14:31 -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 d0254be7d5 Write boardd param to continue startup (#27354)
disable at the bottom
old-commit-hash: 5dde8f2c8436df9a11bfb11cf86dcfbf3f1ee874
2023-02-15 15:52:10 -08:00
Shane Smiskol cc456ad691 Honda Bosch: gather available ECUs from camera (#27180)
* add flag

* actually use in fw_versions.py

* simpler

* not here

* Comment

* better name

* add param and block

* keys

keys

* block

* with a value

with a value

* add query for bosch PT bus

* different name

* fix

* .

* fix test

fix test

* add cloulogs

* mark as logging
old-commit-hash: c4b84783a003479bc105e2f7a93d5e71c2e1c38f
2023-02-14 17:55:41 -08:00
Shane Smiskol cdfd691644 FPv2: log responses from data collection queries (#27345)
* log responses from logging/debugging queries

* don't add logging FW to FW dict for fingerprinting

* flip?

* fine before

* log if extra in debug ecus

* clean up

* test extra ecus too

* Revert "test extra ecus too"

This reverts commit 8f7867844db95f48631348551551148bf504e37b.

* bump to master
old-commit-hash: f29e19cf4238199eec142f9c7eab5936874e04de
2023-02-14 16:59:20 -08: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 6695cbf258 CAN-FD HKG: query FW versions from camera (#26063)
* add adas essential ecus

* add adas ecu and query

* add queries

* add name

* after

* presence of adas ecu

* Revert "presence of adas ecu" (POC)

This reverts commit ab88a7e7df32e1c02a175b81848bd4112b2e5c69.

* no whitelist for debugging

* Apply suggestions from code review

* add adas response

* remove adas version

* temp

* read pandaStates

* works in debug script

* only fwdCamera on tucson

* fix pandaStates reading

* fix test_startup

* fix

* simpler

* use existing socket

* pass in number of pandas

* need to create sm using outcome of fingerprinting, which uses sm

fix

* move default argument

* use sock

* always ignore

always ignore

* add canfd fingerprint test

* Update selfdrive/car/hyundai/tests/test_hyundai.py

* set
old-commit-hash: 7bf70bf7d8aaccd23ad0b0a9af8235eb939a617e
2022-10-17 23:04:06 -07:00
Shane Smiskol b85bf30a7e FPv2: support collecting versions for specific ecus (#25699)
* Add VMCU address for EV6

* Rename vmcu

* add to tests

add to tests

* rename to more generic name

* more explicit

* remove print

* Like this much better, removes subtle fingerprinting problems

* clean up

* add test and clean up

* remove hyundai stuffs

* global

* Fpv2Config class

* fix missing fw versions from import order

* unused

* revert for now

* test for fpv2 configs with subtests

* subtests don't work that way

* remove this

* .

* intersection

* print ecus

* shorter

* fix typing

* use config
old-commit-hash: 7e9961b9ac8c8e22197148d3741164c072200d3c
2022-10-13 17:40:07 -07:00
Shane Smiskol 11114b9789 Use tx_addr/sub_addr from query
old-commit-hash: 86f0632afdafe75869e07dd7e329f866579e60c9
2022-09-30 17:44:48 -07:00
Shane Smiskol bfc4d72402 IsoTpParallelQuery: don't return rx_addr (#25934)
* revert isotpparallelquery returning rx addr for functional special case

* we don't really use the tx addr (and soon won't make sense with fun querying)
old-commit-hash: 4d7f4b4c9db739c85989797b750226b0ec217f71
2022-09-30 16:01:22 -07:00
Shane Smiskol ab2eab0ffb Log more FW/VIN errors in qlogs (#25901)
* log VIN query errors

* Update fw_versions.py

* use exception

* post-commit
old-commit-hash: ba1c3cda41de2002a31591fe0b92eca63df683b5
2022-09-27 20:17:42 -07:00
Shane Smiskol ae77b7edc7 FPv2: move car-specific configuration into interfaces (#25711)
* Add VMCU address for EV6

* Rename vmcu

* add to tests

add to tests

* rename to more generic name

* more explicit

* remove print

* Like this much better, removes subtle fingerprinting problems

* clean up

* add test and clean up

* remove hyundai stuffs

* global

* Fpv2Config class

* fix missing fw versions from import order

* unused

* revert for now

* test for fpv2 configs with subtests

* subtests don't work that way

* do toyota as an example

* revert

revert

* do chrysler

* do rest

* stash

* much smaller of a diff than the alternative

* remove unused test

* fix tests

* remove brand from Request

* Make StandardQueries class

* add missing_ecus

clean up

* rename file

* unused

* test implemented

* add comment and rename

add comment and rename

add comment and rename

* should be impossible now

* this is a fixme

* rename to fw_query

* rename this too

* and this

* move vin queries to class

* order

* can use p16!

* formatting

* whoops, this wasn't gated on not len(found_versions)

* make this clear

* Standardize manufacturer software version query
old-commit-hash: 0ef6bb48df63fa07609c170b61584a1d3ef8c320
2022-09-09 16:24:29 -07:00
Adeeb Shihadeh 9d640eecd0 Ford Explorer 2020-21 (#25614)
* add model years

* update Focus steer ratio

* Ford: add EU label to Focus Mk4

* add packages

* add Ford Explorer 2020

Package: Co-Pilot 360 Assist+

Optional on XLT
Standard on Limited, Limited Hybrid, ST and Platinum

https://cdn.dealereprocess.org/cdn/brochures/ford/2020-explorer.pdf

* Ford: steering control with path angle

* Ford: add TJA toggle to buttons

* add Ford Explorer 2021

`62241b0c7fea4589|2022-08-30--11-58-24--0`

Package: Co-Pilot 360 Assist+

Optional on XLT
Standard on Limited, Limited Hybrid, ST and Platinum (same as 2020)

https://cdn.dealereprocess.org/cdn/brochures/ford/2021-explorer.pdf

* Ford: add shiftByWire ECU fw

* angle/steer refactor

* try always stop and go for US models

* no dashcam

* car info

* send resume button

* skip explorer

* escape and focus back in dashcam

* passthru buttons

* fordcan set bus for button message

* toggle off stock traffic jam assist so camera does not enforce driver presence checks

* not used

* update ramp rate/precision notes

* cleanup

* bump steering pressed torque to 0.8 Nm

* add standstill

* bump steer ratio

* try increasing delay?

* fix docs

* add kuga car info

* maybe fix tja toggle?

* compensate for ford roll compensation??

* oops

* better ui

* block non-adaptive

* add note on ui warning for hands on wheel

* try only checking/toggling TJA every 2 seconds

* add car test route

* dashcam only again

* send buttons to camera

* add process replay segment

* cleanup

* bump panda

* add extra FW

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
old-commit-hash: 9241de221099f6c65fd7ed5ed87d6296c17f668d
2022-09-08 15:49:51 -07:00
Cameron Clough 2347e913a0 rename esp ECU to abs (#25640)
* rename esp ecu to abs

* bump cereal
old-commit-hash: e9c87daef6534906c728da9a191866926bbfbfe4
2022-09-07 14:25:57 -07:00
Shane Smiskol 386163d09f Chrysler: add missing hybrid ecus (#25606)
* add missing hybrid ecus

* rename to hcp

rename to hcp
old-commit-hash: c7bae57924e81856128d44f124a8e52e5aea2764
2022-08-30 23:33:35 -07:00
Shane Smiskol 5a90c01ec9 Chrysler: add engine-specific FW request for some cars (#25503)
* Try to get Chrysler engine FW

* try this

* Get engine FW for certain Chrysler

* Add our Ram's engine FW

* better name

* no whitelist

* engine and transmission only
old-commit-hash: 08510e2b0a77a2adab90c24c5f560b7a0e3816f7
2022-08-25 11:44:57 -07:00
Shane Smiskol 48b0f4f810 Chrysler: whitelist FPv2 queries (#25549)
* Add whitelist to Chrysler queries

* gateway will respond to both (same 29-bit rx addr)

* missing esp
old-commit-hash: 70f2891928a3b7b89d19d57dfd7f1197806e2204
2022-08-24 16:06:11 -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 1cc3755472 Toyota: FW fingerprint on bus 0 (#25277)
old-commit-hash: da8d8a212141571d2f07ce944af380edae9e62dc
2022-07-28 11:02:42 -07:00
Shane Smiskol aedfdb5f23 fw_versions: fix ECU scanning (#25283)
Fix when scanning
old-commit-hash: 5a6b0a9f4ca065a14abe085c47bac0ef36455c9b
2022-07-25 19:08:56 -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
Cameron Clough 9cc4a6b45f Ford FPv2: send engine FW request to OBD port (#25202)
* ford fw request on OBD port too

* Ford: whitelist fw query for ecu type
old-commit-hash: a80324528942e2df1a6f27df65583976c0b1bdbc
2022-07-18 17:29:16 -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
Cameron Clough c3003f816b Ford: FPv2 firmware request (#24211)
old-commit-hash: 98a0cd9455ad4ae02145d0653c0dabdfab0b3f0f
2022-07-15 11:42:13 -07:00
Shane Smiskol 661655b4cf Log VIN response address (#25148)
* log vin rx addr

* clean up
old-commit-hash: 3a8f17111c3439cb22eb627aec805898d9d9a41a
2022-07-13 01:10:56 -07:00
Shane Smiskol 4fd8be115b fw_versions.py: fix debug scanning (#25144)
* Fix scanning all requests

* fix replace
old-commit-hash: 00bb07f6248010afb197854257c2958433159990
2022-07-12 17:45:00 -07:00
Greg Hogan faa52be88c firmware fingerprinting: order brand requests (#23311)
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 89d1d9f6df6e1fbe65609fa8f93702479620a50e
2022-07-09 00:55:40 -07:00