Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO - Garmin GPS USB
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
infecticide
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 262
Location: Regina, SK Canada

PostPosted: Tue May 22, 2007 3:32 am    Post subject: HOWTO - Garmin GPS USB Reply with quote

Hey everybody,

After a few hours of searching I managed to get my Garmin Vista Cx GPS unit connected to GpsDrive in Garmin mode. I thought I would start a thread here to document my progress on this to help others.

1. Install the USB to Serial converter in the kernel:
Code:

Device Drivers --> USB Support --> USB Serial Converter Support --> [*] Garmin GPS Driver


2. Add your user to the UUCP group
Code:

usermod -G uucp username


3. Compile GPSdrive
Code:

echo app-misc/gpsdrive ~x86 >> /etc/portage/package.keywords
emerge gpsdrive


4. Run GPSdrive, once the program is open click on Preferences on the left side.
Choose the "Settings 2" tab and under GPS Settings check off "Test for GARMIN" and nothing else
In the "Interface" box put /dev/ttyUSB0, and baud 9600 (could be higher since its USB but I just left it there)
Click Close

At this point you may need to close GPSdrive and reopen it. Once you re-open it, at the bottom of the window you should see "GARMIN Mode" and your current location should be plotted correctly.


TODO:
- Attempt operation with Google Earth and gpsbabel to upload and download point and routes
- Attempt to setup MapSource in WINE
_________________
. : | iNFeCTiCiDe | : .
"Look at all the dead bodies listening to the music..."
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2359
Location: Edmonton, AB

PostPosted: Mon May 19, 2008 11:06 pm    Post subject: Reply with quote

I think one step is missing
Code:
echo "app-misc/gpsdrive garmin" >> /etc/portage/package.use
as gpsdriver does not compile "garmin" by default.

Though, I can not make my "Garmin nuvi 250" get to work with gpsdriver, I'm getting:
Code:
gpsdrive
Access denied for user 'gast'@'localhost' (using password: YES)

/home/joseph/.gpsdrive/way.txt: No such file or directory

no GARMIN-mode receiver found
/home/joseph/.gpsdrive/way.txt: No such file or directory

way.txt reloaded
/home/joseph/.gpsdrive/way.txt: No such file or directory

way.txt reloaded
/home/joseph/.gpsdrive/way.txt: No such file or directory

way.txt reloaded
/home/joseph/.gpsdrive/way.txt: No such file or directory

way.txt reloaded
/home/joseph/.gpsdrive/way.txt: No such file or directory

way.txt reloaded
/home/joseph/.gpsdrive/way.txt: No such file or directory

way.txt reloaded
/home/joseph/.gpsdrive/way.txt: No such file or directory

way.txt reloaded
/home/joseph/.gpsdrive/way.txt: No such file or directory

way.txt reloaded

Thank you for using GpsDrive!
I've set in Prefereces --> Setting 2
/dev/ttyUSB0
and under GPS setting "Test for GARMIN" is selected.
What else to look for?
_________________
#Joseph
Back to top
View user's profile Send private message
infecticide
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 262
Location: Regina, SK Canada

PostPosted: Wed May 21, 2008 12:51 am    Post subject: Reply with quote

Unfortunately it has been a long time since I wrote this and I am no longer using Gentoo on my desktop system so I would be unable to tell you what might be wrong.

You may be interested in this HOWTO from Linux Journal June 2008.

Proceedure is based on:
- Fedora 8
- Wine 0.9.56
- A Garmin Vista CX (which I just happen to have)

Step 1:
Install Wine

Step 2:
Make sure you can access the GPS, check DMESG to find out where it's being mounted when you plug it in, in my case, it shows up as /dev/ttyUSB0. You may need to add yourself to the uucp group.

Step 3:
You need to define the device in Wine like so:
Code:

ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com2


Step 4:
Install MapSource with Wine as your regular user.
Code:

wine ./setup.exe


At the end, don't opt to start the program after the install, instead, start it yourself:
Code:

wine ~/.wine/drive_c/Garmin/MapSource.exe


Let me know if that works for you.
_________________
. : | iNFeCTiCiDe | : .
"Look at all the dead bodies listening to the music..."
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2359
Location: Edmonton, AB

PostPosted: Wed May 21, 2008 2:14 am    Post subject: Reply with quote

Thanks for the instruction but I'm afraid it will not work in my case, as I have "Garmin nuvi 250" and all those nuvi and Colorado, StreetPilot, Zumo units are using GPX format, not Garmin protocol according to this source:
http://www.gpsbabel.org/htmldoc-development/fmt_garmin.html#ftn.gpx
Quote:
[2] This unit uses GPX format, not Garmin protocol. Therefore one should communicate with it by reading and writing GPX files instead of using this format. Members of this class of products do not support realtime positioning protocol.


I was running like mad around the net trying to make it to work and in vain :-/
I'm still new to this, I have been an owner of GPS only for a day so I'm still learning.

There is good Gentoo: HARDWARE Garmin nuvi
http://gentoo-wiki.com/HARDWARE_Garmin_nuvi
but it did not mention anything about realtime positioning protocol to work with software like "gpsdrive"

Do you have any good links as to where to get free good maps that will work with Garmin units?
I have a free update map 2009 for North America from Gramin webpage but it is an exe type spyware that will not work with anything but Windows computers.
I tried it with wine but it can not find /usb port; I think it was looking for the pseudo serial port /dev/ttyUSB0 which did not appear for "nuvi" type units.
_________________
#Joseph
Back to top
View user's profile Send private message
infecticide
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 262
Location: Regina, SK Canada

PostPosted: Wed May 21, 2008 5:37 am    Post subject: Reply with quote

In Windows are you using MapSource? Did you attempt to install it in Wine?

If you plug in your device and then issue the DMESG command, where does it attach itself, if anywhere?
_________________
. : | iNFeCTiCiDe | : .
"Look at all the dead bodies listening to the music..."
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2359
Location: Edmonton, AB

PostPosted: Wed May 21, 2008 5:54 am    Post subject: Reply with quote

infecticide wrote:
In Windows are you using MapSource? Did you attempt to install it in Wine?

If you plug in your device and then issue the DMESG command, where does it attach itself, if anywhere?


I don't have windows at all; when I tried to use wine it was looking for USB device but it couldn't find it so I'm not sure if it will work with wine or not.
I did plug the device IN and it was recognized as storage device.
Well, in my case "/dev/ttyUSB*" does not appear at all. There are 325
"tty*" devices but non of them that starts as: ttyUSB

here is dmesg:
Code:
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial Driver core
drivers/usb/serial/usb-serial.c: USB Serial support registered for Garmin
GPS usb/tty
usbcore: registered new interface driver garmin_gps
drivers/usb/serial/garmin_gps.c: garmin gps driver v0.31
...


dmesg when I plug it to USB port.
Code:
scsi 0:0:0:0: Direct-Access     Garmin   nuvi Flash       1.00 PQ: 0 ANSI:5
sd 0:0:0:0: [sda] 2946989 512-byte hardware sectors (1509 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 2946989 512-byte hardware sectors (1509 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through sda:
sd 0:0:0:0: [sda] Attached SCSI removable disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
scsi 0:0:0:1: Direct-Access     Garmin   nuvi SD Card     1.00 PQ: 0 ANSI:5
sd 0:0:0:1: [sdb] Attached SCSI removable disk
sd 0:0:0:1: Attached scsi generic sg1 type 0
usb-storage: device scan complete

_________________
#Joseph
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2671
Location: here, there or in transit

PostPosted: Mon Jan 04, 2010 1:44 pm    Post subject: Reply with quote

Moved from Kernel & Hardware to Documentation, Tips & Tricks, after splitting the post that resurrected this topic.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
MadMaxCZ
n00b
n00b


Joined: 14 Mar 2004
Posts: 10
Location: Czech Republic

PostPosted: Sat Jan 08, 2011 11:24 pm    Post subject: Garmin nuvi (USB mass only) working with MapSource in wine Reply with quote

Joseph_sys wrote:
Thanks for the instruction but I'm afraid it will not work in my case, as I have "Garmin nuvi 250" and all those nuvi and Colorado, StreetPilot, Zumo units are using GPX format, not Garmin protocol according to this source:
http://www.gpsbabel.org/htmldoc-development/fmt_garmin.html#ftn.gpx
Quote:
[2] This unit uses GPX format, not Garmin protocol. Therefore one should communicate with it by reading and writing GPX files instead of using this format. Members of this class of products do not support realtime positioning protocol.


I was running like mad around the net trying to make it to work and in vain :-/
I'm still new to this, I have been an owner of GPS only for a day so I'm still learning.

There is good Gentoo: HARDWARE Garmin nuvi
http://gentoo-wiki.com/HARDWARE_Garmin_nuvi
but it did not mention anything about realtime positioning protocol to work with software like "gpsdrive"

Do you have any good links as to where to get free good maps that will work with Garmin units?
I have a free update map 2009 for North America from Gramin webpage but it is an exe type spyware that will not work with anything but Windows computers.
I tried it with wine but it can not find /usb port; I think it was looking for the pseudo serial port /dev/ttyUSB0 which did not appear for "nuvi" type units.


Hi,

as few days owner of Garmin zumo device I've spent some days by getting running with MapSource and wine. My device is "mass storage only", so it don't use the garmin_usb kernel modul. But MapSource couldn't detect the device. Finally I've found a solution in this link (German only, but see the pictures in the bottom of page):
http://www.netzkladde.de/gps-navigation/mapsource-unter-linux.html
It is very simple - in winecfg mark your GPS mount point as Floppy disc!

[list=]Details:
[*] run winecfg
[*] select Harddrive tab (configuration of windows letters for mount points, e.g. G: corresponds to /media/Garmin as mountpoint of your GPS device)
[*] toggle button Show extended config (options)
[*] in Type combobox select Floppy disc instead of Automatic detection[/list]

Note: italic text is my translation back to English from my localized winecfg...
_________________
No matter, whatever it is, just compile it!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum