Page 1 of 1

GPS not working on ONE+ Model B

Posted: Tue Feb 02, 2021 5:08 pm
by steve1
Hey there,

Can anyone help me with the following:

GNSS stand alone and the Hologram SIM will not start and I just get a display of "Waiting for GPS"?

This is the code im running:

Code: Select all

void processGPSData()
                    
    
{
        // issue the command to get parsed GPS data
        if (checkState(STATE_GPS_FOUND) && sys.gpsGetData(&gd) ) {
            logLocationData(gd);
        }
    }
    void waitGPS()
                    
    
{
        int elapsed = 0;
        for (uint32_t t = millis(); millis() - t < 300000;) {
          int t1 = (millis() - t) / 1000;
          if (t1 != elapsed) {
            Serial.print("Waiting for GPS (");
            Serial.print(elapsed);
            Serial.println(")");
            elapsed = t1;
          }
          // read parsed GPS data
          if (sys.gpsGetData(&gd) && gd->sat != 0 && gd->sat != 255) {
            Serial.print("Sats:");
            Serial.println(gd->sat);
            break;
          }
        }
    }

Re: GPS not working on ONE+ Model B

Posted: Fri Feb 05, 2021 2:21 pm
by stanley
Which sketch/code are you using?

Re: GPS not working on ONE+ Model B

Posted: Tue Feb 16, 2021 4:14 pm
by steve1
We are using the code as posted in my comment.