node-red-nodes icon indicating copy to clipboard operation
node-red-nodes copied to clipboard

Arduino node, not automatically reconnected after unplugging

Open paulhayes opened this issue 6 years ago • 4 comments

Which node are you reporting an issue on?

  • Arduino-board ( hidden node )
  • Arduino in

What are the steps to reproduce?

Start with Arduino Uno with StandardFirmata 2.5.8 connected. Unplug and Plug back in. ( the delay before being plugged back in doesn't seem to change the issue )

What happens?

  • the status light remains connected.
  • The arduino-board node writes "Arduino serial port closed" to debug console.
  • Although the device is plugged back in, the node remains inactive, no more messages arrive from it.

What do you expect to happen?

Firstly the status should change to disconnected when unplugged.

Having looked in the code it seems an auto reconnect routine exists, with an interval of 5 seconds. So I would expect the ardunio-board node to reconnect, and the arduino-in to start receiving messages again.

Please tell us about your environment:

  • [ ] Node-RED version: 1.0.0
  • [ ] node.js version: 10.16.3
  • [ ] npm version: 6.11.3
  • [ ] Platform/OS: Windows 10
  • [ ] Browser: Electron ( running as app based on this repo https://github.com/dceejay/node-red-project-starter )

paulhayes avatar Oct 02 '19 10:10 paulhayes

Does it work on a default install of Node-RED ? It may be an issue with electron not this node.

dceejay avatar Oct 02 '19 20:10 dceejay

I'll give it a try outside of electron tomorrow.

paulhayes avatar Oct 02 '19 20:10 paulhayes

I am seeing the same behavior on my Pi Zero W with an Uno via USB. I have to re-position a node or change something and then I can trigger a full deploy to get comms back on.

m-elias avatar Oct 16 '19 18:10 m-elias

Was there ever a fix or workaround for this issue? I am having the same problem with node-red running on my WIndows 10 PC with an Arduino UNO USB connection.

rhhollin avatar Sep 30 '21 22:09 rhhollin