Page 1 of 1

CAN permanent on

Posted: 30 Jun 2025, 16:54
by BenjaminKlostermann
I use the internal CAN from the revpi 5s and I did set the vorrect configuration via the commands:

sudo ip link set can0 up type can bitrate 250000
and:
sudo ip link set dev can0 type can termination 120

communication is working and everything is fine but after restarting the revpi everything is reset, how should I set these parameters permanently?

Re: CAN permanent on

Posted: 02 Jul 2025, 11:11
by nicolaiB
Hi,

you can configure the CAN interface for example with an entry in /etc/network/interfaces.

Example:

Code: Select all

auto can0
iface can0 inet manual
    pre-up /sbin/ip link set can0 type can bitrate 250000 termination 120
    up /sbin/ip link set can0 up
    down /sbin/ip link set can0 down