Hi.. I am experiencing some issue here. maybe you guys could help me here.
When I red the serial by hardware serial(1 and 0) the my Gps Shield retrieves all(correct) information.. like this:
My Code:
void setup()
{
Serial.begin(38400);
}
void loop() // run over and over
{
if (Serial.available())
Serial.write(Serial.read());
}
$GPRMC,221638.00,A,2307.08112,S,04633.21294,W,0.041,,311013,,,A*75
$GPVTG,,T,,M,0.041,N,0.077,K,A*26
$GPGGA,221638.00,2307.08112,S,04633.21294,W,1,07,1.17,824.7,M,-5.6,M,,*4A
$GPGSA,A,3,02,24,25,29,10,04,12,,,,,,1.71,1.17,1.25*0A
$GPGSV,3,1,12,02,67,071,37,04,36,127,37,05,09,029,,10,08,080,31*7C
$GPGSV,3,2,12,12,42,202,43,14,02,229,31,15,15,331,,17,00,128,*79
$GPGSV,3,3,12,24,77,281,28,25,13,231,37,26,01,006,,29,22,287,25*7E
$GPGLL,2307.08112,S,04633.21294,W,221638.00,A,A*68
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
Note that the fist row is ($GPRMC,221638.00,A,2307.08112,S,04633.21294,W,0.041,,311013,,,A*75)
ok...
But when I just try to connect using serial port I just get the first row(the first row starts with $GPRMC)
Here's the code:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(3, 4); // RX, TX
void setup()
{
Serial.begin(115200);
mySerial.begin(38400);
}
void loop() // run over and over
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
}
Here's the resut:
$GG$GPRMC,222221.01,A,2307.07587,S,04633.21542,W,0.037,,311013,,,AG$GPRMC,222222.00,A,2307.07583,S,04633.21531,W,0.195,,311013,,,A,
It is like when when first "row" ends... its stopping the info from serial.
Maybe some special character or something..
Any idea?
Thank you so much
Rodrigo