Every now and then, the fabulous Garmin 705 will get screwed up while “Saving History” when plugging into the computer. What’s good is that the data isn’t lost. What’s bad is that it can take some hacking at the internal structure of the file to fix it up.
I’ve put together a quick script that you can run on the files to fix them up. It’s not perfect (it won’t fix the lap data, for example). But it saves the time to stitch the files together by hand. The script is attached, and the instructions to use it are below. Be warned – it’s a little geeky.
- A Windows 7 machine (or a machine that has PowerShell V2 installed on it).
- This script file: lapfilefixer.ps1 (Size 3.2 KB)
To make things easy, download it to your desktop.
- From the Start Menu, search for “PowerShell”. Right click on PowerShell and select ‘Run as Administrator’
- Type in the following command and follow the prompt
- Close the Window, you’re done here.
Copy the files from your Garmin:
- Locate the .dat files on your Garmin. They will be in the (X:\Garmin\History\Laps) directory. Each of the numbered folders represents a ride, start-to-stop.
- Copy the Laps folder onto your computer (for example, onto your Desktop)
Run the Script:
- Start PowerShell (From the Start Menu, search for PowerShell, and run it)
- Navigate to the folder that contains your Lap*.dat files for the ride you want to fix (for example, C:\Users\Kevin\Desktop\Laps\14)
- From this directory, run the script
- The output will be in the ‘output.tcx’ file in the same directory.
- Import the ‘output.tcx’ file file into SportsTracks or Garmin Training Center, or whatever software you prefer.
I hope this helps you out! It certainly has saved me a bunch of time. Note, I’m not responsible for any data loss or problems that the script causes. I’ll try to help you out if you have questions, but I’m no expert on the file format. I just hacked this together for myself. If you want some really good information, I’ve found the following blog and thread helpful: