Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat could be the cause for GPS issues of variable length during specific time intervals (periodic gps problems)?
    primarykey
    data
    text
    <p>I have developed an industrial geo-tracking application that runs daily. It uses GPS for long periods of time and requires accurate (GPS only) and frequent (~ every 5 sec) updates.</p> <p>Although this app is running on multiple identical hardware models (Samsung Tab2), some devices do not report location updates for intervals of variable length (2 min up to 1 hour). (Curiously, this "blackout" period often happens around 15:00-19:00 GMT+2). Also, this tends to happen with just a subset of devices, suggesting a hardware problem.</p> <p>Another possibility is that my processLocation method, called inside LocationListener.onLocationChanged takes too long and gets stuck (?). (Of course this doesn't explain why the problem is specific to a subset of devices for a certain period of time.)</p> <p>This is a reproduction of that code:</p> <pre><code>mLocationListener = new LocationListener() { public void onLocationChanged(Location location) { if (location.getProvider().equals("gps") &amp;&amp; location.getAccuracy() &lt; accuracyThresh) { processLocation(location, time); } else { discardLocation(location, time); } } public void onProviderDisabled(String provider) { } public void onProviderEnabled(String provider) { } }; </code></pre> <p>The problem appears to fix itself after a blackout period.</p> <p>This may be relevant (<a href="https://stackoverflow.com/questions/15087738/what-causes-erratic-gps-estimates-during-certain-time-intervals">What causes erratic GPS estimates during certain time intervals?</a>) although here there is nothing systematic about the time when this issues appeared.</p> <p>As in that case, I am having difficulties to determine if this is caused by a bug in my code.</p> <p>I wonder if someone has had a similar experience or could point me in the right direction. Any suggestions for debugging? Many thanks in advance!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload