Dong Lam Trien

Dong Lam Trien

  • 830
  • 986
  • 146.5k

How to find COM port for a specific USB devices connected.

May 19 2015 5:13 AM
I'm trying to get the list of com port name and the device's name connected to it. (eg: I want to automatically find the COM port for a specific USB device of Fastrack modem M1206B series). In the case where it finds multiple possible ports and i want only finds the port depending on what other usb devices are connected. I tried the following where I get only the list of com ports.
[CODE]  
string[] ports = SerialPort.GetPortNames();
foreach (string port in ports)
{
cboCOM.Items.Add(port);
}
[/CODE] 
But I need get COMPort only finds the port depending on what other usb devices are connected.