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
  • Hi Marcel,
    From your description it does not sound that you are not running a timeout, every 60sec.

    You may have mismatched something in your application.
    Could you please double check what you are doing in the socket calls?

  • HI Martin,

    Thank you for your feedback, perhaps I was not clear enough.

    To reproduce this behaviour, I have used the GPS Sample, in the NCS (nrf/samples/nrf9160/gps), I do not use my own application. 


    I have changed the following lines in main.c:

    static int gnss_ctrl(uint32_t ctrl)
    {
    int retval;

    nrf_gnss_fix_retry_t fix_retry = 40;
    nrf_gnss_fix_interval_t fix_interval = 0;

    I have removed the external Antenna and I use the DK indoor, so there is no chance to get a fix.

    When I start this Sample App, the GPS Receiver will not stop searching after 40 Seconds.

    .... or do I have a misunderstanding of the NRF_SO_GNSS_FIX_RETRY setting?

Reply
  • HI Martin,

    Thank you for your feedback, perhaps I was not clear enough.

    To reproduce this behaviour, I have used the GPS Sample, in the NCS (nrf/samples/nrf9160/gps), I do not use my own application. 


    I have changed the following lines in main.c:

    static int gnss_ctrl(uint32_t ctrl)
    {
    int retval;

    nrf_gnss_fix_retry_t fix_retry = 40;
    nrf_gnss_fix_interval_t fix_interval = 0;

    I have removed the external Antenna and I use the DK indoor, so there is no chance to get a fix.

    When I start this Sample App, the GPS Receiver will not stop searching after 40 Seconds.

    .... or do I have a misunderstanding of the NRF_SO_GNSS_FIX_RETRY setting?

Children
Related