Skip to content

fixed serial device name for Linux #1

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

leoyinjou
Copy link

Issue: in Linux, p.name returns 'ttyACM0' for '/dev/ttyACM0' for example
so p.open() will fail and exception will be triggered without
useful debug messages.

Fix: using p.device will display the full name for both Windows COM*
ports and Linux /dev/tty* ports. Verified functional on both.
Not tested on Mac.

Issue: in Linux, p.name returns 'ttyACM0' for '/dev/ttyACM0' for example
        so p.open() will fail and exception will be triggered without
        useful debug messages.

Fix: using p.device will display the full name for both Windows COM*
        ports and Linux /dev/tty* ports. Verified functional on both.
        Not tested on Mac.
@c3charvat
Copy link

Was just looking for a solution to this very problem

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