Fedora Linux Support Community & Resources Center
Old 21st July 2006, 06:40 PM
LarryJ Offline
Registered User
Join Date: Nov 2005
Location: W. Montana, USA
Posts: 103
Cool GpsDrive and Garmin GPS18 USB on FC5

This thread documents my newbie attempts to get my Garmin GPS 18 USB receiver "puck" to talk to GPSDrive. Various documentation pages indicate you should be able to see your GPS receiver's output "sentences" by first entering in a terminal window with root privileges
#telnet localhost 2947
That yielded "...connection refused" Then I realized you must have "gpsd" running. "gpsd" is a
... userland daemon acting as a translator between GPS or Loran-C receivers and clients. gpsd listens on port 2947 for clients requesting position/time/velocity information...
Apparently gpsd is supplied with gpsdrive but to be sure I downloaded gpsd from
http://prdownload.berlios.de/gpsd/gpsd-2.33.tar.gz . Their site is located at http://gpsd.berlios.de Then acting like I knew exactly what I was doing, I did the usual (as root in a terminal window in the same directory where you extracted the .gz file)
#sh autogen.sh
#make install
Then to start gpsd (maybe stands for Global Positioning System Daemon?) I entered
 gpsd -p /dev/ttyUSB0
Why ttyUSB0? Do a "ls /dev" and observed that /dev/ttyUSB0 appears and disappears when you plug and unplug your Garmin GPS 18 USB puck. I don't know the source of this magic. (BTW that's ttyUSB zero not the capital letter "O")

Finally then (as root)
#telnet localhost 2947
then press "r" yields output with NEMA sentences that look like this:
Connected to localhost.localdomain (
Escape character is '^]'.
$GPGSV,3,3,12,30,12,087,00,47,06,254,00,17,03,337, 00,20,13,297,00*7D
$GPGGA,170021,4535.6375,N,11301.6789,W,2,00,,1087. 8,M,-17.474,M,,*64
$GPRMC,170021,A,4535.6375,N,11301.6789,W,0.4879,25 7.293,210706,,*34
$GPGSV,3,1,12,01,72,262,95,22,33,106,93,19,04,231, 00,14,58,053,00*79
$GPGSV,3,2,12,51,36,170,94,11,42,284,00,25,41,178, 00,05,11,051,00*74
$GPGSV,3,3,12,30,12,087,00,47,06,254,00,17,03,337, 00,20,13,297,00*7D
$GPGGA,170022,4535.6374,N,11301.6790,W,2,03,,1087. 8,M,-17.474,M,,*6D
$GPRMC,170022,A,4535.6374,N,11301.6790,W,0.4879,25 7.293,210706,,*3E
If you attempt the "telnet localhost 2947" without root privileges, you'll get an error message that says something about "connection closed by foreign host". So first "su - root", supply your root password and then enter "telnet localhost 2947"

Ctrl + ] stops the telnet scroll. Ctrl + D closes telnet.

To see the output from your GPS receiver, you must allow telnet to run by allowing it in the firewall. Click the check box by Telnet in the system-config-securitylevel gui to allow telenet to operate through your fire wall. (Or in the KDE menu, Administration, Security Level and Firewall)

I have noticed that in addition to "gpsd" running as a process (do ps -A in a terminal to see all the processes (programs) running on your computer) that I have a "mapping-daemon". I THINK this might be the USB to Serial converter program that I read about. I think it takes the USB output from the Garmin GPS18 Puck and makes the computer think that the "nema sentences" are being fed into a serial port as is the default for "nema" marine electronic standards equipment. But I'm not sure about this because killing the "mapping-daemon" process does not affect the "nema" GPS output info seen in telenet. I'm not sure what program needs this "mapping-daemon" or which program spawned it (started it running).

Back then to GPSDrive. The GPSdrive gui comes up and runs in simulation mode but does not read my Garmin GPS18 USB receiver "puck" yet. If I figure that out, I'll be back with more info.


Last edited by LarryJ; 22nd July 2006 at 01:37 PM.
Reply With Quote
Old 21st July 2006, 07:33 PM
LarryJ Offline
Registered User
Join Date: Nov 2005
Location: W. Montana, USA
Posts: 103
gpsdrive now accepting data from Garmin GPS 18 USB receiver

Sometimes it's so easy!

I couldn't find an .rpm package for gpsdrive under FC5 nor could I compile from the source. (Got errors I didn't understand) But the gpsdrive site "http://www.gpsdrive.cc" has an rpm for for their latest Beta version. Download a copy here http://www.gpsdrive.cc/gpsdrive-2.10pre2.tar.gz. I downloaded, extracted the rpm from the archive file, changed to the directory where the .rpm extracted to, and then from a root terminal did "#yum localinstall gpsdrive-2.10pre2-1.i586.rpm"

Assuming you have plugged in your Garmin GPS 18 USB puck, started gpsd as root specifying the /dev/ttyUSB0 device as shown above, you then can start GpsDrive by clicking on Internet, then GpsDrive. Amazingly here it runs in in Fedora 5 with kernel version 2.6.17-1.2157_FC5 The screenshot below shows my GpsDrive GPS preferences.

More info on gpsdrive is here: http://www.livingresource.net/gpsdri....php/Main_Page

GPSDrive (gpsdrive) is an amazing program. I think Fritz Ganter deserves a round of applause and your monetary support. (See http://www.gpsdrive.cc/index.shtml). I'm firing up paypal right now.

Attached Thumbnails
Click image for larger version

Name:	gpsdrive.jpg
Views:	180
Size:	11.6 KB
ID:	8646  

Last edited by LarryJ; 21st July 2006 at 10:11 PM.
Reply With Quote

fc5, garmin, gps18, gpsdrive, usb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Garmin nuvi 200w gpsd perlsyntax Using Fedora 2 18th July 2008 05:00 PM
bluetooth GPS receiver using gpsdrive... spacelobsters Hardware & Laptops 1 12th September 2007 03:11 PM
Garmin GPS Insp Gadget Hardware & Laptops 2 17th April 2007 10:21 PM

Current GMT-time: 10:47 (Friday, 18-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat