Closed randyb128 closed 5 months ago
You probably didn’t read the instructions mentioned in the home page README What you are connecting is not the GPS antenna of L76K. The location you are currently connected to is invalid. The GPS is on the back. https://github.com/Xinyuan-LilyGO/LilyGO-T-A76XX/issues/56
I see it now. Thanks for the quick response. You can close this issue
I have a T-A7670G connected to the ceramic antenna you provided. I'm not getting valid GPS data. I modified the GPSShield.ino sketch to output the NMEA sentences. Here's the sketch: /**
ifndef SerialAT
define SerialAT Serial1
endif
ifndef SerialGPS
define SerialGPS Serial2
endif
define BOARD_MODEM_DTR_PIN 25
define BOARD_MODEM_TX_PIN 26
define BOARD_MODEM_RX_PIN 27
define BOARD_MODEM_PWR_PIN 4
define BOARD_ADC_PIN 35
define BOARD_POWER_ON_PIN 12
define BOARD_MODEM_RI_PIN 33
define BOARD_RST_PIN 5
define BOARD_SDCARD_MISO 2
define BOARD_SDCARD_MOSI 15
define BOARD_SDCARD_SCLK 14
define BOARD_SDCARD_CS 13
define BOARD_GPS_TX_PIN 21
define BOARD_GPS_RX_PIN 22
define BOARD_GPS_PPS_PIN 23
define BOARD_GPS_WAKEUP_PIN 19
include
include <TinyGPS++.h>
TinyGPSPlus gps;
void setup() { pinMode(BOARD_POWER_ON_PIN, OUTPUT); digitalWrite(BOARD_POWER_ON_PIN, HIGH);
}
void loop() { while (SerialGPS.available()) { int c = SerialGPS.read(); Serial.write(c); } / if (gps.encode(c)) { displayInfo(); } / delay(1000); }
void displayInfo() { Serial.print(F("Location: ")); if (gps.location.isValid()) { Serial.print(gps.location.lat(), 6); Serial.print(F(",")); Serial.print(gps.location.lng(), 6); } else { Serial.print(F("INVALID")); }
}
I have the antenna connected as per the attached photo.
The NMEA output I'm seeing is this:
$GPGSV,1,1,00,065 $GLGSV,1,1,00,079 $GNRMC,,V,,,,,,,,,,N,V37 $GNVTG,,,,,,,,,N2E $GNZDA,,,,,,56 $GPTXT,01,01,01,ANTENNA OPEN25 $GNGGA,,,,,,0,00,25.5,,,,,,64 $GNGLL,,,,,,V,N7A $GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,101 $GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,202 $GPGSV,1,1,00,065 $GLGSV,1,1,00,079 $GNRMC,,V,,,,,,,,,,N,V37 $GNVTG,,,,,,,,,N2E $GNZDA,,,,,,56 $GPTXT,01,01,01,ANTENNA OPEN25 $GNGGA,,,,,,0,00,25.5,,,,,,64 $GNGLL,,,,,,V,N7A $GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,101 $GNGSA,A,1,,,,,,,,,,,,,25.5,25.5,25.5,202 $GPGSV,1,1,00,065 $GLGSV,1,1,00,079 $GNRMC,,V,,,,,,,,,,N,V37 $GNVTG,,,,,,,,,N2E
I've tried taking the module outside in the open sky for over 30 minutes, same thing. Have also tried 2 different T-A7670 boards and 2 different ceramic antenna's. (the antenna you provide) The $GPTXT "ANTENNA OPEN" is telling me that the active antenna isn't connected. Any ideas?