I have a USB device that provides a virtual com port. However this device does not identify itself by a COM port "friendly name" (in windows unit manager for instance).
However it does provide a proper name for the USB device. Which in turn lists the associated com port as follows:
I'd like to be able to identify the device by name ("Prologix GPIB…") and get the com port number from that name. How can i do this in C# / .NET?
The only code i was able to find only searched by the COM port friendly name, not the USB device name.
Thanks for your time!
Best Answer
I don't have virtual COM port set up, so can't check this, but one of the answers in this article seems to fit your requirement:
This works fine for listing my devices. You may need to experiment with additional
PropertyValue
fields inGetUSBDevices
to find virtual COM port names.