Hello David,
I guess you are testing inside your house or apartment. As the GPS cannot get location information inside a building, you get the “error” output. To get the location data from the RAK1910, it has to see satellites, which is only possible if the antenna sees the sky.
Can you look inside the code for the following part (line 82 ff)
while (Serial1.available())
{
char c = Serial1.read();
tmp_data += c;
if (gps.encode(c))
newData = true;
}
and change it to
while (Serial1.available())
{
char c = Serial1.read();
Serial.write(c);
tmp_data += c;
if (gps.encode(c))
newData = true;
}
This should give you an output like
GPS uart init ok!
$GPTXT,01,01,02,ANTSTATUS=INIT*25
$GPRMC,,V,,,,,,,,,,N*53
$GPVTG,,,,,,,,,N*30
$GPGGA,,,,,,0,00,99.99,,,,,,*48
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$GPGLL,,,,,,V,N*64
CHARS=179 SENTENCES=0 CSUM ERR=0
$GPTXT,01,01,02,ANTSTATUS=OK*3B
$GPRMC,,V,,,,,,,,,,N*53
$GPVTG,,,,,,,,,N*30
$GPGGA,,,,,,0,00,99.99,,,,,,*48
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$GPGLL,,,,,,V,N*64
CHARS=356 SENTENCES=0 CSUM ERR=0
$GPRMC,,V,,,,,,,,,,N*53
$GPVTG,,,,,,,,,N*30
$GPGGA,,,,,,0,00,99.99,,,,,,*48
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$GPGLL,,,,,,V,N*64