I am trying to obtain data using the Pican2 on my raspberry however I obtain the following error:
OSError: [Errno 100] Network is down.
Anyone knows how to solve it?
I am using the following code
Code: Select all
import can bus = can.interface.Bus(channel='can0', bustype='socketcan_native',bitrate=125000) notifier = can.Notifier(bus, [can.Printer()])