LPWA Module Series
BG96 GNSS Application Note
BG96_GNSS_Application_Note 25 / 42
Parameter
2.2.5. AT+QGPSLOC Acquire Positioning Information
The command acquires positioning information. Before executing the command, GNSS must be turned on
via
AT+QGPS
. If it fails in position fix,
+CME ERROR: <errcode>
will be returned to indicate the
corresponding situation.
Parameter
<errcode>
Integer type. Error code of operation. See
Chapter 4
for details.
AT+QGPSLOC Acquire Positioning Information
Test Command
AT+QGPSLOC=?
Response
+QGPSLOC: (
range of supported
<mode>
s
)[,(
range of
supported
<time>
s
)]
OK
Read Command
AT+QGPSLOC?
Response
Return the positioning information in
<latitude>,<longitud
e>
format of ddmm.mmmmN/S,dddmm.mmmmE/W:
+QGPSLOC: <UTC>,<latitude>,<longitude>,<HDOP>,<alt
itude>,<fix>,<COG>,<spkm>,<spkn>,<date>,<nsat>
OK
Write Command
AT+QGPSLOC=<mode>[,<time>]
Response
+QGPSLOC: <UTC>,<latitude>,<longitude>,<HDOP>,<alt
itude>,<fix>,<COG>,<spkm>,<spkn>,<date>,<nsat>
OK
If there is any error related to ME functionality:
+CME ERROR: <errcode>
Maximum Response Time
300 ms
Characteristics
The command takes effect immediately;
The configuration will not be saved.
Reference
<mode>
Integer type. Latitude and longitude display format.
0
<latitude>,<longitude>
format: ddmm.mmmmN/S,dddmm.mmmmE/W
1
<latitude>,<longitude>
format: ddmm.mmmmmm,N/S,dddmm.mmmmmm,E/W
2
<latitude>,<longitude>
format: (-)dd.ddddd,(-)ddd.ddddd