node-red / node-red/node-red-nodes
Arduino node, not automatically reconnected after unplugging
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 13h 57m
- Merged PRs (30d)
- 3
Description
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 )
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce with an Arduino Uno running StandardFirmata 2.5.8, then inspect the Arduino-board hidden node and Arduino in node, including the existing five-second reconnect routine. Done means unplugging changes the status to disconnected and plugging the device back in restores Arduino in messages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100