Joel Richards

Garmin Edge 705 Data Recovery with DD & XML

After recently taking part in a race across Scotland, using a Garmin GPS device (Edge 705) I had around 12 hours of GPS data which unfortunately seemed to get corrupted during the ride.

The device was properly displaying the data on the unit, but Windows, OSX and Linux were all failing to read the data, prompting to format the device which would remove all the data.

After contacting Garmin support they said the device was no longer readable, had to be formatted and loaded with the firmware again even though the data was still intact on the device.

Rather than losing the data I had a further look into it:

Using dd I made a copy of the raw data from the device, giving a 1gb dump of raw data from the drive. Using a range of consumer data recovery applications I was able to restore various routes and GPS logs from the previous month, but only about 5% of the route I was interested in..

I had a look in the dump of the disk directly, after looking for the expected XML (Garmin TCX Schema) I managed to extract around 20mb of XML data from the 1gb dump. Unfortunately the logs all seemed to be fragmented with various corrupted data points, so I wrote a quick application to only extract data from the relevant dated log, giving me a XML dump of all the trackpoints. Luckily the redundancy within XML data meant having missing elements wasn’t much of an issue.

After getting this, the XML had to be indented and the additional Garmin header tags to be added, and finally a readable log file!

So, if your Garmin device does get corrupted and isn’t readable (this seems to be a fairly common problem in the wet), all isn’t lost!

Here’s an overview of the recovered GPS data:

Tags: gps, garmin, gpx, data, recovery, 705, edge

See more posts

Comments: 7

Garmin Nuvi 265WT
commented on

Unfortunately I had to face this type of problem many times. But, I didn't know this way to recover the data. Thanks for sharing this tips. It will help me a lot.

João Ganhão
commented on

Excelent!
I'm facing the exact same problem. I recovered the data from de device where i can see the distance, the route on the map etc. After this i get a TCX file with only 50k so i believe that the rest of the information is stored in other file. Can you tell me wich file contains the info? It seems that de Edge use a king of temp file before generating the TCX. Is this correct?

Joel
commented on

What further info are you looking for? Generally the TCX should include all relevant information, speed, lat/long, elevation, heart rate, cadence and time.
What fields are you missing?
(If you open the TCX file in a text editor it should show the relevant information).

João Ganhão
commented on

My TCX file is almost empty. The size is 50k in a 6h23m ride (i think in only the file header, i had already opened in a TXT editor and i'm familiar with TCX files). I think the info should be in a temp file and then inserted when we hold LAP key because i can see the route on the devide screen.

Joel Richards
commented on

Another way to recover/view rides from the device is the save the ride as a course:

On the Garmin:

Training/Courses/Create course:
Then select the ride, name it, and save the ride

On the computer:
You can then view the route/course on the Garmin device if you plug into a computer and browse to
device/Garmin/Courses/course_name.tcx

João Ganhão
commented on

That was my first tought, it does´t save...

Aaron
commented on

Man, I'm staring at a 1kb TCX file here after a 35 mile ride. How in the world does that happen?

Add a comment

Note: comments are moderated before publication.

Most Popular

The Entifyr

Steven Wake

The Entifyr is a small web application that started life as an personal experiment to automate the removal of problem characters from client supplied content (usually Microsoft Word documents). The offending characters are replaced with corresponding entities (hence the name) al…

Garmin Edge 705 Data Recovery with DD & XML

Joel Richards

After recently taking part in a race across Scotland, using a Garmin GPS device (Edge 705) I had around 12 hours of GPS data which unfortunately seemed to get corrupted during the ride. The device was properly displaying the data on the unit, but Windows, OSX and Linux were all …

Web Meet Guildford, join us for a drink

Paul Sturgess

It’s been over a year now since we moved to Guildford and we’re really feeling settled in our new home on the High Street. We’ve got our artwork on the walls, an arcade machine setup and we’ve even hosted a live gig. However, one thing we haven’t done yet is meet our fellow web …