Files
StarPilot/selfdrive/debug/car/disable_ecu.py
T
Shane Smiskol 51ea9f5799 move live fingerprint debugging code to debug/car (#33308)
* remove cereal from fw_versions

* fix it

* do ecu_addrs and vin

* do last one

* move executable-ness

* notexe

* nice test
old-commit-hash: 2ed567b0f576179cd8d03727f46ee4e579c2c989
2024-08-14 19:24:24 -07:00

16 lines
554 B
Python
Executable File

#!/usr/bin/env python3
import time
import cereal.messaging as messaging
from openpilot.selfdrive.car.card import can_comm_callbacks
from openpilot.selfdrive.car.disable_ecu import disable_ecu
if __name__ == "__main__":
sendcan = messaging.pub_sock('sendcan')
logcan = messaging.sub_sock('can')
can_callbacks = can_comm_callbacks(logcan, sendcan)
time.sleep(1)
# honda bosch radar disable
disabled = disable_ecu(*can_callbacks, bus=1, addr=0x18DAB0F1, com_cont_req=b'\x28\x83\x03', timeout=0.5, debug=False)
print(f"disabled: {disabled}")