nRF9160 GPS sdk 2.9.0 Serial LTE Modem

Hi,

I am trying to get the GPS coordinates from nrf9160 devkit so far I am following this guide. I was successfully able to get the coordinates once using:

AT%XSYSTEMMODE=0,0,1,0

OK
AT+CFUN=31

OK
AT#XGPS=1,0,0,0

#XGPS: 1,1

OK

#XGPS: 1,4

#XGPS: 35.457576,139.625090,121.473785,22.199919,0.442868,0.000000,"2021-06-02 06:25:48"

However I am not able to continuously get the data from the modem. I tried to send AT#XGPS=1,0,1,0 and the chip responds  "ERROR". Here are some details

1. SDK and Toolchain version 2.9.0
2. Firmware: Serial LTE Modem

3. Modem firmware: mfw_nrf9160_1.3.7

 

Essentially I am trying to continuously get coordinates at set intervals. I would really appreciate if someone could list down the at commands to do the same.

Thanks

Parents
  • Hi,

    You could try to put the modem to minimum functionality (CFUN=0) or flight mode (+CFUN=4) first and then restore full functionality (+CFUN=1). Afterwards, you can use AT#XGPS=1,0,1,0 to start GNSS module and set the <interval> parameter to continuous navigation mode.

    Best regards,
    Dejan

  • Hi Dejan,

    Thanks for the reply. I tried to follow the steps you mentioned. Did both CFUN=0 and CFUN=4. both are replied with "ERROR" when I send "AT#XGPS=1,0,1,0". Is there something I am missing?

    First Iteration

    at
    
    OK
    at+cfun=0
    
    OK
    at+cfun?
    
    +CFUN: 0
    
    OK
    AT%XSYSTEMMODE=0,0,1,0
    
    OK
    at+cfun=1
    
    OK
    AT#XGPS=1,0,1,0
    
    ERROR

    Second Iteration

    Ready
    at
    
    OK
    at+cfun=?
    
    +CFUN: (0,1,2,4,20,21,30,31,40,41,44)
    
    OK
    at+cfun=0
    
    OK
    AT%XSYSTEMMODE=0,0,1,0
    
    OK
    AT+CFUN=31
    
    OK
    AT#XGPS=1,0,1,0
    
    ERROR
    at+cgmr
    
    mfw_nrf9160_1.3.7
    
    OK
    AT#XGPS=1,0,0,0
    
    OK
    
    #XGPS: 1,1

    The method you mention in the reply

    Ready
    at+cfun=4
    
    OK
    at+cfun=1
    
    OK
    AT#XGPS=1,0,1,0
    
    ERROR
    

    Further Debug

    Ready
    at+cfun=4
    
    OK
    at+cfun?
    
    +CFUN: 4
    
    OK
    AT%XSYSTEMMODE=0,0,1,0
    
    OK
    AT+CFUN=31
    
    OK
    AT#XGPS=1,0,1,0
    
    ERROR
    at+cfun=1
    
    OK
    AT#XGPS=1,0,1,0
    
    ERROR
    at+cfun=31
    
    OK
    AT#XGPS=1,0,1,0
    
    ERROR
    at+cfun=0
    
    OK
    at+cfun?
    
    +CFUN: 0
    
    OK
    AT%XSYSTEMMODE=0,0,1,0
    
    OK
    AT+CFUN=31
    
    OK
    AT#XGPS=1,0,1,0
    
    ERROR

     

    Can you please provide me the list of at commands in chronological order so that I can test it on my end.

Reply
  • Hi Dejan,

    Thanks for the reply. I tried to follow the steps you mentioned. Did both CFUN=0 and CFUN=4. both are replied with "ERROR" when I send "AT#XGPS=1,0,1,0". Is there something I am missing?

    First Iteration

    at
    
    OK
    at+cfun=0
    
    OK
    at+cfun?
    
    +CFUN: 0
    
    OK
    AT%XSYSTEMMODE=0,0,1,0
    
    OK
    at+cfun=1
    
    OK
    AT#XGPS=1,0,1,0
    
    ERROR

    Second Iteration

    Ready
    at
    
    OK
    at+cfun=?
    
    +CFUN: (0,1,2,4,20,21,30,31,40,41,44)
    
    OK
    at+cfun=0
    
    OK
    AT%XSYSTEMMODE=0,0,1,0
    
    OK
    AT+CFUN=31
    
    OK
    AT#XGPS=1,0,1,0
    
    ERROR
    at+cgmr
    
    mfw_nrf9160_1.3.7
    
    OK
    AT#XGPS=1,0,0,0
    
    OK
    
    #XGPS: 1,1

    The method you mention in the reply

    Ready
    at+cfun=4
    
    OK
    at+cfun=1
    
    OK
    AT#XGPS=1,0,1,0
    
    ERROR
    

    Further Debug

    Ready
    at+cfun=4
    
    OK
    at+cfun?
    
    +CFUN: 4
    
    OK
    AT%XSYSTEMMODE=0,0,1,0
    
    OK
    AT+CFUN=31
    
    OK
    AT#XGPS=1,0,1,0
    
    ERROR
    at+cfun=1
    
    OK
    AT#XGPS=1,0,1,0
    
    ERROR
    at+cfun=31
    
    OK
    AT#XGPS=1,0,1,0
    
    ERROR
    at+cfun=0
    
    OK
    at+cfun?
    
    +CFUN: 0
    
    OK
    AT%XSYSTEMMODE=0,0,1,0
    
    OK
    AT+CFUN=31
    
    OK
    AT#XGPS=1,0,1,0
    
    ERROR

     

    Can you please provide me the list of at commands in chronological order so that I can test it on my end.

Children
No Data
Related