nrf9160, AGPS works longer than GPS

We use nRF9160 on our own board.
The firmware "Serial lte modem" is installed on the chip with a connection to an external MCU (#define MQTT_MESSAGE_BUFFER_LEN 8192)
We tested the environment with periodic switching from AGPS to GPS.
And in tests, we constantly see that the operating time with AGPS is twice as long as with just using GPS.

Average waiting time when using AGPS: 1 minute + 10-15 seconds;
Average waiting time when using GPS: 30-40 seconds.

What could be the reason for such behavior?
It was expected that the operating time with AGPS would be significantly faster than with GPS.

The command sequence for AGPS:
AT+CEREG=5
AT+CFUN=1
AT#XNRFCLOUD=1
AT#XAGPS=1,1

The command sequence for GPS:
AT+CEREG=5
AT+CFUN=31
AT#XGPS=1,1

The tests were carried out statically, without movement.




Parents Reply
  • Hi,

     

    This is because it connects, over IP, to nrf cloud to download the GPS almanac, time-of-week, ephemerides etc.

    You are effective downloading a binary blob and pushing this to the GNSS (ie. GPS), and you must wait until the LTE Link is idle before starting it. This is what takes more time compared to just starting the GPS.

     

    If you already have refreshed the AGPS, you can just start the GPS with AT#XGPS instead.

     

    Kind regards,

    Håkon

Children
Related