目前遇到车辆上电后有时候CAN无法收到数据。
采用:
candump can0
没有数据打印出来。
然后给机子重新断电重启可能就恢复正常了。
如果不想重启主机,采用脚本命令能否恢复CAN。目前试过执行如下命令:
sudo ip link set can0 down
sudo ip link set can0 type canbitrate 250000 sjw 4 restart-ms 1000 berr-reporting on
sudo ip link set can0 up
执行后CAN无法恢复,还有其他的命令可以用的吗?
|
|
|
|
|
共 1 个关于本帖的回复 最后回复于 2023-3-27 09:59