LPWA Module Series
BG96 GNSS Application Note
BG96_GNSS_Application_Note 39 / 42
3.5. Application of EPE NMEA Sentences Function
AT+QCFGEXT="addgeo",7,1,3,31.833348,117.212909,31.826453,117.213248,31.82873,117.222093,
31.833502,117.2208623
//Add a quadrangle geo-fence 7.
OK
AT+QCFGEXT="addgeo",7
//Query the setting of geo-fence 7.
+QCFGEXT:
"addgeo",7,1,3,31.833348,117.212909,31.826453,117.213248,31.828730,117.222093,31.833502,117.
220862
OK
AT+QCFGEXT="deletegeo",7
//Delete geo-fence 7.
OK
AT+QGPS=1
//Turn on GNSS engine.
OK
AT+QCFGEXT="querygeo",0
//Query the position with respect to geo-fence 0.
+QCFGEXT: "querygeo",0,1
//The current position is inside the geo-fence 0.
OK
//When entering the geo-fence 0, this URC will be reported.
+QIND: "GEOFENCE",0,1,2017/08/25 08:35:53,31.825179,117.217127,34.0,0.2,13.8,1.1,0.7,0.8
//When leaving the geo-fence 0, this URC will be reported.
+QIND: "GEOFENCE",0,2,2017/08/25 08:36:07,31.826951,117.217071,38.0,359.0,13.4,0.9,0.6,0.6
AT+QCFGEXT="nmea_epe",1
//Enable output of EPE NMEA sentences
OK
AT+QGPS=1
//Turn on GNSS
OK
//Outputs NMEA sentence through USB NMEA port
$PQEPE,,V,,,,,*2B
//Invalid data
//Waiting for successful GNSS positioning
$PQEPE,032707.000,A,0.7,3.00,3.58,0.1,*18
//Valid data
AT+QGPSEND
//Turn off GNSS
OK