botletics / SIM7000-LTE-Shield

Botletics SIM7000 LTE CAT-M1/NB-IoT Shield for Arduino
https://www.botletics.com/products/sim7000-shield
GNU General Public License v3.0
477 stars 215 forks source link

A-GPS and XTRA #279

Open argo9 opened 2 years ago

argo9 commented 2 years ago

Hi, I saw in the AT command manual that there is the possibility to use the A-GPS function. On revision 1351B08SIM700E this command, described in the AT manual and in the GNSS application note doesn't work: AT+CGNSSUPL Also the test command AT+CGNSSUPL=? gives "ERROR", like the command is not present.

Moreover, regarding the XTRA function it is not possible to get a valid XTRA file. Files are correctly downloaded and copied but they are not valid.

This the AT sequence used to download and validate XTRA file: //activating NTP AT+CNTP="time.inrim.it",4,1 AT+CNTP

//downloading XTRA AT+HTTPTOFS="http://xtrapath1.izatcloud.net/xtra3grc.bin","/customer/xtra3grc.bin" AT+CGNSCPY AT+CGNSXTRA=1 AT+CGNSCOLD

At this point the module replies with the URC "XTRA file is not effective": +CGNSXTRA: 2

Sending the execution command AT+CGNSXTRA gives "ERROR" as reply.

many thanks for any help, Marco

MalteHillmann commented 1 year ago

Hello,

I don't know if it still helps you, but if you download the XTRA file from http://xtrapath3.izatcloud.net/xtra3grc.bin, then it works:

01:29:57.030 -> AT+HTTPTOFS="http://xtrapath3.izatcloud.net/xtra3grc.bin","/customer/xtra3grc.bin"

01:29:57.126 -> OK
01:30:00.144 -> 
01:30:00.144 -> +HTTPTOFS: 200,33334
01:30:03.002 -> AT+HTTPTOFSRL?

01:30:03.002 -> +HTTPTOFSRL: 0,33334,33334
01:30:03.034 -> 
01:30:03.034 -> OK
01:30:09.410 -> AT+CGNSCPY

01:30:11.883 -> +CGNSCPY: 0
01:30:11.883 -> 
01:30:11.883 -> OK
01:30:16.144 -> AT+CGNSXTRA=1

01:30:16.144 -> OK
01:30:22.133 -> AT+CGNSCOLD

01:30:23.303 -> OK
01:30:26.687 -> 
01:30:26.687 -> +CGNSXTRA: 0 
01:31:42.774 -> AT+CGNSXTRA

01:31:45.336 -> 168,2023/04/13,23:00:00
01:31:45.368 -> 
01:31:45.368 -> OK

xtrapath1, xtrapath2 and xtrapath3 provide different files. Only the file from xtrapath3 works with my SIM7000G.

Funny enough the "SIM7000 Series_GNSS_Application Note" also says to use xtrapath1 (Page 13).

Additional info: When you have a missing or broken XTRA file and you sent "AT+CGNSXTRA" (to check validity), then the modem needs 5 minutes to respond with "ERROR":

00:47:55.661 -> AT+CGNSXTRA
00:52:55.675 -> ERROR

(at these 5 minutes the modem seems to be "freezed")

Kind regards Malte