Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 29-06-2012, 20:43   #1
Registered User

Join Date: Sep 2007
Location: FL
Boat: Pacific Seacraft 31 - Cielo Azul
Posts: 359
Images: 3
OpenCPN 3.0.0 with GPSD v3.6

Anybody tried it with latest gpsd??
From opencpn.log:
2:33:19 EDT: Attempting to load libgps.so.20
22:33:19 EDT: LIBGPS: Using libgps API=20
22:33:19 EDT: LIBGPS: Found libgps version 0.0
22:33:19 EDT: AIS Data Source is....None
and with gpsd logging, I see lots of these:
345
Poll/Read Set: 20137FC
LATLON 1.71805e+43 -4.19858e+105
TRACK_SET
SPEED_SET
STATUS_SET: 1 status 0

gpsmon showed gps up and running as normal.
Tom
__________________

__________________
teejayevans is offline   Reply With Quote
Old 29-06-2012, 21:25   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,883
Re: OpenCPN 3.0.0 with GPSD v3.6

Tom...

What is your OS, and where did the latest gpsd come from?

Dave
__________________

__________________
bdbcat is offline   Reply With Quote
Old 30-06-2012, 10:55   #3
Registered User

Join Date: Sep 2007
Location: FL
Boat: Pacific Seacraft 31 - Cielo Azul
Posts: 359
Images: 3
Re: OpenCPN 3.0.0 with GPSD v3.6

Quote:
Originally Posted by bdbcat View Post
Tom...

What is your OS, and where did the latest gpsd come from?

Dave
Its Ubuntu Lucid,
Linux 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:54:21 UTC 2011 i686 GNU/Linux
I also tried the old 2.92 version and it doesn't work either, this is a recent upgrade to v3, so I grab the 3.6 version and built it and installed it, hoping it would fix my problem....opencpn output is similar and from the opencpn.log:
12:42:52 EDT: NMEA Data Source is....LIBGPS:localhost
12:42:52 EDT: Failed to load libgps.so
12:42:52 EDT: Attempting to load libgps.so.20
12:42:52 EDT: Failed to load libgps.so.20
12:42:52 EDT: Attempting to load libgps.so.19
12:42:52 EDT: LIBGPS: Using libgps API=19
12:42:52 EDT: LIBGPS: Version not determined
12:42:52 EDT: AIS Data Source is....None


gpsdrive worked with both, and obviously xgps words as well.

I saw this on the website which is why I tried 3.6 with v20 lib, not sure if this is a build issue only, or runtime as well:
Developers note: libgps API changed significantly between libgps19 and ..20. We require the libgps20 API and include files to build OpenCPN, and a "version skew" warning will be produced if they are not found. The libgps interface will not function correctly if OpenCPN is built with libgps19 include files.
Tom
__________________
teejayevans is offline   Reply With Quote
Old 30-06-2012, 11:39   #4
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,883
Re: OpenCPN 3.0.0 with GPSD v3.6

Tom....

Can you get and try a local build of gpsd 2.96? This should be libgps20, and should work.

I have had trouble building gpsd 3.6 on my ancient Gutsy development system, so it is not tested by me. I'm procrastinating on upgrade to 12.04. There is never a good time....

Dave
__________________
bdbcat is offline   Reply With Quote
Old 30-06-2012, 17:03   #5
Registered User

Join Date: Sep 2007
Location: FL
Boat: Pacific Seacraft 31 - Cielo Azul
Posts: 359
Images: 3
Re: OpenCPN 3.0.0 with GPSD v3.6

Ok, I tried to look at OpenCPN code, but I'm not a CPP coder, but I couldn't find where you setup the the gpsd to send you enable nmea data mode, ie, it starts out in json, with:
{"class":"VERSION","release":"3.6","rev":"3.6","pr oto_major":3,"proto_minor":7}
if you send it: ?WATCH={"enable":true,"nmea":true}\n
it responds with a couple of more json strings:
{"class":"DEVICES","devices":[{"class":"DEVICE","path":"/dev/ttyUSB0","activated":"2012-06-30T22:47:36.333Z","flags":1,"driver":"Generic NMEA","native":0,"bps":4800,"parity":"N","stopbits ":1,"cycle":1.00}]}
{"class":"WATCH","enable":true,"json":false,"nmea" :true,"raw":0,"scaled":false,"timing":false}
and then it's off and running with nmea sentences....
I'm guessing libgps is suppose to hide the json part? but it seems more trouble than it's worth, it appears from the debug that you are getting json when you expect nmea.
Maybe instead of libgps mode, we need "GPSD Network mode" and just handle the initial handshake without the libgps dependency...opencpn has too many build dependencies for me to try to build it on my backlevel Lucid system.
Like you, I have no desire to upgrade to 12.X with the awful new gnome desktop.
Thanks for looking at it....
Tom
Tom
__________________
teejayevans is offline   Reply With Quote
Old 30-06-2012, 18:26   #6
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,883
Re: OpenCPN 3.0.0 with GPSD v3.6

Tom....
We do not get a NMEA nor a JSON stream from GPSD. We use the libgps calls to access the internal struct with all data directly.

Have you tried getting gpsd 2.96, and building it locally?
I could send you the .so if you are unable to build, or the source tree. This should work.

Dave
__________________
bdbcat is offline   Reply With Quote
Old 30-06-2012, 19:56   #7
Registered User

Join Date: Sep 2007
Location: FL
Boat: Pacific Seacraft 31 - Cielo Azul
Posts: 359
Images: 3
Re: OpenCPN 3.0.0 with GPSD v3.6

Quote:
Originally Posted by bdbcat View Post
Tom....
We do not get a NMEA nor a JSON stream from GPSD. We use the libgps calls to access the internal struct with all data directly.

Have you tried getting gpsd 2.96, and building it locally?
I could send you the .so if you are unable to build, or the source tree. This should work.

Dave
I couldn't find the source, the gpsd new site only has downloads for v3.
I was able to put together a hack (I open gpsd via tcp port, enable nmea, and forward the tcp traffic back to a virtual serial port, and let opencpn read from the virtual port), crude but effective , if you can point me to gpsd 2.96 source tree, I will build it and try that.
thx,
Tom
__________________
teejayevans is offline   Reply With Quote
Old 30-06-2012, 20:36   #8
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,883
Re: OpenCPN 3.0.0 with GPSD v3.6

bob..

Email me with your address, and I'll send it
Dave
__________________
bdbcat is offline   Reply With Quote
Old 01-07-2012, 04:38   #9
Registered User

Join Date: Sep 2007
Location: FL
Boat: Pacific Seacraft 31 - Cielo Azul
Posts: 359
Images: 3
Re: OpenCPN 3.0.0 with GPSD v3.6

When I ran gpsd's own test_libgps program, that failed also, I will follow with gpsd user list.
Tom
__________________
teejayevans is offline   Reply With Quote
Old 01-07-2012, 18:04   #10
Registered User

Join Date: Sep 2007
Location: FL
Boat: Pacific Seacraft 31 - Cielo Azul
Posts: 359
Images: 3
Re: OpenCPN 3.0.0 with GPSD v3.6

Quote:
Originally Posted by teejayevans View Post
When I ran gpsd's own test_libgps program, that failed also, I will follow with gpsd user list.
Tom
The good news is I found a bug in gpsd that cause the above failure, and it help opencpn as well, but didn't fix the problem, the trace output shows:
Re-opened library
1
Poll/Read Set: 20000800
STATUS_SET: 0 status 0
2
Poll/Read Set: 20000000
STATUS_SET: 0 status 0
....

No more funny numbers, but no gps data either....oh well....will wait for gpsd folks to respond....
Tom
__________________
teejayevans is offline   Reply With Quote
Old 02-07-2012, 12:01   #11
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 300
Re: OpenCPN 3.0.0 with GPSD v3.6

I made a fresh compile of GPSD 3.6 on my 'gentoo' machine, and it does work without complaints.
Dirk
__________________
rooiedirk is offline   Reply With Quote
Old 02-07-2012, 13:10   #12
Registered User

Join Date: Sep 2007
Location: FL
Boat: Pacific Seacraft 31 - Cielo Azul
Posts: 359
Images: 3
Re: OpenCPN 3.0.0 with GPSD v3.6

Quote:
Originally Posted by rooiedirk View Post
I made a fresh compile of GPSD 3.6 on my 'gentoo' machine, and it does work without complaints.
Dirk
Double check that you weren't using the old library. This really isn't a daemon problem, it's a problem with the libgps library.
Tom
__________________
teejayevans is offline   Reply With Quote
Old 03-07-2012, 03:20   #13
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 300
Re: OpenCPN 3.0.0 with GPSD v3.6

Hoi Tom,
I double checked. Removed all libgps* files. recompiled and working.
However I am using the gentoo sources for gpsd, wich include some patches.
When I try to compile the sources from git,(git://git.savannah.nongnu.org/gpsd.git) I get errors.
Code:
/test_bits: symbol lookup error: ./test_bits: undefined symbol: getbed64
scons: *** [bits-regress] Error 127
scons: building terminated because of errors.
I'll attach the patches gentoo is using.
Dirk
Attached Files
File Type: doc gpsd-3.6-debug.patch.doc (8.5 KB, 27 views)
File Type: doc gpsd-3.6-rpath.patch.doc (418 Bytes, 33 views)
__________________

__________________
rooiedirk is offline   Reply With Quote
Reply

Tags
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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 08:58.


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.