CSCON and GPS timer

Hi,

I try to use CPSMS command to reduce the power consumption. The idea is to send a MQTT message every 10min and have the GPS coordinate every 5 min.

The NRF9160 is flashed with serial LTE modem and I communicate with him through AT command.

This is the list of command I send to NRF9160 :in bold the master command in none bold the response from the NRF9160

Ready
AT+CEREG=5
OK
AT+CSCON=1
OK
AT%XSYSTEMMODE=1,0,1,0
OK
AT+CPSMS=1,"","","10101010","00100001"
OK
AT+CFUN=1
OK
AT+CPSMS?
+CPSMS: 1,,,"10101010","00100001"
OK
+CEREG: 2,"E488","09343C10",7
+CSCON: 1
+CEREG: 5,"E488","09343C10",7,,,"00011110","11100000"
AT+CPSMS?
+CPSMS: 1,,,"10101010","00100001"
AT#XMQTTCFG="befc_gateway",600,1
OK
AT#XMQTTCON=1,"","","test.mosquitto.org",1883
OK
#XMQTTEVT: 0,0
AT#XGPS=1,0,300,290
OK
#XGPS: 1,1
+CSCON: 0

after 580s
#XGPS: 1,3
#XGPS: 1,2
+CSCON: 1
+CSCON: 0
+CSCON: 1
#XMQTTEVT: 1,-113
+CEREG: 0
+CSCON: 0

I don't understand why but the GPS timeout after 580s instead of 290s

I don't understand in the second CEREG response the Active-Time and the Periodic-TAU is not the same than the one I set with the CPSMS command. Did I configure something wrong ?

Also I'm not sure how the CPSMS command work. I don't understand how the MQTT can wake up the modem part and ask for a synchronization.

My ultimate goal is to reduce the power consumption and the consumption of data.

This the salae record of the At command exchange to check the timing : cereg and gps timer.sal

I hope my problem is clear,

Best regards,

Alban

Parents Reply Children
Related