Adafruit GPS v3 settings for IC880a gateway


(Kreddy) #1

Do you have issues with intermittent GPS out of sync messages with the resin.io gateway version here? -> https://github.com/jpmeijers/ttn-resin-gateway-rpi

WARNING: [gps] GPS out of sync, keeping previous time reference

My GPS module is Adafruit Ultimate Breakout V3

To fix limit GPS NMEA messages to GPRMC and GGA only:
echo -e “$PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28\r\n” > /dev/ttyAMA0

And then increase message rate from 1 to 2 Hz
echo -e “$PMTK220,500*2B\r\n” > /dev/ttyAMA0

If you want to additionally increase GPS accuracy enable SBAS
https://www.egnos-portal.eu/discover-egnos/about-egnos/what-sbas

// PMTK_ENABLE_SBAS
echo -e “$PMTK313,1*2E\r\n” > /dev/ttyAMA0

Enable DGPS
// ENABLE DGPS RTCM - DGPS data source mode
echo -e “$PMTK501,1*2B\r\n” > /dev/ttyAMA0

Select SBAS as DGPS source (RTCM)
// PMTK_API_DT_DGPS_MODE RTCM
echo -e “$PMTK301,1*2D\r\n” > /dev/ttyAMA0

Select DGPS mode
// PMTK_API_DT_DGPS_MODE RTCM
echo -e “$PMTK301,1*2D\r\n” > /dev/ttyAMA0

Acknowledge for SBAS function is enable or disable.
echo -e “$PMTK513,1*28\r\n” > /dev/ttyAMA0

Job done! no more errors and nicely synchronised gateway, positioning accuracy has also improved