I have a system connect to PC through USB. I am writing the software that has "Connect" button which allows user to connect to that specific USB port. My solution is
1. Scan all available COM ports
2. Send a specific message to each COM port and if the system echo back another specific message that match, the software will connect to that COM port.
However, the problem is some COM ports are already open and in use. So when the software try to OPEN that COM port (which is not my USB), it will be an error. So I would like to scan all the USB ports, with each specific name (my USB port names: TUSB3410 Device, under Device Management). So the job now just connect to that specific USB device name.
How can I get all the USB device name?
Thank you, :)