Hello guys,
i usually only read this forum, but now i got stuck on a task and apparently cant find a solution myself.
Obviously i’m quite new in Arduino programming, but did a few small projects with copy and paste snippets and some own code derived from that.
Hardware: Arduino Pro Mini ATMega328P
GUI: 1.8.5
I have a Ublox7 GPS Module on a software serial port (12,11)
From this device, i get the following data with “Serial.write(mySerial.read())”:
?????????????????????????????????????????????????????????????<- those are backwards
$GPRMC,141320.00,A,4734.90390,N,01037.56812,E,0.027,,180120,,,A*70
$GPVTG,,T,,M,0.027,N,0.050,K,A*23
$GPGGA,141320.00,4734.90390,N,01037.56812,E,1,07,1.30,807.1,M,47.0,M,,*5B
$GPGSA,A,3,17,19,24,12,13,15,20,,,,,,2.54,1.30,2.18*07
$GPGSV,3,1,10,01,01,034,,12,25,223,40,13,45,150,46,15,64,203,46*7E
$GPGSV,3,2,10,17,39,089,34,19,34,119,44,20,20,285,41,24,51,289,47*7D
$GPGSV,3,3,10,28,31,051,26,30,02,093,*7B
$GPGLL,4734.90390,N,01037.56812,E,141320.00,A,A*66
In between the data, which is coming seamless, i get a lot of reversed question marks.
I only need the data from the last line.
My idea was to check for the “GPGLL” expression and the record the data in a string to work with.
Unfortunately i’m not able to do that.
Could you provide my an example which i could adapt to make it work?
A good example (or a link) for how to use the correct function would already be enough.
my last try was with “mySerial.readString()” but i dont know how to make it stop reading.
In the Arduino description it says only by timeout…
Thank you and best regards
Tobi