Xinyuan-LilyGO / LilyGO-T-SIM7000G

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

GPS Satellite Acquisition #182

Open glen020 opened 2 years ago

glen020 commented 2 years ago

How long on average does it take you to receive a GPS Lock? i'm usually 5-8 mins in Canada.

GPS raw: 1,0,,,,,,,0,,,,,,18,,,,,, 18 -

I would think that would be enough for a lock?

Basic Code ` modem.sendAT("+SGPIO=0,4,1,1"); if (modem.waitResponse(10000L) != 1) { DBG(" SGPIO=0,4,1,1 false "); } modem.enableGPS();

while ((millis() - temptime) <= (timeoutmins 60 1000)) {

if (modem.getGPS(&lat, &lon, &spd, &alt, &vsat, &usat, &acc)) {
  Serial.println(modem.getGPSraw());

//Do stuff } Else{

  Serial.println("GPS raw:");
  Serial.println(modem.getGPSraw());

  //<GNSS run status>,<Fix status>,<UTCdate&Time>,<Latitude>,<Longitude>,<MSL Altitude>,<SpeedOverGround>,<Course Over Ground>,<FixMode>,<Reserved1>,<HDOP>,<PDOP>,<VDOP>,<Reserved2>,<GNSSSatellites in View>,<GNSS Satellites Used>,<GLONASSSatellitesUsed>,<Reserved3>,<C/N0 max>,<HPA>,<VPA>

} `

DevinCarpenter commented 1 year ago

Hi,

please refer to my answers here and here for GPS information.