How is COM port number associated with a USB port / device?

I bought a USB-to-Serial (DB9) adapter and it works fine. However, I need the serial device that plugs into the adapter's DB9 male to show up on COM3. So, I specify that in the adapter's driver properties under Device Manager (I'm in XP Pro SP3). This works fine. So my serial device is working properly on COM3 with this adapter plugged into a USB port.

Then, I unplug the USB adapter (from the USB port #1), wait a few seconds, and plug the USB adapter into a DIFFERENT USB port #2. Now, my serial device shows up on COM6. Bad news, 'cause my legacy software is looking for it on COM3.

So, I unplug the USB adapter from port #2, and plug it back into port #1. Bingo! It's shows back up as being on COM3!

When the USB adapter is plugged into USB port #2, I can "force" the COM setting back to COM3 in the adapter's driver properties (even though it says that COM3 is "In Use"). And, after forcing the setting back to COM3, my legacy software finds the serial device on COM3 and works fine again.

I'd like to understand more about how Windows XP associates a COM port number with a USB port and any tools that I can use to better understand this COM # allocation. Is there a way to tell XP to erase any associations that it has made regarding COM #'s for USB ports?

lee88Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mc7400Commented:
Hello,

Windows XP is not  associating between USB and serial but the driver is doing that and it save the data in registry, so you have to search the registry for it.

Other solution may works, add a new hardware manually COM6 and use the same resources that COM3 uses. your legacy software should be happy.

Or consistently connect to the same port, maybe you have to remove the hardware safely before unplugging.


HTH
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
stesomCommented:
Actually, a USB device plugged into two different ports will be considered as two different devices  by windowns, meaning it install the driver for both 'devices' and they may get different COM ports because of this.

Similar, if you have a USB disk and you plug it in, it will get a drive letter, if you change that drive letter, and plug it into _another_ USB port, it will get a different drive letter.
0
Mc7400Commented:
Never mind they will get deferent com ports, but the two ports will point again into the same resources that the legacy sw understands. Try it with the adapter driver.
0
nobusCommented:
i would suggest a pci adapter card, instead of the usb adapter :  
http://www.superlogics.com/sl_products.asp?cat=44&gclid=CJmUhKSj5ZYCFQrolAod93huPQ
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Peripherals

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.