Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-03-2010, 05:25   #1
Registered User
 
antonm's Avatar

Join Date: Feb 2010
Location: Saint Petersburg, Russia
Posts: 66
GPSD to Remove D-BUS Support in Favor of GeoClue

Just got a message from the author of GPSD that he wants to remove D-BUS support out in favor of freedesktop's GeoClue service:

freedesktop.org - Software/GeoClue

Not sure if this affecting OpenCPN at all. I did not noted that it uses d-bus.

Could somebody please clarify how currently we are interacting with GPSD in the code? It is also interestig for me since I specilly did nothing for this support in Debian packaging and not sure if something is needed for that or not. On GPSD FAQ I found that they provide libgps library for the interaction, but I currently does not link the package with it and neither I link it with d-bus.
__________________

__________________
antonm is offline   Reply With Quote
Old 24-03-2010, 04:38   #2
Registered User

Join Date: Jun 2009
Location: Morbihan Brittany France
Boat: Hallberg Rassy 37
Posts: 64
DBUS integration for removable devices (GPS, AIS, ...)

I've done some test with DBUS in the idea of integrating it with OpenCPN GPS+AIS discovery.

My conclusion: on Linux Dbus is the only valid option to handle correctly sleep/wakeup on ram [which is my end goal].

While Dbus API documentation is really bad, its fonctionnalities are just find. For linux Dbus is the only correct way to handle removable devices.

Nevertheless see 3 small remaining points to solve:
  • it adds one dependency on dbus client library.
  • it imposes some change in opencpn's logic for reading serial link, and on the way to present devices on GUI
  • it wont work for Windows, and imposes some form of emulation, in order Windows code to be compatible.
My goal is to propose to OpenCPN author, hopefully within the new couples of weeks, a strawman for a hotplug compatible version of OpenCPN.
__________________

__________________
fulup is offline   Reply With Quote
Old 24-03-2010, 04:49   #3
Registered User
 
antonm's Avatar

Join Date: Feb 2010
Location: Saint Petersburg, Russia
Posts: 66
Quote:
Originally Posted by fulup View Post
My conclusion: on Linux Dbus is the only valid option to handle correctly sleep/wakeup on ram [which is my end goal].
That's valid and AFAIK was the reason for d-bus development.

Quote:
Originally Posted by fulup View Post
  • it adds one dependency on dbus client library.
I would suggest to make it configurable. E.g. having configure option --with-dbus that when enabled activates specific d-bus related features. If not than either those features are disbaled or have some other implementation. I may help with autotools build stuff to implement that.

Quote:
Originally Posted by fulup View Post
My goal is to propose to OpenCPN author, hopefully within the new couples of weeks, a strawman for a hotplug compatible version of OpenCPN.
Please also have a look on geoclue freedesktop.org - Software/GeoClue It works through D-BUS and will be unified GPS API on Desktop Linuxes. Other options like network GPSD or port devices needs to be preserved though.
__________________
antonm is offline   Reply With Quote
Old 24-03-2010, 05:32   #4
Registered User

Join Date: Jun 2009
Location: Morbihan Brittany France
Boat: Hallberg Rassy 37
Posts: 64
Quote:
Originally Posted by antonm View Post
Please also have a look on geoclue freedesktop.org - Software/GeoClue It works through D-BUS and will be unified GPS API on Desktop Linuxes. Other options like network GPSD or port devices needs to be preserved though.
Last year, in a previous attempt to handle sleep/wakeup cycle, I integrated GPSd client lib with OpenCPN. Finally the value added did not justify the cost of the dependency. The main advantage to leverage some client API like GeoClue would to remove NMEA parsing from OpenCPN code. Nevertheless this would significantly impact current code without adding any new feature, which limit the interest for such a work.
__________________
fulup is offline   Reply With Quote
Old 24-03-2010, 05:50   #5
Registered User
 
antonm's Avatar

Join Date: Feb 2010
Location: Saint Petersburg, Russia
Posts: 66
Quote:
Originally Posted by fulup View Post
Last year, in a previous attempt to handle sleep/wakeup cycle, I integrated GPSd client lib with OpenCPN. Finally the value added did not justify the cost of the dependency.
Per GPSD author, the client lib is the prefered way to deal with GPSD. Even if one does not want to link (imo there is no problem with lib dependencies in most Linux distros, but for Windows it gets painfull) it still possible to have "configure" switch and ifdef's in the code.

Quote:
Originally Posted by fulup View Post
The main advantage to leverage some client API like GeoClue would to remove NMEA parsing from OpenCPN code. Nevertheless this would significantly impact current code without adding any new feature, which limit the interest for such a work.
It will not remove nmea since than we will loose primary way of dealing with GPS through device file. Probably it is not convenient. I personally do not think that GeoClue integration is of any priority. I personaly can configure GPS manually and fine with this way.

The main reason for the post is that I got a message from GPSD author that he plans to remove direct D-BUS support out, since we are not using it anyway we are safe.
__________________
antonm is offline   Reply With Quote
Reply

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
How Do You Remove a Broken Tap? gbanker Construction, Maintenance & Refit 32 07-07-2015 05:56
Remove Motor for Towing Dinghy? Joe500 Auxiliary Equipment & Dinghy 16 05-03-2010 13:32
Key West Charter bus. 4sale + 50' CAT craig boorman Classifieds Archive 0 22-02-2009 14:27
How to remove plugs from manifold? Trekka Engines and Propulsion Systems 12 01-12-2008 09:54



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 22:21.


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.