Cruisers Forum
 


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 21-06-2012, 07:02   #1
jm2
Registered User

Join Date: Jun 2012
Location: France
Boat: Brise de mer 9m
Posts: 5
OpenCPN and GPSD

Hi All,
I'm running windows 7 and have developped in Java a very simplistic GPS simulator.
It uses the GPSD protocol and worked with 2.1.0 OpenCPN version.
It doesn't work with new 3.0 version.
OCPN send each second the command letters ('l' and 'O') on TCP/IP socket 2947,
but it never reads the GPS message.
After examination of source code (nmea.cpp) I can see that all code about GPSD protocol for Windows
is always present, but in Event Table, the association of socket event and OnSocketEvent function is now disabled :

//------------------------------------------------------------------------------
// NMEA Event Handler Implementation
//------------------------------------------------------------------------------
BEGIN_EVENT_TABLE(NMEAHandler, wxEvtHandler)
// EVT_SOCKET(SOCKET_ID, NMEAHandler::OnSocketEvent)
EVT_TIMER(TIMER_NMEA1, NMEAHandler::OnTimerNMEA)
END_EVENT_TABLE()

Grateful for any explanation
Many thanks
Jean Michel
jm2 is offline   Reply With Quote
Old 21-06-2012, 07:18   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
Re: OpenCPN and GPSD

Jean Michel

Thanks for your interest in OpenCPN and GPSD.

The code you refer to in nmea.cpp is obsolete. The GPSD wire protocol has changed, so that the OpenCPN code for this mode no longer works, and was disabled in the current version.

We plan to remove the support for the obsolete GPSD direct wire protocol in the next version, and substitute JSON support for direct GPSD access.

So, you have three choices:

1. Continue to use O Version 2.1
2. Modify the O Version 3.0 sources to use the old gpsd wire protocol, and recompile privately.
3. Wait for next Beta series which should include JSON support for gpsd direct access.

Sorry for the roadblock here. We have been chasing a moving target with gpsd.

Dave
bdbcat is online now   Reply With Quote
Old 21-06-2012, 12:34   #3
jm2
Registered User

Join Date: Jun 2012
Location: France
Boat: Brise de mer 9m
Posts: 5
Re: OpenCPN and GPSD

Thank you Dave for your answer
and thank you for OpenCPN software
Jean Michel
jm2 is offline   Reply With Quote
Old 21-06-2012, 13:33   #4
Registered User
 
pa36651's Avatar

Join Date: Apr 2010
Location: Sweden
Boat: Hanse 342
Posts: 39
I use this simple nmea-generator.
http://homepage2.nifty.com/k8/gps/index.htm#004
pa36651 is offline   Reply With Quote
Reply

Tags
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


Advertise Here


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


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.