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.

140 Part II — Software Hacks<br />

This process isn’t as straightforward as using MeMap, but it does take you closer to the code of<br />

the firmware and enables you to do more than you can with MeMap.<br />

Before we go further, let’s have a quick tutorial on the basic data structures in computers and<br />

look at how hex and bytes fit in.<br />

A byte is composed of eight bits. A bit is the most basic unit of data in a computer. Bits can be<br />

either on (1) or off (0). These are the basic units of the number system known as binary.For<br />

example, if you have eight bits that are all on, you could represent the number 11111111. This<br />

same number would be FF in hexadecimal because hexadecimal uses characters to count past 9:<br />

A, B, C, D, E, and F.<br />

Putting this all together, the binary notation for the largest number a byte can represent would<br />

be 11111111, which is equal to 256 in decimal and equivalent to FF in hexadecimal.<br />

Fortunately, you don’t really need to know that much about bits, bytes, or hexadecimal to modify<br />

the GPS firmware.<br />

If you want to experiment with binary, decimal, and hexadecimal numbers, fire up Windows<br />

Calculator, which enables you to work with all three formats.<br />

The text strings that appear on the screen of your Garmin eTrex or eMap are stored in the<br />

firmware as text, which means that it is relatively easy for you to search for, find, and replace<br />

these strings of text using a hex editor, as shown in the following steps:<br />

1. Open the firmware file in your selected hex editor. This is usually done by selecting<br />

File ➪ Open and searching for the appropriate file (see Figure 6-20).<br />

Garmin eMap and eTrex firmware files have a .RGN file extension so they are quite easy<br />

to find.<br />

FIGURE 6-20: Search for the appropriate file.

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

Saved successfully!

Ooh no, something went wrong!