node-red / node-red/node-red-nodes

Arduino node, not automatically reconnected after unplugging

Open
#580 4 comments 0 reactions 0 assignees View on GitHub

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:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.