ArticleslgStudy

computer science

NMEA 0183

NMEA 0183 is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand NMEA 0183 rather than just read about it. In short: 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).

Key takeaways

  • NMEA 0183 belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect NMEA 0183 to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of NMEA 0183 from memory before moving on to harder problems.

Reference excerpt

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. In leisure marine applications, it is slowly being phased out in favor of the newer NMEA 2000 standard, though NMEA 0183 remains the norm in commercial shipping.

Overview 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. The standard calls for optically isolated inputs. There is no requirement for isolation for the outputs. 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 NMEA 0183 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. However, much of it has been reverse-engineered from public sources.

UART settings

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 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:

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:

$GPAAM,A,A,0.10,N,WPTNME*32 Another example for AIS messages is:

!AIVDM,1,1,,A,14eG;o@034o8sd<L9i:a;WF>062D,0*7D

NMEA sentence format NMEA is originally designed for a shipboard multi-drop network. The only way for equipment to know the author of a message is through the talker ID.

GNSS GNSS receivers may use the following talker IDs, depending on the specific system in use:

BD or GB - Beidou (BDS) GA - Galileo GI - NavIC (IRNSS) GL - GLONASS GP - GPS GQ - QZSS NMEA message originating from a GNSS receiver mainly include the following "sentences" in the NMEA message:

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

Vendor extensions 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" (for "private"). These extended messages are not standardized.

Sample file NMEA conversations are common stored as an ASCII text file to record location data. The following is a sample file produced by a Tripmate 850 GPS logger. This file was produced in Leixlip, County Kildare, Ireland. The record lasts two seconds.

$GPGGA,092750.000,5321.6802,N,00630.3372,W,1,8,1.03,61.7,M,55.2,M,,*76 $GPGSA,A,3,10,07,05,02,29,04,08,13,,,,,1.72,1.03,1.38*0A $GPGSV,3,1,11,10,63,137,17,07,61,098,15,05,59,290,20,08,54,157,30*70 $GPGSV,3,2,11,02,39,223,19,13,28,070,17,26,23,252,,04,14,186,14*79 $GPGSV,3,3,11,29,09,301,24,16,09,020,,36,,,*76 $GPRMC,092750.000,A,5321.6802,N,00630.3372,W,0.02,31.66,280511,,,A*43 $GPGGA,092751.000,5321.6802,N,00630.3371,W,1,8,1.03,61.7,M,55.3,M,,*75 $GPGSA,A,3,10,07,05,02,29,04,08,13,,,,,1.72,1.03,1.38*0A $GPGSV,3,1,11,10,63,137,17,07,61,098,15,05,59,290,20,08,54,157,30*70 $GPGSV,3,2,11,02,39,223,16,13,28,070,17,26,23,252,,04,14,186,15*77 $GPGSV,3,3,11,29,09,301,24,16,09,020,,36,,,*76 $GPRMC,092751.000,A,5321.6802,N,00630.3371,W,0.06,31.66,280511,,,A*45

The first lines translate as:

GGA: UTC Time 09:27:50, location 53°21.6802′N 6°30.3372′W. Valid GPS fix using 8 satellites, HDOP = 1.02. Altitude = 61.7 meters MSL, geode-to-ellipsoid distance is 55.2 meters. GSA: Device set to 2D/3D automatic mode and is using 3D fix. Satellites used are 10,07,05,02,29,04,08,13. PDOP 1.72, HDOP = 1.03, VDOP = 1.38. GSV: (satellite data omitted) RMC: UTC Time 09:27:50, location 53°21.6802′N 6°30.3372′W. Speed over ground 0.02 knots, course over ground 31.66°. Date is 28 May 2011. 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.

Software compatibility

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

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with NMEA 0183

Start with the simplest possible case. Write down what NMEA 0183 claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to NMEA 0183 before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about NMEA 0183 ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of NMEA 0183

In research
NMEA 0183 appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses NMEA 0183 in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
NMEA 0183 is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer buses, Global Positioning System, Marine electronics, so understanding it makes those chapters shorter.
In everyday life
Look for NMEA 0183 outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “NMEA 0183” →

How to study NMEA 0183 in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what NMEA 0183 means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain NMEA 0183 out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is NMEA 0183 in simple terms?

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 Associ…

Why does NMEA 0183 matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study NMEA 0183?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on NMEA 0183.

Tags

  • Computer buses
  • Global Positioning System
  • Marine electronics
  • Network protocols
  • Satellite navigation

Keep exploring