ip link set can0 down
ip link set can0 type can bitrate 50000
ip link set can0 type can bitrate 50000 loopback off
ip link set can0 up
ip link set can1 down
ip link set can1 type can bitrate 50000
ip link set can1 type can bitrate 50000 loopback off
ip link set can1 up
cansend can1 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88
ip -d -s link show can0
Transmit 4 bytes with standard packet id number as 0x123
# cansend can1 123#DEADBEEF
CAN 测试的常用命令
于 2021-12-17 10:00:35 首次发布