Adafruit GPS Library
Macros
Adafruit_PMTK.h File Reference

Go to the source code of this file.

Macros

#define PMTK_SET_NMEA_UPDATE_100_MILLIHERTZ   "$PMTK220,10000*2F"
 Once every 10 seconds, 100 millihertz. More...
 
#define PMTK_SET_NMEA_UPDATE_200_MILLIHERTZ   "$PMTK220,5000*1B"
 Once every 5 seconds, 200 millihertz.
 
#define PMTK_SET_NMEA_UPDATE_1HZ   "$PMTK220,1000*1F"
 1 Hz
 
#define PMTK_SET_NMEA_UPDATE_2HZ   "$PMTK220,500*2B"
 2 Hz
 
#define PMTK_SET_NMEA_UPDATE_5HZ   "$PMTK220,200*2C"
 5 Hz
 
#define PMTK_SET_NMEA_UPDATE_10HZ   "$PMTK220,100*2F"
 10 Hz
 
#define PMTK_API_SET_FIX_CTL_100_MILLIHERTZ   "$PMTK300,10000,0,0,0,0*2C"
 Once every 10 seconds, 100 millihertz.
 
#define PMTK_API_SET_FIX_CTL_200_MILLIHERTZ   "$PMTK300,5000,0,0,0,0*18"
 Once every 5 seconds, 200 millihertz.
 
#define PMTK_API_SET_FIX_CTL_1HZ   "$PMTK300,1000,0,0,0,0*1C"
 1 Hz
 
#define PMTK_API_SET_FIX_CTL_5HZ   "$PMTK300,200,0,0,0,0*2F"
 5 Hz
 
#define PMTK_SET_BAUD_115200   "$PMTK251,115200*1F"
 115200 bps
 
#define PMTK_SET_BAUD_57600   "$PMTK251,57600*2C"
 57600 bps
 
#define PMTK_SET_BAUD_9600   "$PMTK251,9600*17"
 9600 bps
 
#define PMTK_SET_NMEA_OUTPUT_GLLONLY   "$PMTK314,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"
 GPGLL sentence. More...
 
#define PMTK_SET_NMEA_OUTPUT_RMCONLY   "$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"
 GPRMC sentence. More...
 
#define PMTK_SET_NMEA_OUTPUT_VTGONLY   "$PMTK314,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"
 GPVTG. More...
 
#define PMTK_SET_NMEA_OUTPUT_GGAONLY   "$PMTK314,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"
 GPGGA. More...
 
#define PMTK_SET_NMEA_OUTPUT_GSAONLY   "$PMTK314,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"
 GPGSA. More...
 
#define PMTK_SET_NMEA_OUTPUT_GSVONLY   "$PMTK314,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0*29"
 GPGSV. More...
 
#define PMTK_SET_NMEA_OUTPUT_RMCGGA   "$PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28"
 GPGGA. More...
 
#define PMTK_SET_NMEA_OUTPUT_RMCGGAGSA   "$PMTK314,0,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"
 and GPGSA More...
 
#define PMTK_SET_NMEA_OUTPUT_ALLDATA   "$PMTK314,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0*28"
 turn on ALL THE DATA
 
#define PMTK_SET_NMEA_OUTPUT_OFF   "$PMTK314,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28"
 turn off output
 
#define PMTK_LOCUS_STARTLOG   "$PMTK185,0*22"
 Start logging data.
 
#define PMTK_LOCUS_STOPLOG   "$PMTK185,1*23"
 Stop logging data.
 
#define PMTK_LOCUS_STARTSTOPACK   "$PMTK001,185,3*3C"
 Acknowledge the start or stop command.
 
#define PMTK_LOCUS_QUERY_STATUS   "$PMTK183*38"
 Query the logging status.
 
#define PMTK_LOCUS_ERASE_FLASH   "$PMTK184,1*22"
 Erase the log flash data.
 
#define LOCUS_OVERLAP   0
 If flash is full, log will overwrite old data with new logs.
 
#define LOCUS_FULLSTOP   1
 If flash is full, logging will stop.
 
#define PMTK_ENABLE_SBAS   "$PMTK313,1*2E"
 output rate) More...
 
#define PMTK_ENABLE_WAAS   "$PMTK301,2*2E"
 Use WAAS for DGPS correction data.
 
#define PMTK_STANDBY   "$PMTK161,0*28"
 standby command & boot successful message
 
#define PMTK_STANDBY_SUCCESS   "$PMTK001,161,3*36"
 Not needed currently.
 
#define PMTK_AWAKE   "$PMTK010,002*2D"
 Wake up.
 
#define PMTK_Q_RELEASE   "$PMTK605*31"
 ask for the release and version
 
#define PGCMD_ANTENNA   "$PGCMD,33,1*6C"
 request for updates on antenna status
 
#define PGCMD_NOANTENNA   "$PGCMD,33,0*6D"
 don't show antenna status messages
 
#define MAXWAITSENTENCE   10
 how long to wait when we're looking for a response
 

Detailed Description

This is the Adafruit GPS library - the ultimate GPS library for the ultimate GPS module!

Tested and works great with the Adafruit Ultimate GPS module using MTK33x9 chipset ---—> http://www.adafruit.com/products/746 Pick one up today at the Adafruit electronics shop and help support open source hardware & software! -ada

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Limor Fried/Ladyada for Adafruit Industries. BSD license, check license.txt for more information All text above must be included in any redistribution

Macro Definition Documentation

◆ PMTK_SET_NMEA_UPDATE_100_MILLIHERTZ

#define PMTK_SET_NMEA_UPDATE_100_MILLIHERTZ   "$PMTK220,10000*2F"

Once every 10 seconds, 100 millihertz.

Different commands to set the update rate from once a second (1 Hz) to 10 times a second (10Hz) Note that these only control the rate at which the position is echoed, to actually speed up the position fix you must also send one of the position fix rate commands below too.

◆ PMTK_SET_NMEA_OUTPUT_GLLONLY

#define PMTK_SET_NMEA_OUTPUT_GLLONLY   "$PMTK314,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"

GPGLL sentence.

turn on only the

◆ PMTK_SET_NMEA_OUTPUT_RMCONLY

#define PMTK_SET_NMEA_OUTPUT_RMCONLY   "$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"

GPRMC sentence.

turn on only the

◆ PMTK_SET_NMEA_OUTPUT_VTGONLY

#define PMTK_SET_NMEA_OUTPUT_VTGONLY   "$PMTK314,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"

GPVTG.

turn on only the

◆ PMTK_SET_NMEA_OUTPUT_GGAONLY

#define PMTK_SET_NMEA_OUTPUT_GGAONLY   "$PMTK314,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"

GPGGA.

turn on just the

◆ PMTK_SET_NMEA_OUTPUT_GSAONLY

#define PMTK_SET_NMEA_OUTPUT_GSAONLY   "$PMTK314,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"

GPGSA.

turn on just the

◆ PMTK_SET_NMEA_OUTPUT_GSVONLY

#define PMTK_SET_NMEA_OUTPUT_GSVONLY   "$PMTK314,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0*29"

GPGSV.

turn on just the

◆ PMTK_SET_NMEA_OUTPUT_RMCGGA

#define PMTK_SET_NMEA_OUTPUT_RMCGGA   "$PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28"

GPGGA.

turn on GPRMC and

◆ PMTK_SET_NMEA_OUTPUT_RMCGGAGSA

#define PMTK_SET_NMEA_OUTPUT_RMCGGAGSA   "$PMTK314,0,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29"

and GPGSA

turn on GPRMC, GPGGA

◆ PMTK_ENABLE_SBAS

#define PMTK_ENABLE_SBAS   "$PMTK313,1*2E"

output rate)

Enable search for SBAS satellite (only works with 1Hz