Re: Too many COM port numbers, how to delete them?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Bo Berglund" <boberglund@xxxxxxx> wrote in message
news:p5otl3pkt6arqgmfuggv1ffobi7sntgp31@xxxxxxxxxx
On Tue, 11 Dec 2007 08:09:47 -0000, "M.I.5¾"
<no.one@xxxxxxxxxxxxxxxxxxxxxx> wrote:


"Bo Berglund" <boberglund@xxxxxxx> wrote in message
news:23grl310494obp1gdnmhdkfd6oq6tqsvpf@xxxxxxxxxx
I have a problem relating to my use of USB-RS232 converters:

When I plug one into a USB port it has not previously been inserted
into, then a *new* COM port number is used. So if I have 3 USB ports a
single converter will wind up as three different port numbers
depending on which USB socket it is inserted into...

But worse is that if I expand my USB ports by attaching a USB hub the
same procedure repeats as above, so now I get 7 more COM port numbers
used *for each* laptop USB port I put the 7-way hub on.
Since I also have used several hubs over time (just trew out my old
USB1x4 hub) I have a *lot* of COM port numbers assigned to my 3
USB-RS232 converters....
I think the next free one is like COM43 or similar. :-(

It seems like there is somewhere in the system a repository of used
COM ports that I would like to clear out.
Can someone direct me to the place (in the Registry perhaps) where I
can delete all of these extra COM port numbers so I can start out
fresh and get sensible numbers in the range 2..9 (single digits,
please)???


Not such an easy one if you don't know how.

Open a command window.

Now set an environment variable by entering the line

"set devmgr_show_nonpresent_devices=1" - without the quotes obviously

then enter

"start devmgmt.msc"

In the box that opens, select "Show hidden devices" in the 'view' menu.

Now if you expand the section on COM ports, all the COM ports that have
ever
been created will be displayed, the non present ones being in grey. You
can
uninstall away anything that you don't want (right click, select
uninstall).

The behaviour that you report is correct for a non serial numbered USB
peripheral. If you want an RS-232 adaptor to retain its assigned COM port
regardles of where you plug it in, you require an (electronically) serial
numbered device, (but personally I don't know of one - but that doesn't
mean
they don't exist).

GREAT!
Thanks a million, this was exactly what I was looking for!
I have now set the variable in my envoronment variables so that DevMgr
hidden devices also show these non-present ones.


There is registry entry that will do the same thing (can't find it at the
moment, but you can probably google as well as I). Better to do it this way
because the environment variable space is limited and the variable name is
quite long.


.



Relevant Pages

  • Re: Multi firewire cables for one jack?
    ... has but one firewire port and I already have a hub connected to it. ... I plug into the hub, am I looking at substantial band width lose? ... drives tend to work in bursts, and the Firewire protocol that serves as ...
    (rec.audio.pro)
  • Re: USB as standard debug interface
    ... Windows has no way of recognising it has 'seen' this before so the COM port ... regardless of which USB port it is plugged into, ... If you are using a hub, does the "quality" of the hub have anything to ...
    (comp.arch.embedded)
  • Re: Errormessage - Dec 13 19:48:25 localhost kernel: hub 1-4:1.0: over-current change on
    ... port 2 is my Logitech web cam. They keep coming even after I stop the ... It stops once I disconnect the hub. ... The message does not show up if I plug the camera directly into the system. ... nothing in port 2. ...
    (Fedora)
  • Re: XP MCE stand by problem
    ... I suspect that there is a hardware problem either in the USB port or ... I thought that your computer's port might be bad, in which case the hub would be plugged into the bad port, or that your IR receiver was bad; in either case, the hub wouldn't matter, AFAIK. ...
    (microsoft.public.windows.mediacenter)
  • Re: HELP HELP HELP!! - USB & IEEE Problems.
    ... WIZARD and looked for the drivers and couldn't find them. ... with my USB and IEEE port drivers... ... > accidentally connected the Logitech USB lead to a different USB port. ... switched USB connector to original port. ...
    (microsoft.public.windowsxp.hardware)