Hi,
I've been scowering the SDK dicumentation and DevZone for this information without finding it. My apologies if this has been answered before.
When using the SUPL library together with the GPS, the event GPS_EVT_AGPS_DATA_NEEDED is generated by the GPS whenever A-GPS data is needed. Normally, this occurs when the GPS is started for the first time and then regularly (about every hour?). This works fine.
What I don't understand, however, is:
1. If I perform a "manual" SUPL session when starting my app before starting the GPS (similar as in the agps sample), GPS_EVT_AGPS_DATA_NEEDED is still generated when the GPS is started the first time.
2. If the A-GPS data is not provided when GPS_EVT_AGPS_DATA_NEEDED is received (e.g. if the SUPL request fails), GPS_EVT_AGPS_DATA_NEEDED is not regenerated when the GPS is started the next time.
How should I proceed to better control the A-GPS data supplied to the GPS, especially in case s when the SUPL request fails (e.g., due to a temporary failure of the LTE connection)? In other words, is there some way I can affect when the GPS should request A-GPS data?
Can I simply rely on that the GPS uses whatever SUPL data I supply prior to starting a GPS fix attempt, i.e. perform one or more manual SUPL sessions until success whenever GPS_EVT_AGPS_DATA_NEEDED is received?
(Im mostly running nRF Connect SDK version: 1.3.2, SUPL client library version: v0.7.1, and nRF9160 modem firmware version: 1.2.3)
Best regards,
Per