Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port cannot be accessed by another device after closing [OSX 10.10] #674

Closed
bolandrm opened this issue Feb 25, 2016 · 2 comments
Closed

Comments

@bolandrm
Copy link

bolandrm commented Feb 25, 2016

I am opening and using a serialport via node-serialport. When I close the serial port, it seems I still cannot access it from other programs. I am getting a success callback on closing the port.

When I make a subsequent call to close(), just to double check, i get this:

currentSerialPort.close(function(e) { console.log(e); })
VM831:2 Error: Serialport not open.(…)

So it seems that node-serialport does think the port is closed.

When I try to access the port with another program I get:

stty: /dev/tty.usbmodem747851: Resource busy
make: *** [burn] Error 1

Completely closing my Electron application which is using node-serialport resolves the issue.

@reconbot
Copy link
Member

reconbot commented Apr 6, 2016

We fixed a ton of bugs in our latest beta specifically ones addressing this issue. #733 Please try it out serialport@2.0.7-beta4 and report back!

@reconbot
Copy link
Member

reconbot commented Apr 8, 2016

We've had confirmed fixes for this in beta4.

@reconbot reconbot closed this as completed Apr 8, 2016
@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants