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
  • I forgot to write.


    The #XGPSP information has a date, so I think the GPS function has the information needed for other NMEA formats, but the commands to output are hidden or there is no ability to output in other formats.

    I want to use the generic NMEA format to get the data.

    I hope the dates in the #XGPSP information are not obtained from anything other than GPS.

    BR

    Yukio Oyama

  • Hi Yukio,

    Date/time from the XGPS is from the GPS and not something else. 


    You get something like this : $GPGGA,181908.00,3404.7041778,N,07044.3966270,W,4,13,1.00,495.144,M,29.200,M,0.10,0000*40 

    181908.00 is the time stamp: UTC time in hours, minutes and seconds


    Linkn:https://www.gpsworld.com/what-exactly-is-gps-nmea-data/ 

    Regards,
    Jonathan

  • 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

Reply
  • 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

Children
Related