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 Children
  • 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

  • Hello 

    we perform the initial tests with SDK 1.7.1 and observe totally different behavior .

    the AGPS including the connection and download files taken about 15-20 sec until GPS lock.

    from your reply i understand that there is no reason to use AGPS? 

  • Hi,

     

    You are counting from the wrong timestamp. You must compare the two options when the GPS is actually running.

    When using AGPS, you will first download GPS data from the internet, then you'll have to wait until the GPS can run (ie. LTE Link is idle) before you will get valid pvt/nmea frames.

     

    If your conclusion is that you do not need AGPS, that is an application specific decision, but we do offer this to avoid a cold start scenario for the GPS. 

     

    Kind regards,

    Håkon

Related