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

NRF_SO_GNSS_FIX_RETRY seems to have no effect for First Fix

Hi,

Perhaps I have a misunderstanding of this GNSS Socket Option.

In the GPS Sample Project (samples/nrf9160/gps) with a nrf9160-dk and no connected GPS Antenna, I set:

- Interval to 0 (Single Fix)

- Retry to 60 (60 Seconds timeout for getting Fix)

But the GNSS Module will not stop searching for the First Fix. Regarding the documentation, the GNSS Module should powerdown after 60 seconds.

Best,

Marcel

Parents Reply
  • Hi Martin,

    Yes, only to be sure, I reflashed the DK to 1.2.2 and did a clean checkout of the 1.4.0 Branch.

    Then I set in main.c of the gps demo:

    nrf_gnss_fix_retry_t fix_retry = 90;
    nrf_gnss_fix_interval_t fix_interval = 0;

    but the GPS Modul will not stop to search for the Fix:

    Tracking: 0 Using: 0 Unhealthy: 0
    ---------------------------------
    Seconds since last fix: 413
    Searching [|]

    NMEA strings:

    $GPGGA,000653.09,,,,,0,,99.99,,M,0,,*3E
    $GPGLL,,,,,000653.09,V,N*43 | |
    $GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,1*2D 
    $GPGSV,1,1,0,,,,,,,,,,,,,,,,,1*54 | |
    $GPRMC,000653.09,V,,,,,,,060180,,,N,V*01 
    ---------------------------------

    Did you try the same on your side and it did stop searching?

Children
Related