就是咱们硬件上用CAN1和CAN2引脚,但加载后,开发板可以查看到can0和can1 root@firefly:~# ip link set can0 down root@firefly:~# ip link set can0 type can bitrate 250000 root@firefly:~# ip link set can0 up root@firefly:~# ip link set can1 down root@firefly:~# ip link set can1 type can bitrate 250000 root@firefly:~# ip link set can1 up root@firefly:~# ifconfig can0: flags=193<UP,RUNNING,NOARP> mtu 16 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 60 can1: flags=193<UP,RUNNING,NOARP> mtu 16 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 61 而且从实际使用上看, can0设备对应CAN2引脚 can1设备对应CAN1引脚 请问这个是怎么回事? 另外,我的项目里想用3个can,那can0被占了可怎么办? |
-
760 Bytes, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1