LPWA Module Series
BG96 GNSS Application Note
BG96_GNSS_Application_Note 27 / 42
2.2.6. AT+QGPSGNMEA Acquire NMEA Sentences
The command acquires NMEA sentences. Before using this command, GNSS must be turned on via
AT+QGPS
, and set
<NMEA
_
src>
into 1
to enable acquisition of NMEA sentences via
AT+QGPSGNMEA
.
The sentence output can be disabled via
AT+QGPSCFG="gpsnmeatype",0
,
AT+QGPSCFG="glon
assnmeatype",0
,
AT+QGPSCFG="galileonmeatype",0
and
AT+QGPSCFG="beidounmeatype",0
.
If sentence output is disabled,
AT+QGPSGNMEA
can still be used to acquire NMEA sentences on
condition that the GNSS has already acquired sentences via this command after its activation. And the
sentences acquired via the command will be the last ones that have ever been acquired.
<spkm>
Speed over ground.
Format: xxxx.x; unit: Km/h; accurate to one decimal place (Quoted from GPVTG
sentence).
<spkn>
Float type. Speed over ground.
Format: xxxx.x. Unit: knots. Accurate to one decimal place (Quoted from GPVTG
sentence).
<date>
String type. UTC time when fixing position.
Format: ddmmyy (Quoted from GPRMC sentence)
<nsat>
Integer type. Number of satellites, from 00 (the first 0 should be retained) to 12 (Quoted
from GPGGA sentence).
<errcode>
Integer type. Error code of operation. See
Chapter 4
for details.
AT+QGPSGNMEA Acquire NMEA Sentences
Test Command
AT+QGPSGNMEA=?
Response
+QGPSGNMEA: (
list of supported
<NMEA_sentence>
s
)
OK
Write Command
Acquire GGA sentences
AT+QGPSGNMEA="GGA"
Response
+QGPSGNMEA: <GGA_sentence>
OK
If there is any error related to ME functionality:
+CME ERROR: <errcode>
Write Command
Acquire RMC sentences
AT+QGPSGNMEA="RMC"
Response
+QGPSGNMEA: <RMC_sentence>
OK
If there is any error related to ME functionality:
+CME ERROR: <errcode>
Write Command
Response