it seems that GPS data is getting deleted when sending nRF to sleep with AT#XSLEEP=1 command + AGPS issue

Hi,

I'm using nRF9160 SLM application SDK 1.9.1

We are using the GPS in 4 operation modes and in between we sent nRF to sleep, it seems when we sent it to sleep all the GPS data is lost and every time we want to get a fix we get it by cold start (60 to 120 seconds to get a fix) and not hot start (few seconds to get a fix)- we use 1/5/15/30 minutes intervals atm

If I do CFUN=0, come after 20 minutes, do CFUN=31 and look for GPS I get a fix in about 5 seconds
If I do SLEEP=1, wake up after 10 seconds, do CFUN=31 and look for GPS I get a fix in about 60-120 seconds (like the first fix from the cold start)

How can I overcome this issue and get a hot fix after going to SLEEP?

We are also using AGPS every 4 hours to have data refresh so we can get fixes faster (doesn't really help since we go to sleep and all the data is lost) - after an AGPS request from the cloud there is 1 minute timeout for the modem to go idle and then it starts to look for GPS (which take 60-120 second to get a fix even with the data - why? it suppose to be much faster) - how can I reduce this 60 second and make the modem go idle faster?

*I think the reason it takes AGPS similar time to get a fix like normal GPS is because of this :

 

"Received":{3 items
"appId":"AGPS"
"messageType":"DATA"
"data":{6 items
"mcc":425
"mnc":1
"tac":19411
"eci":16386561
"rsrp":-140
"types":[8 items
0:1
1:2
2:3
3:4
4:6
5:7
6:8
7:9
]
}
}
"ERROR":{1 item
"message":"src property must be a valid json object"
}
"ERROR":{1 item
"message":"src property must be a valid json object"
}

Why this error occur?

Thanks,

Ofir

Related