Hello,

I’m having an issue with testing the GPS sample using the repository provided in https://github.com/circuitdojo/nrf9160-feather-examples-and-drivers/tree/v1.7.x/samples/gps

My issue is the following:
After executing the project, the device gets reset and NEMA strings are printed, however, not all the information I expect is printed and the parameter Using, Tracking, Healthy don’t change.

What mine print is the following

> Executing task: newtmgr -c vscode-zephyr-tools image upload c:\Users\Taz\Desktop\Init_repo_8\nfed\samples\gps\build\zephyr\app_update.bin <

133.32 KiB / 133.32 KiB [=================================] 100.00% 16.06 KiB/s 8s
Done

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

NMEA strings:

$GPGGA,000043.00,,,,,0,,99.99,,M,0,,30
$GPGLL,,,,,000043.00,V,N4D
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,12D
$GPGSV,1,1,0,,,,,,,,,,,,,,,,,154
$GPRMC,000043.00,V,,,,,,,060180,,,N,V*0F

`

I expect it to print what Jared provided which includes Speed, Altitude, etc.

Tracking: 7 Using: 7 Unhealthy: 0

Seconds since last fix 0
Longitude: 10.437814
Latitude: 63.421546
Altitude: 163.747833
Speed: 0.023171
Heading: 0.000000
Date: 30-01-2020
Time (UTC): 09:42:38

NMEA strings:
$GPGGA,094238.25,6325.29275,N,01026.26884,E,1,08,1.49,163.75,M,0,,2E
$GPGLL,6325.29275,N,01026.26884,E,094238.25,A,A66
$GPGSA,A,3,05,07,08,09,16,21,27,30,,,,,2.60,1.49,2.12,117
$GPGSV,2,1,8,7,60,093,44,9,14,106,39,21,17,339,41,16,07,016,22,15B
$GPGSV,2,2,8,27,15,041,20,8,07,071,24,30,62,176,29,5,57,239,34,151
$GPRMC,094238.25,A,6325.29275,N,01026.26884,E,0.05,0.00,300120,,,A,V2E`

For additional information,

  1. I am using Dojo Circuit nRF9160 feather.

  2. No edits have been made to the code given by Jared.

  3. The results of Build is:

    > Executing task: west build -b circuitdojo_feather_nrf9160_ns <
    
    [0/171] Performing build step for 'spm_subimage'
    [29/36] Linking C executable zephyr\zephyr_prebuilt.elf
    
    [32/36] Generating dev_handles.c
    C:/Users/Taz/Desktop/Init_repo_8/zephyr/scripts/gen_handles.py:46: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
      if LooseVersion(elftools.__version__) < LooseVersion('0.24'):
    [36/36] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       65024 B        64 KB     99.22%
                SRAM:       11792 B        64 KB     17.99%
            IDT_LIST:          0 GB         2 KB      0.00%
    [1/171] Performing build step for 'mcuboot_subimage'
    ninja: no work to do.
    [157/169] Linking C executable zephyr\zephyr_prebuilt.elf
    
    [160/169] Generating dev_handles.c
    C:/Users/Taz/Desktop/Init_repo_8/zephyr/scripts/gen_handles.py:46: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
      if LooseVersion(elftools.__version__) < LooseVersion('0.24'):
    [164/169] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       70324 B     425472 B     16.53%
                SRAM:       19640 B     178968 B     10.97%
            IDT_LIST:          0 GB         2 KB      0.00%
    [169/169] Generating zephyr/merged.hex
    
    Terminal will be reused by tasks, press any key to close it.

Any help would be much appreciated.
K

    Khalid949a do you get a fix at all? You need to have a active GPS antenna connected and you need a clear view of the sky. (It doesn’t work well indoors)

    I have solved the issue and got a fix.

    As you pointed out, the antenna needs a clear view of the sky, otherwise, it’d take long to get a fix. I had to be ~ 30 m away from any building, and it worked quite well. It took about 8 min to get a fix.

    As usual, thanks Jared for your quick support.
    Khalid

    Oh wow. It should take less than 1 minute. I definitely depends on where you are though. In a city environment it will be tough for sure especially with AGPS.

    Terms and Conditions | Privacy Policy