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

GSP is not working

Hi,

I have PCA10000 Revision 0.9.0 nRF9160 Board with external antenna (Molex 206640)

I try to make GPS work. Here is my step:

I compiled GPS under samples ..\root\ncs\nrf\samples\nrf9160\gps

It doesn't work. Always printing scanning [ - ], no GPA data is printed.

I also downloaded GPS from web site:

https://github.com/NordicPlayground/fw-nrfconnect-nrf/commit/94e53c6743e756928a10549a310d24b471b1af4a

The project failed to compile.

undefined :

#define NRF_GNSS_NMEA_GGA_MASK   
#define NRF_GNSS_NMEA_GLL_MASK    
#define NRF_GNSS_NMEA_GSA_MASK    
#define NRF_GNSS_NMEA_GSV_MASK    
#define NRF_GNSS_NMEA_RMC_MASK   

I had to change the above to

#define NRF_CONFIG_NMEA_GGA_MASK   
#define NRF_CONFIG_NMEA_GLL_MASK    
#define NRF_CONFIG_NMEA_GSA_MASK    
#define NRF_CONFIG_NMEA_GSV_MASK    
#define NRF_CONFIG_NMEA_RMC_MASK   

compiled and run. But it still fails to get GPS data.

I also downloaded an example udp_gps from

https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/udp_gps

But I got the following error:

What did I miss?

Do you have a GPS sample

Parents
  • Hi! 

    Which branch of NCS are you working on?

    Where are you testing these samples? You should preferably be outside.

    The sample located in samples/nrf9160/gps on the master branch of NCS should work out-of-the-box, under the correct conditions.

    Can you open LTE Link Monitor when running the sample and provide me with the log file by pressing the button shown in this image

    Best regards,

    Heidi

  • Hi Heidi,

    I am using MASTER branch of the samples located at: ..\root\ncs\nrf\samples\nrf9160\gps

    The LTE LINK MONITOR worked and displayed text messages, but afer I clicked open logfile, it doesn't work anymore. So I had to use terminal programs to capture the display messages:

    ***** Booting Zephyr OS v1.14.99-ncs2-1-g8d6ec7aafed5 *****
    Flash region        Domain        Permissions
    00 0x00000 0x08000     Secure        rwxl
    01 0x08000 0x10000     Non-Secure    rwxl
    02 0x10000 0x18000     Non-Secure    rwxl
    03 0x18000 0x20000     Non-Secure    rwxl
    04 0x20000 0x28000     Non-Secure    rwxl
    05 0x28000 0x30000     Non-Secure    rwxl
    06 0x30000 0x38000     Non-Secure    rwxl
    07 0x38000 0x40000     Non-Secure    rwxl
    08 0x40000 0x48000     Non-Secure    rwxl
    09 0x48000 0x50000     Non-Secure    rwxl
    10 0x50000 0x58000     Non-Secure    rwxl
    11 0x58000 0x60000     Non-Secure    rwxl
    12 0x60000 0x68000     Non-Secure    rwxl
    13 0x68000 0x70000     Non-Secure    rwxl
    14 0x70000 0x78000     Non-Secure    rwxl
    15 0x78000 0x80000     Non-Secure    rwxl
    16 0x80000 0x88000     Non-Secure    rwxl
    17 0x88000 0x90000     Non-Secure    rwxl
    18 0x90000 0x98000     Non-Secure    rwxl
    19 0x98000 0xa0000     Non-Secure    rwxl
    20 0xa0000 0xa8000     Non-Secure    rwxl
    21 0xa8000 0xb0000     Non-Secure    rwxl
    22 0xb0000 0xb8000     Non-Secure    rwxl
    23 0xb8000 0xc0000     Non-Secure    rwxl
    24 0xc0000 0xc8000     Non-Secure    rwxl
    25 0xc8000 0xd0000     Non-Secure    rwxl
    26 0xd0000 0xd8000     Non-Secure    rwxl
    27 0xd8000 0xe0000     Non-Secure    rwxl
    28 0xe0000 0xe8000     Non-Secure    rwxl
    29 0xe8000 0xf0000     Non-Secure    rwxl
    30 0xf0000 0xf8000     Non-Secure    rwxl
    31 0xf8000 0x100000     Non-Secure    rwxl
    Non-secure callable region 0 placed in flash region 0 with size 32.
    
    
    SRAM region        Domain        Permissions
    00 0x00000 0x02000    Secure        rwxl
    01 0x02000 0x04000    Secure        rwxl
    02 0x04000 0x06000    Secure        rwxl
    03 0x06000 0x08000    Secure        rwxl
    04 0x08000 0x0a000    Secure        rwxl
    05 0x0a000 0x0c000    Secure        rwxl
    06 0x0c000 0x0e000    Secure        rwxl
    07 0x0e000 0x10000    Secure        rwxl
    08 0x10000 0x12000    Non-Secure    rwxl
    09 0x12000 0x14000    Non-Secure    rwxl
    10 0x14000 0x16000    Non-Secure    rwxl
    11 0x16000 0x18000    Non-Secure    rwxl
    12 0x18000 0x1a000    Non-Secure    rwxl
    13 0x1a000 0x1c000    Non-Secure    rwxl
    14 0x1c000 0x1e000    Non-Secure    rwxl
    15 0x1e000 0x20000    Non-Secure    rwxl
    16 0x20000 0x22000    Non-Secure    rwxl
    17 0x22000 0x24000    Non-Secure    rwxl
    18 0x24000 0x26000    Non-Secure    rwxl
    19 0x26000 0x28000    Non-Secure    rwxl
    20 0x28000 0x2a000    Non-Secure    rwxl
    21 0x2a000 0x2c000    Non-Secure    rwxl
    22 0x2c000 0x2e000    Non-Secure    rwxl
    23 0x2e000 0x30000    Non-Secure    rwxl
    24 0x30000 0x32000    Non-Secure    rwxl
    25 0x32000 0x34000    Non-Secure    rwxl
    26 0x34000 0x36000    Non-Secure    rwxl
    27 0x36000 0x38000    Non-Secure    rwxl
    28 0x38000 0x3a000    Non-Secure    rwxl
    29 0x3a000 0x3c000    Non-Secure    rwxl
    30 0x3c000 0x3e000    Non-Secure    rwxl
    31 0x3e000 0x40000    Non-Secure    rwxl
    
    Peripheral        Domain        Status
    00 NRF_P0        Non-Secure    OK
    01 NRF_CLOCK        Non-Secure    OK
    02 NRF_RTC1        Non-Secure    OK
    03 NRF_NVMC        Non-Secure    OK
    04 NRF_UARTE1        Non-Secure    OK
    05 NRF_UARTE2        Secure        SKIP
    06 NRF_TWIM2        Non-Secure    OK
    07 NRF_SPIM3        Non-Secure    OK
    08 NRF_TIMER0        Non-Secure    OK
    09 NRF_TIMER1        Non-Secure    OK
    10 NRF_TIMER2        Non-Secure    OK
    11 NRF_SAADC        Non-Secure    OK
    12 NRF_PWM0        Non-Secure    OK
    13 NRF_PWM1        Non-Secure    OK
    14 NRF_PWM2        Non-Secure    OK
    15 NRF_PWM3        Non-Secure    OK
    16 NRF_IPC        Non-Secure    OK
    17 NRF_VMC        Non-Secure    OK
    18 NRF_FPU        Non-Secure    OK
    19 NRF_EGU1        Non-Secure    OK
    20 NRF_EGU2        Non-Secure    OK
    21 NRF_GPIOTE1        Non-Secure    OK
    
    SPM: NS image at 0xc000
    SPM: NS MSP at 0x20024748
    SPM: NS reset vector at 0x13ac9
    SPM: prepare to jump to Non-Secure image.
    ***** Booting Zephyr OS v1.14.99-ncs2-1-g8d6ec7aafed5 *****
    Staring GPS application
    Socket created
    Getting GPS data...
    Tracking: 1 Using: 0 Unhealthy: 1
    Seconds since last fix 0
    
    Scanning [|] Tracking: 1 Using: 0 Unhealthy: 1
    Seconds since last fix 0

    Thank you,

    David

  • Hi Heidi,

    I have loaded the hex file into the board (revision 0.9.0) with external antenna attached to GPS. I tried both in-building and on the outside parking lot. GPS position is not received.

    Attached is the message:

    ***** Booting Zephyr OS build v2.0.99-ncs1-rc1-11-g9be97c63368a *****
    Flash region        Domain        Permissions
    00 0x00000 0x08000     Secure        rwxl
    01 0x08000 0x10000     Non-Secure    rwxl
    02 0x10000 0x18000     Non-Secure    rwxl
    03 0x18000 0x20000     Non-Secure    rwxl
    04 0x20000 0x28000     Non-Secure    rwxl
    05 0x28000 0x30000     Non-Secure    rwxl
    06 0x30000 0x38000     Non-Secure    rwxl
    07 0x38000 0x40000     Non-Secure    rwxl
    08 0x40000 0x48000     Non-Secure    rwxl
    09 0x48000 0x50000     Non-Secure    rwxl
    10 0x50000 0x58000     Non-Secure    rwxl
    11 0x58000 0x60000     Non-Secure    rwxl
    12 0x60000 0x68000     Non-Secure    rwxl
    13 0x68000 0x70000     Non-Secure    rwxl
    14 0x70000 0x78000     Non-Secure    rwxl
    15 0x78000 0x80000     Non-Secure    rwxl
    16 0x80000 0x88000     Non-Secure    rwxl
    17 0x88000 0x90000     Non-Secure    rwxl
    18 0x90000 0x98000     Non-Secure    rwxl
    19 0x98000 0xa0000     Non-Secure    rwxl
    20 0xa0000 0xa8000     Non-Secure    rwxl
    21 0xa8000 0xb0000     Non-Secure    rwxl
    22 0xb0000 0xb8000     Non-Secure    rwxl
    23 0xb8000 0xc0000     Non-Secure    rwxl
    24 0xc0000 0xc8000     Non-Secure    rwxl
    25 0xc8000 0xd0000     Non-Secure    rwxl
    26 0xd0000 0xd8000     Non-Secure    rwxl
    27 0xd8000 0xe0000     Non-Secure    rwxl
    28 0xe0000 0xe8000     Non-Secure    rwxl
    29 0xe8000 0xf0000     Non-Secure    rwxl
    30 0xf0000 0xf8000     Non-Secure    rwxl
    31 0xf8000 0x100000     Non-Secure    rwxl
    Non-secure callable region 0 placed in flash region 0 with size 32.


    SRAM region        Domain        Permissions
    00 0x00000 0x02000    Secure        rwxl
    01 0x02000 0x04000    Secure        rwxl
    02 0x04000 0x06000    Secure        rwxl
    03 0x06000 0x08000    Secure        rwxl
    04 0x08000 0x0a000    Secure        rwxl
    05 0x0a000 0x0c000    Secure        rwxl
    06 0x0c000 0x0e000    Secure        rwxl
    07 0x0e000 0x10000    Secure        rwxl
    08 0x10000 0x12000    Non-Secure    rwxl
    09 0x12000 0x14000    Non-Secure    rwxl
    10 0x14000 0x16000    Non-Secure    rwxl
    11 0x16000 0x18000    Non-Secure    rwxl
    12 0x18000 0x1a000    Non-Secure    rwxl
    13 0x1a000 0x1c000    Non-Secure    rwxl
    14 0x1c000 0x1e000    Non-Secure    rwxl
    15 0x1e000 0x20000    Non-Secure    rwxl
    16 0x20000 0x22000    Non-Secure    rwxl
    17 0x22000 0x24000    Non-Secure    rwxl
    18 0x24000 0x26000    Non-Secure    rwxl
    19 0x26000 0x28000    Non-Secure    rwxl
    20 0x28000 0x2a000    Non-Secure    rwxl
    21 0x2a000 0x2c000    Non-Secure    rwxl
    22 0x2c000 0x2e000    Non-Secure    rwxl
    23 0x2e000 0x30000    Non-Secure    rwxl
    24 0x30000 0x32000    Non-Secure    rwxl
    25 0x32000 0x34000    Non-Secure    rwxl
    26 0x34000 0x36000    Non-Secure    rwxl
    27 0x36000 0x38000    Non-Secure    rwxl
    28 0x38000 0x3a000    Non-Secure    rwxl
    29 0x3a000 0x3c000    Non-Secure    rwxl
    30 0x3c000 0x3e000    Non-Secure    rwxl
    31 0x3e000 0x40000    Non-Secure    rwxl

    Peripheral        Domain        Status
    00 NRF_P0               Non-Secure    OK
    01 NRF_CLOCK            Non-Secure    OK
    02 NRF_RTC1             Non-Secure    OK
    03 NRF_NVMC             Non-Secure    OK
    04 NRF_UARTE1           Non-Secure    OK
    05 NRF_UARTE2           Secure        SKIP
    06 NRF_TWIM2            Non-Secure    OK
    07 NRF_SPIM3            Non-Secure    OK
    08 NRF_TIMER0           Non-Secure    OK
    09 NRF_TIMER1           Non-Secure    OK
    10 NRF_TIMER2           Non-Secure    OK
    11 NRF_SAADC            Non-Secure    OK
    12 NRF_PWM0             Non-Secure    OK
    13 NRF_PWM1             Non-Secure    OK
    14 NRF_PWM2             Non-Secure    OK
    15 NRF_PWM3             Non-Secure    OK
    16 NRF_WDT              Secure        SKIP
    17 NRF_IPC              Non-Secure    OK
    18 NRF_VMC              Non-Secure    OK
    19 NRF_FPU              Non-Secure    OK
    20 NRF_EGU1             Non-Secure    OK
    21 NRF_EGU2             Non-Secure    OK
    22 NRF_DPPIC            Non-Secure    OK
    23 NRF_GPIOTE1          Non-Secure    OK
    24 NRF_REGULATORS       Secure        SKIP

    SPM: NS image at 0xc000
    SPM: NS MSP at 0x20023b00
    SPM: NS reset vector at 0xfe81
    SPM: prepare to jump to Non-Secure image.
    ***** Booting Zephyr OS build v2.0.99-ncs1-rc1-11-g9be97c63368a *****
    Staring GPS application
    Socket created
    Getting GPS data...
    [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    Seconds since last fix 0

    Scanning [|] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    Seconds since last fix 0

    Scanning [/] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    Seconds since last fix 1

    Scanning [-] [1;1H[2JTracking: 0 Using: 0 Unhealthy: 0
    Seconds since last fix 1

    I have waited for over 10 minutes.

    Thank you for your support,

    David Zhou

  • Hi!

    Can you update the modem firmware to version 1.1.0 that was just released - if you haven't already done that. You can download it here

    Also, make sure SW12 located right above the nRF9160 SiP on the board is switched to the left

    Then go outside under open-sky and wait a few minutes and you should get a fix. 

    Let me know how it goes.

    Best regards,

    Heidi

  • Hi Heidi,

    I updated modem firmware to version 1.1.0.

    The SW2 (switch 2 - name exactly) is switched to the left. ( It is the default position of the board out of box).

    I tested outside under open sky on the parking lot. No GPS data received.

    Just as a reminder, I am at New York. The satellite above Norway may be not the same satellite above us. The udp_gps sample, the mask has _GNSS_, and gps sample has _CONFIG_. I don't know about details. I am not sure that has anything to do.

    Thank you,

    David

  • TigerD said:
    The SW2 (switch 2 - name exactly) is switched to the left. ( It is the default position of the board out of box).

     I think my instructions were unclear. Switch it to the opposite of the default position out of box. Towards CON and not ANT. 

  • I tried the Switch to con position (left). It still doesn't work.

    Thank you,

    david

Reply Children
Related