# How to manage serial port disconnection

**URL:** https://discourse.nodered.org/t/how-to-manage-serial-port-disconnection/14592
**Category:** General
**Created:** [21 August 2019 09:34 UTC](https://discourse.nodered.org/t/how-to-manage-serial-port-disconnection/14592 "2019-08-21T09:34:32Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Charlotte](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@Charlotte](https://discourse.nodered.org/u/Charlotte)
#### Post date: [21 August 2019 11:11 UTC](https://discourse.nodered.org/t/how-to-manage-serial-port-disconnection/14592/3 "2019-08-21T11:11:16Z")

</div>

Before disconnection it is written "connected" with a green dot below the node.  
After it is written "disconnected" with a red dot.  
And I have a message in the debug console :

```auto
"serial port /dev/port_usb_2 closed unexpectedly"

```

port\_usb\_2 is the name I gave to my USB port, instead of ttyUSBx

---

_[View the full topic](https://discourse.nodered.org/t/how-to-manage-serial-port-disconnection/14592)._
