p1010rdb-pb上有两个can口,我把板子附送的两根can线的db9母头拆了,用这两根线把两can口连起来,L接L,地接地,H接H,然后用sdk里的cantest程序测试,发现两个can口分别只能接到自己的信息,不接起来的话两个can口都接不到自己的信息
root@p1010rdb-pb:~# cantest can1 &
[1] 2560
root@p1010rdb-pb:~# cantest can1 123#12
flexcan ffe1d000.can can1: XMIT done
read 16 bytes
123 [1] 12
[1]+ Done cantest can1
root@p1010rdb-pb:~# cantest can0 &
[1] 2556
root@p1010rdb-pb:~# cantest can0 123#12
flexcan ffe1c000.can can0: XMIT done
read 16 bytes
123 [1] 12
[1]+ Done cantest can0
root@p1010rdb-pb:~# cantest can1 &
[1] 2551
root@p1010rdb-pb:~# cantest can0 123#12
flexcan ffe1c000.can can0: XMIT done
root@p1010rdb-pb:~# cantest can1 &
[2] 2553
root@p1010rdb-pb:~# cantest can0 123#12
flexcan ffe1c000.can can0: XMIT done
root@p1010rdb-pb:~# cantest can1 123#12
flexcan ffe1d000.can can1: XMIT done
read 16 bytes
123 [1] 12
read 16 bytes
123 [1] 12
[1]- Done cantest can1
[2]+ Done cantest can1
这是怎么回事,求教 |