V
V
Vladimir2014-11-27 15:37:33
C++ / C#
Vladimir, 2014-11-27 15:37:33

How to make regular (frequent) getting coordinates in sleep (Connected stanby) mode in Win8.0?

There are a number of tablets with Windows 8.0. The task is to collect data on the location of these tablets (make a track).
The program is a windows service written in C# that uses System.Device.Location.GeoCoordinateWatcher to receive changes in location.
The problem is that in sleep mode (Connected standby mode), it seems like the service works, but does not receive data from the GPS sensor, or maybe the processor time allocated to it is not enough to receive them.
Added a timer that runs every 10 seconds, but in sleep mode the timer actually runs every 2-3 minutes.
As far as I understand from the documentation, there is such a limitation - only 1 second of CPU time per 2 hours falls to my service. Is there any way to bypass this limitation? or live with it but receive regular location data?
I also assume that the GPS sensor is disabled in sleep mode. But I need it to be turned on, so that if necessary, I could get the coordinates as soon as the device "sees" enough satellites.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question