Results 1 to 2 of 2

Thread: USB serial port

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2018
    Posts
    1

    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?

  2. #2
    Frenzied Member
    Join Date
    Dec 2014
    Location
    VB6 dinosaur land
    Posts
    1,191

    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
  •  



Click Here to Expand Forum to Full Width