mendhak / gpslogger

:satellite: Lightweight GPS Logging Application For Android.
https://gpslogger.app
Other
1.95k stars 604 forks source link

GPSLogger randomly jumping between locaitons #1155

Open sirs2k opened 1 month ago

sirs2k commented 1 month ago

Hi,

I've been using gpslogger for at least 5 yrs and I've never had this problem before. It's really weird and frustrating

My phone is the poco f3 and everything has been running great as usual My wife's phone which is a samsung flip4, the gps coords are jumping between home and the current location where the phone is at. Or, sometimes there's a delay in reporting the updates until all of a sudden, the whole drive is reported at once. So you have a drive that took 20 minutes, which in home assistant looks like it was done within seconds

At first, I thought it was a home assistant problem until I enabled the location tracking in the companion app (with high accuracy). I've since had a couple of instances where gpslogger had that jumping problem, but the HA device tracker has not

Both phones have the exact same gpslogger settings Here's the issue on the HA github https://github.com/home-assistant/core/issues/121441

Any ideas?

mendhak commented 1 month ago

Without actually seeing it, I think there might be two issues at play here.

First one is the jumping back and forth - this can happen when locations are cached. The phone's GPS provider is reporting a cached location while it gets the real one, then gets the real one. You could have a look in performance settings. Do you have network and satellite and passive enabled? Try disabling passive. Try enabling either network or satellite, to see if that reduces the jumping.

The other issue you described where the whole thing is reported at once, sounds like network. The app is configured to send the data only when a network connection is available. That is, if the OS reports that it has a 'stable' internet connection, it will report it. There's a sub-setting to that which is 'wifi only', which means, if the OS reports it has a stable internet connection and is on WIFI, it will send the location.

It could be that the points are being collected but no stable OS connection exists, so it's just waiting.

Another thing that could be blocking updates is doze mode, but that only applies if the phone is off in that duration, it's in doze mode, and the app is allowed to send requests every 15-20 minutes.

The only real way to know for sure is through a debug log, but I'm giving some pointers based on the behaviour described, maybe it helps. It'll also help to know which version you used and what settings you had, and if this started happening recently and does it work in the previous version.