Commit Graph

34 Commits

Author SHA1 Message Date
Shane Smiskol a7db075f08 selfdrive/car: generic CAN send/receive callbacks (#33215)
* start

* hmm API doesn't seem great

* better

* rm line

* sendcan -> can_send callable for best static type coverage, list -> tuple msg

TODO: logcan

* more sendcan -> can_send references

* remove pandad's capnp from selfdrive/car

* fix and remove cereal from test_can_fingerprint

* test_fw_fingerprint: remove pandad, less cereal

* comment done too

* better comment

* fix test_models test

* niceeee it works

* move to can_definitions

* can't come up with a better name :(

* I think we can remove SimpleNamespace soon

* fix test_can_fingerprint.py

* maintain previous behavior

* Revert "maintain previous behavior"

This reverts commit f848fd32132391692c6191a305bb38f74091ec91.

* can test comment

* no need for get_one_can now!

* big clean up: no SimpleNamespace

* now self explanatory!

* not needed

* use empty can again since this is now real

* cmt
old-commit-hash: 9880b1393c7bfc2b71aec01b6b91caffb72f9cc0
2024-08-07 23:49:25 -07:00
Shane Smiskol cfc2cda37c separate car logger forwarded to cloudlog (#33170)
* car logger

* try this

* fix double printing!

* clean up

* need to import where we actually use it (card won't be in submodule)

* NullHandler does not forward everything properly, need propagate=False to stop root logger from printing

* card is staying

* set up

* forward
old-commit-hash: 12a7b7f7fb1d3a275314b0232795942a7ff3b955
2024-08-05 12:31:31 -07:00
Shane Smiskol 73e68010ae VW: get VIN from camera without comma power (#31851)
* add VW camera to VIN addrs

* correct VW query

* consistent

* update refs
old-commit-hash: 22aa9a436dcd6434706931a78d6381e2fc66d78b
2024-04-08 16:36:13 -07:00
Shane Smiskol df43e2539d 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!
old-commit-hash: c65dfaac68bbf836900dd612a33667cb00cdf854
2024-02-14 20:06:14 -08:00
Shane Smiskol 8e7578fc23 VIN: lower retries (#31471)
* lower retries

* comment
old-commit-hash: 9acc55861cfe5f78bca6d46762b38c4f5903ea6c
2024-02-14 17:08:12 -08:00
Shane Smiskol e5099a0c64 VIN: fix rx addr (#31369)
fix rx vin addr
old-commit-hash: b6d195f0100bfc86ccefa0eed49716eaf57c1c6b
2024-02-07 21:43:52 -08:00
Shane Smiskol 11a727dee6 get_vin: respond to full 11-bit diagnostic address range (#31317)
* fix

* not 7df

* cleaner

* whop
old-commit-hash: 618366be061024f9252043aab4a48194343690f8
2024-02-05 21:52:06 -08:00
Shane Smiskol c3dc8a27f1 log vin request to qlog (#31314)
old-commit-hash: cd153e637631d8f4eeaf530dff7510ed6d73c071
2024-02-05 20:30:33 -08:00
Shane Smiskol b2fcda8419 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
old-commit-hash: c3fcf75737b28efe05bf78c4ec886482749844c6
2024-01-29 23:24:21 -08:00
Shane Smiskol d9bd51192f vin: fix retry logging (#31225)
* retry should really be outside inner query loop

* just req

* nls

* bump

* rmnl

* useful to have

* is it though
old-commit-hash: 3a0033e81eec20f640c0d9be57b7f7da9a97d99d
2024-01-29 21:28:29 -08:00
Shane Smiskol 7c70aef5de vin: reduce retries (#31175)
reduce retries
old-commit-hash: c99cd3251b6a283be43fd301273baf78553c9c43
2024-01-25 22:40:39 -08:00
Shane Smiskol ff6ae8f1b9 VIN: query on bus 0 to log data (#31165)
* query on bus 0

* fix

* log vin_rx_bus

* fix!
old-commit-hash: 289868297eb2646acb8c62cec27ce77027d09ac7
2024-01-25 18:01:49 -08:00
Adeeb Shihadeh 59eb2988de swaglog.py goes in common/ (#30631)
* swaglog.py goes in common/

* all of these go in release

* we'll even include the pyx
old-commit-hash: 35f819c8239b8ac3a000087a0f791b91ccea5e5e
2023-12-06 17:27:51 -08: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 90d4906aa9 VIN: make Ford exception more explicit (#25972)
* Update vin.py

* only replace from end
old-commit-hash: 7ed064f7baff36b08713729c9c99304ef0224a58
2022-10-04 20:38:39 -07:00
Shane Smiskol 1cb7a7def9 Ford: handle VIN (#25966)
fix ford vin
old-commit-hash: de67a28f1bae5f3677c57ed179baf8bf9c1d971d
2022-10-04 19:21:23 -07:00
Shane Smiskol f7a315e995 VIN query: switch to functional address (#25933)
* stash

* go in defined order

* \n feels cleaner
old-commit-hash: 68cc53a0852fc1ec620c81d996b868fa26048ca2
2022-09-30 20:29:54 -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 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 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
Shane Smiskol c2e561aa73 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
old-commit-hash: 0697ca223974f2361ca655506ceab7d18917b9de
2022-08-29 22:51:50 -07:00
Adeeb Shihadeh 3e260b0a73 check vin validity (#25199)
old-commit-hash: 6b74be53ae83d255e3513e336b8ed9efbd52a182
2022-07-25 13:31:39 -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 a891e7085c Interleave VIN queries (#25090)
Interleave the two requests
old-commit-hash: 4c493237d52525d2effb95b5cda96b36a684303c
2022-07-08 19:36:09 -07:00
Adeeb Shihadeh 3c48bc47b7 Move a bunch of stuff to system/ part 3 (#24829)
* move swaglog.py

* timezoned

* logmessaged

* version.py

* fix linter
old-commit-hash: 0fce5d90459b77bf2cfa70f55f322f0e1fb8d01c
2022-06-11 23:19:27 -07:00
Willem Melching 86ec883c1a correctly parse UDS VIN response for Honda Bosch (#24710)
old-commit-hash: dc2172b55e1e848476eceb014d8e3eea82c7eb5a
2022-06-02 12:20:56 +02:00
Adeeb Shihadeh 8d3dbf7312 Add UDS VIN query (#24311)
* Switch to UDS VIN query

* try both

* fall back to obd
old-commit-hash: 7d2ba9b0a43d6c7cfe463968b9fc0c2b6557b00b
2022-06-01 13:29:22 -07:00
George Hotz 9ef085076b selfdrive/car
old-commit-hash: 71ead9adea
2020-01-17 10:58:43 -08:00
George Hotz 81dd5a50cf root commit
old-commit-hash: 6c33a5c1f3
2020-01-17 10:02:52 -08:00
Vehicle Researcher fa4b6f33d1 openpilot v0.7.1 release
old-commit-hash: 8da8b6135c
2020-01-15 14:05:04 -08:00
Vehicle Researcher 99b637c7ce openpilot v0.7 release
old-commit-hash: c025b96e8a
2019-12-13 13:03:08 -08:00
Vehicle Researcher b713eae9f8 openpilot v0.6.6 release
old-commit-hash: d7f0b402a8
2019-11-04 15:13:52 -08:00
Vehicle Researcher 89d1d84c70 openpilot v0.6.5 release
old-commit-hash: cf80f7a28b
2019-10-09 18:43:53 +00:00