05.03.2013 Views

Data Hacking

Data Hacking

Data Hacking

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examining NMEA Sentences<br />

Chapter 9 — Examining the <strong>Data</strong><br />

Many applications enable you to look at, examine, and even save NMEA sentences from your<br />

GPS because this is the closest, purest way to work with the GPS data. However, most people<br />

don’t give them much thought because the sentences themselves seem to complex. Little information<br />

is provided as to what they contain and how the data is structured.<br />

This is a real shame — with a bit of information and a little practice, reading NMEA can<br />

become quite easy as you learn what to look for and where to look for it.<br />

The following sections examine some of the common NMEA sentences that you will come<br />

across if you view NMEA data. There are the main sentences, the ones that relate to navigation<br />

and signal quality.<br />

RMB (Recommended Minimum Navigation Information)<br />

RMB is the “recommended minimum navigation” sentence, and it is sent whenever a route<br />

or a goto (such as going to a waypoint) is set as active. Some systems are set to transmit this<br />

all the time, transmitting null data if no goto is selected, while others only send it when<br />

required.<br />

$GPRMB,A,x.x,a,c--c,d--d,llll.ll,e,yyyyy.yy,f,g.g,h.h,i.i,j*kk<br />

A <strong>Data</strong> status (A = OK, V = Void)<br />

x.x Crosstrack error (measured in nautical miles, maximum 9.99)<br />

a Direction to steer to correct crosstrack error (L = left, R = Right)<br />

c--c Origin waypoint ID#<br />

d--d Destination waypoint ID#<br />

1111.11 Destination waypoint latitude<br />

e N or S (for latitude)<br />

yyyyy.yy Destination waypoint longitude<br />

f E or W (for longitude)<br />

g.g Range to destination (measured in nautical miles, maximum 999.9)<br />

h.h Bearing to destination, True degrees<br />

i.i Velocity towards destination (measured in nautical miles)<br />

j Arrival status (A = arrived, V = not arrived)<br />

*kk Checksum<br />

RMC (Recommended Minimum Specific GPS/TRANSIT <strong>Data</strong>)<br />

This is the NMEA equivalent of PVT (Position, Velocity, Time) data.<br />

$GPRMC,hhmmss.ss,A,llll.ll,e,yyyyy.yy,f,x.x,y.y,ddmmyy,z.z,a*hh<br />

199

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!