AS UP TO MY KNOWLEDGE
"{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}" is the class guid for serial port
driver(CE_DRIVER_SERIAL_PORT_GUID). and this is not the power class guid. See
the following registry...
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\Interfaces]
"{A32942B7-920C-486b-B0E6-92A702A99B35}"="Generic power-manageable
devices"
"{8DD679CE-8AB4-43c8-A14A-EA4963FAA715}"="Power-manageable block devices"
; @CESYSGEN IF CE_MODULES_NDIS
"{98C5250D-C29A-4985-AE5F-AFE5367E5006}"="Power-manageable NDIS miniports"
; @CESYSGEN ENDIF CE_MODULES_NDIS
; @CESYSGEN IF CE_MODULES_GWES
"{EB91C7C9-8BF6-4a2d-9AB8-69724EED97D1}"="Power-manageable display"
These are the class guids used for different classifications of devices.
serial driver power classification will come under the
"{A32942B7-920C-486b-B0E6-92A702A99B35}"="Generic power-manageable devices"
power class.
Instead of this,
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\State\LocalMode\{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}]
"Default"=dword:4; D4
"Flags"=dword:0
you can try this . but it will affect other drivers registered in the same
power class.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\State\LocalMode\{A32942B7-920C-486b-B0E6-92A702A99B35}]
"Default"=dword:4; D4
"Flags"=dword:0
So if you what to control your serial drivers alone, the best way is the
second one.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\State\LocalMode]
"Default"=dword:0; D0
"com1:"=dword:4;
"com2:"=dword:4;
"Flags"=dword:0
I have more more idea, but i didn't experiment before.you can try with your
own risk.
can you add the "{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}" to the
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\Interfaces]
list and try the same one you have done initially.
it may work out. (BUT NOT SURE).
Good Luck,
--
vinoth.R
http://www.windowsfordevices.com/articles/AT8185724467.html
http://e-consystems.com/gprsconnectivity.asp
http://vinoth-vinothblog.blogspot.com
http://e-consystems.com/blog
"Fabrice MOUSSET" wrote:
> Hi all,
> I have a question about the power manager settings under Windows CE 6.00
> On my BSP, I have 2 serial ports. I have added power management support
> on the serial port driver.
> In the registry, I have put following settings:
> [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\COM1]
> "DeviceArrayIndex"=dword:0
> "IoBase"=dword:1000C000 ;UART3 Memory Map Address
> "IoLen"=dword:D4
> "Prefix"="COM"
> "Dll"="mx27_serial.Dll"
> "Order"=dword:1
> "Priority"=dword:0
> "Index"=dword:1
>
> "IClass"=multi_sz:"{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}","{A32942B7-920C-486b-B0E6-92A702A99B35}"
>
> [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\COM2]
> "DeviceArrayIndex"=dword:0
> "IoBase"=dword:1000A000 ;UART1 Memory Map Address
> "IoLen"=dword:D4
> "Prefix"="COM"
> "Dll"="mx27_serial.Dll"
> "Order"=dword:1
> "Priority"=dword:0
> "Index"=dword:2
>
> "IClass"=multi_sz:"{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}","{A32942B7-920C-486b-B0E6-92A702A99B35}"
>
>
> My goal is to be able to cut-off all serial ports in a specific system
> power state called "LocalMode". To do this I added following settings in
> the registry.
> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\State\LocalMode\{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}]
> "Default"=dword:4; D4
> "Flags"=dword:0
>
> But this don't work!
>
> When I dot this
> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\State\LocalMode]
> "Default"=dword:0; D0
> "com1:"=dword:4;
> "com2:"=dword:4;
> "Flags"=dword:0
>
>
> The serial ports are down...
> So I have a working solution for my application, but can someone explain
> me why the first solution don't work?
>
> Best regards
>
> Fabrice
> .
>