# Serial Port does not receive data on Rpi5

**URL:** <https://discourse.nodered.org/t/serial-port-does-not-receive-data-on-rpi5/87813>\
**Category:** Hardware\
**Tags:** docker, raspberry-pi5\
**Created:** [8 May 2024 16:35 UTC](https://discourse.nodered.org/t/serial-port-does-not-receive-data-on-rpi5/87813 "2024-05-08T16:35:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gylim78](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gylim78/32/69495_2.png) [@gylim78](https://discourse.nodered.org/u/gylim78)\
**Post date:** [8 May 2024 16:35 UTC](https://discourse.nodered.org/t/serial-port-does-not-receive-data-on-rpi5/87813/1 "2024-05-08T16:35:02Z")

</div>

I have been using the serial port through a docker container using a RPI 3.  
I followed the instructions at [Docker NR & ttyUSB0 Permission denied - #17 by janvda](https://discourse.nodered.org/t/docker-nr-ttyusb0-permission-denied/44803/17)  
I use the node-red-node-serialport node to do this.  
Connecting using the GPIO pins.  
On RPI 3, it is connecting on `/dev/ttyS0` and everything is working fine.

I have recently started upgrading to RPI 5.  
But the same method does not work for some reason.  
I already changed the port to `/dev/ttyAMA0`.  
On the node, I can see it says connected and the icon shows green. But when I send data through the serial port, no data is received.  
But when I test using the command `screen /dev/ttyAMA0`, I can see the data coming in.  
I know that RPI5 has changed how the GPIO works and nodes like pigpio is now broken. I am wondering if the Serial Port has the same issues.

Has anyone else had issues or success in using the Serial port on RPI5 through a docker container?

---

<div class="post-metadata">

**Author:** ![gylim78](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gylim78/32/69495_2.png) [@gylim78](https://discourse.nodered.org/u/gylim78)\
**Post date:** [9 May 2024 03:21 UTC](https://discourse.nodered.org/t/serial-port-does-not-receive-data-on-rpi5/87813/2 "2024-05-09T03:21:51Z")

</div>

Hi all,

Today I just tried to get rid of the docker container and just installed node-red directly on the RPI5.  
Created the most simple flow with 1 serial in to a debug node.

Same thing. I see that it is connected. But no data comes in.

Tried with `screen /dev/ttyAMA0` on the terminal and I can see data coming in.

The funny thing is that while node-red is running and so called connected to /dev/ttyAMA0, the terminal that is running the screen command can still connect to the same serial port. Correct me if I am wrong, but from my understanding, the serial port should be only open to one app am I right?

---

<div class="post-metadata">

**Author:** ![SonoraTechnical](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sonoratechnical/32/20033_2.png) [@SonoraTechnical](https://discourse.nodered.org/u/SonoraTechnical)\
**Post date:** [11 June 2024 20:24 UTC](https://discourse.nodered.org/t/serial-port-does-not-receive-data-on-rpi5/87813/3 "2024-06-11T20:24:46Z")

</div>

Not sure what responses you will recieve from folks, but I've started a thread to document progress/oppotunities/struggles w/ the Rpi5 and i2c... Mixed results so far... Like serial, i2c utilizes the GPIO pins. So, it might be of interest for you to peak into this thread on occasion...

> [@Rpi5, RpiOS 12 (Bookworm), Node-RED v3.1.10, Node.js v18.20, i2c](https://discourse.nodered.org/t/rpi5-rpios-12-bookworm-node-red-v3-1-10-node-js-v18-20-i2c/88626):
>
> Most threads reporting unsuccessful activity w/ Rpi5 have been closed. I think I have some positive news, so I'm starting this thread. I have an Rpi5 w/ 8GB of Ram. I did not win the silicon lottery, so I'm only able to reliably achieve 2.6Ghz w/ the oem heatsink/fan combo and a well ventilated case. (many are achieving 3.1Ghz). I did successfully implement a 1TB NVMe drive as the boot and only media on the Pi at Gen3 PCIe speeds. Clever little adapter that fits the NVMe drive under the Pi in…

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [12 June 2024 10:51 UTC](https://discourse.nodered.org/t/serial-port-does-not-receive-data-on-rpi5/87813/4 "2024-06-12T10:51:37Z")

</div>

> [@gylim78](#):
>
> I see that it is connected. But no data comes in.

How have you configured the serial node?

---

<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:** [11 August 2024 10:52 UTC](https://discourse.nodered.org/t/serial-port-does-not-receive-data-on-rpi5/87813/5 "2024-08-11T10:52:34Z")

</div>

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