CAN Bus with RS485 CAN HAT for Raspberry PI
to check the state of the can interface in linux, run
&quot;ip -details link show can0&quot;
check the can state, it should be ERROR-ACTIVE for a healthy bus.
Also ensure that you did bring up the interface with the correct baudrate and so on:
$ sudo ip link set can0 type can bitrate 125000
$ sudo ip link set up can0