D1s 接 MCP2515 CAN芯片本地收发测试
-
-
ip link set can0 down ip link set can0 type can loopback on ip link set can0 up type can bitrate 1000000 candump any,0:0,#FFFFFFFF > /tmp/a.txt & cansend can0 123#deadbeef cansend can0 123#AAAAAA cansend can0 123#CCCCCC
参考: https://wiki.rdu.im/_pages/Application-Notes/Software/can-bus-in-linux.html
-
记得勾选 iproute2,这里面的ip命令才支持can bus,
busybox自带的ip不行。
Copyright © 2023 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号