PDA

View Full Version : Linux Support?



HARALD.ALBRECHT
08-27-2009, 08:35 AM
Are there any plans to support also Linux for the Garmin Communicator Plugin or any other Linux support by Garmin in general?

Since I'm a completely Windows-free Linux users I had to ask someone else to install the plugin and the web updater in order to get fixes for the GPS receiver etc. Are there also any plans to provide web updater for Linux or to provide the required fixes for immediate download? (Similar to the unit beta firmware downloads?)

I have no problems manually moving files to their proper places after attaching a USB-capable Garmin GPS and using it in mass-storage mode.

SCHUGY
08-28-2009, 04:19 PM
I've visited the Garmin website to test whether it will offer me a linux firefox plugin at home. Of course I'm not pleased with the result and I looking for another manufacturer that supports all features including firmware updates in linux. I don't want to be stuck at any point just because I don't own and use windows.

LEE.COX
08-28-2009, 06:09 PM
http://developer.garmin.com/2007/05/27/welcome/

Garmin obviously know what percentage of traffic to its site comes from linux users, interesting to see if anything has changed since 2007 with Linux hitting mainstream in the guise of the netbook market.

I suspect it is still only slim though.

SCHUGY
08-30-2009, 09:37 AM
I hit this page accidently - why should other linuxers ever join these forums as long as Garmin has nothing to offer?

LEE.COX
08-31-2009, 04:36 AM
I think the point is, no matter how much you may dislike it, garmin must consider linux users as representing a very small proportion of all its users (or even potential market), therefore unviable to support the user base.

HARALD.ALBRECHT
09-03-2009, 08:56 AM
Actually, with the newer GPS receivers supporting USB mass storage mode the plugin should become deadly easy to do on Linux. However, it may become too obvious how easy some things could be done. Sigh.

The thing(s) mostly different from Windows would be handling of discovering USB Garmin devices. However, when using D-Bus for HAL communication when the thing becomes much easier compared to the brain-dead windows USB API. And in fact, using HAL via D-BUS provides the required abstraction of storage devices from underlying bus/interface details. Then, it does not matter whether it is USB or not.

Unmounted Garmins in USB mass storage device mode are easily detectable, as HAL provides the required vendor id information through its storage object. Even better, it is easy to see whether it is the GPS device (internal volume) or the SD card, as both are separate storage objects, the latter containing SD in its name.

Even mounting and dismounting on-demand would be easily possible, as the HAL storage objects provide the necessary methods which can be invoked by a plugin through D-BUS.

Maybe a better way could be to replace the plugin by a firefox extension and then using GreaseMonkey to rewrite the broken plugin detection part of the existing Garmin JavaScript library...

Any other suggestions?

WILLIAM.DAVIDSON
09-11-2009, 11:02 PM
I think the point is, no matter how much you may dislike it, garmin must consider linux users as representing a very small proportion of all its users (or even potential market), therefore unviable to support the user base.How will they know how many Linux users they have if Linux users don't ask about it?

I'd certainly like it. My GPS is one of the few things I keep Windows around for.

MAFKETEL
09-12-2009, 05:04 AM
To be honest I am not clear on the question here.
For the examples given here, there was support at the moment the usb mass storage mode was implemented. One can copy the the firmware to the gps and one can copy gpx files from and to the device. The only lack in support from garmin in this case is the missing documentation.

However, if you are asking for a mapsource application for linux... well that would be a different question all together. I on purpose do not refer to the roadtrip application eventhough I do think the ui has a lot of improvments over mapsource the actual product is hardly useable.

MTBIKERNATE
09-13-2009, 10:33 PM
GPS support on Linux is a little dodgy, but mapping software is even harder to come by. Since Garmin now offers some level of Mac support (which is unix-based), offering Linux support shouldn't be too much of a stretch from there. And yes, the only reason I have Windows anymore is for GPS/GIS work. Linux is inadequate. With better mapping software and GPS support, I'd switch permanently. But I was a map geek before I found Linux...so here I am on Windows.

GDEVX
09-15-2009, 11:24 PM
I doubt garmin will ever "support" linux, whatever that means. It would be sufficient for them to just release documentation as to the communications protocols and data formats, but their last update along those lines was in 2006:
http://developer.garmin.com/web-device/device-sdk/

So far you can use the usb devices (210 etc) and some ANT devices (50,405) with linux to an extent.

GRIB@BILLGRIBBLE.COM
09-23-2009, 12:34 PM
T
For the examples given here, there was support at the moment the usb mass storage mode was implemented. One can copy the the firmware to the gps and one can copy gpx files from and to the device. The only lack in support from garmin in this case is the missing documentation.


All I want to do, being Linux-only and technically able, is to update the firmware on my Edge 705 to the latest version. I am happy to copy firmware files by hand to the USB device.

Now. Where can I download the latest firmware? Anybody have a link or other guidance as to where to acquire a firmware image and the location to install it?

RVDOWNING
10-01-2009, 01:42 PM
So far you can use the usb devices (210 etc) and some ANT devices (50,405) with linux to an extent.
How can you copy anything from/to the 310XT? Is there an ANT driver that I'm unaware of? I don't understand how a Linux connection is established to be able to access the device.

KRABAT42
10-02-2009, 03:29 AM
All I want to do, being Linux-only and technically able, is to update the firmware on my Edge 705 to the latest version. I am happy to copy firmware files by hand to the USB device.

Now. Where can I download the latest firmware? Anybody have a link or other guidance as to where to acquire a firmware image and the location to install it?

First you have to agree to the Software License Agreement :):
http://www8.garmin.com/support/agree.jsp?id=3329

OK, Download Manager doesn't help for Linux, but you can use this link for downloading the actual firmware 2.90:
http://www8.garmin.com/software/Edge605_705_290.gcd

This file has to be saved as gupdate.gcd in the Garmin directory of the device. At next switch-on the firmware gets updated. You should backup all your personal data in the device beforehand, because depending of the previous firmware a data reset is done. The data field setting are not saved in a file, though.

All on your own risk of course!

GDEVX
10-02-2009, 11:53 PM
How can you copy anything from/to the 310XT? Is there an ANT driver that I'm unaware of? I don't understand how a Linux connection is established to be able to access the device.
I wrote a linux program to download from the FR50 and one to download from the FR405 (also another one to listen to HRM broadcasts over ANT). Someone else wrote a program to decode the FR50 downloaded data, and someone else helped me decode the FR405 data to XML so it could be uploaded to GTC or sporttracks or whatever. I imagine that the 405 program might work with the 310XT.

FR50 http://www.sbrk.co.uk/ant0_2.tar.gz http://www.darkskiez.co.uk/index.php?page=Garmin_ForeRunner_Decoder
FR405 http://www.sbrk.co.uk/ant0_t3.tar.gz http://cgit.gromotion.com/cgit.cgi/gant/
HRM http://www.sbrk.co.uk/hrm0_5.tar.gz

The code is a bit of a mess as it was done without any documentation.

GDEVX
10-02-2009, 11:59 PM
All I want to do, being Linux-only and technically able, is to update the firmware on my Edge 705 to the latest version. I am happy to copy firmware files by hand to the USB device.

Now. Where can I download the latest firmware? Anybody have a link or other guidance as to where to acquire a firmware image and the location to install it?

http://www.sbrk.co.uk/getgmn - this will get the latest firmware for the 305/edge/705/405/310XT. It needs xmlstarlet (yum install xmlstarlet on fedora)

CRAGGAS
10-05-2009, 08:51 AM
Hi GDEVX, i dowload your program to download from fr50, i compile it under slackware.

device is assigned in ttyUSB0


bash-3.1# dmesg|tail
...
usb 4-2: cp2101 converter now attached to ttyUSB0

i create a file then

bash-3.1$ g50 file.out
i went to train mode and i play start and stop the little food icon blind for a while then ....

channel open, waiting for broadcast
Unhandled response event 01
where is my error?
of course there was data in history.
thanks

GDEVX
10-05-2009, 01:23 PM
bash-3.1$ g50 file.out
Have you followed the README and paired the watch? You need to do that first.



channel open, waiting for broadcast
Unhandled response event 01
You'll get a few of those but they can usually be ignored.

ROCKSTARMODE
10-06-2009, 12:52 AM
I'd like to sound off for Linux support as well. I have a 310xt with an ant usb dongle and run Fedora 11, I'm also a full time developer.

There are probably more Linux users than one might expect out there. It also strikes me that the type of person looking to "hack" their body through keeping precise track of their training may also be the type to use Linux.

Or maybe my co-workers/training partners are living in a dream world.

CRAGGAS
10-06-2009, 07:56 AM
Sorry Gdevx
now i reread the README :)
i pair the watch but i receive this:

bash-3.1$ g50 file.out
channel open, waiting for broadcast
pairing, generated id 707b81bc
pair dev name too large 8001102b "-2147413973"
sending pair data for dev
Unhandled response event 02
Unhandled response event 02
........................................ (a lot of times)
Unhandled response event 02

Craggas

GDEVX
10-06-2009, 10:09 AM
now i reread the README :)
i pair the watch but i receive this:

bash-3.1$ g50 file.out
Read it again :)

g50 authfile file.out

Where authfile is the one you produced when pairing

DALESD
10-06-2009, 08:26 PM
I'd like a Garmin Communicator Plugin for Firefox that works in linux.

As it is now, I use Windows7 in a VM (Sun VirtualBox) just so i can upload the data from my Edge 305 to Garmin Connect.

GDEVX
10-07-2009, 12:04 AM
I'd like a Garmin Communicator Plugin for Firefox that works in linux.

As it is now, I use Windows7 in a VM (Sun VirtualBox) just so i can upload the data from my Edge 305 to Garmin Connect.
You might want to try this:



Like many Linux users I got a bit tired of having to plug my Forerunner 305 into a Windows PC just to upload a few Kb of data.

I now have a package which when installed will download new activities from the device and upload these to your MB inbox automatically when you plug it into a usb port.

This is available as a debian package at http://www.waite.net.nz/downloads/garmin-upload-tools_1.2.0_all.deb
(full source package: http://www.waite.net.nz/downloads/garmin-upload-tools_1.2.0.tar.gz)

More info: the package is nothing more than a few scripts, plus a bit of platform setup stuff such as installing the UDEV hook to make sure the USB event triggers the action, and logrotates happen etc. The data is stashed under /var/lib/garmin-upload-tools/ and there is a config file at /etc/garmin-upload-tools/garmin-upload-tools.conf. There is also a utility called 'gut' which goes in /usr/bin/gut, enter 'gut -h' for help.

The upload to MB is done via a simple Perl mechanize bit of scripting. It logs you in and then uploads the file(s). Only new (not uploaded before) files are uploaded.

These scripts leverage the excellent work done by Dave Bailey - see http://garmintools.googlecode.com (http://garmintools.googlecode.com/). His work resulted in the package garmin-forerunner-tools, which my package depends on. The utilities from this that I use are first 'garmin_get_runs' which basically sucks everything out of the Forerunner and dumps new activities as separate files in a compact binary format, and then 'garmin_dump' which takes that content and dumps it as a raw kind of XML. My scripts then take over and translate the dump(s) to the history format (.hst file) which is acceptable for MB upload, and then optionally, automatically uploads it/them.

Anyway, as of this arvo, everything worked swimmingly for the first time (so it's pretty raw) and I have plugged it in and seen it upload to the site ok. If you have any problems please post here giving all details. I can't promise rapid response, but there will be something. ;-) Oh, I am testing this with Ubuntu 8.10 (intrepid).

Obviously the move to GC may totally screw this, but where there is a will, there is always a way.

Addendum: To avoid the 'Too many uploads' problem, I have updated the package so that it will limit the activity uploads to max 3 per 15 minutes (the MotionBased usage limit). So if you have a gazillion activities on the device, then it should upload them all (in time) using cron. Obviously if you can clear all unwanted old activities first, then this might not be an issue. Once it is up to date after that initial upload the system will only upload new activities, assuming you are using the same PC.

Cheers,
Paul.

DALESD
10-07-2009, 10:20 AM
That's cool. Thanks gdevx.

The links there to the downloads are dead, but I found a newer version with working links here:
http://developer.garmin.com/forum/viewtopic.php?t=753&sid=c58f61359dcb45aebbf765d89eba222e

But it's still uploading to MotionBased. This is so close!
I found some settings in the "upload-file-to-mb.pl" file that probably need to be changed to convert this to work with Garmin Connect, but I don't know what they should be.


# ----------------------------------------------------------------------------
# these settings are for the current MotionBased website and will
# change with the move across to Garmin Connect.
my $website_url = 'http://trail.motionbased.com';

my $login_page = '/trail/digest/index.jsp?automaticLogin=false';
my $login_form_num = 2;
my $login_username_field = 'username.value';
my $login_password_field = 'passwordValue';

my $upload_page = '/trail/upload/view.mb';
my $upload_form_num = 3;
my $upload_file_field = 'file';
# ----------------------------------------------------------------------------

CRAGGAS
10-07-2009, 02:31 PM
tnx GDEVX,
ok now the program dump memory.

GDEVX
10-07-2009, 03:02 PM
But it's still uploading to MotionBased. This is so close!
Ah, maybe you want this one then:


You can still upload them manually, it'll just take a bit more effort. It'll involve posting them directly to our service.

Here's how:
Download and install Poster, a firefox plugin: https://addons.mozilla.org/en-US/firefox/addon/2691
Login to connect to establish a session.
Open Poster, it's the little yellow P in the bottom right corner.
Fill in the box as so:
URL: http://connect.garmin.com/proxy/upload-service-1.0/json/upload
File: Browse to find the one
Content Type: "application/vnd.garmin.tcx+xml" seems to work
Change Actions to "POST"
Leave everything else the same.
Hit Go. It'll take a while for any indication that it worked. Please only hit it once to keep from killing the servers. It's working even though Poster shows no indication of it.

It should come back with something that looks like:
{"detailedImportResult": {
"uploadId": 1342318,
"owner": 19012,
"fileSize": 582674,
"processingTime": 1299,
"ipAddress": "unknown",
"fileName": "http://connectapi.garmin.com/upload-service-1.0/json/upload",
"successes": [
],
"failures": [
{
"internalId": 965545,
"externalId": "2008-04-10T14:52:37Z",
"messages": [
{
"content": "Duplicate activity.",
"code": 202
}
]
}
]
}}


The internalId is your activity #, or you can just hit the dashboard to see it. I'll ask about getting manual uploads for linux users.

-Jason


and



Yes, it works. http://forums.motionbased.com/smf/Smileys/default/cheesy.gif OK, it is a typical solution for a Linux user, but we are used to that. http://forums.motionbased.com/smf/Smileys/default/wink.gif

Most part of the work can be abbreviated by using a web recorder Firefox plugin like DejaClick (https://addons.mozilla.org/de/firefox/search?q=dejaclick).

Krabat

GDEVX
10-07-2009, 03:03 PM
tnx GDEVX,
ok now the program dump memory.
Now you want the decoder:
http://www.darkskiez.co.uk/index.php?page=Garmin_ForeRunner_Decoder

TROELS_BLUM
10-13-2009, 03:15 PM
Hi,

Just thought I'd mention: I'm running linux only, and uploading my runs til Garmin Connect with Braiden's scripts. Everything works like a charm.
Guide and scripts are here: http://braiden.org/?p=62

BR Troels

DALESD
10-15-2009, 06:36 PM
That's cool. Thanks gdevx.

The links there to the downloads are dead, but I found a newer version with working links here:
http://developer.garmin.com/forum/viewtopic.php?t=753&sid=c58f61359dcb45aebbf765d89eba222e

But it's still uploading to MotionBased. This is so close!
I found some settings in the "upload-file-to-mb.pl" file that probably need to be changed to convert this to work with Garmin Connect, but I don't know what they should be.

I contacted Paul Waite, who wrote this code to work with MotionBased. He said that it's not trivial to get it to work with Garmin Connect, and that he's not satisfied with Garmin Connect, so he's not going to do any further development on this to make it work.

DALESD
10-15-2009, 06:50 PM
Hi,

Just thought I'd mention: I'm running linux only, and uploading my runs til Garmin Connect with Braiden's scripts. Everything works like a charm.
Guide and scripts are here: http://braiden.org/?p=62

BR Troels

I gave this a try this evening. I was able to get my data uploaded from my Edge 305, but I didn't get any map data or elevation.

http://connect.garmin.com/activity/16330231

I don't know what went wrong. I left a comment over at braiden's blog, but haven't heard back yet.

DALESD
11-09-2009, 04:43 PM
I wanted to follow up and say that Braiden's scrips are working great for me.

Now all I need is a way to upload .tcx route files to the 305 and I'll be satisfied.

I recently found a new website: http://ridewithgps.com which has pretty slick features for creating routes, and will export them to .tcx files.

Anyone know a way to send a .tcx file to my 305 without firing up my Windows VM and using Training Center?

TEAGUECL
11-22-2009, 06:21 PM
http://www.sbrk.co.uk/getgmn - this will get the latest firmware for the 305/edge/705/405/310XT. It needs xmlstarlet (yum install xmlstarlet on fedora)

Is there any way to actually flash these files into the device from Linux? I'm using the 310xt, and I can't get anything to work with this thing.
I don't expect Garmin to officially support a small platform like Linux, but the choice to use such proprietary systems that prevent use is too much. My 310xt is 2 days old, and I'm already starting to miss the Suunto T6 it replaced.

JDMPIKE
11-24-2009, 03:21 PM
Just wanted to post an update to the URL to GDEVX's gant for the Forerunner 405.

I have consolidated the server it used to be on, the new URL is:

http://cgit.get-open.com/cgit.cgi/gant/

Thanks again gdevx!

PETEKAT
12-13-2009, 11:12 PM
People please stop being negative about Garmin not doing a Linux plugin for Firefox etc. You are not helping!

The third biggest operating system used today, after Windoze and Mac, is Ubuntu (Linux). Garmin are letting themselves down in a big way by not doing a plugin for Firefox under Linux.

For a company the size of Garmin to not have done this is appalling. Garmin please wake up and give your customers the support they need!

I have a Nuvi 310 and I cannot update my maps, which I want to do desperately, as I do not have a Windoze PC. I have tried via Wine with Firefox and the plugin but it does not recognise the Nuvi even though Wine has the Nuvi listed with a drive letter.

Others with a more technical background have played with scripts to try and get things working and that is fine for them but the rest of us are left with badly out of date maps. Garmin think of the revenue lost due to us not being able to purchase the maps we need!

Garmin the world does not revolve around Windoze!!!!!!!!!!!!!

GDEVX
12-14-2009, 01:17 AM
Is there any way to actually flash these files into the device from Linux? I'm using the 310xt, and I can't get anything to work with this thing.
Well, I've just ordered a 310XT and I've written a USB wireshark dissector for ANT/ANT+. So watch this space...

TEAGUECL
12-14-2009, 11:20 AM
Well, I've just ordered a 310XT and I've written a USB wireshark dissector for ANT/ANT+. So watch this space...

GDEVX, please let me know if I can help in any way. I'm a Linux and embedded systems developer, and I've used wireshark in the past though never for USB. I did some work on the Suunto T6 a few years ago, I think it might have been based on your work.

GDEVX
12-14-2009, 02:29 PM
GDEVX, please let me know if I can help in any way. I'm a Linux and embedded systems developer, and I've used wireshark in the past though never for USB. I did some work on the Suunto T6 a few years ago, I think it might have been based on your work.
Very likely. Doubt anyone else went through the pain of decoding the t6 protocol.

My 405 is at the bottom of a lake, so being the sucker for punishment I'm getting a 310xt. Hopefully I'll get a power meter at some point and since I can transmit ANT+ power meter readings now I'll be able to test with the 310xt before I get one.

MARK@PURCELL.ID.AU
12-25-2009, 08:00 PM
Garmin Connect is missing a useful feature to enable all Garmin users access. I am talking about Linux support.

I have recently purchased a Forerunner 310XT and my biggest area of frustration is the inability to download my track data to my Linux workstation.

I do not own a licenced copy of Microsoft Windows and there does not appear to be a method to download my tracks. This is very disappointing as I won't purchase a copy of Windows just to access my Garmin track data.

So Garmin, if you are unable to provide a linux compatible connector, please provide the specifications to allow us to code our own interface and download my track data from your device.

Thanks,
Mark

GBEAR14275
12-25-2009, 10:08 PM
I would also like to share my opinions with the Garmin Company (and the community as well) that I would have appreciated a cross platform or Linux compatible plugin as well. This has discouraged me a little from completely supporting my Garmin Nuvi 755.

If Garmin is able to find a way to support the Linux/cross platform crowd I know I would personally sing their praises far and wide.

Garmin, Please try and support the linux people. Thank you.

Respectfully,
Gbear14275

MARCOMERLO
12-28-2009, 07:49 AM
Good work I tested the software with my mother's310xt and something seems to work.
Association works fine but there is still some problem in data transfer and indeed the output file is not written.
Thanks to the community I hope garmin will support linux.
By now I'm not going to buy a 310xt for me.
Thanks to Jordan Miller

ALISTAIR_C
12-28-2009, 01:05 PM
Hi all,

I just got an FR60, and I was hoping that since it's an updated forerunner 50, gdevx's ant0_2 program would work with it. Unfortunately I haven't got it to work yet.

It seems to pair OK, but at the next stage it says authentication failed. Has anyone else tried it?

Alistair

PHILL.WALL
12-28-2009, 09:34 PM
I was horrified when I saw they supported plugins for Microcrap and Apple but not Linux. still all we can do is keep asking. I didnt by my GPS - it was a gift but I am moving all my relatives to Linux and so I wont be recommending Garmin to them (or anyone actually) until Linux is supported and I wont get another one till it is supported.

DEKELTS
12-31-2009, 02:04 PM
Good work I tested the software with my mother's310xt and something seems to work.
Association works fine but there is still some problem in data transfer and indeed the output file is not written.
Thanks to the community I hope garmin will support linux.
By now I'm not going to buy a 310xt for me.
Thanks to Jordan Miller

Did you try to transfer data several times?
This Linux driver is not 100% stable, and on the 405, you sometimes need several tries until the data is transferred.

CRAGGAS
01-04-2010, 12:42 PM
Hi all,

I just got an FR60, and I was hoping that since it's an updated forerunner 50, gdevx's ant0_2 program would work with it. Unfortunately I haven't got it to work yet.

It seems to pair OK, but at the next stage it says authentication failed. Has anyone else tried it?

Alistair
hi Alistar, i try to pair the fr60 with ant0_2 and with ant405, but i have no result.. i will step in the forum to see if someone have some solutions..
thanks
craggas

GDEVX
01-04-2010, 03:44 PM
Here is my current work in progress:
$ git clone git://e2c3.com/nant.git

If you can install the wireshark dissector plugin and send me captures for a FR60 I might be able to work out what the problem is. I intend to write new programs to download from the FR50 and 310XT that I have starting from the reimplementation of my ANT library in the above location.

If anyone wants to more actively contribute, let me know.

MIKEKEAREY
01-04-2010, 05:12 PM
Hi all,

I have been using my Forerunner 405 for some time , utilising Jordan Millers gant.c C files. Works well apart from a few bugs - Some I have managed to sort, others not...

What I have found is that while there is a lot of info about how to get various bits and pieces working, which requires a lot of searching. I think it would help a great deal if there was a single point where information and even development work might take place.

So I propose that a new project be formed to improve Linux device support.

My own interest is in the gant things here BTW, since I have a 405:

http://cgit.get-open.com/cgit.cgi/gant/

Thoughts, suggestions?

Cheers

ALISTAIR_C
01-06-2010, 12:45 PM
Hi all,

Thanks for the replies.

gdevx: I'll have a look at your new code, I'm up for helping in any way I can, but my C is very rusty. I'll look into wireshark too, this is all new to me!

I've actually managed to get a bit further with the ant0_2 code. I've setup XP in a VM and used the usp script to look at the differences between windows and linux.

It looks like the auth data for the FR60 is 12 bytes rather than 8. So I've changed g50.c to include the extra 4 bytes in the auth_msg, and I also had to change the value in u1 to 0x0c (no idea what it means though). So I now get passed the authentication stage and watch then says 'Transferring', but never sends the data and eventually gives up.

The modified code is here (g60.c): http://alistairc.f2s.com/garmin-stuff/g60.zip

Here's the output from usp:
http://alistairc.f2s.com/garmin-stuff/win_receiving.log
http://alistairc.f2s.com/garmin-stuff/linux_receiving.log

Cheers,
Alistair

GDEVX
01-06-2010, 01:42 PM
gdevx: I'll have a look at your new code, I'm up for helping in any way I can, but my C is very rusty. I'll look into wireshark too, this is all new to me!
ok. Don't worry about the C, if you can supply me with some captures (ideally with wireshark), then I'll make the changes if possible. I've added dissection of (a first pass of) most of the FR50 download, and it's a lot easier to read in wireshark than with usp.The modified code is here (g60.c): http://alistairc.f2s.com/garmin-stuff/g60.zip


Here's the output from usp:
http://alistairc.f2s.com/garmin-stuff/win_receiving.log
http://alistairc.f2s.com/garmin-stuff/linux_receiving.log
I'll take a look.

GDEVX
01-06-2010, 05:27 PM
http://alistairc.f2s.com/garmin-stuff/win_receiving.log
Ok, that's nothing like the FR50 mechanism and looks much more like the mechanism used on my 310XT. I think you'll need to wait a bit until I sort 310xt downloading out.

DOUGJJJ
01-07-2010, 06:53 PM
Not much to say but just wanted to drop in my +1 for Linux Support or atleast decent documentation on the specs so it can be built externally.

I dropped Windows a few years ago but keep a virtual Windows machine for connecting to my work VPN, so I'm stuck downloading the data through that. I guess it's better than nothing though.

Alwell next time I upgrade I'll be looking for something with a little more Linux support.

ALISTAIR_C
01-09-2010, 06:52 AM
Thanks for your help gdevx. I'll try and get some wireshark captures from the FR60 for you anyway.

GDEVX
01-09-2010, 07:54 AM
Thanks for your help gdevx. I'll try and get some wireshark captures from the FR60 for you anyway.
Thanks, the more captures from any device, the better. I'm intending to do it properly this time rather than the hacks I did for the FR50 and 405. So I'm taking my time putting some effort into the wireshark dissector before I start coding.

ALISTAIR_C
01-09-2010, 01:52 PM
Ok, I've got some captures:

http://www.alistairc.f2s.com/garmin-stuff/captures/

Hope it help's. Let me know if there's anything else I can do

Cheers,
Al

GDEVX
01-09-2010, 03:13 PM
Perfect, thanks.

Was it easy enough to get wireshark working with my dissector? Though, really you don't need to install the ant plugin just to capture traffic.

ALISTAIR_C
01-11-2010, 04:08 AM
I had a few problems getting it up and running. The version of libpcap in ubuntu had a bug that prevented it capturing usb traffic (wrong path), so i had to compile that too. Also the iant script didn't copy the files to the plugins/ant directory, not sure why, but running the commands manually worked fine

GDEVX
01-11-2010, 04:17 AM
I forgot about libpcap. I must've updated that separately as you need a very recent version to capture USB traffic. I'll try to install it on a clean machine and update the documentation.

Am making progress using your FR60 captures and mine from a FR50 and 310XT.

Thanks for the feedback.

JEANAOV2010
01-12-2010, 10:04 AM
Hey Guys!

I am Jean and newbie in this forums. A s I read more on your replies, I got Knowledge and I love to read and read more. I enjoyed and thank you for sharing. :)

Keep In Touch!

MIKEKEAREY
01-21-2010, 05:33 PM
Here is my current work in progress:
$ git clone git://e2c3.com/nant.git

If you can install the wireshark dissector plugin and send me captures for a FR60 I might be able to work out what the problem is. I intend to write new programs to download from the FR50 and 310XT that I have starting from the reimplementation of my ANT library in the above location.

If anyone wants to more actively contribute, let me know.
gdevx I would like to help out.

It appears the gant program has been abandoned - Or maybe just git clone has been disabled ?.. No big deal as I have the last/latest version of it.

I might see if I can get a re-implementation of gant going with your newer antlibs. BTW I hacked the gant to use libxml to validate the TCX files it produces.

I intend at some stage to also move it to using libxml to construct the TCX files. So perhaps when it comes to creating TCX data files I could help specifically there?

Also, have you got a to-do list anywhere?

Cheers

GDEVX
01-21-2010, 06:01 PM
gdevx I would like to help out.
Great.


It appears the gant program has been abandoned - Or maybe just git clone has been disabled ?.. No big deal as I have the last/latest version of it.
Odd. It seems to exist here: http://cgit.get-open.com/cgit.cgi/gant/ but the git server isn't running.


I might see if I can get a re-implementation of gant going with your newer antlibs. BTW I hacked the gant to use libxml to validate the TCX files it produces.
Ok, but I didn't just want to port gant over, I wanted to write a program that works reliably with at least the 50, 60, 405 and 310xt. In order to do this, I'm writing a bit of an emulator that allows me to act as any of those devices. I've got two ANT sticks (though you could also do it using a pty and no ANT sticks) and can get the windows ANT agent running in vmware to talk to my emulator to see how it reacts to various things. Haven't had too much time to work on it though as well as doing half a dozen other ANT programs at the same time.


I intend at some stage to also move it to using libxml to construct the TCX files. So perhaps when it comes to creating TCX data files I could help specifically there?
Is it really necessary to use libxml to create an xml file? What advantage does it give you instead of just outputting xml? I guess it validates as you say above.


Also, have you got a to-do list anywhere?
Not really. I downloaded mediawiki and was thinking of putting up a wiki though. Would be a good step.

MIKEKEAREY
01-22-2010, 01:10 AM
G'day again,

With regard to the use of libxml, it is really _easy_ to create the XML. It validates as you create the file, and eliminates the need to use all those print statements, making the code more readable.

I will complete the gant thing with libxml and show it once done. It is dead easy.

Note too I am just fiddling with gant because it is the one that works for me under linux right now :) I use it for my data gathering from my forerunner. A re-implementation as you describe sounds like the best idea for sure.

Also I managed to get USB capture working under Fedora 11, and successfully built the ant disector plugin.

AND that led me to what I think may be a mystery solved. _Sometimes_ the gant process would be really flakey and never begin downloading from the watch. Sometimes it would begin but stop at some point, leaving a half completed TCX file.

So I did a pcap using wireshark and worked through that to see what was going on. And I saw packets from the Heart Rate Monitor in the pcap. My HRM was on my desk, next to the watch. I moved the HRM a good distance away and suddenly the gant process is much more stable. Would that surprise you?

BTW Iove the ant disector :)

GDEVX
01-22-2010, 01:17 AM
So I did a pcap using wireshark and worked through that to see what was going on. And I saw packets from the Heart Rate Monitor in the pcap. My HRM was on my desk, next to the watch. I moved the HRM a good distance away and suddenly the gant process is much more stable. Would that surprise you?
The HRM uses a different network key to the watch, so I don't see how you would be capturing it unless you had a hrm reader program running at the same time?

The one thing I did in gant that could make it less reliable is not switching the frequency like the ANT agent does. I always leave it on the same frequency instead of using a random one as the ANT agent does. I'll fix that in the rewrite.

PICOG
01-25-2010, 04:19 AM
I'd just like to add that I'd also really appreciate linux support for the Garmin Communicator Plugin, or some alternative way to update my maps on my Nuvi.

I don't have a windows PC and I don't plan on getting one!

I see that there is also this thread: https://forums.garmin.com/showthread.php?t=4448

So I'll post there too.

AGIOFWS
02-07-2010, 12:14 PM
I have purchased a 310xt watch i have even registered...

My problem is that if i want to take advantage of Garmins connect social training web application i have to dual boot into VISTA windows.

Isn't Garmin thinking of releasing a linux binary to make the watch communicate with the ant stick under linux so i could upload my activity to the web application under linux ...

Also it would be nice if the i could connect the watch with a cable and upload my activity to my laptop via the cable to avoid over complicating things with the ANT stick can this be done by the battery cable recharger that was purchased with the watch ?

thankyou ... C.M

TEAGUECL
02-08-2010, 11:45 AM
Isn't Garmin thinking of releasing a linux binary to make the watch communicate with the ant stick under linux so i could upload my activity to the web application under linux ...


No, there is no evidence of any interest by Garmin to support Linux for any of their sports watches. The whole point of this thread is to gauge interest and to coordinate efforts to do it ourselves.



Also it would be nice if the i could connect the watch with a cable and upload my activity to my laptop via the cable to avoid over complicating things with the ANT stick can this be done by the battery cable recharger that was purchased with the watch ?

No, the 310xt is ANT+ only. The charging cable doesn't have a data line on it, just V+ and GND, so there is absolutely no way to get data onto or off of the device without using ANT+.

DALESD
02-12-2010, 01:31 PM
I haven't tried this and don't know if or how well it works, but it may be useful to someone here:

http://www.andreas-diesner.de/garminplugin/


Garmin Plugin for Linux

Currently there is no linux support from Garmin. To be able to use paperless geocaching under Linux I wrote a Browser plugin that simulates the Garmin Communicator Plugin. Using this plugin your are able to transfer Geocaches from Geocaching.com using the "Send to Gps" button.

Download:
npGarminPlugin.so - 32 Bit - Compiled on Ubuntu 9.10
npGarminPlugin.so - 64 Bit - Compiled on Ubuntu 9.10

Installation instructions follow. It's open source, with the link to its github provided.

If you do try it, let me know how it goes.

CHRISTIANKUR
03-04-2010, 01:50 AM
I've tried it - idea is very cool. However there is only implemented a subset of the whole protocol, but I can indeed "Send to GPS" to my Edge
.
I am considering expanding the code so the Edge can be fully supported.

ADIESNER
03-04-2010, 08:00 AM
Nice to see that someone finds my Garmin Communicator Linux Plugin usefull. Whoever needs more features (additional protocols) should get in touch with me.

CHRISTIANKUR
03-04-2010, 08:49 AM
Hey man.

Consider it done ;-)

My ambition is to use the plugin on the cyclogz.com website, however presently I am stuck trying to compile the plugin (it seems a lib is missing, however I'll take another look tonight)

Cheers :cool:

TONOUS
03-20-2010, 11:16 AM
Great.
Ok, but I didn't just want to port gant over, I wanted to write a program that works reliably with at least the 50, 60, 405 and 310xt. In order to do this,



Hello, just to be sure - I tested your programs and it works for me, but do I understood right that it supports only online data from sensors - no way how to transfer passed trainings from watch? And gant doesn't support FR60, so currently there is no way for to get data for ie. SportTracks?

CHRISTIANKUR
03-26-2010, 11:09 AM
Hey guys

Just a heads up - ADIESNER, the owner of the Garmin Communicator Linux Plugin project, has extended and improved the plugin :)

It now supports reading of fitness data from three different devices: Edge 305, 705 and the Oregon 300.

Check it out and send him a buck if you like his work.

PABCPABC
03-31-2010, 07:52 AM
After installing mono, the mono winforms libary and garmin-forerunner-tools from the repos I grabbed the linux compatible version of sporttracks from http://www.zonefivesoftware.com/SportTracks/Downloads/linux.php
and installed the linux inport plugin from http://code.google.com/p/linuxgarminimport/

I can now open sporttracks with mono and import as I did on my WinXP box.

It's great how the linux community works to solve these problems but really Garmin should offer support.

I still have no way to push courses or routes onto the unit, update firmare or update the maps / firmware on my nuvi sat nav.

GRIMZENTIDE
04-08-2010, 05:56 PM
I'd like a Garmin Communicator Plugin for Firefox that works in linux.

As it is now, I use Windows7 in a VM (Sun VirtualBox) just so i can upload the data from my Edge 305 to Garmin Connect.

I was running a Windows via VirtualBox 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

MILIANW
04-20-2010, 12:33 PM
Hey GDEVX,

did you get any further in regard to 310 Xt support for gant?

Here's the output I get from your gant tool right now:

http://pastebin.com/D99dqBYF

I.e. no XML what so ever, too bad ;-)

The 253 package seems to be interesting though, lots of data that's not handled right now. How could I help?

PRCODER
05-31-2010, 01:45 PM
Hey GDEVX,
did you get any further in regard to 310 Xt support for gant?

I join this question too !
I really need the support for the 310XT and I could do something to help reversing and implementing FR310 drivers. Ideally I would like to be able to download tracks and waypoints from the device and upload waypoints and courses to the device. I believe that in sports series is only the possibility to upload courses but no tracks.

SGUNDERSON2
06-27-2010, 06:06 AM
Hi,

Based on gant code and some packet dumps, I've successfully paired with my FR60 and extracted data from it it seems to store .FIT files, which are already documented elsewhere. It's far from perfect (it deals pretty poorly with transmission errors, for one), but it should be a useful basis for anybody who wants to make something more solid. Given that the FR60 seems to use ANT-FS it will also probably be useful for other Garmin watches my impression is that you basically have FR50, FR405 and then everything else is ANT-FS.

I tried getting in contact with gdevx to find a reasonable way to integrate my changes upstream, but all the addresses I've found for him seem to bounce or otherwise be unavailable. Does anyone have contact information?

/* Steinar */

FEP1343
08-02-2010, 04:06 PM
Here is how I could install Garmin Communicator Plugin in Ubuntu Linux:
http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=124627&whichpage=3

DELTAJULIETBRAVO
01-05-2011, 07:45 PM
Reviving this a little with a slightly off-topic post...

Any reason why some of the code work that's been done so far to slurp files off Garmin devices (like the 310XT) wouldn't work on an iOS device using the Digifit ANT+ dongle? I can only assume it's a fairly standard device. I've asked them and they have no plans to write software to talk to Garmin logging devices, just sensors. But honestly, I would rather just run or bike with the 310XT than try to use my phone for that, but if I'd like to be able to upload my data from the 310XT using my iPhone or iPad.


--Donnie

MEONKEYS
02-01-2011, 10:56 AM
FYI, manual uploading works with data fetched using gpsbabel. See https://forums.garmin.com/showpost.php?p=75870&postcount=10

GDEVX
02-11-2011, 06:59 AM
It appears that you can now go to here:
http://www.thisisant.com/pages/ant/component/option,com_registration/Itemid,0/task,register/
and register as an ANT+ adopter and download all the device profiles as well as ANT-FS which is the mechanism for communicating with the watches. Full support for linux should be a piece of cake if someone has the time to do this.

LIEPAJNIEKS
01-30-2012, 02:20 AM
It appears that you can now go to here:
http://www.thisisant.com/pages/ant/component/option,com_registration/Itemid,0/task,register/
and register as an ANT+ adopter and download all the device profiles as well as ANT-FS which is the mechanism for communicating with the watches. Full support for linux should be a piece of cake if someone has the time to do this.

this advice is not seriously, on this site me answered that ant+ technology not be make support for Linux (not open source and not open specificition)... Garmin not interested in Linux users, Im sure more :(

CRAGGAS
05-05-2012, 02:57 AM
hi all
some news:
http://braiden.org/?p=293
https://github.com/mvillalba/python-ant

ALEXBEBER
05-19-2012, 07:16 AM
Hi!

Im using linux and im having troubles installing sommunicator plugin for firefox or chrome in my virtual box and Windows XP.

I tried also with VMWARE Workstation and i alway get the same result - Error message: Error executing program (5).

Wheres the catch??

GHEN.BE
07-04-2012, 06:58 AM
Hi gdevx and others,

After having used a Forerunner 305 with garmintools for some years, I have now ordered a 310XT as replacement/upgrade. I'm interested in Linux support of course, what is the current status? Is the wireshark ANT+ dissector still available anywhere? I can't clone the git repo from git://e2c3.com/nant.git ...

JOHANDEGREEF
07-04-2012, 07:11 AM
http://www.andreas-diesner.de/garminplugin/doku.php?id=start
If you r device is not listed, a mail to the develloper can do miracles...

H3HOUND
07-27-2012, 10:16 AM
...its a bit rough but i actually transferred data from my 310XT and manually uploaded usable data to Garmin Connect within linux(ubuntu).

I used FRANT
https://sourceforge.net/projects/frant/

i stumbled through the compile and ran a couple of commands to pair and transfer data. After a reboot and few failures, things went well when I placed the 310 close to the ANT+.

The results on Garmin Connect are slightly different and the splits dont show up. Regardless, this is an exciting project.

I am not affiliated with this project in anyway and found it through my monthly search for a solution.

Good luck

>>> here is a link to my upload: http://connect.garmin.com/activity/203606684

CCRGCORP
08-07-2012, 10:35 PM
http://www.andreas-diesner.de/garminplugin/doku.php?id=start
If you r device is not listed, a mail to the develloper can do miracles...

I am a Business Owner of a Trucking Company. I use Garmin Products in many of my trucks. I have recently changed my Servers, workstations and laptops over to Linux based operating systems. This has caused a bit of an issue on updating my GPS units. I am pleased that Andreas has taken the steps to work on developing a linux connection to garmin devices. Since reading that Dell has decided to produce linux based laptops for the main stream. http://techcrunch.com/2012/07/18/dell-gives-linux-laptops-another-chance/ I am working on purchasing laptops. Thank you to all the People who have helped and contributed to this "linux support" for Garmin products. hope to see more input, even if your not a developer or coder. Please post if you own a garmin and want linux support. Also please donate to any and all developers who put work into this project.


Garmin DEZL560LMT (3)
Garmin Streetpilot c550

Show your support !!!!!!

NORTEXOID
01-06-2013, 09:10 AM
Would really like to see linux support for my Garmin Forerunner 110. It's not crucial since manual upload is supported, but feature parity across the three major platofrms should be a goal. This is even more relevant for other Garmin products, of course.

DAVIDM3286
01-19-2013, 06:55 PM
Really Garmin? The various android app competitors seem to have no problem accessing Garmin data through Linux to download them. I guess you are stuck in the past and destined to be bypassed by smart phone apps.

FRANJIMENEZ
01-23-2013, 08:43 AM
Somebody knows how i can export my worksout and courses to my Garmin Forerunner 305?

I have Ubuntu 12.10 and Linux Mint.

I don't have problem to upload my worksout but export to my Garmin it is not possible.

Thanks and regards.

CRUNCHED
03-07-2013, 03:34 AM
Adding my support for linux..support. I can't believe this hasn't been implemented yet. Get with the times Garmin. If I had known, I wouldn't have purchased my GPSMAP78S. In fact, I might just take it back tomorrow.

DALESD
03-07-2013, 05:45 AM
Try this, CRUNCHED.

http://www.andreas-diesner.de/garminplugin/doku.php

If it doesn't work, yeah, return your GPSMAP78S

MIKESCIU
06-08-2013, 12:31 PM
Can I pair fr witch ant under linux?

KRISTOF.RALOVICH@GMAIL.COM
07-31-2013, 02:13 AM
This project provides download capability under Linux: https://code.google.com/p/antpm

ROTOITIKIWI@GMAIL.COM
08-09-2013, 11:05 PM
http://www.andreas-diesner.de/garminplugin/doku.php?id=start
This works on ubuntu & debian for sure, not so sure about other distributions of linux.

ALUCHKO
09-01-2013, 03:00 AM
For the last few years I've been using a 305 Forerunner under Linux with a combination of gpsbabel 1.3.5 to grab the tracks (an obsolete version...) and pytrainer to view them. But now my 305 is dead and I need a new watch.

I'm not enamoured with the idea of a 405 both because of things I heard about the bezel and the battery life (too short for ultras).

Which leaves the 310XT, 610, or 910XT. Are there any mature projects that will allow me to download the tracks? I've seen a number of projects working on it, and some claiming support, but none have struck me as reliable enough to gamble on getting a new model of watch.

Am I missing some solution or is this correct? If so I suppose I'm getting another 305.

MATHIE1
01-09-2014, 04:58 PM
For the last few years I've been using a 305 Forerunner under Linux with a combination of gpsbabel 1.3.5 to grab the tracks (an obsolete version...) and pytrainer to view them. But now my 305 is dead and I need a new watch..

I am in exactly the same boat I used the gpsbabel (http://www.gpsbabel.org/htmldoc-1.4.4/fmt_garmin.html) to upload courses to the 305 and used Andreas' Linux Garmin communicator plug-in (http://www.andreas-diesner.de/garminplugin/doku.php) to upload stuff I had done on to Strava. This worked very well until the battery and the strap died.

I now have the 910XT and I can confirm that I can get files off using The Garmin-Forerunner-610-Extractor (https://github.com/Tigge/Garmin-Forerunner-610-Extractor) which seems to be the sister of the python-ant-downloader (https://github.com/braiden/python-ant-downloader/). Once I have the .fit files I can upload them to strava all fine and dandy.

However It is not as silk as using Andreas' Linux Garmin communicator plug-in (which by the way relies on garmintools (https://code.google.com/p/garmintools/), aka garmin-forerunner-tools in ubuntu, to talk to the watch) and I am at a loss how to upload courses/files to the 910XT. There seems to be a myriad of different projects going on and a lot of fragmentation*. I guess it is because There are now 4 different protocols** to talk to the Garmin watches/sport devices.

Anybody had any more sucsess with the 910xt. I have only really had a look at this this evening. Is there already a solution or should I get my hack hat on

*
https://github.com/mvillalba/python-ant
https://github.com/braiden/python-ant-downloader/
https://github.com/Tigge/Garmin-Forerunner-610-Extractor
http://sourceforge.net/projects/frant/
gant aka garmin-ant-downloader originaly hosted at cgit.open-get.org (now dead) and every bodies clone of it https://github.com/DanAnkers/garmin-ant-downloader

**
USB serial: i.e. Garmin serial/USB protocol (garmin) first documented in gpsbable
USB as a mass storage device Edge 800 -- these are the easiest to work with on linux
ANT - garmin protocal 310XT ect
ANT-FS devices 600 910XT ect

MATHIE1
01-10-2014, 04:48 AM
Almost forgot, to get the Garmin-Forerunner-610-Extractor to work I had to change the product ID for the USB ant stick from 0x1008 to 0x1009 in both
/etc/udev/rules.d/ant-usbstick2.rules
and
Garmin-Forerunner-610-Extractor/ant/fs/manager.py

I think this is because the product ID has changed from the big sticks to the mini sticks

IAINRS
01-11-2014, 05:58 PM
I'm not sure that this is the right topic but here goes.
I'm a long term Linux (Solydx (Debian)) user and have just purchased a Virb Elite. I can dual boot to Windows 7 to update software but would rather not do it too often as it wastes time.

I can download .mp4, .jpg and .gpx files quite happily and process them on Linux (VLC, Gimp etc, JOSM) but I'm not sure how to synchronise video and the gpx files.
I switched to Win7 and ran the files under VirbEdit with mixed results (OK at normal speed but on Time Lapse an hour's walk at 1 frame per second showed a journey of the first 200 metres - ie it assumed 26 frames/sec)
that presumably should be reported on the Windows VirbEdit forum.

Is there a place for general Virb queries (as opposed to VirbEdit) and would a 'Virb on Linux' topic be useful ?

The Virb's performance seems excellent - gps accuracy better than Legend H and really good HD stills with geo-location already done. Only problem seem that gps tracking is only done when videoing - hence time lapse.
Still early days I'll learn how to do things and hopefully software will improve, but on Linux ???

MATHIE1
01-16-2014, 08:43 AM
Ah looks like Tigge (https://github.com/Tigge/Garmin-Forerunner-610-Extractor) has been doing some work on this over the last few weeks and has updated the github reposetry. Now both the x1008 and x1009 dongles work as is and he has changed the directrory structure to include uploading and other fitness data. Still not quite uploading courses but can extract .fit files easy enough

to upload you have to suply the flag --upload that is in the
-> python garmin.py --upload
Only problem is the codes are throwing a few errors when you try to do this
there is a mistake in the status bar code which throws a Floating point Exception (division by zero) basicaly the status bar is trying to estimate the time to finish by deviding by the progress but when the progress is zero --- fail. HAcked it to work by puting in a conditional but there is probably a better way

next there is some sort of time out ocouring between the python code usb dongle or ant stack, need to dig in to this. But by enabling --debug I got files to start uploading to the garmin durin a sync but the upload fails towards the end. so It looks like it nearly works :D

Word of warning not shure exactly what is going on with the garmin extractor but when you sync you could posibly get into a situation where old files on the device with no points in them overwite your saved files on the computor, or if you are using the --upload option you may fill the device memory with old files, which mignt not be a good thing, so for the time being back up your .fit files from the activities folder in a safe place, and dont overwrite files when you copy them accross.

SHILDAB
01-25-2014, 06:50 PM
What? I don't think I understood one sentence! Please reword it for this ignoramous!