How it works
LwGPS parses raw data formatted as NMEA 0183 statements from GPS receivers. It supports up to 4
different statements:
GPGGA
orGNGGA
: GPS fix dataGPGSA
orGNGSA
: GPS active satellites and dillusion of positionGPGSV
orGNGSV
: List of satellites in view zoneGPRMC
orGNRMC
: Recommended minimum specific GPS/Transit data
Tip
By changing different configuration options, it is possible to disable some statements. Check Configuration for more information.
Application must assure to properly receive data from GPS receiver. Usually GPS receivers communicate with host embedded system with UART protocol and output directly formatted NMEA 0183 statements.
Note
Application must take care of properly receive data from GPS.
Application must use lwgps_process()
function for data processing. Function will:
Detect statement type, such as GPGGA or GPGSV
Parse all the terms of specific statement
Check valid CRC after each statement
Programmer’s model is as following:
Application receives data from GPS receiver
Application sends data to
lwgps_process()
functionApplication uses processed data to display altitude, latitude, longitude, and other parameters
Check Examples and demos for typical example