# CAN-demo-python **Repository Path**: usb7/can-demo-python ## Basic Information - **Project Name**: CAN-demo-python - **Description**: Python3的演示代码,发送和接收CAN数据。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-20 - **Last Updated**: 2024-06-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Python3的演示代码,发送和接收CAN数据。 === 依赖 === ```bash sudo pip3 install cantools # can的配置 sudo ip link set can0 type can bitrate 500000 sudo ifconfig can0 up ``` 使用 === ```bash # 打开一个终端 ./receive.py --bus can0 --dbc ./Model3CAN.dbc ``` ```bash # 另外打开一个终端 ./send.py --bus can0 --dbc ./Model3CAN.dbc --signal VCFRONT_turnSignalLeftStatus --value 1 ```