You can try installing some GPS-aid app, i.e "GPS status & toolbox", to check if location services are working well.
Additionally, if you are in a mobile-covered area, the above app will improve your fix speed by forcing download of AGPS data from the network (do it once, lasts several days) or some diagnostic, like "Sensor sense", which can check if the GPS receiver works properly.
As a last resource, you can decide to rely on an external GPS receiver, i.e. Garmin GLO or similar. Even though this solution will cost a little, the external hardware is usually faster and more precise than the integrated one, so it may be worth the cost.
Cheers,
Max
Testing
In the village (900m above sea level) : everything is fine with the GPS.
In the mountains (> 1000m) : I start the smartphone. I open 'GPS Test' app => I get a GPS fix. Then I put the app in the background or lock the screen, then I reselect the app => impossible to get a fix
Same behaviour with Osmand. Same when I close the app and then relaunch it.
Workaround 1
In GPS Test, I go in the A-GPS menu, do 'clear cache' or 'clear & update'. Still no fix in GPS Test. But if I send GPS Test in the background then select Osmand, I get a fix after 1 minute in Osmand (would be the same with GPS Test : if I send GPS Test in the background then reselect GPS Test, I get a fix after 1 minute in GPS Test). This workaround can be used in emergency but is not convenient. My hypothesis is that the GPS cache is somehow corrupted when the app is sent to background or closed. Any app launched at this point will fail to get a fix, until the GPS cache is cleared.
Workaround 2
In Osmand, I start a trace recording with recording interval set to 3 minutes (to preserve battery). From this point, I can send Osmand in the background or lock the screen without losing the GPS fix. It may consume a bit of battery, but at least, I can use the GPS in mountains. That's great.
This is a strange bug, considering it happens only in altitude, or depending on some other parameters I'm not aware of.
If anybody thinks about a real fix for this issue, please tell me!!
--
You received this message because you are subscribed to a topic in the Google Groups "Osmand" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/osmand/kAmLjznVFLE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to osmand+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osmand/7824c6fd-b132-4719-9cd0-df705aad9632%40googlegroups.com.
This is what I read...You are getting a solid GPS lock in other applications but when you switch to osmand that connection is reset.
Occasionally if osmand goes to the background and back to the foreground it is reset again.
You can confirm this by getting a strong lock in gpstest in airplane mode, switching to osmand, and then switching back to gpstest to see if it is busy acquiring a lock again. Gpstest does not reset the GPS when it goes to the foreground.
If you see gpstest looking for a lock, then the GPS has been initialized by the APP you opened...osmand. All of those other settings power/battery/etc only affect the device if it goes into power mode(the best way to keep your device out of power mode is to attach a charged battery pack and leave it connected.) Devices attached to power sources don't experience power related performance drops, and you may find that you get cell service farther away as well since the cellular radio will use a higher transmission powered if it is getting power.
If you still experience lock loss with a battery after an immediate application switch then it is not a power issue, but an application one. That is a developer issue and needs to be handled as a bug or by contacting support. They will need device information, android version etc. All of these things no one has thought to ask you, and since we are not developers cannot for the most part answer.
Since osmand is resetting the GPS every time the application goes to the foreground its killing your established lock. Since you are in airplane mode, the GPS isn't doing a warm reset, since towers are not available, but instead a cold one. I have seen this problem before.
Altitude has little to do with this or speed really. I have successfully maintained airplane mode GPS locks at commercial air transportation speeds(550kmh) and altitudes(11455m) for 5 hour flights. Speed was a bit wonky over 500kmh mainly because consumer units don't expect you to be going that fast so it messes with the averaging profile that smooths position information. All applications see the averaged cleaned data. If were to look at the raw dirty data, even with a sub 3m lock the position reported could be anywhere within that circle. If two points are reported on opposite sides of that circle you are doing 10kmh between them. At a 30m error circle its 108 kmh between the edges. The averaged data has you going much slower, but also lagged slightly when you first start moving.
It seems to me that people are reading with expectations rather than reading what you are writing.This is what I read...You are getting a solid GPS lock in other applications but when you switch to osmand that connection is reset
Some precisions :
1. The issue I have is not limited to Osmand app
2. The issue may very well not be related to altitude. Indeed, I sometimes get a normal behaviour at 1000m, 2000m or 3000m for few moments. The fact is that I have not noticed it below 1000m. But I fully agree it may be caused by something else that I am unaware of. I would need more testing under 1000m (without activating track recording, which I often activate when I am not in the mountains and have not concerns with recharging batteries).
3. I don't think it's related to trees
4. Testing with other phones show no issues. Actually, getting a fix is no problem with my phone when using workarounds. I mean getting a GPS fix is very easy anywhere I have been as soon as my phone is in the correct state. I am NOT talking about any difficulties to get GPS signals and a fix. I'm just talking about a bad state my phone goes in.
As I said, I'll reset my phone when I'll have the opportunity. For now, I think we can consider this thread closed.
Thank you again !
In some cases, modded roms are derived from other devices (i.e. with the same cpu) and could not fully support all the hardware in yours: I had a similar experience, several years ago, when I installed a Cyanogen mod in my cell: it was nice but I completely lost the FM radio and GPS functionality.
If this is your case, try also reverting to a standard rom from Samsung; anyway,if the
Problem persists, it is definitely an issue with your device.
Please let us know when you have some news.
Max