# Manage serial port with a button

**URL:** <https://discourse.nodered.org/t/manage-serial-port-with-a-button/581>\
**Category:** Dashboard\
**Created:** [3 June 2018 16:34 UTC](https://discourse.nodered.org/t/manage-serial-port-with-a-button/581 "2018-06-03T16:34:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sawsen](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sawsen](https://discourse.nodered.org/u/sawsen)\
**Post date:** [3 June 2018 16:34 UTC](https://discourse.nodered.org/t/manage-serial-port-with-a-button/581/1 "2018-06-03T16:34:06Z")

</div>

Hi everyone,  
i’m new with node red, and i need your help please,  
i want to control the serial port using a button, that’s mean that when i want to close the serial port, i click on the button,  
is it realistic?

---

<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:** [3 June 2018 22:31 UTC](https://discourse.nodered.org/t/manage-serial-port-with-a-button/581/2 "2018-06-03T22:31:54Z")

</div>

Not currently. The serial port is designed to try to stay connected.

---

<div class="post-metadata">

**Author:** ![tree-frog](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tree-frog/32/89303_2.png) [@tree-frog](https://discourse.nodered.org/u/tree-frog)\
**Post date:** [1 April 2021 21:03 UTC](https://discourse.nodered.org/t/manage-serial-port-with-a-button/581/3 "2021-04-01T21:03:58Z")

</div>

I have need to disconnect a device while Node-RED is running. Otherwise, I'll need to shut down Node-RED in order to connect my serial scanner to configuration software and re-start Node-RED. Is it possible to allow the serial node to programmatically disconnect for a time to allow this kind of feature? I agree the normal mode would be to try to connect and stay connected. However, all devices and all applications do not follow trying to stay connected to Node-RED. We are using Windows 10 and it will be unhandy to physically disconnect the device and connect to another system just to configure it.

Kind Regards,  
@tree-frog

---

<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:** [1 April 2021 21:55 UTC](https://discourse.nodered.org/t/manage-serial-port-with-a-button/581/4 "2021-04-01T21:55:03Z")

</div>

No. It is still not possible.
