[root@ok3568:/]# ifconfig can0 down
[root@ok3568:/]# ifconfig can1 down
[root@ok3568:/]# ip link set can0 up type can bitrate 1000000 sample-point 0.75 dbitrate 5000000 dsample-point 0.8 fd on
[root@ok3568:/]# ip link set can1 up type can bitrate 1000000 sample-point 0.75 dbitrate 5000000 dsample-point 0.8 fd on
[root@ok3568:/]# ifconfig can0 up
[root@ok3568:/]# ifconfig can1 up
can0设备当服务端(服务端先执行以下命令)
[root@ok3568:/]# candump can0&
can1设备当客户端(客户端发送数据)
[root@ok3568:/]# cansend can1 123#1aabbccddaabbccd
can0 123 [8] 1A AB BC CD DA AB BC CD