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

Provide a way to retrieve device name / port name #114

Open
lirc572 opened this issue Jan 25, 2021 · 4 comments
Open

Provide a way to retrieve device name / port name #114

lirc572 opened this issue Jan 25, 2021 · 4 comments

Comments

@lirc572
Copy link

lirc572 commented Jan 25, 2021

It seems that currently there is no way to get the port name and device name of the serial devices (like what is shown in the requestPort popup).

It would be really helpful to provide these attributes in SerialPortInfo.

@reillyeon
Copy link
Collaborator

Can you describe how you would use this information in your application?

@lirc572
Copy link
Author

lirc572 commented Jan 26, 2021

I would like to show in the UI which port/device is currently connected, like what they put at the bottom right corner of the Arduino IDE:

Arduino IDE

@0815fips
Copy link

I would like to add another use case:
In my application I want to provide a list of barcode scanners in use. The real device names should be shown instead of having to map the usbVendorId and usbProductId to some generic names. So, having device and port name in SerialPortInfo would be very convenient.

  1. Mapping the name would be a huge effort!
  2. The name should be accurate and can not be guessed based on these two parameters.
  3. It is not an option to connect to every device to get this information.
@scottpageindysoft
Copy link

No doubt this is a needed feature.
Anyone that's developed with a serial port in the past 40 years has used the port name, not vendor and product, for UI purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants