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

**URL:** <https://discourse.nodered.org/t/error-port-not-open-not-reading-can-hat-from-serial/30468>\
**Category:** General\
**Created:** [21 July 2020 12:13 UTC](https://discourse.nodered.org/t/error-port-not-open-not-reading-can-hat-from-serial/30468 "2020-07-21T12:13:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![edwardr](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@edwardr](https://discourse.nodered.org/u/edwardr)\
**Post date:** [21 July 2020 12:13 UTC](https://discourse.nodered.org/t/error-port-not-open-not-reading-can-hat-from-serial/30468/1 "2020-07-21T12:13:49Z")

</div>

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](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"}"

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

Thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 September 2020 12:13 UTC](https://discourse.nodered.org/t/error-port-not-open-not-reading-can-hat-from-serial/30468/2 "2020-09-19T12:13:50Z")

</div>

Closed on 19 September 2020 12:13 UTC

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