D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Using a Garmin Forerunner with ANT+ in ubuntu

 



On Tue, Dec 14, 2010 at 7:49 PM, Gareth <auxinelectro@xxxxxxxxx> wrote:
Got it working with the following ( I have basically cobbled together the below from various individual websites I have located that piece together the issues I have been experiencing)

1. Make ubuntu "see the usb stick" and create the /dev/ttyUSB0

sudo modprobe usbserial vendor=0x0fcf product=0x1008

This created the /dev/ttyUSB0

To make the change permanent, you can do

echo "options usbserial vendor=0x0fcf product=0x1008" >
/etc/modprobe.d/ant-usb2.conf

(do it as root, sudo -s makes you root)

2.I was then able to use (this paired the computer/ant+ stick with the garmin watch)

Open a Terminal for the installation [2]

cd $HOME
wget http://cgit.get-open.com/cgit.cgi/gant/snapshot/gant-master.tar.bz2
tar -xjf gant-master.tar.bz2
cd gant-master
make clean

make

3. First make sure the watch was set to pairing set to yes and enabled set to yes
set your wristwatch in Pairing mode as shown below

Menu > Settings > ANT+Sport > Computer > Pairing > set to On

The wristwatch will ask you whether you want to pair it or not. Also check that,

Menu > Settings > ANT+Sport > Computer > Force send > set to Yes
Menu > Settings > ANT+Sport > Computer > Enabled > set to Yes

4. Pair the ant stick with the watch

Then you have to make you are using the correct version of gant (i.e the one you have downloaded and compiled - make sure you put the ./ infront of the command else you may pickup any other version in your path)
 
(where name_of_device is a name you give it.. i.e 410 etc the file "auth410" is the shared key created by the command)

This seemed to be wanted to be done as a "non-root" user...

./gant -f name_of_device -a auth410

If you get the error gant: JAVA_HOME not set and cannot find javac to deduce location, please set JAVA_HOME it's because you are picking the gant in your path not the one you have just downloaded.

5. I could then use gant to download the contents of the watch

./gant -nza auth410 > output

This downloaded the .TCX files into my $HOME




Blimey! As well as here, perhaps you should share your efforts on a forum and/or other site? Well done!

Roly
-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq