LPWA Module Series
BG96 GNSS Application Note
BG96_GNSS_Application_Note 37 / 42
+CME ERROR: 507
3.3. Procedure of Using gpsOneXTRA Assistance Function
The examples show the procedures of using gpsOneXTRA Assistance function.
3.3.1. Download gpsOneXTRA Files with AT+QHTTPGET
//If gpsOneXTRA Assistance is disabled, enable it via
AT+QGPSXTRA=1
and restart the mdoule, then
perform the following procedures.
AT+QGPSXTRA=1
//Enable gpsOneXTRA Assistance.
OK
//The gpsOneXTRA Assistance function is activated after restarting the module.
//If gpsOneXTRA data file is valid (query via
AT+QGPSXTRADATA?
), turn on GNSS engine directly.
//If gpsOneXTRA data file is invalid (query via
AT+QGPSXTRADATA?
), then perform the following
procedures.
//You
can
download
the
gpsOneXTRA
data
file
through
AT+QHTTPGET
from
URL
http://xtrapath1.izatcloud.net/xtra3grc.bin
or other URLs listed in
Chapter 1.3.1
. For more details about
this command, see
document [4]
.
AT+QHTTPURL=43
CONNECT
<input_data>
//After
CONNECT
is reported, input the URLs listed in
Chapter
1.3.1
.
OK
AT+QHTTPURL?
+QHTTPURL: http://xtrapath1.izatcloud.net/xtra3grc.bin
OK
AT+QHTTPGET=60
OK
+QHTTPGET: 0,200,33298
//Requested successfully
AT+QHTTPREADFILE="UFS:xtra3grc.bin",80
OK
+QHTTPREADFILE: 0
//Downloaded successfully
AT+QGPSXTRATIME=0,"2017/11/08,15:30:30",1,1,5
//Inject gpsOneXTRA time to GNSS engine.
OK
AT+QGPSXTRADATA="UFS:xtra3grc.bin"
//Injected gpsOneXTRA data file to GNSS
engine successfully.
OK