Issue with CAN bus initialization

Good day,

I just installed RD on a pi 4 with a CAN hat.
I can use the hat in loopback mode and with another CAN device sending a frame to the pi.

But RD is unable to set up the can network. It tries indefinitely to connect but to no avail. In fact, after starting RD, I can’t see the CAN network with ifconfig command.

To fix it, I need to type the ip command in the terminal to manually set it up. Only then, RD receives CAN frames.

So my workaround is a startup script with the command you provided in the linux guide: sudo ip link set can0 up type can bitrate 500000 restart-ms 100.

Also, I can type this line without the need of password (sudoer verification).

It works now but I thought it might be the case for the others with the same setup/hardware.

Keep up the good work !

Have a nice day ! :smile:

1 Like