本帖最后由 leyinlewis 于 2018-7-21 14:32 编辑
EC20,EC25的GPS操作
AT+QGPS=1 //Turn on GNSS.
OK
//After turning on GNSS, NMEA sentences will be output from “usbnmea” port by default.
AT+QGPSLOC? //Obtain positioning information.
+QGPSLOC: 061951.0,3150.7223N,11711.9293E,0.7,62.2,2,0.0,0.0,0.0,110513,09
OK
AT+QGPSEND //Turn off GNSS.
OK
AT+QGPSCFG=“nmeasrc”,1 //Enable <nmeasrc> functionality.
OK
AT+QGPSGNMEA=“GGA” //Obtain GGA sentence.
+QGPSGNMEA: $GPGGA,103647.0,3150.721154,N,11711.925873,E,1,02,4.7,59.8,M,-2.0,M,,*77
OK
AT+QGPSCFG=“nmeasrc”,0 //Disable <nmeasrc> functionality.
OK
AT+QGPSGNMEA=“GGA” //Disable <nmeasrc> functionality, and thus GGA sentence
cannot be obtained.
+CME ERROR: 507
|