This is a script that will read the canbus messages of the infotainment netwok, specifically the steeing wheel buttons, and pass the commands to the API.
https://pastebin.com/SAxuYfsx
I do get this error though
Code: Select all
Traceback (most recent call last):
File "/home/io/Scripts/Canbus/hudiy-canbus.py", line 153, in <module>
main()
~~~~^^
File "/home/io/Scripts/Canbus/hudiy-canbus.py", line 140, in main
client.connect('127.0.0.1', 44405)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/home/io/Scripts/Canbus/common/Client.py", line 114, in connect
self._socket.connect((hostname, port))
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
ConnectionRefusedError: [Errno 111] Connection refused
SocketcanBus was not properly shut down