Scripts to convert input from a CANdapter (CAN bus to USB interface) to human-readable output. Supports CAN message decoding for the TPEE SEC-B175-7A MPPT and the Prohelion Wavesculptor 22 Motor Controller used on the 2025 Longhorn Racing Solar car. This script can be extended to any device by adding a device description file (.dbc) to the files directory.
Run pip3 install -r requirements.txt in your virtual environment to install the necessary dependencies.
Run py main.py and follow the prompts to enter your device base address and default address. To change the COM port, serial baud rate, or CAN baud rate, set the port, serialbaudrate, and canbaudrate configuration variables. Alternatively, use the command line flags as outlined below for one-line execution:
-p PORT (CANdapter COM Port)
-s SERIAL (Serial Baud Rate)
-c CAN (CAN Baud Rate)
-i DEVICE_ID (Device Base Address)
-d DEFAULT_ID (Default Base Address)
pyCandapter.py is from https://github.com/Anay1440/pyCandapter developed by Anay Patil, used under the MIT License (thx goat).