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

Symlinks Unsupported #19

Open
fred314159265 opened this issue Aug 8, 2024 · 1 comment
Open

Symlinks Unsupported #19

fred314159265 opened this issue Aug 8, 2024 · 1 comment

Comments

@fred314159265
Copy link

Passing a symlink path instead of the actual port return the error: No USB serial ports found.

A common occurrence of this would be using the /dev/serial/by-id or /dev/serial/by-path symlinks to always connect to the same device regardless of how they enumerate.

E.g. /dev/serial/by-id/usb-FTDI_TTL232R-3V3_FTAV1YOK-if00-port0 is a symlink pointing to /dev/ttyUSB1.

Invoking serial-monitor with the arguments -b 115200 -p /dev/ttyUSB1 works fine, where as with the arguments -b 115200 -p /dev/serial/by-id/usb-FTDI_TTL232R-3V3_FTAV1YOK-if00-port0, the error No USB serial ports found is returned.

@fred314159265
Copy link
Author

fred314159265 commented Aug 8, 2024

I have added some basic support for this functionality here: https://github.com/fred314159265/serial-monitor/tree/symlink_support

You can install it and try it using this command:

cargo install --git https://github.com/fred314159265/serial-monitor.git --branch "symlink_support" --force

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

No branches or pull requests

1 participant