这是loopback下的输出
noot@linaro-ubuntu-desktop:~# ip link set can0 type can bitrate 50000 loopback
root@linaro-ubuntu-desktop:~# ip link set can0 up
root@linaro-ubuntu-desktop:~# candump can0 &
[1] 3545
root@linaro-ubuntu-desktop:~# interface = can0, family = 29, type = 3, proto = 1
cansend can0 -i0x100 01 02 03 04
interface = can0, family = 29, type = 3, proto = 1
<0x100> [4] 01 02 03 04
root@linaro-ubuntu-desktop:~# cansend can0 -i0x100 01 02 03 05
interface = can0, family = 29, type = 3, proto = 1
<0x100> [4] 01 02 03 05
root@linaro-ubuntu-desktop:~# ip -details link show can0
2: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN qlen 10
link/can
can <LOOPBACK> state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
bitrate 50000 sample-point 0.866
tq 1333 prop-seg 6 phase-seg1 6 phase-seg2 2 sjw 1
flexcan: tseg1 4..16 tseg2 2..8 sjw 1..4 brp 1..256 brp-inc 1
clock 30000000
|