Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-07-2014, 11: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:	96
Size:	18.2 KB
ID:	84529  
__________________

__________________
hakonrk is offline   Reply With Quote
Old 06-07-2014, 13: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, 15:55   #3
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
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, 16: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

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



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 00:13.


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.