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

Better device detection on Linux, Unix #97

Merged
merged 11 commits into from
Aug 1, 2021
Merged

Better device detection on Linux, Unix #97

merged 11 commits into from
Aug 1, 2021

Conversation

tresf
Copy link

@tresf tresf commented Jul 31, 2021

Quoting an upstream bug report which originally identified this issue:

JSSC, on unix based systems like linux and MacOSX, when listing serial ports
tries to open each port to ensure its existence. While this check works well for
linux ports /dev/ttyS0..31, it leads to unexpected behaviors on MacOSX in
particular with USB-CDC virtual serial ports.

This patch disable the check and keep it enabled only for linux ttySxx ports.

This adds also tty.* and cu.* to the list of available serial ports on MacOSX.

Using a hypervisor I tested adding a "physical" port to macOS and can confirm that /dev/cu.* is correct.

@GMKennedy is running some additional tests.

Supersedes #64.
Related scream3r#120
Related scream3r#92

@tresf tresf mentioned this pull request Jul 31, 2021
Base automatically changed from ant-task to master July 31, 2021 03:29
@tresf
Copy link
Author

tresf commented Aug 1, 2021

@GMKennedy says this tests well and is good to merge.

@tresf tresf merged commit ba8417b into master Aug 1, 2021
@tresf tresf deleted the dev-detect branch August 1, 2021 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants