I’m trying to set the module into its 5hz mode, however it doesn’t seem to work.
Serial.begin(115200);
gpsSerial.begin(9600, SERIAL_8N1, gpsRX, gpsTX);
Serial.print("gpsSerial started at ");
Serial.println(gpsSerial.baudRate());
// Send baud rate change command
gpsSerial.println(“$PMTK251,115200*1F”);
delay(100);
gpsSerial.end();
delay(100);
gpsSerial.begin(115200, SERIAL_8N1, gpsRX, gpsTX);
delay(100);
Serial.print("gpsSerial restarted at ");
Serial.println(gpsSerial.baudRate());
// Set update rate to 5Hz
gpsSerial.println(“$PMTK220,200*2C”);
delay(100);
}
This is the portion of my code that is supposed to initialize the module. the baud rate changes as expected, as its sending NMEA sentences at 115200. The update rate never seems to change cuz the LED still pulses at one second intervals. So because the baud rate changes I know I’ve got my Rx and TX hooked up properly. The only other command I’ve managed to get to work is the full cold start command which I can confirm then resets the module back to its default 9600 baud rate. The GPSserial.println adds a carriage return and Line Feed at the end so I shouldn’t need to explicitly send that and since the baud rate changes fine I’m figuring that it should work for the other commands as well.
Any thoughts or recommendations are greatly appreciated
