Error - port not open - not reading CAN Hat from serial

I`m trying to access the sensor data from /dev/ttys0 on my pi using a can hat rs485.

The can hat - https://www.waveshare.com/w/upload/2/29/RS485-CAN-HAT-user-manuakl-en.pdf

I`ve installed the driver for the can hat but every time I try to read data from the port I get the error message

  • "Error: {"name":"PortNotOpenError","message":"Port Not Open","errno":"ECONNREFUSED"}"

Ive stopped the serial shell, the console is connected to tty1 not the serial port so I dont need to change the ports either or disable the bluetooth etc. I`m lost for ideas?

Thanks in advance :slight_smile:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.