05.03.2013 Views

Data Hacking

Data Hacking

Data Hacking

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

206 Part III — <strong>Data</strong> <strong>Hacking</strong><br />

SiRF Another protocol that you might hear of is the SiRF protocol. This is a protocol developed by<br />

SiRF Incorporated to work with their latest hi-tech GPS devices.<br />

The SiRF protocol is different from NMEA sentences in several fundamental ways:<br />

The SiRF protocol is binary. This offers a lot of advantages over using ASCII as the<br />

medium for transmitting information.<br />

SiRF is faster. The NMEA protocol specifies a speed of 4800 bits per second. This is<br />

okay, but it can create a bottleneck if you want to transmit large amounts of data. SiRF<br />

supports data speeds of 38,400 bps and greater.<br />

SiRF can carry more data. NMEA sentences are generally limited to 80 characters.<br />

A single SiRF instruction string (called a payload) can be as long as 2 × 10 15 bytes<br />

(actually 2 × 10 15 – 1, or 2 billion gigabytes!).<br />

SiRF has greater information integrity. Not only does SiRF use a checksum to check for<br />

data integrity, but it also contains other message validation code.<br />

SiRF uses message encapsulation. The message is encapsulated by specific start and stop<br />

characters that also form part of the message validation code, meaning that sentence<br />

confusion cannot happen.<br />

However, the SiRF protocol is more complex and harder to navigate than NMEA. Because<br />

of this, I’m not going to cover it in greater detail here, but if you want more information<br />

(free, as opposed to paying for the NMEA-0183 standard), visit www.sirf.com/reps/<br />

Technical.html. Here you will find tools, information, and utilities to help you make the<br />

most out of SiRF.<br />

Using NMEA Sentences<br />

Let’s take a look at how you can make use of NMEA sentences directly from your GPS. All<br />

you need is a GPS connection between your GPS and your PC or PDA. In order to be able to<br />

use these applications, you need to make sure that your GPS is set to output NMEA data.<br />

Examining the NMEA output is a great way to learn more about GPS and how it interfaces<br />

with software and other devices. It is also a great way to troubleshoot problems — you can test<br />

for incorrect output, which can lead you to solutions to your problems.<br />

In addition, if you are a programmer, you may see something that you can do with the NMEA<br />

data that cannot currently be done — with a bit of programming and the ability to decode<br />

NMEA, you’ll be able to leverage your existing skills in a completely different arena.<br />

A lot of available software will enable you to read and log NMEA sentences from your GPS<br />

receiver. The following sections describe a few of the better applications.

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

Saved successfully!

Ooh no, something went wrong!