This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Never seeing GPS_EVT_SEARCH_TIMEOUT and only seeing GPS_EVT_SEARCH_STARTED once (nrf9160)

Hi!

I am developing an application that starts and stops gps occasionally. I am running the gps in GPS_NAV_MODE_PERIODIC with a timeout of 100s and an interval of 240s. However, even after well over 100s, I do not see GPS_EVT_SEARCH_TIMEOUT. Can you explain why the application is behaving this way and any suggestions for fixing this issue?

Another weird behavior I have noticed is that after initially starting the gps, I only see GPS_EVT_SEARCH_STARTED when the interval ends after getting a fix the previous interval. I do not see GPS_EVT_SEARCH_STARTED after manually stopping and restarting the gps functionality. Is this the intended behavior or is something wrong?

Thanks in advance for the help!

Related