Getting GPX-formatted data from Garmin Forerunner 110

Introduction

This page describes how Suzie can retrieve her training data from her Garmin Forerunner 110 and convert it to GPX format.

Procedure

  1. Connect the USB cable to the PC and carefully attach the “bulldog-clip”-style USB connector to the watch, ensuring that the 4 spring-loaded contacts are correctly located (this does not seem so easy!).
  2. Verify the watch displays “GARMIN” and the battery-recharging symbol.
  3. Run:
    dmesg

    and verify that the output ends with:

    [1802710.948020] usb 2-2: new full speed USB device using uhci_hcd and address 48
    ...
    [1802711.104785] usb-storage: waiting for device to settle before scanning
    [1802716.106345] usb-storage: device scan complete
    [1802716.109346] scsi 13:0:0:0: Direct-Access     Garmin   FR110 Flash      1.00 PQ: 0 ANSI: 5
    ...
    [1802716.134317]  sdc:
    ...
    [1802716.165330] sd 13:0:0:0: [sdc] Attached SCSI removable disk
  4. Start Thunar and, in the left-hand panel, select the “GARMIN” device and navigate to the Garmin/Activities directory.
  5. Copy/move all the FIT files to a suitable location.
  6. Go to Thunar and, in the left-hand panel, right-click on the “GARMIN” device and select to “Unmount Volume”.
  7. You can now remove the watch from the bulldog-clip and that USB cable from the PC.
  8. If not already done then setup the software for converting FIT files to CSV files according to the following sub-procedure:
    1. Go here and scroll down the last posting entitled:
      Re: [Gpsbabel-misc] support for Garmin .fit files
      From: ibarum <ibarum@gm...> - 2010-10-24 17:57
    2. Download the fit2csv.pl script which is attached to that post. (As a convenience, that file is saved as an attachment to this wiki page.)
    3. Go here and scroll down to the section entitled “DESCRIPTION”.
    4. Download the GarminFIT-0.07.tar.gz file which is linked near there. (As a convenience, that file is saved as an attachment to this wiki page.)
    5. Examine your $PATH environment variable by running:
      echo $PATH

      and verify that <your-home>/bin is listed there. If it is not then run:

      echo 'PATH=$PATH:$HOME/bin' >> ~/.profile

      and then load the adjusted setting by running:

      . ~/.profile
    6. Examine your $PERL5LIB environment variable by running:
      echo $PERL5LIB

      and verify that <your-home>/lib/perl5 is listed there. If it is not, or if PERL5LIB is not set at all, then run:

      echo -e 'PERL5LIB=$PERL5LIB:$HOME/lib/perl5\nexport PERL5LIB' >> ~/.profile

      and then load the adjusted setting by running:

      . ~/.profile
    7. Unpack, compile and install the just-downloaded files, by running:
      mkdir -p ~/bin
      cat fit2csv.pl > ~/bin/fit2csv
      chmod 755 ~/bin/fit2csv
      mkdir -p ~/lib/perl5
      tar xzCf ~/lib/perl5 GarminFIT-0.07.tar.gz
    8. Verify that fit2csv is now found and that it finds the modules it needs by running the following commands and verifying their output is shown here:
      suzie$ cd
      suzie$ fitcsv
      Usage: fitcsv <file.fit>
      
      suzie$
  9. To convert a file from FIT format to GPX format run:
    fit2csv <fit-file> > <csv-file>
    gpsbabel -i unicsv -f <csv-file> -x transform,trk=wpt,del -o gpx -F <gpx-file>

See also