I’m trying to use the gps with New Soft Serial, but I’m having problems. I get what appear to be mostly accurate messages, but the last handful of characters are garbage, so I don’t get things like the checksum.
If I use this code:
Serial.begin(57600);
mySerial.begin(57600);
mySerial.print("$PMTK220,1000*2C");
mySerial.print("$PMTK314,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*2C");
in my setup method I get this as a result:
$GPGGA,230658.600,3751.2128,N,07739.5112,W,1,6,1.20,103.0,M,-33431,347.
$GPGGA,230658.800,3751.2128,N,07739.5113,W,1,6,1.20,103.0,M,-33.389V7.
$GPGGA,230659.000,3751.2127,N,07739.5112,W,1,6,1.20,103.0,M,-333,347.
$GPGGA,230659.200,3751.2126,N,07739.5113,W,1,6,1.20,103.0,M,-334P4,47.
$GPGGA,230659.400,3751.2126,N,07739.5112,W,1,6,1.20,103.0,M,-3331,
$VAA$GPGGA,230659.600,3751.2126,N,07739.5111,W,1,6,1.20,103.0,M,-33.35,47.
$GPGGA,230659.800,3751.2126,N,07739.5110,W,1,6,1.20,103.0,M,-334.8,4,A
$GPGGA,230700.000,3751.2125,N,07739.5108,W,1,6,1.20,103.0,M,-333,3VP11
$GPGGA,230700.200,3751.2125,N,07739.5107,W,1,6,1.20,102.9,M,-33,G83VA1
$GPGGA,230700.400,3751.2125,N,07739.5106,W,1,6,1.20,102.9,M,-333,3V7
$GPGGA,230700.600,3751.2125,N,07739.5105,W,1,6,1.20,102.9,M,-333143,P1
$GPGGA,230700.800,3751.2124,N,07739.5105,W,1,6,1.20,102.9,M,-334.8,07
Also if I add something like this to change the baud rate of the gps at the end of my setup method all I get is garbage as output.
Does anyone have any ideas as to what I’m doing wrong?
Thanks,
Chris