weasel5i2
9th June 2008, 04:52 AM
Hello,
This is my first attempt at .NET CF programming. It is in reference to this thread (http://forum.xda-developers.com/showthread.php?t=371734).
It attempts to cycle the power to the GPS hardware eight times (at 200ms intervals) by calling GPSOpenDevice() and GPSCloseDevice().
It also shows the raw information provided by GetSystemPowerStatusEx2() if you need to troubleshoot your battery.
I'm not sure that it works, but it attempts to do programmatically what is described in the thread link above.
Full source code is included. I think it is also a great tutorial VB.NET project for anyone wanting to learn how to read the power on their device.
Please let me know what you think, and if it even works towards being a workaround for the HTC/Qualcomm chip standby-power drain bug. If it does work, I'll improve it (add autorun/exit-after capability, systray, etc..)
To use this without dealing with VS2005/compiling/etc, just copy HQPowerFix.exe from the bin/Release folder (in the zip) to your device (anywhere) and run it from there.
Note: These images are from my development machine. They look different on the device:
http://www.weasel.net/HQPF.png http://www.weasel.net/HQPF2.png
Regards,
--Weasel5i2
This is my first attempt at .NET CF programming. It is in reference to this thread (http://forum.xda-developers.com/showthread.php?t=371734).
It attempts to cycle the power to the GPS hardware eight times (at 200ms intervals) by calling GPSOpenDevice() and GPSCloseDevice().
It also shows the raw information provided by GetSystemPowerStatusEx2() if you need to troubleshoot your battery.
I'm not sure that it works, but it attempts to do programmatically what is described in the thread link above.
Full source code is included. I think it is also a great tutorial VB.NET project for anyone wanting to learn how to read the power on their device.
Please let me know what you think, and if it even works towards being a workaround for the HTC/Qualcomm chip standby-power drain bug. If it does work, I'll improve it (add autorun/exit-after capability, systray, etc..)
To use this without dealing with VS2005/compiling/etc, just copy HQPowerFix.exe from the bin/Release folder (in the zip) to your device (anywhere) and run it from there.
Note: These images are from my development machine. They look different on the device:
http://www.weasel.net/HQPF.png http://www.weasel.net/HQPF2.png
Regards,
--Weasel5i2