Commit Graph

21 Commits

Author SHA1 Message Date
Shane Smiskol 7287ff0cbf
query_fw_versions: ignore 29 bit addresses option (#1973)
fix
2024-06-12 19:21:38 -07:00
Cameron Clough 0c7d5f11d7
use pyupgrade to update syntax (#1889) 2024-02-24 13:56:28 -08:00
Shane Smiskol 7babe4cf6f query_fw_versions.py: fix undefined variable 2023-06-24 05:21:08 -07:00
Shane Smiskol 82cbc449b3 query_fw_versions: print rare and useful exception 2023-06-23 20:37:54 -07:00
Shane Smiskol 7af22677f7
CanClient: check invalid sub-addresses (#1483)
* check/catch invalid sub-addresses

* clean up

* break to next addr on first receipt of bad subaddr
2023-06-23 16:33:12 -07:00
Shane Smiskol 7ec16c5edd
query_fw_versions: sub-address support (#1482)
* first draft

* cleaner and supports scanning all subaddrs for all addrs

* clean up

* full

* rm

* and now print

* revert

* consistency

* add comment

* add subaddr to tqdm description

* without a stupid `a = 1; if a == 1...` check, comment is best workaround
2023-06-22 20:15:42 -07:00
Shane Smiskol bdf39a451e
Panda: context manager support (#1209)
* add __enter__ & __exit__ to Panda

* some examples

* another example

* even more

* use it here too
2023-01-13 16:17:20 -08:00
Cameron Clough 520b9f1a8e
examples: choose panda for fw query (#1076)
* examples: choose panda for fw query

* add type names

* add types and names to lists

* cleanup

* better output

* exit code

* dict

* delete

* get_type returns a bytearray

* simplify (okay to rely on Panda for this error catching)

* finish up

* not required for our use case

* clean up

* revert

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-13 15:24:25 -08:00
Shane Smiskol 6f26866245
query_fw_versions: add arg to not multiplex bus 1 to OBD-II port (#1210)
* add arg to not multiplex (useful for auxpanda)

* formatting

* consistent quotes
2023-01-13 15:20:42 -08:00
Adeeb Shihadeh 7e843b370d
allow disabling heartbeat while in non-car safety mode (#1035)
* allow disabling heartbeat while in non-car safety mode

* simple test

* clean that up

* remove that
2022-08-17 22:42:18 -07:00
Adeeb Shihadeh c7c33219ed delete copy and pasted heartbeat thread 2022-08-17 16:43:22 -07:00
Igor Biletksyy e42402bc40 examples: query_fw_versions.py forgot import 2022-08-17 16:10:37 -07:00
Igor Biletksyy 600be16459 examples: fix query_fw_versions.py heartbeat 2022-08-17 15:55:49 -07:00
Greg Hogan fcd064345a
python: disable power save by default when setting safety mode (#725)
* python: disable power save by default when setting safety mode

* no need to set power save manually

* Update python/__init__.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-23 23:12:36 -07:00
Greg Hogan 2570770f7b
UDS: add response pending timeout (#723)
* Extend ISO-TP subsequent frame timeout, add response pending timeout and extra debug info

* Change response_pending to local variable, move response_pending_timeout to UdsClient, update ISO-TP debug output

* Set UDS request pending timeout to 6 seconds (ISO 14229-2:2013 section 7.2 recommended value + 1 second latency)

* manage response pending in single location

* more generous response pending timeout

* add tx timeout

* fix lint error

* fix rx addr for 29 bit addrs

* fix linting issue

Co-authored-by: Martin Lillepuu <martin@mlp.ee>
2021-09-23 18:21:21 -07:00
Jason Young afd999b283
UDS fingerprinting development tool updates (#681)
* WIP for UDS FP development

* WIP for UDS FP development

* WIP for UDS FP development

* propitiate mypy

* Update examples/query_fw_versions.py

* Update examples/query_fw_versions.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-07-11 00:44:25 -07:00
Adeeb d7f7b14118
Enable almost all Flake8 checks (#548)
* fix W391

* E262

* E703

* W293

* some E

* E231

* some more E

* E225

* more E

* E252

* no tabs

* more tabs

* E701

* uds.py

* almost all of them

* only e265 left

* not sure why this is triggering on commented out code

* ignore esptool
2020-06-01 01:49:26 -07:00
Greg Hogan ac0fd5dd5d query fw versions example - use extended diagnostic session 2019-12-13 11:45:10 -08:00
Greg Hogan d44b5621cd fix print in example 2019-11-17 11:19:59 -08:00
Greg Hogan 02d579a537 functional addr handling 2019-11-17 09:30:06 -08:00
Greg Hogan 8138fc14c8 uds: handle function addrs and fw version query example 2019-11-16 18:54:28 -08:00