Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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

Posted on 2008-11-07
Medium Priority
Last Modified: 2012-05-05
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?

Question by:lee88
  • 2

Accepted Solution

Mc7400 earned 1000 total points
ID: 22908744

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.


Assisted Solution

stesom earned 1000 total points
ID: 22908798
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.

Expert Comment

ID: 22908891
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.
LVL 93

Expert Comment

ID: 22911562
i would suggest a pci adapter card, instead of the usb adapter :  

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is a real story and is one of my scariest tech experiences. Most users think that IT experts like us know how to fix all computer problems. However, if there is a time constraint and you MUST not fail the task or you will lose your job, a simple …
Most folks would know the basics of how Dropbox works, so that’s not the purpose of this article. Security is what it’s all about, so here I’ll share how I choose to secure my Dropbox Account and the Data it contains.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question