Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 23-10-2010, 18:36   #1
Registered User

Join Date: Oct 2010
Posts: 9
Can OpenCPN Interface with a Garmin GPSMAP 60CSx via USB ?

I'm running Ubuntu 10.

I am new to OpenCPN and am trying to interface a Garmin GPSMAP 60CSx via the USB cable. I do not have a serial or other cable for the device.

The USB out for the GPSMAP 60CSx exports data in Garmin's proprietary format. While the data out type for the Garmin can be set for the serial cable (to NMEA for instance) the USB out format cannot be changed and must remain in Garmin's proprietary format.

I can output live data from the Garmin with xgps fine while hooked up with the USB, but selecting Tools->GPS->Network GPSD in OpenCPN doesn't do anything. If "Show GPS/NMEA data stream" is selected, nothing outputs.

If I use gpsbabel to read the GPS data from /dev/ttyUSB0 in the Garmin format, then write the GPS data to /dev/ttyGPS (a manually created file) in NMEA format, I can get OpenCPN to dump raw GPS data using the "Show GPS/NMEA data stream" option. Still, however, it doesn't use the GPS data to interface with the charts / waypoints / etc.

So.. I'm trying to get the Garmin GPSMAP 60CSx to interface successfully with OpenCPN via a USB cable. Can anyone help me figure this out? Thanks!
__________________

__________________
eric.toupin is offline   Reply With Quote
Old 23-10-2010, 19:24   #2
Registered User
 
Sail323's Avatar

Join Date: Sep 2010
Boat: Pearson 323
Posts: 52
I don't think you will be able to get usable NMEA data from the USB port on your GPS. You will most likely need to purchase one of the following cables which plug into the round 4-pin RS232 port under the rubber cover on the back of the unit.

You will need one of following:

Power/Data Cable (If you want to hard-wire it)
Part Number: 010-10082-00

or

PC Interface Cable (RS232 Serial Port Connector)
010-10141-00

or

Vehicle Power Cable with PC Interface
010-10165-00

plus

A USB to Serial adapter

John
Attached Thumbnails
Click image for larger version

Name:	GPSMAP60CSx_OwnersManual.pdf (application-pdf Object)_1287882657073.png
Views:	454
Size:	168.3 KB
ID:	20446  
__________________

__________________
Sail323 is offline   Reply With Quote
Old 24-10-2010, 04:26   #3
Registered User

Join Date: Oct 2010
Posts: 9
RE: Serial cables

John,

Thanks for the reply. I was looking for a different cable earlier on but gave up on that route, unable to find what I needed. Your specific reply is a big help. I'll try a different cable and report back.

It's a shame it won't work with the USB. With gpsbabel it seemed so close - but I guess that would be too easy =]
__________________
eric.toupin is offline   Reply With Quote
Old 24-10-2010, 05:10   #4
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,249
Quote:
Originally Posted by eric.toupin View Post
I'm running Ubuntu 10.


I can output live data from the Garmin with xgps fine while hooked up with the USB, but selecting Tools->GPS->Network GPSD in OpenCPN doesn't do anything. If "Show GPS/NMEA data stream" is selected, nothing outputs.
If you can get xgps to output data, then OpenCPN should be OK.
Don't use Tools->GPS->Network GPSD , use Tools->GPS->Network LIBGPS instead. You still will not be able to to see an NMEA datastream, as there isn't one. You have a stream of Garmins stuff, that gpsd understands. But this setting is the correct one for Ubuntu 10.x. Also, in ToolBox->GPS there is a Garmin box to tick and experiment with.
Thomas
__________________
cagney is offline   Reply With Quote
Old 24-10-2010, 05:28   #5
Registered User

Join Date: Oct 2010
Posts: 9
Thomas,

Thanks a ton for the reply.

Quote:
Originally Posted by cagney View Post
Don't use Tools->GPS->Network GPSD , use Tools->GPS->Network LIBGPS instead.
I don't have the Network LIBGPS option, only the Network GPSD option. I have the libgps19 package installed, v 2.92. I'm running Ubuntu 10.04, Lucid Lynx, and have OpenCPN v 2.2.

Any ideas? Much appreciated =]
__________________
eric.toupin is offline   Reply With Quote
Old 24-10-2010, 06:19   #6
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,249
Quote:
Originally Posted by eric.toupin View Post
Thomas,

Thanks a ton for the reply.



I don't have the Network LIBGPS option, only the Network GPSD option. I have the libgps19 package installed, v 2.92. I'm running Ubuntu 10.04, Lucid Lynx, and have OpenCPN v 2.2.

Any ideas? Much appreciated =]
If you are compiling yourself you need the package "libgps-dev".
This package should not be necessary if you installed a precompiled package, but install it anyway for good measure.
Your logfile could possibly give some hints.
Have you read Setting Up GPS | Official OpenCPN Homepage?
Any feedback if starting opencpn from the command-line?

Thomas
__________________
cagney is offline   Reply With Quote
Old 24-10-2010, 08:14   #7
Registered User

Join Date: Oct 2010
Posts: 9
Success!

I've stepped back to OpenCPN 2.1 for Ubuntu, which provided the Tools->GPS->Network LIBGPS option. That fixed the issue.

In order to get xgps to run, I still need to execute "sudo modprobe garmin_gps" *before* I run OpenCPN. Within a few seconds of that command, xgps & OpenCPN can acquire the GPS info.

My little ship icon showed up in the right place, which is exciting after messing with this for a few days.

Thanks for the input!
__________________
eric.toupin is offline   Reply With Quote
Old 24-10-2010, 11:05   #8
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,249
Quote:
Originally Posted by eric.toupin View Post
I've stepped back to OpenCPN 2.1 for Ubuntu, which provided the Tools->GPS->Network LIBGPS option. That fixed the issue.

In order to get xgps to run, I still need to execute "sudo modprobe garmin_gps" *before* I run OpenCPN. Within a few seconds of that command, xgps & OpenCPN can acquire the GPS info.

My little ship icon showed up in the right place, which is exciting after messing with this for a few days.

Thanks for the input!
Try to ad the line "garmin_gps" to the file "/etc/modules".
Quote:
sudo gedit /etc/modules
Write :garmin_gps, on a line at the end of the file.
Next time you boot the driver will automatically be loaded.
It's a bit boring to modprobe every time!

Thomas
__________________
cagney is offline   Reply With Quote
Old 12-05-2011, 17:34   #9
Registered User

Join Date: Apr 2011
Posts: 3
Re: Can OpenCPN Interface with a Garmin GPSMAP 60CSx via USB ?

Quote:
Originally Posted by cagney View Post
Try to ad the line "garmin_gps" to the file "/etc/modules".

Write :garmin_gps, on a line at the end of the file.
Next time you boot the driver will automatically be loaded.
It's a bit boring to modprobe every time!

Thomas
Just want to point out that this doesn't work for me, still have to do the "sudo modprobe garmin_gps" command in order for GPS to work with OpenCPN. This is with Ubuntu 11.04, OpenCPN 2.3.1. Any suggestions?

Dave
__________________
djgrant is offline   Reply With Quote
Old 12-07-2011, 04:16   #10
Registered User

Join Date: Jul 2011
Posts: 1
Re: Can OpenCPN Interface with a Garmin GPSMAP 60CSx via USB ?

Quote:
Just want to point out that this doesn't work for me, still have to do the "sudo modprobe garmin_gps"
Dave,
the garmin_gps module is blacklisted under Ubuntu 10.04 (and likely later versions too). Do
Quote:
sudo gedit /etc/modprobe.d/blacklist.conf
and comment out the respective line to make it look like
Quote:
#blacklist garmin_gps
then reboot. The module should be autoinserted upon plugging in the USB cable. Works well for me with Garmin GPSmap 76CSx
__________________

__________________
ullis is offline   Reply With Quote
Reply

Tags
garmin

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Garmin GPSMAP 750 miki.0410 Navigation 4 27-08-2011 03:25
For Sale: Garmin GPSMap 235 Sounder off-the-grid Classifieds Archive 2 14-10-2010 20:11
Garmin 60CSx and Ubuntu with Kernel 2.6.31-20-Generic - Solution ? amadeus OpenCPN 37 30-07-2010 15:44
Raymarine NMEA Interface to USB captden Navigation 5 09-11-2009 16:04



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 10:24.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.