sama5d36 can0 can1 测试
1 删除/bin/ip
保留/sbin/ip
2 ip link set can0 type can bitrate 125000
ip link set can1 type can bitrate 125000
3 ifconfig can0 up
ifconfig can1 up
4 ip link show
$2: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 10
link/can
$3: can1: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 10
link/can
5 can0-----can1 loop测试
e.g. 5A1#11.2233.44556677.88 / 123#DEADBEEF / 5AA# / 123##1 / 213##311
1F334455#1122334455667788 / 123#R for remote transmission request.
# cansend can1 5A1#11.2233.44556677.88
# cansend can1 5A1#11.2233.44556677.88
# cansend can1 5A1#11.2233.44556677.88
# cansend can1 5A1#11.2233.44556677.88
# cansend can1 5A1#11.2233.44556677.88
# cansend can1 5A1#11.2233.44556677.88
# cansend can1 5A1#11.2233.44556677.88
# cansend can1 5A1#11.2233.44556677.88
# cansend can1 5A1#11.2233.44556677.88
# cansend can1 5A1#11.2233.44556677.88
6
# candump can0
can0 5A1 [8] 11 22 33 44 55 66 77 88
can0 5A1 [8] 11 22 33 44 55 66 77 88
can0 5A1 [8] 11 22 33 44 55 66 77 88
can0 5A1 [8] 11 22 33 44 55 66 77 88
can0 5A1 [8] 11 22 33 44 55 66 77 88
can0 5A1 [8] 11 22 33 44 55 66 77 88
can0 5A1 [8] 11 22 33 44 55 66 77 88
can0 5A1 [8] 11 22 33 44 55 66 77 88
can0 5A1 [8] 11 22 33 44 55 66 77 88
can0 5A1 [8] 11 22 33 44 55 66 77 88