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

node-red-node-serialport: Port lock after unplug using the Split-input option

Open
#564 0 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

I have a problem with the node-red-node-serialport package. I have a sensor connected via a serial-to-USB adaptor. I'm using the serial-request node to request data from the sensor which works fine as long as the USB-adaptor stays connected. If I unplug the USB and plug it in again the serial request doesn't work anymore. Only after deploying it works again. Probably some USB lock problems occured. I'm using the "Split input after x seconds" option. For another sensor which doesn't have to use this option the unplug and plug works fine.

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

Start by reproducing the USB unplug/replug sequence with node-red-node-serialport and the "Split input after x seconds" option, comparing it with a sensor that does not use splitting. Trace the serial-request node's reconnect and deployment behavior; done means requests resume after reconnection without redeploying.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.