Library for handling NMEA message in Windows Desktop, Store, Phone, Universal, and Xamarin (Android + iOS), coming from files, bluetooth, serial port or any stream
Find a file
2015-05-29 15:14:26 -07:00
src Added support for Windows 10 and the new NmeaParser for 'SerialDevice' 2015-05-29 15:07:58 -07:00
Tools/Nuget updated nuget packaging 2015-03-20 17:32:14 -07:00
.gitignore Added Xamarin iOS + Android support 2014-11-14 21:19:25 -08:00
LICENCE.TXT Added license 2014-02-10 22:42:47 -08:00
README.md Updated readme with new Windows Universal support 2015-05-29 15:14:26 -07:00

Nmea Parser

Library for reading and parsing data NMEA message streams. It makes it easy to connect and listen for NMEA messages from coming from various devices in Windows Store, Windows Phone, Windows Desktop./NET, Windows Universal apps as well as Xamarin for iOS and Android.

The following inputs are supported:

  • System.IO.Stream (all platforms)
  • Emulation from NMEA log file (all platforms)
  • BlueTooth: Windows Store, Windows Phone, Windows Universal. Desktop is supported using the bluetooth device via the SerialPortDevice.
  • Serial Device: Windows Desktop and Windows Universal.

Currently supported NMEA messages:

  • Generic GPS NMEA (GPRMC, GPGGA, GPGLL, GPGSA, GPGSCV, GPRMB, GPRMC, GPBOD, GPRTE, GPGST)
  • Garmin GPS NMEA (PGRME, PGRMZ)
  • Trimble Laser Range Finder (PTNLA, PTNLB)
  • TruePulse Laser Range Finder (PLTIT)

The API is easily extensible with more NMEA messages. Simply create a new class inheriting from "NmeaMessage" and use the NmeaMessageType Attribute to tag it with the NMEA Message Token it supports.

Example:

[NmeaMessageType("GPRMC")]
public class Gprmc : NmeaMessage
{
	protected override void LoadMessage(string[] message)
	{
		//TODO: Process message parts
	}
}

If you add new messages, please fork, provide a simple unit test for the message and submit a pull request.

NuGet

You can get the library via NuGet if you have the extension installed for Visual Studio or via the PowerShell package manager. This control is published via NuGet at SharpGIS.NmeaParser.

PM> Install-Package SharpGIS.NmeaParser

Usage

Please see the WIKI how to use it on the various platforms

Screenshots

Screenshots from Desktop sample app:

sampleapp2 sampleapp3

Map view using the ArcGIS Runtime (see separate branch): sampleapp1