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

nRF9160 AGPS sample

In the AGPS sample for nRF9160 "v1.5.1\nrf\samples\nrf9160\agps" main.c, there is option to set interval an and timeout in "gps_config" structure in "gps_start_work_fn" routine. What is the maximum value of interval that can be set? I am getting error of any interval value greater than 1800 seconds.

Error on the log:

I: CLOUD_EVT_READY                                                              
I: Service info sent to cloud                                                   
D: GPS mode is enabled                                                          
E: Failed to set fix interval value                                             
E: Failed to start GPS, error: -5  

I need to set interval value to 4 hours (14400 sec) and 24 hours (86400 sec) for a test that I am doing. Can you suggest where is the limit set and how I can increase it?

Parents Reply Children
  • Markus,

    I installed NCS v1.6.1 and tried out AGPS sample for it as well but I received same error as I had for AGPS sample in NCS 1.5.1.

    I noticed the radio module on the nRF9160_DK (v1.0.0) that I received couple of months ago was running firmware "mfw_nrf9160_1.2.3". I updated modem firmware to "mfw_nrf9160_1.3.0" and immediately I was able to make AGS example work with longer interval timer.

    So there is some dependency of GPS interval timer in AGPS sample with the modem firmware. Now I am able to set longer interval timer with modem fw v1.3.0.

    Thanks.

Related