-
Apr 9th, 2018, 01:55 PM
#1
Thread Starter
New Member
USB serial port
I have two usb rs232 devices associated with an application, written in VB. currently I have to manually verify that the correct com port is connected to the correct device. I am assuming that there is a unique number associated with each device. I would like to be able to look for the unique number associated with the device, then get is COM port number and setup up the correct port. I have look at WMI without success. Can anyone point me in the correct direction?
-
Apr 9th, 2018, 03:27 PM
#2
Re: USB serial port
Perhaps something like my answer here can be of help. That's how I find which USB virtual com port an arduino is using since they can change. If you can see it populate with a unique string in Device Manager Ports section when you plug it in, that should work. If they are identical devices, then you're likely going to have to search through the registry (probably in HKLM\SYSTEM\CurrentControlSet\Control\...) to find something unique to choose the proper one each time if it matters.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|