(Msg. 1) Posted: Mon Dec 10, 2007 11:48 pm
Post subject: Too many COM port numbers, how to delete them? Archived from groups: microsoft>public>windowsxp>hardware (more info?)
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)???
(Msg. 2) Posted: Mon Dec 10, 2007 11:51 pm
Post subject: Re: Too many COM port numbers, how to delete them? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
"Bo Berglund" wrote in message
>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)???
>
>
> Bo Berglund
Look in the phone and modems options in the control panel. They might be
there.
(Msg. 3) Posted: Tue Dec 11, 2007 7:20 am
Post subject: Re: Too many COM port numbers, how to delete them? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
On Mon, 10 Dec 2007 23:51:04 GMT, "Claggy" wrote:
>
>"Bo Berglund" wrote in message
> >> 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)???
>
>Look in the phone and modems options in the control panel. They might be
>there.
>
Nope, not there....
Any oher idea?
(Msg. 4) Posted: Tue Dec 11, 2007 7:20 am
Post subject: Re: Too many COM port numbers, how to delete them? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Bo Berglund wrote:
> On Mon, 10 Dec 2007 23:51:04 GMT, "Claggy" wrote:
>
>> "Bo Berglund" wrote in message
>> >>> 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)???
>> Look in the phone and modems options in the control panel. They might be
>> there.
>>
> Nope, not there....
> Any oher idea?
>
Have you tried Device Manager and selecting the Show Hidden option under
the View tab?
(Msg. 5) Posted: Tue Dec 11, 2007 8:09 am
Post subject: Re: Too many COM port numbers, how to delete them? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
"Bo Berglund" wrote in message
>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).
(Msg. 6) Posted: Tue Dec 11, 2007 8:11 am
Post subject: Re: Too many COM port numbers, how to delete them? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
"Michael W. Ryder" wrote in message
> Bo Berglund wrote:
>> On Mon, 10 Dec 2007 23:51:04 GMT, "Claggy" wrote:
>>
>>> "Bo Berglund" wrote in message
>>> >>>> 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)???
>>> Look in the phone and modems options in the control panel. They might be
>>> there.
>> Nope, not there....
>> Any oher idea?
>>
>
> Have you tried Device Manager and selecting the Show Hidden option under
> the View tab?
>
Good try but ...
This won't work unless you enable the facility first - see my other post on
how to do this.
(Msg. 7) Posted: Tue Dec 11, 2007 8:12 pm
Post subject: Re: Too many COM port numbers, how to delete them? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
On Tue, 11 Dec 2007 08:09:47 -0000, "M.I.5¾"
wrote:
>
>"Bo Berglund" wrote in message
> >>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.
(Msg. 8) Posted: Wed Dec 12, 2007 8:37 am
Post subject: Re: Too many COM port numbers, how to delete them? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
"Bo Berglund" wrote in message
> On Tue, 11 Dec 2007 08:09:47 -0000, "M.I.5¾"
> wrote:
>
>>
>>"Bo Berglund" wrote in message
>> >>>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.
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum