CodeConnect.Net Beta


   Explore    Entry   Register  Login  
windowsxp-general
access
windows-vista-mail
windows-vista-general
windowsupdate
windowsmedia-player
access-forms
windows-live-mail-desktop
windowsxp-help_and_support
access-queries
access-modulesdaovba
access-formscoding
windows-server-sbs
windows-server-general
access-reports
windows-vista-music_pictures_video
windowsce-platbuilder
windows-live-messenger
windows-terminal_services
windows-powershell
windows-server-active_directory
access-gettingstarted
windows-mediacenter
windowsxp-hardware
windowsxp-network_web
windows-64bit-general
windows-live-sync
windows-vista-hardware_devices
windows-inetexplorer-ie6_outlookexpress
windows-group_policy
windows-server-networking
windows-vista-installation_setup
windows-vista-networking_sharing
windowsxp-basics
access-tablesdbdesign
windowsxp-perform_maintain
windows-vista-performance_maintenance
windows-networking-wireless
windows-vista-file_management
windows-inetexplorer-ie6-browser
windows-server-dns
windows-server-update_services
windows-vista-security
windows-vista-administration_accounts_passwords
windows-vista-games
windows-file_system
access-activexcontrol
windows-live-foldershare
windows-live-photogallery
access-developers-toolkitode
access-conversion




Can Reply:  Yes Members Can Edit: No Online: Yes
Zone: > Microsoft News > microsoft.public.windowsce.platbuilder Tags:
Item Type: Date Entered: 11/27/2009 8:19:03 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 0 Views: 109 Favorited: 0 Favorite
4 Items, 1 Pages 1 |< << Go >> >|
Fabrice MOUSSET
NewsGroup User
Power Manager under Windows CE 6.0011/27/2009 8:19:03 AM
Reply

0

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
=?Utf-8?B?Vmlub
NewsGroup User
RE: Power Manager under Windows CE 6.0011/27/2009 10:55:01 AM
Reply

0

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
> .
>
Fabrice MOUSSET
NewsGroup User
Re: Power Manager under Windows CE 6.0011/27/2009 11:18:16 AM
Reply

0

Hi Vinoth
I think you are right.
The {CC5195AC-BA49-48a0-BE17-DF6D1B0173DD} class guid is for serial=20
port, and has no link to power manager.
Your explanation seems to be logical for me, in my mind I have link all=20
GUID with the Power-manager, but that's not the case.
Now I understand why it doesn't work :-)

Thanks a lot for your comments

Fabrice


Vinoth [MCTS] a =C3=A9crit :
> AS UP TO MY KNOWLEDGE=20
> "{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}" is the class guid for serial p=
ort=20
> driver(CE_DRIVER_SERIAL_PORT_GUID). and this is not the power class gui=
d. See=20
> the following registry...
>=20
> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\Interfaces]
> "{A32942B7-920C-486b-B0E6-92A702A99B35}"=3D"Generic power-manageabl=
e=20
> devices"
> "{8DD679CE-8AB4-43c8-A14A-EA4963FAA715}"=3D"Power-manageable block =
devices"
> ; @CESYSGEN IF CE_MODULES_NDIS
> "{98C5250D-C29A-4985-AE5F-AFE5367E5006}"=3D"Power-manageable NDIS m=
iniports"
> ; @CESYSGEN ENDIF CE_MODULES_NDIS
> ; @CESYSGEN IF CE_MODULES_GWES
> "{EB91C7C9-8BF6-4a2d-9AB8-69724EED97D1}"=3D"Power-manageable displa=
y"
>=20
> These are the class guids used for different classifications of devices=
=2E=20
> serial driver power classification will come under the=20
> "{A32942B7-920C-486b-B0E6-92A702A99B35}"=3D"Generic power-manageable de=
vices"=20
> power class.
> Instead of this,
>=20
> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\State\LocalM=
ode\{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}]
> "Default"=3Ddword:4; D4
> "Flags"=3Ddword:0
>=20
> you can try this . but it will affect other drivers registered in the s=
ame=20
> power class.
>=20
>=20
> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\State\LocalM=
ode\{A32942B7-920C-486b-B0E6-92A702A99B35}]
> "Default"=3Ddword:4; D4
> "Flags"=3Ddword:0
>=20
> So if you what to control your serial drivers alone, the best way is th=
e=20
> second one.
> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\State\LocalM=
ode]
> "Default"=3Ddword:0; D0
> "com1:"=3Ddword:4;
> "com2:"=3Ddword:4;
> "Flags"=3Ddword:0
>=20
> I have more more idea, but i didn't experiment before.you can try with =
your=20
> own risk.
> can you add the "{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}" to the=20
> [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).
>=20
> Good Luck,


"Michel Verhage
NewsGroup User
Re: Power Manager under Windows CE 6.0011/28/2009 10:38:02 PM
Reply

0

Make sure your settings are in the boot hive!

Good luck,

Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog

GuruCE
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.

Fabrice MOUSSET wrote:
> Hi Vinoth
> I think you are right.
> The {CC5195AC-BA49-48a0-BE17-DF6D1B0173DD} class guid is for serial
> port, and has no link to power manager.
> Your explanation seems to be logical for me, in my mind I have link all
> GUID with the Power-manager, but that's not the case.
> Now I understand why it doesn't work :-)
>
> Thanks a lot for your comments
>
> Fabrice
>
>
> Vinoth [MCTS] a écrit :
>> 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,
>
>
4 Items, 1 Pages 1 |< << Go >> >|







Similar:

spam control in sbs 2003/exchange 2003

where is the script to convert domain computers to sbs computers?

sbs 2008 unresponsive

where is exchange "administrative group"?

blocking users from using web proxies

isa server: logging no good

sbs 2003 r2 question

script help needed

sbs - windows vista policy or windows 7 policy

server 2008 member server cannot join domain

public folders container exists under all address lists in active

exchange store needs jenny craig [sbs 2003 r2]

installing ad connector

exchange 2007

help on out of office message in sbs 2003 and exchage

forefront client security update-installation problem.

creating word documents in sharepoint

mmc error - sbs2003

error returned while creating the volume shadow copy

internet connection problem using the connection wizard

assing w2k3 to the domain

rww

default websites missing after running iceicw

migrating sbs2003 to sbs2008

rdp reboot request - no reboot - rdp locked

isa blocks client automatic updates

sbs 2008 volume shadow copy wont start

rww error

iis admin service

decommissioning exchange server in sbs 2003

event id 560 and http 500 error related?

xp pro bsod

sbs2008 to sbs2008 migration

ie won't run unless you have admin priv

sbs 2003 to sbs 2008 migration

sbs2008 incoming emails stopped

new ip and ssl

email senden

script help needed

sbs sp1 but sp2 already installed...

network problems upgrading vista to win 7 on sbs2003

prevent user from login to rww>

email bounce "from: derived from envelope by postmaster@mail-9.uk.tiscali.com"

sbs2008 - activesync - maximum inactivity time lock 15mins

will i have to pay twice for a certificate?

2008 backup usb drive rotation. safely remove hardware?

internet address management wizard - reports ports blocked

sbs2008 folder redirection and logoff sync errors

users offline cannot access network resources

sbs2003: email alias - separate into a different folder

   
  Privacy | Contact Us
All Times Are GMT