Xinyuan-LilyGO / LilyGO-T-SIM7000G

LilyGO T-SIM7000G
https://pt.aliexpress.com/item/4000542688096.html
284 stars 123 forks source link

GNSS NMEA update rate #220

Open Alex17BioNano opened 1 year ago

Alex17BioNano commented 1 year ago

Hi everyone.I need your help to configure the GNSS update rate from the lilygo7000g. I tried the following code:

modem.sendAT("+CGNSRTMS=100"); +CGNSRTMS: 100 OK

and

SerialAT.print("$PMTK220,100*2F\r\n"); //10Hz

But the update rate still with the default value (1000ms)

My firmware vesion is: SerialAT.println("AT+CGMR"); Revision:1529B08SIM7000G OK

Anyone know how to solve this, Thanks.

xyzzy42 commented 1 year ago

I tried to increase the update rate with the T-SIM7070G, but I don't think it is supported. AT+CGNSRTMS isn't a known command.

Querying the ability with cgnscmd:

AT+SGNSCMD=?
+SGNSCMD: 0
+SGNSCMD: 1,(0-2)
+SGNSCMD: 2,(1000-60000),(0-1000),(0-3)

The (1000-60000) indicates it supports update intervals from 1000 ms to 60000 ms.

The command $PMTK220,100 would be a NMEA packet protocol command. I don't believe the SIMCOM module will accept this type of command on its serial interface. Only "AT" style commands are supported. That NMEA command isn't generic and will only work with specific GPS devices that have firmware that uses packet 220 to control update rate. I doubt it works on the Qualcomm LTE+GPS chip in the SIMCOM 70x0 modules.