Hello 大家好:
我在使用AM3352时, 单独测试 can0 / can1 收发都是正常, 同时使用can0 & can1 时, can1 被 block 住, 一直在等 can0 释放 can1 才可以接收资料.
Linux Kernel : linux-rt-4.19.38+gitAUTOINC+1224cd679e-g1224cd679e
两片板子can1 接在一起, 测试步骤如下:
第一片板子
$ /bin/ip link set can0 type can bitrate 1000000;/bin/ip link set can0 up
$ /bin/ip link set can1 type can bitrate 1000000;/bin/ip link set can1 up
$ candump can0 &
$ candump can1 &
第二片板子
$ /bin/ip link set can0 type can bitrate 1000000;/bin/ip link set can0 up
$ /bin/ip link set can1 type can bitrate 1000000;/bin/ip link set can1 up
$cansend can1 -i 0x10 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88
当第二片 "cansend" 后, 在第一片板子上并没看到接收到资料,之后在第一片板子停掉 can0 后
$ /bin/ip link set can0 down
马上收到 "<0x010> [8] 11 22 33 44 55 66 77 88"
该如何解决排除这个问题呢?
麻烦知道的人可以帮忙回答 谢谢
附上kernel config file
4201.tisdk_am335x-evm-rt_defconfig.txt