Commit Graph

27 Commits

Author SHA1 Message Date
Shane Smiskol
22aa9a436d VW: get VIN from camera without comma power (#31851)
* add VW camera to VIN addrs

* correct VW query

* consistent

* update refs
2024-04-08 16:36:13 -07:00
Shane Smiskol
c65dfaac68 Leaf: get VIN (#31398)
* Add Leaf VIN query

* add lots of requests

* add exception for nissan

* no more logging

* update refs

* lower worst case

* Update selfdrive/car/car_helpers.py

* update refs

* it's the vcm!
2024-02-14 20:06:14 -08:00
Shane Smiskol
9acc55861c VIN: lower retries (#31471)
* lower retries

* comment
2024-02-14 17:08:12 -08:00
Shane Smiskol
b6d195f010 VIN: fix rx addr (#31369)
fix rx vin addr
2024-02-07 21:43:52 -08:00
Shane Smiskol
618366be06 get_vin: respond to full 11-bit diagnostic address range (#31317)
* fix

* not 7df

* cleaner

* whop
2024-02-05 21:52:06 -08:00
Shane Smiskol
cd153e6376 log vin request to qlog (#31314) 2024-02-05 20:30:33 -08:00
Shane Smiskol
c3fcf75737 GM camera ACC: get VIN from camera (#31224)
* bump

* gm vin

* that's not right

* only check relevant buses

* instead try queries for each bus first

* clean up

* use default retry in function

* all
2024-01-29 23:24:21 -08:00
Shane Smiskol
3a0033e81e vin: fix retry logging (#31225)
* retry should really be outside inner query loop

* just req

* nls

* bump

* rmnl

* useful to have

* is it though
2024-01-29 21:28:29 -08:00
Shane Smiskol
c99cd3251b vin: reduce retries (#31175)
reduce retries
2024-01-25 22:40:39 -08:00
Shane Smiskol
289868297e VIN: query on bus 0 to log data (#31165)
* query on bus 0

* fix

* log vin_rx_bus

* fix!
2024-01-25 18:01:49 -08:00
Adeeb Shihadeh
35f819c823 swaglog.py goes in common/ (#30631)
* swaglog.py goes in common/

* all of these go in release

* we'll even include the pyx
2023-12-06 17:27:51 -08:00
Adeeb Shihadeh
a9626f95b6 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
2023-08-20 20:49:55 -07:00
Shane Smiskol
7ed064f7ba VIN: make Ford exception more explicit (#25972)
* Update vin.py

* only replace from end
2022-10-04 20:38:39 -07:00
Shane Smiskol
de67a28f1b Ford: handle VIN (#25966)
fix ford vin
2022-10-04 19:21:23 -07:00
Shane Smiskol
68cc53a085 VIN query: switch to functional address (#25933)
* stash

* go in defined order

* \n feels cleaner
2022-09-30 20:29:54 -07:00
Shane Smiskol
4d7f4b4c9d 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)
2022-09-30 16:01:22 -07:00
Shane Smiskol
0ec8546042 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
2022-09-28 14:01:17 -07:00
Shane Smiskol
ba1c3cda41 Log more FW/VIN errors in qlogs (#25901)
* log VIN query errors

* Update fw_versions.py

* use exception

* post-commit
2022-09-27 20:17:42 -07:00
Shane Smiskol
0ef6bb48df 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
2022-09-09 16:24:29 -07:00
Shane Smiskol
0697ca2239 VIN: query physical addresses (#25122)
* Try engine and VMCU addrs for VIN

* Add address for Honda

* Update selfdrive/car/vin.py

* Update selfdrive/car/vin.py

* Update selfdrive/car/vin.py
2022-08-29 22:51:50 -07:00
Adeeb Shihadeh
6b74be53ae check vin validity (#25199) 2022-07-25 13:31:39 -07:00
Shane Smiskol
3a8f17111c Log VIN response address (#25148)
* log vin rx addr

* clean up
2022-07-13 01:10:56 -07:00
Shane Smiskol
4c493237d5 Interleave VIN queries (#25090)
Interleave the two requests
2022-07-08 19:36:09 -07:00
Adeeb Shihadeh
0fce5d9045 Move a bunch of stuff to system/ part 3 (#24829)
* move swaglog.py

* timezoned

* logmessaged

* version.py

* fix linter
2022-06-11 23:19:27 -07:00
Willem Melching
dc2172b55e correctly parse UDS VIN response for Honda Bosch (#24710) 2022-06-02 12:20:56 +02:00
Adeeb Shihadeh
7d2ba9b0a4 Add UDS VIN query (#24311)
* Switch to UDS VIN query

* try both

* fall back to obd
2022-06-01 13:29:22 -07:00
George Hotz
71ead9adea selfdrive/car 2020-01-17 10:58:43 -08:00