GL-MiFi. How to repurpose serial console for GPS module using gpsd

Thank you, that works. Having mixed results inputting AT commands.
Referencing the EC25 AT command manual and not sure why I’m getting invalid parameter messages.

Show current settings: AT+QGPSCFG=?
+QGPSCFG: “outport”,(“none”,“usbnmea”,“uartdebug”)
+QGPSCFG: “nmeasrc”,(0,1)
+QGPSCFG: “gpsnmeatype”,(0-31)
+QGPSCFG: “glonassnmeatype”,(0-7)
+QGPSCFG: “galileonmeatype”,(0,1)
+QGPSCFG: “beidounmeatype”,(0-3)
+QGPSCFG: “gsvextnmeatype”,(0,1)
+QGPSCFG: “gnssconfig”,(0-6)
+QGPSCFG: “odpcontrol”,(0-2)
+QGPSCFG: “dpoenable”,(0,1)
+QGPSCFG: “plane”,(0-2)
+QGPSCFG: “autogps”,(0,1)
+QGPSCFG: “suplver”,(1,2)
+QGPSCFG: “agpsposmode”,(0-4294967295)
+QGPSCFG: “lbsapn”,(0-31),(0-4),
+QGPSCFG: “agnssprotocol”,(0-255),(0-65535)
+QGPSCFG: “appidname”,,

Enabling: AT+QGPS=1
OK

Enable acquisition of NMEA sentences: AT+QGPSCFG=“nmeasrc”,1
+CME ERROR: 501 (501 Invalid parameter(s))

Perhaps I need to wait for a lock first?
AT+QGPSLOC?
+CME ERROR: 516 (516 Not fixed now)

Kind of following my nose here so any input appreciated.

Edit: disregard, CME errors for parameters is due to the quotation marks copied from the AT command manual, looks like they’re an invalid character. Replacing with " (not “) worked.

1 Like