Relative Content

Tag Archive for c#wpfusbserial

Retrieve iProduct and iSerialNumber from connected USB device

I have a PCB with an MCU that has a USB peripheral on it connected to a PC and I’m writing a UI to work with it. The USB port is configured in the device as a Comm port, so it looks like “COMx” when connected. I’d like my device to determine if it’s the correct COM port by looking at the iSerialNumber and iProduct strings in the descriptor block. I can already find all the Comm ports out of the USB device list using these two functions: