This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Does nRF9160 support GPS functions other than $GPGGA information, which is in NMEA format?

Dear all,

With nrf9160, I start GPS function.

at#xgps = 1,1


If GPS positioning is successful, I will receive #XGPSP and $GPGGA information.
Though I haven't specified the NMEA format type, but I get $GPGGA.


Is it possible for me to receive information based on other NMEA formats?
I want to know date but I can't get it from $GPGGA information.
Can I get $ GPRMC and other information?

My HW is nRF9160DK

Modem FW is v.1.2.3

App is "slm_all_features_DK.hex" come from this thread:

https://devzone.nordicsemi.com/f/nordic-q-a/73906/nrf9160-http-client-at-commands-always-returns-cme-error-0

The app doesn't seem to support GNSS at commands other than #xgps.

The FW version is certified by the operator for LTE connection and cannot be changed.

Getting date and time information from the network through LTE is not my desired answer.

Best regards,

Yukio Oyama

Parents Reply Children
  • Hi Jonathan,

    Thanks your information.

    I know the information contained in $GPGGA. It does not include the date. I want to get date information from $GPRMC. Because it is common to parse the NMEA format. Parsing Nordic  specific #XGPSP commands is less versatile.


    I'm not familiar with Software, so I'm only looking at the Apps provided by Nordic download sites. Is it possible to get information in NMEA format in the SDK? (Like GPRMC)

    Best Regards,

    Yukio Oyama

  • Hi Yukio,

    Sorry for the misunderstanding. The #XGPS command only has one does not have the option to be in a different format, so the format is

     #XGPS: <latitude>,<longitude>,<altitude>,<accuracy>,<speed>,<heading>,<datetime>


    AT%XSYSTEMMODE=0,0,1,0
    
    OK
    AT%XCOEX0=1,1,1565,1586
    
    OK
    AT+CFUN=31
    
    OK
    at#xgps=1,1
    
    OK
    
    #XGPS: 35.457576,139.625090,121.473785,22.199919,0.442868,0.000000,"2021-06-02 06:25:48"
    
    #XGPS: 35.457550,139.625115,124.293533,15.679427,0.263094,0.000000,"2021-06-02 06:25:49"
    
    #XGPS: 35.457517,139.625094,120.865372,12.768595,0.166673,0.000000,"2021-06-02 06:25:50"




    If you where to use the #XPGPS the same format applies:

    #XGPS: <latitude>,<longitude>,<altitude>,<accuracy>,<speed>,<heading>,<datetime>

    AT%XSYSTEMMODE=1,0,1,0
    
    OK
    AT%XCOEX0=1,1,1565,1586
    
    OK
    AT+CPSMS=1
    
    OK
    AT+CFUN=1
    
    OK
    AT#XNRFCLOUD=1
    
    OK
    #XNRFCLOUD: 1,0
    AT#XPGPS=1,30
    
    OK
    
    #XGPS: 35.457243,139.625435,149.005020,28.184258,10.431827,281.446014,"2021-06-24 04:35:52"
    
    #XGPS: 35.457189,139.625602,176.811203,43.015198,0.601837,281.446014,"2021-06-24 04:36:28"
    
    #XGPS: 35.457498,139.625422,168.243591,31.753956,0.191195,281.446014,"2021-06-24 04:36:41"
    
    #XGPS: 35.457524,139.624667,100.745979,25.324850,6.347160,94.699837,"2021-06-24 04:37:10"



    OYAMA YUKIO said:
    Is it possible to get information in NMEA format in the SDK? (Like GPRMC)

    You will have to modify the code to follow the format you want, it is not a option that is provided from the commands you refer to. 


    Regards,
    Jonathan

  • Hi Jonathan,

    I understood that slm-APP does not support NMEA formats other than GPGGA.


    My v1.2.3 based slm-APP can only run #XGPS. Any other GPS command will return an error. Is this correct?
    From what version can the #XNRFCLOUD and #XPGPS commands be used?

    Best regards,

    Yukio Oyama

  • What NCS version are you using ?

    Versions older then NCS v1.7.0 will not have the same command options, here is the link to NCS1.6.0, https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrf/applications/serial_lte_modem/doc/GPS_AT_commands.html , only has the #XGPS options. 


    Regards,
    Jonathan

  • Hi Jonathan,

    My slm-APP is based on v1.2.3. I understood it was natural.


    My question has been resolved.
    Thank you for your support.

    Best Regards,

    Yuki Oyama

Related