Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No gps on the t-deck plus #66

Open
predictitai opened this issue Nov 20, 2024 · 5 comments
Open

No gps on the t-deck plus #66

predictitai opened this issue Nov 20, 2024 · 5 comments

Comments

@predictitai
Copy link

I have bought a T-Deck plus and tried to get the GPSShield example to work. I notice that the initialization during setup works as intended but i don't receive any location information. All i receive is 'INVALID' and i see 0 satellites are detected. I see locations on my mobile phone so pretty sure there is GPS signal here.

I thought that it had something to do with the radio signal or antenna so i bought a second T-Deck but observed similar issues.
What could I test to see whether there is something wrong with my device or signal?

@lewisxhe
Copy link
Contributor

If initialization is successful, then there is no problem with communication

  1. Is the device placed outdoors?

  2. Is the GPS antenna connected reliably?

  3. Have you tried to replace the GPS antenna?

@predictitai
Copy link
Author

  1. Yes. I get time information meaning that at least it is able to receive a signal.
  2. Check that and yes it is connected reliably.
  3. I have used a different T-Deck plus unit as I have two with similar results. Change of both being defect is small i suppose.

When i read out the raw commands with the following code:
void loop()
{

while (SerialGPS.available()) {
    char c = SerialGPS.read();
    Serial.print(c);  // Debugging raw NMEA data
    gps.encode(c);    // Feed character to TinyGPS++
}

Serial.print("Satellites: ");
Serial.println(gps.satellites.value());

Serial.print("HDOP: ");
Serial.println(gps.hdop.value());

delay(1000);

}
I receive the following info:

16:17:29.873 > $GNRMC,,V,,,,,,,,,,N,V37
16:17:29.874 > $GNVTG,,,,,,,,,N
2E
16:17:29.875 > $GNGGA,,,,,,0,00,99.99,,,,,,56
16:17:29.876 > $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,1
33
16:17:29.878 > $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,331
16:17:29.880 > $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,4
36
16:17:29.881 > $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,537
16:17:29.883 > $GPGSV,1,1,00,0
65
16:17:29.884 > $GAGSV,1,1,00,074
16:17:29.884 > $GBGSV,1,1,00,0
77
16:17:29.885 > $GQGSV,1,1,00,064
16:17:29.885 > $GNGLL,,,,,,V,N
7A
16:17:29.886 > Satellites: 0
16:17:29.886 > HDOP: 9999

Any advice or suggestions? I will go outside today and double validate.

@predictitai
Copy link
Author

uint8_t cfg_clear1[] = {0xB5, 0x62, 0x06, 0x09, 0x0D, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1C, 0xA2};

delay(100); // Allow module to stabilize
SerialGPS.write(cfg_clear1, sizeof(cfg_clear1));
if (getAck(buffer, 256, 0x05, 0x01)) {
    Serial.println("Get ack successes!");
}

Ack does not match for cfg_clear1

@lewisxhe
Copy link
Contributor

If they do not match, then you should be using the L76K GPS model.

@lewisxhe
Copy link
Contributor

  1. Yes. I get time information meaning that at least it is able to receive a signal.
  2. Check that and yes it is connected reliably.
  3. I have used a different T-Deck plus unit as I have two with similar results. Change of both being defect is small i suppose.

When i read out the raw commands with the following code: void loop() {

while (SerialGPS.available()) {
    char c = SerialGPS.read();
    Serial.print(c);  // Debugging raw NMEA data
    gps.encode(c);    // Feed character to TinyGPS++
}

Serial.print("Satellites: ");
Serial.println(gps.satellites.value());

Serial.print("HDOP: ");
Serial.println(gps.hdop.value());

delay(1000);

} I receive the following info:

16:17:29.873 > $GNRMC,,V,,,,,,,,,,N,V_37 16:17:29.874 > $GNVTG,,,,,,,,,N_2E 16:17:29.875 > $GNGGA,,,,,,0,00,99.99,,,,,,_56 16:17:29.876 > $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,1_33 16:17:29.878 > $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,3_31 16:17:29.880 > $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,4_36 16:17:29.881 > $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,5_37 16:17:29.883 > $GPGSV,1,1,00,0_65 16:17:29.884 > $GAGSV,1,1,00,0_74 16:17:29.884 > $GBGSV,1,1,00,0_77 16:17:29.885 > $GQGSV,1,1,00,0_64 16:17:29.885 > $GNGLL,,,,,,V,N_7A 16:17:29.886 > Satellites: 0 16:17:29.886 > HDOP: 9999

Any advice or suggestions? I will go outside today and double validate.

If NMEA sentences are continuously output, it means that the GPS is working. You need to place the device outdoors for testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants