-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
OSX returns ports that cannot be opened by default #1084
Comments
I saw the comments about passing If not, is there a way to catch or avoid this error when using |
@dcyoung this issue is requesting someone make serialport list do what you ask |
I cannot find a way to do this in c++. I'm having a hard time finding docs on the functions we use. Maybe a string replace from |
Figured it out, will have the tty ports in the next release. |
Fantastic work @reconbot 😃 |
For the record, tty's are `DialinDevice`s and cu's are `CalloutDevice`s Thanks to @kishinmanglani for helping me solve this! The closest we could come to docs. https://opensource.apple.com/source/IOSerialFamily/IOSerialFamily-7/IOSerialFamily.kmodproj/IOSerialKeys.h
SerialPort version: 5.x
Operating System and Hardware Platform: OSX
Summary of Problem
OSX
SerialPort.list
returns/dev/cu.xxx
ports but tries to lock them by default and they cannot be locked. Only/dev/tty.xxx
ports can be locked.The code that find's the path of the port.
Thanks to #1070 and @lynndylanhurley for the report!
The text was updated successfully, but these errors were encountered: