Updated from previous posting!

Garmin Forerunner 405
UPDATE: thanks to the efforts of lots of people in the community we are now able to download tracks from the Garmin Forerunner 405 Linux. See comment 3432 for a summary of how to do it.
I’d really like to get a Garmin Forerunner. It’s a GPS device with a heart rate monitor which you use for training, I’d use it for my running.
I don’t mind which model I get I don’t suppose – I’d like to get the 405 as it’s the latest and greatest and looks swish, but should be happy with the 305. Which I get depends on the money I can raise.
My immediate concern is that I use Ubuntu Linux, not Microsoft Windows, as my primary operating system. This, as any Apple Mac user will attest, means that typically manufacturers forget about us significant minority and so we can’t use their tools. In the case of Garmin their “Training Center” [sic, USA spelling] software is fairly critical to the whole experience as it analyses all the GPS data etc and gives you graphs/targets yada yada.
So I decided to get in touch with Garmin to ask whether Linux support was on its way, or whether they perhaps had a web-based version.
Off I trotted, onto the Garmin website. First of all I went to the UK site but the contact form was broken, it gave a 404 Not Found or something similar when I submitted my email. Thankfully the ‘back button’ saved me and I managed to retrieve the long text I had typed in.
I then tracked down an email address for the webmaster so emailed them about the contact form problem, but not had a reply.
At the same time I found a form on the USA version of the site and sent my enquiry to their.
I’m pleased to say that I did get a reply. Sadly they don’t have plans to support Linux, but Garmin Connect does look like it may be what I’m looking for as a web interface. So fingers crossed.
Conclusion? Their website let me down, but when the website worked the people manning the support email were helpful. I shall let you know if I manage to save up enough to get one!


September 17th, 2008 at 9:36 pm
I’m in the same situation, so please let us know if you get one and manage to make it work on Ubuntu. It seems to me that Garmin Connect is a good bet since it is web-based, but the problem might be in connecting the watch to your computer, especially in the 405 case, since it is supposed to connect wirelessly using a USB ANT stick. I don’t know if this protocol is well supported on Linux…
September 18th, 2008 at 7:29 am
I am hoping, probably naïvely, that all Ubuntu will see is a USB storage device and that the ANT stick will take care of the wireless communication with the wristwatch.
I was hoping to sell my old PC to raise funds for a 405, but that hasn’t happened so I will have to save up the old fashioned way. Ebuyer are stocking the 405s with HRM and seem as cheap as anywhere on the web so I will probably use my staff free next day delivery and get one from here rather than wait 5 days for free delivery.
http://www.ebuyer.com/search?q=garmin+forerunner&x=0&y=0
Please let me know if you beat me to getting one!
September 18th, 2008 at 7:38 pm
I have been in touch with Garmin tech support. It is certainly the case that we’re on our own. I tried to persuade them to plug one into Ubuntu but they wouldn’t/couldn’t.
Anyway, here’s my emailings:
Stephen O’Neill wrote:
Hi there!
I blogged about whether or not the Garmin Forerunner 405 would work with
Linux or not a few weeks ago, and someone found my post and wrote a
comment last night.
http://www.thefloatingfrog.co.uk/frog-blog/2008/09/garmin-forerunner-305405-musings/
I wondered whether you would like to test whether the unit works with
Ubuntu (or any flavour of Linux – it doesn’t really matter which) so
that I can post up on my website – as my stats show a few hits and I’m
second in Google for “garmin forerunner 405 ubuntu”.
The crux of what we’d like to know is:
—
If we plug the ANT stick into a computer running Ubuntu can we retrieve
the data and upload it to Garmin Connect?
—
I would expect that it wouldn’t be too time consuming for you to test
this and it would be really helpful to a number of people who seem to be
undecided.
Please let me know what you think. I am happy to provide support for you
over email if you need assistance installing Ubuntu itself. I would be
happy to write up a new post with any findings that you had.
If I had a bigger readership on my blog I would suggest that we do a
deal where you let me trial a unit and do a review, but I can’t
guarantee the numbers that would make that worthwhile for you.
Garmin wrote:
I’m sorry, but we are only able to support Windows and Mac with our Training Center software, so I wouldn’t be able to test Linux.
Stephen O’Neill wrote:
Hi, sorry I maybe wasn’t clear.
I wasn’t asking for you to support Linux with the Training Center software.
What I was pointed to previously was your Garmin Connect online service. What I am hoping is that, as a Linux user, I can transfer data from the wristwatch to the Garmin Connect service. Do you still need the Training Center software in order to do this?
Garmin wrote:
No, you wouldn’t need the Training Software for this. You would need the ANT Agent, which is currently on available for Windows. You can download the ANT Agent software from http://www8.garmin.com/support/download_details.jsp?id=3741.
September 18th, 2008 at 7:42 pm
I will try running the ANT software under wine at some point but I’m not optimistic.
There is this thread that kinda looks like people are working on something, so maybe something will come along for the Linux kernel at some point?
http://developer.garmin.com/forum/viewtopic.php?t=435
It’s frustrating as I can’t find out whether it works without buying one… but I suppose we’re covered by the distance selling regulations in the UK.
September 22nd, 2008 at 6:24 pm
Hi,
Sorry I was away from the Internet for the last days. I do not know yet if I’ll buy a watch and when, I’m still undecided, Linux being one important factor since I surely don’t want to use Windoze again after 7 years of having lived without it.
So please keep me updated if you get anything on that.
Running the software through wine is indeed a possibility, which I suppose should work in principle, but it is far from ideal of course.
I had a look at the thread you pointed out on the garmin developers website. However it seems that progress has stalled (and I do not have the technical knowledge required to help out unfortunately…)
On another note, I also contacted Garmin asking for Linux support for the ANT protocol, but their answer was not very helpful. Here’s the exchange:
——
Me:
I’m running Ubuntu Linux on my computer, and I’m interested in buying a Forerunner 405 watch. However before I buy it, I would like to know if the USB ANT protocol that the watch uses is supported on Linux. I’m happy to use the web-based software Garmin Connect to analyse my runs, but I need to know if the watch can communicate with my computer first. I hope the protocol is supported, or if it is not at the moment, that you plan to offer Linux support in the near future.
—
Their answer (from Mark R):
Thank you for contacting Garmin International.
I would be happy to help you with this. At this time, Linux is not compatible and we are unaware if our software team will be implementing Linux as a compatible operating system. I apologize about any inconvenience this brings.
With Best Regards,
—–
So they seem to be happy to “help”, but I’m not sure what they mean by that. I suppose the only thing to be done is to get a watch and try it out and see what happens, but it’s quite a big investment… Otherwise it would be to convince them to try it out, but it looks like you tried this and they are not very open to this possibility unfortunately…
Cheers,
Vincent
September 22nd, 2008 at 7:23 pm
I am heartened that Mac support for the ANT protocol is due to be forthcoming any time soon. But it will be closed source so probably won’t help the Linux devs that much.
The whole thing has made me wonder whether I should get the 305, or even a Polar RS400.The comments after the Runners World ‘review’ (http://www.runnersworld.co.uk/news/article.asp?sp=370838622312410473594&v=1&uan=3320) suggest that the 405 might have some usability issues. Though this review is more balanced (http://www.runnerplus.com/forum/topicpage-158-1021-garmin_forerunner_405_first_impressions_and_review-1) and these people seem to think that the Garmin’s aren’t too hot on GPS visibilty (http://www.pccoach.com/newsletters/May06/ComparisonReviewS625XvFR305.htm).
My gut feeling is that I will end up going for the 405, but that I will be dual booting into Windows for a bit.
I shall keep you posted!
September 24th, 2008 at 8:46 pm
Well, I have ordered one from work. It shall be delivered tomorrow. Eek.
September 25th, 2008 at 2:19 am
Good! Let’s hope it works…
September 25th, 2008 at 7:41 am
I think that we both know that it won’t, but at least I’ll be able to actively test new developments and perhaps assist potential developers.
My halfway house might be that I dump the data using Windows and then use pytrainer under Linux. Programming the training partner sounds like it needs to be done in Windows too as it can’t be done on the 405 itself.
September 27th, 2008 at 10:10 pm
Got the gadget and have been using it. As predicted it won’t play ball in Linux which is a real shame. I have waved at people on the developer forum in case I can be of help. http://developer.garmin.com/forum/viewtopic.php?t=435
I will be doing a full review of my experience with using the device in the next week or two.
Executive summary: small device, impressive what’s packed into the housing. Isn’t half as user friendly as Garmin make out, but I’m getting used to it – the bezel can be fiddly, I can’t get on-demand back light to come up when the bezel is locked, even the ANT stick doesn’t work as seamlessly as they make out in the Runners World marketing hyperbole ‘review’ and Garmin Connect doesn’t look like it’s fully featured yet – stuff they say you can do in the manual doesn’t look like it’s enabled on the site yet so you need to use Training Center.
That’s the bad stuff, but the good stuff is that it does lock onto satellites quickly, the HRM works really well, the data it shows on the move is really good too.
Hell, this has turned into a mini-review.
You can have a look at the data from the 3 mile test I did this morning here – http://connect.garmin.com/activity/932811
The drop right near the start is where I tried to lock the bezel but managed to stop the timer (grrr – usability again!).
October 2nd, 2008 at 12:55 am
Thanks a lot for the update. The data from your run looks great!
So nothing works on Linux? I mean, the ANT stick is not recognized at all? No data transfer possible? This is really bad. Have you tried running the ANT software under wine?
For me this is a killer: I really don’t want to have to reinstall Windows on my laptop, I’ve been so happy for so long without it.
But if I could use it under Wine, while not ideal, that could still be a solution…
The forum on the Garmin developer’s website doesn’t seem to be very much alive unfortunately…
Thanks a lot!
Vincent
October 2nd, 2008 at 7:37 am
To be honest I haven’t even bothered running it under wine as yet. I will give it a whirl – you never know, I might be really lucky.
As for what Linux makes of the ANT stick, dmesg does pick up the USB device but I can’t cat any data from it and the programs on those other threads seemed to do nothing for me. And having read the state of those dev threads it sounds like you’d need to be a programmer to take them to the next stage and decode the data stream.
I shall report back with a wine test. Watch this space.
October 27th, 2008 at 4:01 pm
I did test this by the way, and it didn’t work – the installer ran but it couldn’t get past the point where Windows would have picked the driver up and installed the device.
October 27th, 2008 at 5:10 pm
OK… too bad then! I think I’ll have to wait for a bit and see if there’s any open source software development for the watch on linux… If only I knew how to code myself! Perhaps I should start learning…
thanks a lot anyway!
February 11th, 2009 at 9:43 pm
Under Linux I got the data (.tcx files) downloaded from the watch.
Using the tool from:
http://www.sbrk.co.uk/ant0_t3.tar.gz
This is the tool mentioned at the thread:
http://developer.garmin.com/forum/viewtopic.php?t=435&postdays=0&postorder=asc&start=135
These .tcx files can the be uploaded to connect.garmin.com … and everything is good
Thanks to Paul / gdev who developed the “gant” tool.
August 28th, 2009 at 1:30 pm
For the Forerunner 305 there is a Python app for Linux to download data from the unit. You get a .tcx file out for each session.
This .tcx can then be analysed by various tools. You can try using GarminConnect (website) but I have found that whist it is fairly bling it doesn’t do much analysis. Rumours exist for alternative open-source tools.
September 3rd, 2009 at 3:03 am
Any open source tools / apps for this gadget yet? Relunctant to get it if there’s no way for us, Linux users to fully exploit the data collected.. what a bummer..
September 3rd, 2009 at 7:16 am
Unfortunately I haven’t seen anything yet
I have been downloading the data in Windows then viewing it in Linux using Sportstracks (though obviously you could use another app). Garmin showed no interest in Linux when I contacted their customer support sadly.
September 3rd, 2009 at 7:23 am
There was a guy on a dev forum last year that was hoping he’d get time to work on a Linux tool to grab the data but I don’t think he got chance. I can’t be more specific as the links I had pointed to don’t work any more!!! For God’s sake Garmin – not only has Linux passed you by, but so has the concept of persistent urls!
September 6th, 2009 at 7:03 am
Hello,
I just noticed that this post is still alive. Indeed the links from the Garmin dev forum of a while ago are broken (somehow Garmin made the Linux discussions disappear…
However, I found this page, http://cgit.gromotion.com/cgit.cgi/gant/, which seems to provide an open source linux driver for the Forerunner 405. From what I read on various forums, it seems to work fine.
I found out about this link from the thread http://developer.garmin.com/forum/viewtopic.php?t=4859&highlight=linux on the garmin dev forum (watch out the link may not work anymore in a little while…
This thread http://developer.garmin.com/forum/viewtopic.php?t=410&sid=364a435cad56f8520a2167e6f9f8313b also hasn’t been deleted yet… the second page of the thread is quite recent. There’s a few links there to other linux drivers for ANT devices (well perhaps they’re the same driver, I’m not sure).
September 24th, 2009 at 2:49 am
I’m receiving my 405 next month… so I hope to be able run it in my ubuntu linux! In case of success I will post a feedback here.
September 26th, 2009 at 7:40 am
You could always try persuading the Garmin folk to get their installer working under Wine. After all, that’s how I run Spotify. Wine has improved considerably since I first tried it over 10 years ago and if it’s capable of running a program like Spotify I’m sure it would handle the Garmin application. Perhaps if they realised that they only had to work on the installer they might do something about it – just a thought.
September 30th, 2009 at 6:47 pm
The killer in Wine will be the lack of any USB device support, I’d have thought. I can run TomTom Home in Wine but it does not see the device.
Steve
October 8th, 2009 at 3:32 am
Just to help anyone who may still be looking for a solution here… it looks like SportTracks (which seems very similar to Garmin Training Center) now runs under Mono in Linux:
http://www.zonefivesoftware.com/SportTracks/Downloads/linux.php
And in fact someone has written a plugin for that app, which imports data directly from the 305:
http://code.google.com/p/linuxgarminimport/
That plugin depends on garmin_forerunner_tools, which is in the Ubuntu “universe” repository in Synaptic (I’m rather surprised no one mentioned that yet, I simply searched for “garmin” in Synaptic and found it…)
Anyway, I am still on Ubuntu 8.10 so I haven’t tried this all out yet, I’m waiting for 9.10 to come out in a few weeks (since the versions of Mono in 8.10 are too old). I have however been able to easily dump the data into XML format using the garmin_forerunner_tools package.
So all in all it looks like support for the Forerunner is getting very good on Linux in general, and Ubuntu in particular…
November 24th, 2009 at 9:27 pm
Hello all,
Just wanted to update this page with the new URL for the Gant (Forerunner 405 Open Source driver). I have consolidated servers and am now hosting the git repository here:
http://cgit.get-open.com/cgit.cgi/gant/
Best regards,
Jordan Miller
November 25th, 2009 at 9:20 am
Thanks for keeping us updated everyone – it’s really appreciated and hopefully it will help a lot of others as this page seems to rank highly in the search engines.
I have been nursing an injury for a few months so haven’t been out with my 405 for quite a while – I will make an effort to try it out and see how things have come on
Thanks again!
November 28th, 2009 at 2:46 pm
I’m really really really excited!
Thanks to Paul and Jordan’s Gant efforts and the SportTracks guys I can now get tracks in Linux!!!
Plus the TCX files can be manually uploaded to connect.garmin.com which is another bonus.
I appreciate that we already have all this documented above but I just wanted to summarise it:
cd /tmp
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
Then follow the instructions in the README file for getting data off the 405. I found this erratic, but if you cancel and retry a few times you do get the data! Let’s be honest – the Windows official binaries don’t make that great a job of it do they? The TCX files end up in the same folder.
To use SportTracks make sure you have mono-common installed (if using Ubuntu):
sudo apt-get install mono-common
Then download from http://www.zonefivesoftware.com/SportTracks/Downloads/linux.php and follow the instructions.
Time for me to make a donation to these people for all their work me thinks! Thanks again for everyone’s help bringing this thread together over such a long period of time!
December 19th, 2009 at 11:53 pm
Stephen,
Just wondering if you can eloborate on the Ubuntu instructions any further.
I’m up to the ‘make’ command, and just get this response:
make: Nothing to be done for `all’.
Do I need to alter permissions anywhere?
For info: Using Ubuntu 9.04
December 19th, 2009 at 11:57 pm
No worries Stephen,
A bit more playing around revealed run:
make clean
and then make.
December 23rd, 2009 at 7:51 am
Thanks for all the work out there, but I keep getting a segmentation fault. Garmin 405 says, ‘transferring data’, then ‘transfer complete’, while it really hasn’t transfered anything.
Sometimes it also says ‘pair with kasper?’, I press enter and it immediately resets.
channel open, waiting for broadcast
pairing, using id 270c1f83
sending pair data for dev kasper
storing auth data in auth405
resetting
December 24th, 2009 at 6:57 am
That’s a shame Kasper
I did see one segfault but kept retrying and all was well. Not seen one since the first time I did it.
The only couple of things I can think of are really obvious so aren’t very helpful: are there definitely tracks on the watch to download? The track files become .TCX files in your working directory – have they not appeared?
You can turn on more debugging with the ‘D’ flag – that’s mentioned in the README file. Maybe that can give some clues.
Hopefully someone can help you out Kasper!
December 24th, 2009 at 7:00 am
@Greg – thanks for that, I have updated the instructions. It does appear, actually, that the pre-built binary exists in that archive I said to download. That makes me wonder whether building it ourselves is even necessary. Can’t hurt I suppose!
December 30th, 2009 at 4:54 am
For some reason, when I try and upload one of the .TCX files from gant to Garmin Connect, I get an error. I can successfully upload a gpx file from Sporttracks, but that doesn’t have heart rate support. Anyone have or solve this problem?
January 6th, 2010 at 9:36 am
Just switched to Ubuntu from Windows so I’m a total Linux newbie! Good to see there’s so many people trying to solve to Garmin 405 problems. I’m going to (try) to follow the advice above and see what happens.
Thanks guys. Will let you know how I get on…
January 13th, 2010 at 4:58 pm
When I try to pair I get this message
” xxx@CQ60:/tmp/gant-master$ sudo ./gant -f paul -a auth405
channel open, waiting for broadcast
reading auth data from auth405
Unhandled response event 06
Unhandled response event 06
Unhandled response event 01
What do I do wrong?
February 1st, 2010 at 1:29 pm
@axel: maybe your device isn’t set to pair with your computer. you have to enable this on the watch under: Menu-> Settings -> ANT+ Sport -> Computer -> Pairing: on.
February 22nd, 2010 at 5:20 pm
Hi,
just now I can download the tracks to files. I found some problem if you have a lot of tracks in the clock. I had to delete old tracks and try again. Finally the procedure work without problems.
Now I what to upload a track to the clock. Somebody know how I could do it? Can I do it with gant-master?
Thanks in advance.
Ricardo
April 21st, 2010 at 7:34 am
There are many many sites on the net trying to get around the lack of a linux compatible plugin for Garmin Connect. Some use scripts to grab the data and upload it, others are running virtual machines, but there is a quick and easy solution that doesn’t require coding. From the searching I have done, I haven’t seen anyone else do it this way, so I thought I would post it.
I was running Window via VirtualBox on an Ubuntu host to get the plugin to work, but found it easier to run the Windows version Firefox via Wine and it works perfectly. Sure its not a native Linux solution, but it works for all models I have tried.
Here is my write up.
http://dropoff.tumblr.com/post/505336492/garmin-connect-running-on-ubuntu-linux
June 6th, 2010 at 7:28 pm
Hi there
I recently downloaded the gant-tool and managed to transfer my tracks from the watch to my linux-computer – thank you very much for the helpful tool!
Unfortunately, I only managed to download 14 of the 19 tracks from my device – the oldest five tracks where simply ignored during the transfer. (These five are all older than four weeks, but this might be a coincidence.) I regarded the source code to find out how the program loops over the tracks during a transfer and how it aborts the loop, i.e. why it doesn’t want to go further back in time to my first five tracks, but I couldn’t make sense of the code.
Does anybody know how to change the source code in a way that the program reads the five mentioned tracks? Thank you very much for any answers in advance.
Best regards
ElJenso
June 7th, 2010 at 4:04 pm
ElJenso,
It may actually be your watch not sending the last few data sets. Try this on your watch (this is for the 405, but should be similar to other models):
Menu>Settings>ANT+>Computer>Force Send>Yes
That will force the watch to send all data sets to the computer. Hope this helps!
C
June 7th, 2010 at 9:14 pm
Hi Charly
Thanks for the hint! Though it still doesn’t work, the error looks different with your suggested setting: without setting “force send”, invoking gant-master wakes up the watch and the watch claims to start the transfer, but I get a segmentation fault before anything is written to “output”.
In contrast, setting “force send” and invoking gant-master again wakes up the watch and some data is actually transferred as can be seen in “output”. At some point, however, I get a segmentation fault before the first tcx-file is written on the computer hard disk.
Does this behavior tell anybody anything? Thanks again for your replies in advance!
Best regards
Jens
PS: Before trying the steps above, I had deleted all data from the watch that I had earlier transferred successfully, so only untransferred tracks are left on the device.
July 3rd, 2010 at 3:04 am
Im in the same situation of Eljenso. Old tracks are not being transfered. Any ideas? For new tracks are ok. Thanks in advance for any help.
July 18th, 2010 at 9:25 am
Howdy fellas,
Glad to see you are successful using the 405. Myself, I can’t get gant to work at all. I haven’t found any official forum for the thing, so I’ll just ask here since you seem to know what you’re doing.
I’ve gone through the steps of Stephen’s nice guide. make clean whined about having nothing to do but all else, including make, went well. But when I run ./gant -f mattias -a auth405 or ./gant -Dnza auth405 > output or just ./gant I get the following output:
/dev/ttyUSB0: No such file or directory
open dev 0 failed
I don’t speak C and I’m clueless what to do. Any hints?
July 20th, 2010 at 6:52 pm
Hi mattias, sorry you’re having problems
Which Linux variant are you using? Also, after you plug your USB Gant stick in, type ‘dmesg’ at a command prompt and see what messages appear – it should be that you can identify from that which /dev/ device is being used.
E.g. on mine I get:
… the last line obviously being the relevant one.
After getting that info (hopefully it’s being picked up) we might need to play around editing antlib.c.
Incidentally, another thing to eliminate is trying running ./gant as root/sudo… please let us know what you find mattias!
July 27th, 2010 at 7:28 am
Hey Stephen – the Garmin software isn’t all that; I use goodrunguide.co.uk (£10 a year but well worth it) – all you need is the Garmin plugin for whatever browser you’re using – bingo!
July 31st, 2010 at 11:14 am
Hi Stephen! Thanks for answering me so quickly, sorry for being slow myself… (out of the country for a bit)
I’m running gentoo amd64. I did try ./gant as root (same result) and I also had a look at dmesg before posting but didn’t understand anything… After seeing your output I assume there’s something wrong with my setup…
Here is my dmesg output:
[72822.676926] hub 1-0:1.0: state 7 ports 6 chg 0000 evt 0008
[72822.676962] ehci_hcd 0000:00:10.4: GetStatus port 3 status 001803 POWER sig=j CSC CONNECT
[72822.676991] hub 1-0:1.0: port 3, status 0501, change 0001, 480 Mb/s
[72822.781064] hub 1-0:1.0: debounce: port 3: total 100ms stable 100ms status 0×501
[72822.832295] ehci_hcd 0000:00:10.4: port 3 full speed –> companion
[72822.832320] ehci_hcd 0000:00:10.4: GetStatus port 3 status 003801 POWER OWNER sig=j CONNECT
[72822.832370] hub 1-0:1.0: port 3 not reset yet, waiting 50ms
[72822.832391] usb usb3: usb resume
[72822.832403] usb usb3: wakeup_rh
[72822.864045] hub 3-0:1.0: hub_resume
[72822.864068] uhci_hcd 0000:00:10.1: port 1 portsc 0093,00
[72822.864086] hub 3-0:1.0: port 1: status 0101 change 0001
[72822.883076] ehci_hcd 0000:00:10.4: GetStatus port 3 status 003802 POWER OWNER sig=j CSC
[72822.883128] hub 1-0:1.0: state 7 ports 6 chg 0000 evt 0008
[72822.965071] hub 3-0:1.0: state 7 ports 2 chg 0002 evt 0000
[72822.965098] hub 3-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
[72823.067068] usb 3-1: new full speed USB device using uhci_hcd and address 2
[72823.204074] usb 3-1: default language 0×0409
[72823.221094] usb 3-1: udev 2, busnum 3, minor = 257
[72823.221109] usb 3-1: New USB device found, idVendor=0fcf, idProduct=1004
[72823.221125] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[72823.221140] usb 3-1: Product: Dynastream ANT2USB
[72823.221152] usb 3-1: Manufacturer: Silicon Labs
[72823.221163] usb 3-1: SerialNumber: 10092
[72823.221705] usb 3-1: usb_probe_device
[72823.221721] usb 3-1: configuration #1 chosen from 1 choice
[72823.223117] usb 3-1: adding 3-1:1.0 (config #1, interface 0)
[72823.226328] drivers/usb/core/inode.c: creating file ’002′
[72823.226411] hub 3-0:1.0: state 7 ports 2 chg 0000 evt 0002
Can you make anything out of that?
Thanks again
September 4th, 2010 at 12:31 pm
I was hoping we’d see something in there saying where the device was ultimately mounted to… hmmm… I’ll have a think.
September 8th, 2010 at 5:23 pm
Hi!
Like Mattias, I also find this thread the most informative source of information about gant, so excuse me but I’ll post my question(s) here.
I recently bought a forerunner 310XT and am trying to get the data out of it into my open suse linux laptop.
I think that I successfully “maked” gant, that I managed to pair my garmin watch, I got an authentication file (auth310XT). But the command sudo ./gant -nza auth310XT > output produces a file which is essentially the same regardless of the data stored in the watch (and from which I’m unable to restore the activity data): 8 lines of what I believe is header information (stuff like watch model, etc, always the same), followed by 59 lines consisting of three integers separated by dots (stuff like 68.241.3) and finally 13 lines of closing data, also always the same, except for a single line with timing information (but relative to the download operation itself, not to any activity stored in the watch).
While downloading the data from the watch, its screen displays the message “Transfering Data”, as happens in windows directed donwloads.
So, something seems to be working as expected, but I still can’t get my data from the watch. Any help? Thanks,
José
November 1st, 2010 at 4:52 pm
I had gant working fine on Ubuntu 10.04, but I’ve recently upgraded to 10.10 and now the program doesn’t work. Both the pairing and transfer commands just ‘hang’ with no output.
I think dmesg output looks OK when the stick is in:
[ 543.388962] usb 3-2: new full speed USB device using uhci_hcd and address 2
[ 543.606281] usbcore: registered new interface driver usbserial
[ 543.606346] USB Serial support registered for generic
[ 543.606472] usbcore: registered new interface driver usbserial_generic
[ 543.606480] usbserial: USB Serial Driver core
[ 543.618195] USB Serial support registered for cp210x
[ 543.618291] cp210x 3-2:1.0: cp210x converter detected
[ 543.729204] usb 3-2: reset full speed USB device using uhci_hcd and address 2
[ 543.880710] usb 3-2: cp210x converter now attached to ttyUSB0
[ 543.880846] usbcore: registered new interface driver cp210x
[ 543.880862] cp210x: v0.09:Silicon Labs CP210x RS232 serial adaptor driver
I have re-checked out and made the program, but it’s still the same.
Has anyone else had this problem and worked out how to fix it?
Thanks,
Dave
November 1st, 2010 at 9:09 pm
Looks like the Ubuntu 10.10 hanging issue is an Ubuntu bug where opening /dev/ttyUSB0 never returns. I’ve had success by running ‘sudo modprobe -r’ to remove anything using ‘usbserial’ and then using gant – then running ‘sudo modprobe’ to set them back again.
Dave
November 16th, 2010 at 3:28 am
I am having exactly the same problem as mattias: when I run : ./gant -f charlie -a auth405 or ./gant -charlie auth405 > output or just ./gant I get the following output:
/dev/ttyUSB0: No such file or directory
open dev 0 failed
November 30th, 2010 at 1:07 am
It’s the same to me.
Dave, what do you mean by „remove anything using ‘usbserial‘“
I don‘t know how to do that.
December 7th, 2010 at 9:02 am
Jakob,
Type ‘lsmod’ and look at the ‘usbserial’ line. Mine looked like:
usbserial 33100 2 pl2303,cp210x
I got mine working by typing the following 2 commands:
sudo modprobe -r cp210x
sudo modprobe cp210x
Now try the gant command again.
Dave
December 7th, 2010 at 6:35 pm
Just as FYI.
As of July this year the Ant stick changed, it is now a usb2 device (was USB1), they removed the USB to serial from it.
I bought new stick to use with my GoldenCheetah software with my bike for realtime monitoring, but it’s a struggle to get it to work. Some guys wrote some python script to simulate serial device, but is still not working.
It doesn’t show up anymore as a device under Linux and OSX. Might be similar to some problems reported here.
December 14th, 2010 at 7:51 pm
I’ve got a Forerunner 410
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=0×1008
This created the /dev/ttyUSB0
To make the change permanent, you can do
echo “options usbserial vendor=0x0fcf product=0×1008″ >
/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
here is one of the websites i used also has a cool way of setting up short cuts etc
http://www.littleowl.net/2009/12/09/forerunner-405-on-ubuntu/
January 4th, 2011 at 1:38 am
thanks for the info, quite helpful.
March 2nd, 2011 at 6:45 pm
Hi,
Since upgrading to Ubuntu 10.10 (kernel 2.6.35-27) from 10.04 gant just hangs. I have tried clearing the usbserial as suggested above with no luck.
Anyone else experiencing problems after the upgrade?
June 18th, 2011 at 3:16 pm
recently i got a 405cx. this is an 405 with pulse sensor bundled.
is there anything different with the cx than with the 405 or 410 withouht “cx” ?
I can not get this device working.
usbserial says:
Bus 006 Device 002: ID 0fcf:1008 Dynastream Innovations, Inc.
so the system recognizes the ant+ usb2 stick correctly.
the original gat says, after setting the “JAVA_HOME” no class identifyer
and the branch listet above hangs after calling it with the parameters -f and -a, each named 405cx.
Am i doing anything wrong?
besides uname says:
Linux station_name 2.6.31-23-generic #75-Ubuntu SMP Fri Mar 18 18:08:39 UTC 2011 i686 GNU/Linux
so this is (not so clearly to be seen) a ubuntu 9.10 wich works very well and i do so hesitate to upgrade it in anyway
if someone knows, plz answer.
grz
June 18th, 2011 at 10:25 pm
Issue this command:
$ lsusb
and you will get something like this:
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 046d:c503 Logitech, Inc. Cordless Mouse+Keyboard Receiver
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 0fcf:1004 Dynastream Innovations, Inc.
Bus 003 Device 002: ID 046d:c505 Logitech, Inc. Cordless Mouse+Keyboard Receiver
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Find the line which has the Dynastream device and look at the characters in the column following ID
Then, issue the following command replacing 0fcf and 1004 with your characters following your ID
$ sudo modprobe usbserial vendor=0x0fcf product=0×1004
Then you can issue the command bellow to see that your device is now attached.
$ dmesg | grep ‘ttyUSB’
[199182.249368] usb 3-1: cp210x converter now attached to ttyUSB0
June 21st, 2011 at 12:26 pm
I have a 405CX is it works fine, so you shouldn’t have any trouble there. Not sure if mine is USB1 or 2 though.
From the mention of JAVA_HOME, it sounds like you’re trying to run the program called ‘gant’ installed from the ubuntu software center/repository. This is a different program. You need download, compile and run the program mentioned in step 2 of Gareth’s instructions mentioned above on 14th December 2010.
July 23rd, 2011 at 2:50 pm
I’m hitting the following error message:
tcgetattr(fd, &tp): Inappropriate ioctl for device
Anyone know how to fix that?
September 27th, 2011 at 8:10 am
Hy all! I recently discovered Garmin Forerunner models and I felt in love! I bought an 410 and an 610 model, I also build a site with forerunner reviews ( http://www.forerunnerreview.net ) but anyhow I have a problem when I try to load my activity directly from my device to Garmin connect. I get this message : Error
Sorry, but it appears that an error occurred.
What To Do Now?
◦Refresh this page
◦Hit the back button on your browser and try the action again
◦Return to this page in a few minutes
◦Contact Customer Support
I contacted customer support but i did not receive an answer.
If you could please help me!
cheers!
November 15th, 2011 at 8:26 am
Hello,
I just found that from Ubuntu 11.10 it has a package “garmin-ant-downloader”. I think this is being made from the gant package. I have installed it yesterday and I need to spend some time today to connect it to the ANT Stick.
If anybody had success to connect it already please let me know.
Regards
alexander