Handling CAN Bus Off Error Recovery

Handling CAN Bus Off Error Recovery

Click the blue text

Follow us

We have encountered the issue of bus-off errors, and this article serves to document the resolution for this problem. The error message is as follows:

Handling CAN Bus Off Error Recovery

Cause: Node crash, when the error accumulates to a certain number of occurrences, it will result in bus off.

Solutions:

1. You can set auto bus on for automatic recovery. (Some CAN controller chips support this feature)

2. SocketCAN can set the automatic restart time.

Handling CAN Bus Off Error Recovery

When starting the CAN channel, simply add “restart-ms xxx” to enable the software restart mechanism at the SocketCAN layer.

Handling CAN Bus Off Error RecoveryHandling CAN Bus Off Error Recovery

Handling CAN Bus Off Error RecoveryHandling CAN Bus Off Error Recovery

*Disclaimer: This article is either original or forwarded by the author. If it inadvertently infringes on any party’s intellectual property rights, please inform us for deletion.The above images and text are sourced from the internet; if there is any infringement, please contact us promptly, and we will delete it within 24 hours.The content of the article reflects the author’s personal views, and the Automotive Ethernet Technology Research Laboratory reprints it solely to convey a different perspective, which does not represent the Automotive Ethernet Technology Research Laboratory’s endorsement or support of this viewpoint. If there are any objections, please feel free to contact the Automotive Ethernet Technology Research Laboratory.

Original link:

https://blog.csdn.net/fangye945a/article/details/120367817

Leave a Comment