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 serial port picker #2

Closed
spacehuhn opened this issue May 27, 2020 · 3 comments
Closed

Better serial port picker #2

spacehuhn opened this issue May 27, 2020 · 3 comments
Labels
feature request New feature or request

Comments

@spacehuhn
Copy link

This is how I imagine it:

  1. Application starts
  2. Lists all available ports (line by line) with some sort if ID/numerbing
  3. User either types in the port name, the ID/number or plugs in a new device
  4. When a new serial device was detected or the manual port selection was successful, print the connected message and continue the program.

A parameter, maybe --no-auto disables to auto connect feature. So that if a new port was detected, it just gets added/printed to the previous port selection list.

@spacehuhn spacehuhn added the feature request New feature or request label May 27, 2020
@the-Jamz
Copy link
Collaborator

That parameter does seem more intuitive compared to -s, and yes detecting new devices plugged in while in the --no-auto mode does sound good, but as far as numbing the ports goes: I wanted to leave it a little bit more open (eg. user is able to type in any path they like) in case a port isn't detected by Huhnitor for some reason.

@spacehuhn spacehuhn mentioned this issue May 27, 2020
@spacehuhn
Copy link
Author

spacehuhn commented May 27, 2020

but as far as numbing the ports goes: I wanted to leave it a little bit more open (eg. user is able to type in any path they like) in case a port isn't detected by Huhnitor for some reason.

I'd say we can do both like

[0] /dev/ttyUSB0
[1] /dev/ttyS3

typing /dev/ttyUSB0 would work just like 0.
Making it as easy as possible for the user.

I guess we'd have to think of a way to distinguish user input between the number and a real serial port.

@the-Jamz
Copy link
Collaborator

Yeah a sort of hybrid sounds perfect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants