- Mon Feb 25, 2019 6:58 pm
#80805
I can't get rid of the garbage, and the received data is incomplete. I tried different baud rates ranging from 9600 to 15200(both GPS and Wemos), but with the same result.
Here are some photos with the layout: [https://imgur.com/a/HCFq78D](
https://imgur.com/a/HCFq78D)
As seen, the module is powered through the USB port, then the 5V pin on the GPS goes to the 5V pin from the microcontroller. Grounds connected together, TX-->RX and RX-->TX. As this is the microcontroller I used in my first project, the solderings look quite bad, but the connection is secure.
This is the code:
Code: Select allNetwork net;
String output ="";
void setup() {
pinMode(LED_BUILTIN,OUTPUT);
digitalWrite(LED_BUILTIN,HIGH); //turn led off
net.begin();
Serial.begin(115200);
}
void loop() {
net.handleClient(output); //if client tries to connect, send him the output string
if (Serial.available() > 0) {
digitalWrite(LED_BUILTIN,LOW); // led on
char c = Serial.read();
output += c;
delay(1);
digitalWrite(LED_BUILTIN,HIGH); //oed off
}
}
And here some output:
Code: Select all$GNRMC,,V,,,,,,,,,,N,V*37
$GNVTG,,,,,,,,,N*2õ$GNRMC,,V,,,,,,,,,,N,V*37
$GNGGA,,,,,,0,00,99.99,,,,,,*56
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,1*33
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,2*30
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,3*31
$GPGSV,1,1,00,0*65
$GLGSV,1,1,00,0*79
$GAGSV,1,1,00,0*74
$GNGLL,,,,,,V,N*7A
ÊÊrÊÊb'Rš‚j
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,3*31
$GPGSV,1,1,00,0*65
$GLGSV,1,1,00,0*79
$GAGSV,1,1,00,0*74
$GNGLL,,,,,,V,N*7A
$GNRMC,,V,,,,,,,,,,N,V*37
$GNVTG,,,,,,,,,N*2E
$GNGGA,,,,,,0,00,99.99,,,,,,*56
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,1*33
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,2*30
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,3*31bRª²j
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,1*33
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,2*30
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,3*31
$GPGSV,1,1,00,0*65
$GLGSV,1,1,00,0*79
$GAGSV,1,1,00,0*74
$GNGLL,,,,,,V,N*7A
$GNRMC,,V,,,,,,,,,,N,V*37
$GNVTG,,,,,,,,,N*2E
$GNGGA,,,,,,0,00,99.99,,,,,,*56
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,1*33
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,2*30
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.9¹±,V,,,,,,,,,,N,V*37
$GN
$GNGGA,,,,,,0,00,99.99,,,,,,*56
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,1*33
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,2*30
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,3*31
$GPGSV,1,1,00,0*65
$GLGSV,1,1,00,0*79
$GAGSV,1,1,00,0*74
$GNGLL,,,,,,V,N*7A
ˆ:911±,,,,,V,N*7A
$GNRMC,,V,,,,,,,,,,N,V*37
$GNVTG,,,,,,,,,N*2E
$GNGGA,,,,,,0,00,99.99,,,,,,*56
$GNGSÁ$GNRMC,,V,,,,,,,,,,N,V*3
$GNGGA,,,,,,0,00,99.99,,,,,,*56
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,1*33
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,2*30
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,3*31
$GPGSV,1,1,00,0*65
$GLGSV,1,1,00,0*79
$GAGSV,1,1,00,0*74
$GNGLL,,,,,,V,N*7A
N)ÊbÊÊrÊÊbÊÊrÊÊbšRšŠj
$GPGSV,1,1,00,0*65
$GLGSV,1,1,00,0*79
$GAGSV,1,1,00,0*74
$GNGLL,,,,,,V,N*7A
$GNRMC,,V,,,,,,,,,,N,V*3
$GNGGA,,,,,,0,00,99.99,,,,,,*56
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,1*33
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,2*30
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,3*31
$GPGSV,1,1,00,0*65
$GLGSV,1,1,00,0*79
$GAGSV,1,1,00,0*74
$GNGLL,,,,,,V,N*7A
$GNRMC,,V,,$GNRMC,,V,,,,,,,,,,N,V*G,,,,,,,,,N*2E
$GNGGA,,,,,,0,00,99.99,,,,,,*56
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,1*33
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,2*30
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,3*31
$GPGSV,1,1,00,0*65
$GLGSV,1,1,00,0*79
$GAGSV,1,1,00,0*74
$GNGübŠRššj
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,2*30
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,3*31
$GPGSV,1,1,00,0*65
$GLGSV,1,1,00,0*79
$GAGSV,1,1,00,0*74
$GNGLL,,,,,,V,N*7A
bbbÊÊrÊÊbÊÊrÊÊbÊÊrÊÊbŠRššj
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,2*30
$GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,3*31
It's a total mess. I don't get the first initial $GNTXT messages, the messages are incomplete, and a lot of garbage is present.
As the NMEA sentences are sent from the GPS each second, it would make sense for the led to blink every second(as seen in the code). However, this is how it blinks:
https://www.dropbox.com/s/j3qpkggh2rdzc ... 1.mp4?dl=0 (You can play the video without downloading)
Any ideas what may cause all this ?