Suddenly two COM2 ?

Posted: 01-18-2005, 12:55 PM
Hi

I have seen a strange problem on my XP boks.

I have written a device driver thats uses COM1. I therefore have created my
own group, so my driver is started after the Serial driver. The serial
driver is started with group Extended Base, so I have created my group just
after this on, in the ServiceGroupOrder list.

But suddenly I have to COM2 in my device manager (no COM1) and a warning in
my system log that says "Unable to create the symbolic link for
\Device\Serial0", event id 4. This has suddenly happen after a while and
many reboots/restarts.

This is what the PnP has detetcted:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\*PNP0501]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\*PNP0501\PnPBIOS_12\D
evice Parameters]
"DosDeviceName"="COM1"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\*PNP0501\PnPBIOS_13]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\*PNP0501\PnPBIOS_13\D
evice Parameters]
"DosDeviceName"="COM2"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\*PNP0501\PnPBIOS_14]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\*PNP0501\PnPBIOS_14\D
evice Parameters]
"DosDeviceName"="COM2"

This is what the serial driver used:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Serial]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Serial\Enum]
"0"="Root\\*PNP0501\\PnPBIOS_13"
"1"="Root\\*PNP0501\\PnPBIOS_14"

Any idea why the PnP suddenly has detected the same COM port again ??

After uninstalling COM2 and COM 2 from the device manger, PnP has now
installed COM1 and COM2

After re-install:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\*PNP0501\PnPBIOS_13]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\*PNP0501\PnPBIOS_13\D
evice Parameters]
"DosDeviceName"="COM1"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\*PNP0501\PnPBIOS_14]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\*PNP0501\PnPBIOS_14\D
evice Parameters]
"DosDeviceName"="COM2"

Could it has something todo with my driver using serial device 0 ? To soon
usage of the port does something with PnP, or..... ???


Thomas



Reply With Quote

Responses to "Suddenly two COM2 ?"

Maxim S. Shatskih
Guest
Posts: n/a
 
Re: Suddenly two COM2 ?
Posted: 01-18-2005, 03:17 PM
> I have written a device driver thats uses COM1. I therefore have created my
> own group, so my driver is started after the Serial driver.
Why not use PnP arrival notifications instead?

Also - if the device is PnP-enumerable from the COM port hardware, then use
SERENUM for it, like for serial mouse.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com


Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 COM2 ports! where is COM1 Craig CLarke Windows XP Configuration & Management 1 08-18-2004 05:42 PM
Suddenly no sounds Mari Windows XP Music 0 10-09-2003 05:46 AM
COM2 JACK PURYEAR Windows XP Device Drivers 0 09-30-2003 01:58 AM
Help !! : "Com2 port -- can not open" Greg Windows XP Setup 1 07-22-2003 02:36 PM