GithubHelp home page GithubHelp logo

nmea-gps-sentence-parsing's Introduction

NMEA GPS Sentence Parser

Introduction

In this project, you will develop a program to parse (interpret) information output by a standard GPS receiver. These messages, or sentences, conform to a specification by the National Marine Electronics Association (NMEA). The primary goal is to build a parsing state machine that can take the NMEA GPS sentences one byte at a time and correctly interpret them.

Specifications

Input:

  • NMEA GPS sentences in ASCII form.
  • Each sentence starts with $, followed by a 5-character sequence starting with GP. Only four message types are valid: GPGGA, GPGSA, GPGSV, and GPRMC.
  • Each sentence has a variable amount of message data.
  • Sentences end with a * character followed by two checksum characters in hexadecimal format.
  • Messages where the calculated checksum doesn't match the received checksum should be ignored.

Output:

  • For every valid NMEA GPS sentence, the program should print:
    • Message type (e.g., GPGGA, GPGSA, GPGSV, GPRMC)
    • Message data (excluding $, *, and the checksum)
    • Message checksum

Functionality:

  • Your program should be built as a state machine that reads one byte at a time.
  • Calculate the checksum from the message data and verify it.
  • Light LEDs based on the message type:
    • Green LED for GPGGA or GPRMC
    • Yellow LED for GPGSA
    • Red LED for any other type.

Development:

  • Implement the parser using a C++ class.
  • Use the provided Python script to send messages to your parser.
  • Use the provided preliminary program (serial_read_start.cpp) as a starting point.

How to Run

Given the instruction:

> ./prog1 /dev/pts/2

nmea-gps-sentence-parsing's People

Contributors

manzmike avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.