Windows XP Community - XPHeads



Preventing PnP discovery on com port

microsoft.public.windowsxp.embedded


Reply
  #1 (permalink)  
Old 06-25-2008, 06:07 PM
LarryW
 
Posts: n/a
Preventing PnP discovery on com port
We have an 'intelligent' UPS attached to our device on a serial port but
we're not using the application or driver. Each time we boot the 'found new
hardware' wizard comes up for that device. Is there any registry setting or
something we can change to eliminate the discovery but just on that one
serial port? Thanks!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-25-2008, 07:21 PM
Dave R.
 
Posts: n/a
Re: Preventing PnP discovery on com port

"LarryW" <lwdaddio@newsgroups.nospam> wrote in message
news:VA.000000b1.00e33e7f@newsgroups.nospam...
> We have an 'intelligent' UPS attached to our device on a serial port
> but
> we're not using the application or driver. Each time we boot the
> 'found new
> hardware' wizard comes up for that device. Is there any registry
> setting or
> something we can change to eliminate the discovery but just on that
> one
> serial port? Thanks!


Set the following in the registry:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\A CPI\PNP0501\1\Device
Parameters]
"SkipEnumerations"=dword:ffffffff

The above is for port 1, for port 2 use ...\2\Device Parameters

Google skipenumerations for more info if desired / needed.

You might also need to add /fastdetect to BOOT.INI similar to this:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Micro soft Windows XP
Professional" /noexecute=optin /fastdetect /bootlogo /noguiboot

That will affect all ports though, and I'm not sure if it will be needed
or not.

Hope this helps,

Dave


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-26-2008, 10:33 PM
LarryW
 
Posts: n/a
Re: Preventing PnP discovery on com port
In article <e0Fwmiv1IHA.3884@TK2MSFTNGP05.phx.gbl>, Dave R. wrote:
> From: "Dave R." <dwragle (at) drbsystems (dot) com>
> Subject: Re: Preventing PnP discovery on com port
> Date: Wed, 25 Jun 2008 15:21:17 -0400
> Newsgroups: microsoft.public.windowsxp.embedded
>
> "LarryW" <lwdaddio@newsgroups.nospam> wrote in message
> news:VA.000000b1.00e33e7f@newsgroups.nospam...
> > We have an 'intelligent' UPS attached to our device on a serial port
> > but
> > we're not using the application or driver. Each time we boot the
> > 'found new
> > hardware' wizard comes up for that device. Is there any registry
> > setting or
> > something we can change to eliminate the discovery but just on that
> > one
> > serial port? Thanks!

>
> Set the following in the registry:
>
> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\A CPI\PNP0501\1\Device
> Parameters]
> "SkipEnumerations"=dword:ffffffff
>
> The above is for port 1, for port 2 use ...\2\Device Parameters
>
> Google skipenumerations for more info if desired / needed.
>
> You might also need to add /fastdetect to BOOT.INI similar to this:
>
> [boot loader]
> timeout=30
> default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S
> [operating systems]
> multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Micro soft Windows XP
> Professional" /noexecute=optin /fastdetect /bootlogo /noguiboot
>
> That will affect all ports though, and I'm not sure if it will be needed
> or not.
>
> Hope this helps,
>
> Dave
>


You got me started down what looked like the right path but the COM1 and COM2
ports don't seem to be ACPI and were in the 'Root' instead. And the entry
wasn't the port number '1' but was 'PnPBIOS_12'. When I set that key's
SkipEnumerations value then I stopped getting the 'new hardware found'.
Unfortunately, now the port isn't even seen so I can't use COM1:.

When the new hardware wizard would come up, if I went to the next screen of
the dialog there was a check-mark to say not to ask me again and if I checked
that then I didn't see it on subsequent boots but was still able to use the
COM port. What I need is to be able to set whatever it is that checkbox does
in my target design file.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-26-2008, 10:40 PM
LarryW
 
Posts: n/a
Re: Preventing PnP discovery on com port
The registry entry I ended up using was:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\*PNP0501\PnPBIOS_12\Dev
ice Parameters\SkipEnumerations

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:21 PM.








Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74