# Serialport node does not work

**URL:** <https://discourse.nodered.org/t/serialport-node-does-not-work/70535>\
**Category:** General\
**Created:** [13 November 2022 12:14 UTC](https://discourse.nodered.org/t/serialport-node-does-not-work/70535 "2022-11-13T12:14:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Atari](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@Atari](https://discourse.nodered.org/u/Atari)\
**Post date:** [13 November 2022 12:14 UTC](https://discourse.nodered.org/t/serialport-node-does-not-work/70535/1 "2022-11-13T12:14:43Z")

</div>

Hi Everyone,  
I am a beginner at raspberry Pi and Node Red.  
A year ago I was able to get a raspberry pi with Node red working to control my television over rs232 commands. I useds the serialport node for this and a usb serial device. I remember having a hard time configuring this. It had something to do with permissions to use the serial port. But it did work, until the sd card crashed. 🙂

Now I am trying to repeat the experiment. I would like to catch the IR commands from my Loewe television to be sent to my bose surround set, which also has serial data in/out.

I installed the latest version of bullseye(11) with the latest version of Node Red(v3.0.2) with the latest version of serialport(1.0.1).

I made a simple config and the nodes connect to the ttyUSB0, but when I try to send, nothing is coming out of the port and after a while the request node times out with the notification "undefined".

any ideas how to get this working?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/a/2a6d535f420caae4afc74f05dc4902d1ac12d223.png)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [13 November 2022 12:23 UTC](https://discourse.nodered.org/t/serialport-node-does-not-work/70535/2 "2022-11-13T12:23:12Z")

</div>

You don’t need both serial nodes. Pick one or the other depending if you are expecting a reply or not. Also check what the end of line character needs to be for your TV. The default is \n but a lot of devices expect \r.

---

<div class="post-metadata">

**Author:** ![Atari](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@Atari](https://discourse.nodered.org/u/Atari)\
**Post date:** [13 November 2022 13:38 UTC](https://discourse.nodered.org/t/serialport-node-does-not-work/70535/3 "2022-11-13T13:38:55Z")

</div>

Thank you dceejay. I know I don't need to use them at the same time. This was just to show the state. I recovered the old configuration and this one works fine. I just can't remember how to handle the permissions.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/e/ae18a2b7968b586b89ef51283229dfe36f05d59e.png)

---

<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:** [12 January 2023 13:39 UTC](https://discourse.nodered.org/t/serialport-node-does-not-work/70535/4 "2023-01-12T13:39:09Z")

</div>

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