GPS NMEA sentence reader for Nucleo boards.

Dependencies:   mbed MODSERIAL

I had a lot of trouble getting other GPS examples to work. So I took Edoardo De Marchi's code from 2014 and hacked it until it was working on newer hardware.

Advice:

  • Start with confirming the module works in U-Center, and know the baud rate. Many older libraries assume 9600. Newer modules run at higher baud rates
  • Use a good terminal program and confirm you have human readable messages starting with "$GNGGA" or "$GPGSV" or similar.

Comments in code include links to NMEA sentence guides:

Most libraries do not include sentence filters for the types of sentences output by my M8N (and perhaps other modules as well)

Most older versions of the MODSERIAL library do not update properly to support STM32. I have found and included a version of the lib which will compile without errors. However, when using it in my code, the NMEA sentence gets corrupted somehow (for example showing some HUGE [6 digit] Satellite count, etc.

Committer:
epremeaux
Date:
Thu Jul 04 04:12:41 2019 +0000
Revision:
2:c16325a7d225
Parent:
1:acd907fbcbae
U-Blox-M8N GPS example for Nucleo-F401RE. Decodes additional NMEA sentences

Who changed what in which revision?

UserRevisionLine numberNew contents of line
epremeaux 2:c16325a7d225 1 https://os.mbed.com/users/Sissors/code/MODSERIAL/#d2a5e26fd658