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>
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)) {
//Do stuff } Else{
} `