nopenpilot/selfdrive/debug
Jason Young 4416c21b1e
VW MQB: EPS configuration tool (#23737)
* VW MQB: EPS configuration tool

* a bit more help text

* typo

* Update selfdrive/debug/vw_mqb_config.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* Update selfdrive/debug/vw_mqb_config.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* better handling of vendor constants

* comment tweak

* more constant clarity

* move help text to argparse

* add parameterization parsing

* refactor param read, skip length byte

* touch up section headers

* removing; low value and acting weird

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-02-10 13:57:12 -08:00
..
internal Pyupgrade 3.6: Update syntax with Python 3.6+ features (#23305) 2021-12-24 11:18:39 -08:00
profiling profiler setup 2022-01-21 21:59:40 -08:00
README.md VW MQB: EPS configuration tool (#23737) 2022-02-10 13:57:12 -08:00
__init__.py selfdrive/debug 2020-01-17 11:23:21 -08:00
adb.sh bringing the android to agnos 2022-01-21 21:25:23 -08:00
can_print_changes.py Script to print new bitflips on CAN (#21294) 2021-06-16 15:46:34 +02:00
can_printer.py can_printer.py: default no ascii 2022-01-13 15:50:50 +01:00
check_freq.py Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
check_lag.py Run mypy commit hook (#1591) 2020-05-28 15:05:04 -07:00
check_timings.py tici: affine loggerd to efficiency cores (#22581) 2021-10-18 13:21:24 -07:00
compare_fingerprints.py Update Flake8 config (#1624) 2020-06-03 16:13:34 -07:00
count_events.py count_events: handle missing logs 2021-10-25 10:25:23 -07:00
cpu_usage_stat.py Pyupgrade 3.6: Update syntax with Python 3.6+ features (#23305) 2021-12-24 11:18:39 -08:00
cycle_alerts.py alerts: escalate soft disable alert near disengagement (#23198) 2021-12-11 17:07:37 -08:00
disable_ecu.py Hyundai longitudinal prerequisites (#22121) 2021-09-13 22:03:08 -07:00
dump.py Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
filter_log_message.py RobustLogReader that can recover corrupted bz2 files (#22835) 2021-11-10 16:41:00 +01:00
fingerprint_from_route.py MultiLogIterator: remove wraparound mode (#23360) 2022-01-02 15:16:44 -08:00
get_fingerprint.py Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
hyundai_enable_radar_points.py hyundai enable radar points script cleanup (#23451) 2022-01-08 07:55:48 -08:00
live_cpu_and_temp.py Convert format strings strings to f-strings (#23241) 2021-12-16 14:58:17 +01:00
run_process_on_route.py MultiLogIterator: remove wraparound mode (#23360) 2022-01-02 15:16:44 -08:00
set_car_params.py fix car params setter script 2021-06-01 20:59:03 -07:00
show_matching_cars.py Update CI tests for CAN fingerprinting deprecation (#21043) 2021-05-26 14:02:42 -07:00
test_fw_query_on_routes.py Make pandaState and safetyMode a list (#22454) 2021-10-08 17:54:34 +02:00
toyota_eps_factor.py MultiLogIterator: remove wraparound mode (#23360) 2022-01-02 15:16:44 -08:00
uiview.py set pandaType in debug scripts (#22897) 2021-11-13 11:54:29 -08:00
vw_mqb_config.py VW MQB: EPS configuration tool (#23737) 2022-02-10 13:57:12 -08:00

README.md

debug scripts

can_printer.py

usage: can_printer.py [-h] [--bus BUS] [--max_msg MAX_MSG] [--addr ADDR]

simple CAN data viewer

optional arguments:
  -h, --help         show this help message and exit
  --bus BUS          CAN bus to print out (default: 0)
  --max_msg MAX_MSG  max addr (default: None)
  --addr ADDR

dump.py

usage: dump.py [-h] [--pipe] [--raw] [--json] [--dump-json] [--no-print] [--addr ADDR] [--values VALUES] [socket [socket ...]]

Dump communcation sockets. See cereal/services.py for a complete list of available sockets.

positional arguments:
  socket           socket names to dump. defaults to all services defined in cereal

optional arguments:
  -h, --help       show this help message and exit
  --pipe
  --raw
  --json
  --dump-json
  --no-print
  --addr ADDR
  --values VALUES  values to monitor (instead of entire event)

vw_mqb_config.py

usage: vw_mqb_config.py [-h] [--debug] {enable,show,disable}

Shows Volkswagen EPS software and coding info, and enables or disables Heading Control
Assist (Lane Assist). Useful for enabling HCA on cars without factory Lane Assist that want
to use openpilot integrated at the CAN gateway (J533).

positional arguments:
  {enable,show,disable}
                        show or modify current EPS HCA config

optional arguments:
  -h, --help            show this help message and exit
  --debug               enable ISO-TP/UDS stack debugging output

This tool is meant to run directly on a vehicle-installed comma two or comma three, with
the openpilot/tmux processes stopped. It should also work on a separate PC with a USB-
attached comma panda. Vehicle ignition must be on. Recommend engine not be running when
making changes. Must turn ignition off and on again for any changes to take effect.