Commit 66fd2b96 authored by Andre Hartmann's avatar Andre Hartmann Committed by André Hartmann
Browse files

SocketCAN: Describe how to recover from bus errors

Taken from https://www.kernel.org/doc/Documentation/networking/can.txt


section 6.5.3:

  A device may enter the "bus-off" state if too many errors occurred on
  the CAN bus. Then no more messages are received or sent. An automatic
  bus-off recovery can be enabled by setting the "restart-ms" to a
  non-zero value, e.g.:

    $ ip link set canX type can restart-ms 100

Change-Id: I80b53e430988c0405269d4efe21f936ace0e3544
Reviewed-by: default avatarAlex Blasche <alexander.blasche@qt.io>
Reviewed-by: default avatarRolf Eike Beer <eb@emlix.com>
Showing with 6 additions and 0 deletions
......@@ -52,6 +52,12 @@
sudo ip link set up can0 type can bitrate 250000
\endcode
To automatically recover from "bus off" errors after 100 milliseconds,
the following command can be used:
\code
sudo ip link set up can0 type can bitrate 250000 restart-ms 100
\endcode
\section2 Setting up a virtual CAN bus
\note For CAN FD usage, the MTU (Maximum Transmission Unit) has to be set
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment