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.

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

Well, partly, yes! However, there is a serious side to examining NMEA. Let’s look at two<br />

aspects now.<br />

Ensuring That Your GPS Works<br />

A GPS, like all other electronic gadgets, is prone to failures. If, one day, you are unable to<br />

switch on your GPS even after you change the batteries for fresh ones, then you know it’s dead.<br />

But electronic devices are just as prone to erratic problems as a result of failures.<br />

A good way to determine whether your GPS (or antenna) is picking up satellites properly is to<br />

hook the device up to a PC or portable device and look at the NMEA being produced. Does<br />

what you see look like valid NMEA? Do all the sentences look okay or do you find that there<br />

are blank lines being displayed onscreen?<br />

If your GPS is outputting valid NMEA that contains accurate positional information, then the<br />

GPS is working (even if other components of the GPS, such as the screen or input buttons, aren’t).<br />

I’ve seen GPS receivers with broken screens or nonfucntioning buttons put to excellent use<br />

when connected to another device.<br />

If your NMEA sentences seem wrong or cut off or include blank lines, before you condemn<br />

your GPS to the trash can (or recycling depot), check all the cables and connections. Follow<br />

the instructions in the cable chapters to test your cables (remember that heat and vibration can<br />

affect cables, so test them under these conditions if possible). If possible, try a different cable to<br />

see if the problem persists.<br />

Avoiding <strong>Data</strong> Corruption<br />

When you have a GPS connected to a PC or portable device for navigating with (in-car especially),<br />

you’ll likely notice that most of the track information for your journey is smooth and<br />

accurate and follows the road closesly. However, you might also find that occasionally you get<br />

what are known as spikes in the data. Spikes are when you appear to have moved a great distance<br />

very fast indeed. Sometimes the jumps can be very small (a few hundred meters), while at other<br />

times the spikes can be huge, momentarily propelling you hundreds, if not thousands, of miles<br />

off course before bringing you back to where you are suppoed to be.<br />

These can be irritating and make you lose faith in your system, and it’s a good idea to try to<br />

pinpoint the cause of the problem.<br />

This kind of problem usually indicates one of two root causes:<br />

A problem with the GPS<br />

A problem with the device to which the GPS is connected<br />

If the problem is with the actual GPS itself, then the way to test it is simple: First make a log of<br />

the NMEA sentences. Then, when you see a problem with the tracklog produced, look through<br />

the NMEA sentences for data that corresponds to the glitch. You can save yourself a lot of time<br />

by only looking at the $GPGGA sentences that contain the position, velocity, and time data.<br />

With practice, just a cursory look through the listing will highlight problems. Generally, the<br />

numbers represeting coordinates and velocity change gradually over time, and sudden changes are<br />

221

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

Saved successfully!

Ooh no, something went wrong!