NMEA 0183

From Wikipedia, the free encyclopedia

NMEA 0183 is a combined electrical and data specification for communication between marine electronics such as echo sounder, sonars, anemometer, gyrocompass, autopilot, GPS receivers and many other types of instruments. It has been defined and is controlled by the National Marine Electronics Association (NMEA). It replaces the earlier NMEA 0180 and NMEA 0182 standards.[1] In leisure marine applications it is slowly being phased out in favor of the newer NMEA 2000 standard,[2][3] though NMEA 0183 remains the norm in commercial shipping.


The electrical standard that is used is EIA-422, also known as RS-422, although most hardware with NMEA-0183 outputs are also able to drive a single EIA-232 port. Although the standard calls for isolated inputs and outputs, there are various series of hardware that do not adhere to this requirement.

The NMEA 0183 standard uses a simple ASCII, serial communications protocol that defines how data are transmitted in a "sentence" from one "talker" to multiple "listeners" at a time. Through the use of intermediate expanders, a talker can have a unidirectional conversation with a nearly unlimited number of listeners, and using multiplexers, multiple sensors can talk to a single computer port.

At the application layer, the standard also defines the contents of each sentence (message) type, so that all listeners can parse messages accurately.

While NMEA 0183 only defines an RS-422 transport, there also exists a de facto standard in which the sentences from NMEA0183 are placed in UDP datagrams (one sentence per packet) and sent over an IP network.

The NMEA standard is proprietary and sells for at least US$2000 (except for members of the NMEA) as of September 2020.[4][5] However, much of it has been reverse-engineered from public sources.[6][7]

Serial configuration (data link layer)[edit]

Typical Baud rate 4800
Data bits 8
Parity None
Stop bits 1
Handshake None

There is a variation of the standard called NMEA-0183HS that specifies a baud rate of 38,400. This is in general use by AIS devices.

Message structure[edit]

  • All transmitted data are printable ASCII characters between 0x20 (space) to 0x7e (~)
  • Data characters are all the above characters except the reserved characters (See next line)
  • Reserved characters are used by NMEA0183 for the following uses:
ASCII Hex Dec Use
<CR> 0x0d 13 Carriage return
<LF> 0x0a 10 Line feed, end delimiter
! 0x21 33 Start of encapsulation sentence delimiter
$ 0x24 36 Start delimiter
* 0x2a 42 Checksum delimiter
, 0x2c 44 Field delimiter
\ 0x5c 92 TAG block delimiter
^ 0x5e 94 Code delimiter for HEX representation of ISO/IEC 8859-1 (ASCII) characters
~ 0x7e 126 Reserved
  • Messages have a maximum length of 82 characters, including the $ or ! starting character and the ending <LF>
  • The start character for each message can be either a $ (For conventional field delimited messages) or ! (for messages that have special encapsulation in them)
  • The next five characters identify the talker (two characters) and the type of message (three characters).
  • All data fields that follow are comma-delimited.
  • Where data is unavailable, the corresponding field remains blank (it contains no character before the next delimiter – see Sample file section below).
  • The first character that immediately follows the last data field character is an asterisk, but it is only included if a checksum is supplied.
  • The asterisk is immediately followed by a checksum represented as a two-digit hexadecimal number. The checksum is the bitwise exclusive OR of ASCII codes of all characters between the $ and *, not inclusive. According to the official specification, the checksum is optional for most data sentences, but is compulsory for RMA, RMB, and RMC (among others).
  • <CR><LF> ends the message.

As an example, a waypoint arrival alarm has the form:


Another example for AIS messages is:


NMEA sentence format[edit]

The main talker ID includes:[1][2] Archived 2022-09-02 at the Wayback Machine

NMEA message mainly include the following "sentences" in the NMEA message:[3]

Sentence Description
$Talker ID+GGA Global Positioning System Fixed Data
$Talker ID+GLL Geographic Position-- Latitude and Longitude
$Talker ID+GSA GNSS DOP and active satellites
$Talker ID+GSV GNSS satellites in view
$Talker ID+RMC Recommended minimum specific GPS data
$Talker ID+VTG Course over ground and ground speed

One example, the sentence for Global Positioning System Fixed Data for GPS should be "$GPGGA".

Vendor extensions[edit]

Most GPS manufacturers include special messages in addition to the standard NMEA set in their products for maintenance and diagnostics purposes. Extended messages begin with "$P". These extended messages are not standardized.

Software compatibility[edit]

NMEA 0183 is supported by various navigation and mapping software. Notable applications include:

Sample file[edit]

A sample file produced by a Tripmate 850 GPS logger. This file was produced in Leixlip, County Kildare, Ireland. The record lasts two seconds.


Note some blank fields, for example:

  • GSV records, which describe satellites 'visible', lack the SNR (signal–to–noise ratio) field for satellite 16 and all data for satellite 36.
  • GSA record, which lists satellites used for determining a fix (position) and gives a DOP of the fix, contains 12 fields for satellites' numbers, but only 8 satellites were taken into account—so 4 fields remain blank.


NMEA 0183 continued to be maintained separately: V4.10 was published in early May 2012, and an erratum noted on 12 May 2012.[11] On November 27, 2018, it was issued an update to version 4.11, which supports Global Navigation Satellite Systems other than GPS.[12]

See also[edit]


  1. ^ Peter Bennett (Sep 15, 1997). "The NMEA FAQ". Archived from the original on 2014-02-15. Retrieved 2013-10-21.
  2. ^ "NMEA 0183 vs NMEA 2000". November 2018. Archived from the original on 2013-08-19. Retrieved 2020-10-20.
  3. ^ Spitzer, Steve. (May 2009). "NMEA 2000 white paper" (PDF). Archived from the original (PDF) on 2021-03-02. Retrieved 2020-10-20.
  4. ^ "Publications and Standards from the National Marine Electronics Association (NMEA) / NMEA 0183". NMEA. November 2008. Archived from the original on 2013-10-21. Retrieved 2013-10-21.
  5. ^ "National Marine Electronics Association - NMEA". www.nmea.org. Archived from the original on 2022-03-31. Retrieved 2020-09-24.
  6. ^ Raymond, Eric S. (March 2019). "NMEA Revealed".
  7. ^ Dale DePriest. "NMEA data". Archived from the original on 2020-10-20. Retrieved 2020-10-20.
  8. ^ "Google Maps for Android". Retrieved 2013-10-21.
  9. ^ Marc Balmer (2006–2008). "/sys/kern/tty_nmea.c". BSD Cross Reference. OpenBSD.
  10. ^ "ObserVIEW - Free Vibration Analysis Software". Retrieved 2022-10-18.
  11. ^ "ERRATA # 0183 120512" (PDF). NMEA. Archived from the original (PDF) on 2016-04-17. Retrieved 2013-10-21.
  12. ^ "NMEA PUBLISHES UPDATED VERSION OF NMEA 0183 FOR NEW GLOBAL SATELLITE SYSTEMS" (PDF). November 2018. Archived from the original (PDF) on 2019-01-31. Retrieved 2019-01-30.

External links[edit]