Python tools for bridging CAN bus to other protocols such as UDP. Intended primarily for use with PlotJuggler. Presently only UDP is supported, WebSocket support may be added in the future.
#Supported CAN Interfaces Currently PCAN and IXXAT USB-CAN adapters are supported, as well as socketCAN on Linux. The script can be easily modified to include other options supported by python-can. Presently only the PCAN interface on Windows has been tested.
- Python 3 (developed with 3.6.4)
- python-can
- cantools
- gooey
Installation of CAN drivers is not covered here. See the appropriate manufacturer website for your USB-CAN adapter.
pip install python-can
pip install cantools
pip install gooey
Call the script from the command line to launch the GUI:
python can_udp_bridge.py
Follow the instrucitons on-screen for configuring the tool:
To configure PlotJuggler, select the UDP Server streaming option and then click "start" to launch the configuration screen:
An example configuration for PlotJuggler is shown below: