You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the application ./node_modules/serialport/bin/terminal.js to debug a problem I was being misled because this application does not capture the 'close' signal, which is the only signal sent when a USB device providing a serial port is detached.
Steps and Code to Reproduce the Issue
Insert a USB to serial adapter
Run ./node_modules/serialport/bin/terminal.js -p /dev/ttyUSB0
Disconnect the USB device
Package name(s) and version(s)
serialport 7.0.2
Node version, Operating System and hardware
node 8.10.0
Ubuntu 18.04, Linux version 4.15.0-23
Intel Atom E3845
- update cli docs
- fix#1659 close / disconnect error for serialport-terminal
- rename serialport-term to serialport-terminal
- stop `test:require` because it's not necessary and breaks on the cli packages
- update cli docs
- fix#1659 close / disconnect error for serialport-terminal
- rename serialport-term to serialport-terminal
- stop `test:require` because it's not necessary and breaks on the cli packages
- update cli docs
- fix#1659 close / disconnect error for serialport-terminal
- rename serialport-term to serialport-terminal
- stop `test:require` because it's not necessary and breaks on the cli packages
lockbot
locked as resolved and limited conversation to collaborators
Mar 14, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Summary of Problem
This is spun off from issue #1465
Using the application ./node_modules/serialport/bin/terminal.js to debug a problem I was being misled because this application does not capture the 'close' signal, which is the only signal sent when a USB device providing a serial port is detached.
Steps and Code to Reproduce the Issue
Package name(s) and version(s)
serialport 7.0.2
Node version, Operating System and hardware
node 8.10.0
Ubuntu 18.04, Linux version 4.15.0-23
Intel Atom E3845
Adding the following code resolves the problem:
With this, the USB disconnect event terminates the application.
The text was updated successfully, but these errors were encountered: