GPS not working on ONE+ Model B

Discussion about software developed by Freematics, including Freematics Builder and Freematics Emulator GUI
Post Reply
steve1
Posts: 2
Joined: Tue Feb 02, 2021 4:57 pm

GPS not working on ONE+ Model B

Post 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;
          }
        }
    }
stanley
Site Admin
Posts: 1026
Joined: Sat Mar 01, 2014 3:15 am

Re: GPS not working on ONE+ Model B

Post by stanley »

Which sketch/code are you using?
steve1
Posts: 2
Joined: Tue Feb 02, 2021 4:57 pm

Re: GPS not working on ONE+ Model B

Post by steve1 »

We are using the code as posted in my comment.
Post Reply