Arduino node, not automatically reconnected after unplugging
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 )
Does it work on a default install of Node-RED ? It may be an issue with electron not this node.
I'll give it a try outside of electron tomorrow.
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.
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.