Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 06-07-2014, 10:47   #1
Registered User

Join Date: Jul 2014
Posts: 3
GPSD works, but OpenCPN does not get a position

I am playing around with OpenCPN (tried both 3.3.1824 (beta) and 3.2.2) on my Fedora 20 system, and everything seems to be working, except the GPS connection. I want OpenCPN to connect to GPSD, and I have confirmed that GPSD works. That is, I can get the correct position using GPSD test programs such as xgps or cgps. I am also pretty sure that OpenCPN is configured correctly (see the attached screenshot). I can even confirm that OpenCPN is connected to GPSD:

lsof | grep opencpn.*gpsd
opencpn 3894 hakonrk 6u IPv4 2797099 0t0 TCP localhost:38139->localhost:gpsd (ESTABLISHED)


So, everything seems to be working perfectly, except that OpenCPN's GPS status icon shows just a red circle. Any ideas what could be the reason for this? Since OpenCPN gets the position from GPSD, it should not matter which GPS device I have, as long as GPSD supports it, correct? Maybe OpenCPN 3.2.x and 3.3.x does not support GPSD 3.9?
Attached Thumbnails
Click image for larger version

Name:	opencpn_config.png
Views:	200
Size:	18.2 KB
ID:	84529  
hakonrk is offline   Reply With Quote
Old 06-07-2014, 12:42   #2
Registered User

Join Date: Jul 2014
Posts: 3
Re: GPSD works, but OpenCPN does not get a position

I've been grepping the OpenCPN source, and it doesn't even look like it is using the GPSD API. Does OpenCPN attempt to speak the GPSD protocol directly instead of using libgps.so? It's hard to believe anyone would do this, but it looks like it's either that or that GPSD support has been removed without updating the UI.
hakonrk is offline   Reply With Quote
Old 06-07-2014, 14:55   #3
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,211
Re: GPSD works, but OpenCPN does not get a position

hakonrk...
After what we have experienced, it is hard to believe that someone not supporting just one particular distribution with one particualr version of GPSD actually is using libgps...
We just switch GPSD to produce NMEA in datastream.cpp:545, that's where you should probably start looking.
Is there anything that looks useful in the logfile?

Pavel
nohal is offline   Reply With Quote
Old 06-07-2014, 15:01   #4
Registered User

Join Date: Jul 2014
Posts: 3
Re: GPSD works, but OpenCPN does not get a position

Quote:
Originally Posted by nohal View Post
hakonrk...
After what we have experienced, it is hard to believe that someone not supporting just one particular distribution with one particualr version of GPSD actually is using libgps...
We just switch GPSD to produce NMEA in datastream.cpp:545, that's where you should probably start looking.
Is there anything that looks useful in the logfile?
Thanks, I wasn't aware that you could put GPSD in NMEA mode. I'll look into it later, but I just found out that OpenCPN does get my position if I let it connect directly to my Haicom HI-204III via /dev/ttyUSB0. It would be nice to have GPSD in between so that other programs could share the GPS device, but I can live with this for now.
hakonrk is offline   Reply With Quote
Reply

Tags
enc, gps, opencpn


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
Windlass works UP but not DOWN VVD Anchoring & Mooring 8 13-01-2013 20:48
cm93 works in V2 but not V3 argybargy OpenCPN 5 08-11-2012 11:10
Hour meter not reading but tachometer works timj Electrical: Batteries, Generators & Solar 2 22-07-2012 23:40
Open CPN Works Initially But Then Will Not Open GrahamW OpenCPN 4 25-01-2012 04:57
Anchor Alarm Works, but Not with Recorder Messages s51ta OpenCPN 5 01-11-2010 22:42

Advertise Here


All times are GMT -7. The time now is 04:38.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.