Skip to content

usb7/CAN-demo-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python3 demo code to receive and send CAN signals.

# Install and configure

# Log into CAN board and run below command
sudo pip3 install cantools

# configure can0 interface
sudo ip link set can0 type can bitrate 500000
sudo ifconfig can0 up
# Usage

# Receive from CAN bus and decode
./receive.py --bus can0 --dbc ./Model3CAN.dbc

# Send CAN signals to CAN bus
./send.py --bus can0 --dbc ./Model3CAN.dbc --signal VCFRONT_turnSignalLeftStatus --value 1

Releases

No releases published

Packages

No packages published

Languages