配上 [*] iproute2

CAN启动:
关闭CAN:
ip link set can0 down
设置比特率500KHz:
ip link set can0 type can bitrate 500000
打印can0信息:
ip -details link show can0
启动CAN:
ip link set can0 up
发送数据
cansend can0 -i 8 -e 0x11 0x22 0x33 0x44 0x55 0x66 0x77
0x99
完美解决
原作者:Mr.云舒
更多回帖