Problems using the geoclue master client.

Kishen Maloor kishenm at gmail.com
Wed Feb 11 09:31:41 PST 2009


Leenata Bankhele:

Thanks very much for your response.

I'm sorry but I should have mentioned in my earlier post that
I had fixed the bug in master-provider.c (+125) after reading
about it in an earlier post on this list.

Right now, the client (master-pos-example) doesn't crash but says
"No provider available" (while infact Gypsy is). Also, as indicated
in the debug output in my last post, it seems to make an attempt
to start up Gypsy, but doesn't go all the way with it. I have
also set up the GPSDevice property using gconftool as required.
(Further, as I mentioned, position-example works fine with Gypsy, so
gypsy-daemon is doing what its supposed to do.)

I'm not sure about whats going wrong. Does there need to be a .conf
file in /etc/dbus-1/system.d ? I don't currently have any geoclue specific
.conf files in there. As I understand, it sets up the security policies
with respect to D-bus interfaces. (However, I was running the above
examples as root, so, I wonder if the absence of a .conf file still
matters or not).

Also, if the master-provider finds 2 providers matching the set
requirements with one having the ability to output more accurate
information, if that top provider fails to function for some reason
(like for Gypsy, if the GPS device is not connected / doesn't have a fix)
will it pick the 2nd provider to provide a faster response?

I would appreciate any advice/suggestions.

Regards,
-Kishen.


On Wed, Feb 11, 2009 at 2:16 AM, Leenata Bankhele <leenatab at gmail.com>wrote:

> Hi ,
>
> @When I run "position-example" for Gypsy it works fine and I see
> position change notifications. But the master provider seems not to work.
>
>  -- Try changing GEOCLUE_PROVIDER (priv->address) to GEOCLUE_PROVIDER
> (priv->position) in gc_master_provider_get_provider() in master provider.c
> +125
> See if this works for you.
>
> @I need to manually invoke the gypsy-daemon right?
>
> -- Geoclue documentation says this is required for older version of DBus.
>
> @It seems like the main advantage of using geoclue as the front-end to
> gypsy
> is the ability to use the master provider.
>
> -- master provider will choose the right provider from the available one's
> based on your  set requirements API.
>
> Regards,
> Leenata Bankhele.
>
> On Wed, Feb 11, 2009 at 1:30 AM, <geoclue-request at lists.freedesktop.org>wrote:
>
>> Send GeoClue mailing list submissions to
>>        geoclue at lists.freedesktop.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>        http://lists.freedesktop.org/mailman/listinfo/geoclue
>> or, via email, send a message with subject or body 'help' to
>>        geoclue-request at lists.freedesktop.org
>>
>> You can reach the person managing the list at
>>        geoclue-owner at lists.freedesktop.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of GeoClue digest..."
>>
>>
>> Today's Topics:
>>
>>   1. Problems using the geoclue master client. (Kishen Maloor)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Mon, 9 Feb 2009 16:56:40 -0800
>> From: Kishen Maloor <kishenm at gmail.com>
>> Subject: Problems using the geoclue master client.
>> To: geoclue at lists.freedesktop.org
>> Message-ID:
>>        <e21bd8820902091656r30e8bf28s75445512a567c3d at mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>>
>> Hi,
>> I have some quick questions.
>>
>> I have built and set up geoclue 0.11.
>>
>> I am trying to run the "master-pos-example" example client.
>> I ran geoclue-master manually in a separate window and captured
>> the following debug output:
>> ** (process:17283): DEBUG: client: 1 position providers matching
>> requirements found, now choosing current provider
>> ** (process:17283): DEBUG: client: connecting to 'Gypsy' accuracy-changed
>> and status-changed
>> ** (process:17283): DEBUG: client: choosing best provider
>> ** (process:17283): DEBUG:         ...trying provider Gypsy
>> ** (process:17283): DEBUG: Gypsy: Updating cache
>> ** (process:17283): DEBUG: client: provider Gypsy status changed: 2
>> ** (process:17283): DEBUG: client: Gypsy accuracy changed (0)
>> ** (process:17283): DEBUG:         ...but provider choice in progress
>> ** (process:17283): DEBUG: client: provider Gypsy status changed: 0
>> ** (process:17283): DEBUG:         ...started Gypsy (status 0),
>> re-starting
>> provider selection
>> ** (process:17283): DEBUG: Gypsy without clients
>> ** (process:17283): DEBUG: client: position provider changed (to NULL)
>> ===
>> and the example client's output is "No provider available"
>>
>> For some reason it is unable to start up and run the gypsy provider.
>> I have gypsy installed and also have the gypsy-daemon running.
>> When I run "position-example" for Gypsy it works fine and I see
>> position change notifications. But the master provider seems not to work.
>>
>> Also, I modified the master-pos-example code and changed the provider
>> requirements to accept an accuracy of "GEOCLUE_ACCURACY_LEVEL_DETAILED"
>> and
>> set require_updates to FALSE.
>> Now, in the debug outs I was able to see that although it found plazes,
>> hostip and gypsy as candidate providers, it only attempted to load gypsy
>> and
>> failed in the same manner as above. (also without attempting to load any
>> of
>> the other alternative providers)
>>
>> What seems to be the issue?
>>
>> I also wanted to clarify a couple of other things. If I need to use gypsy
>> with geoclue,
>> I need to manually invoke the gypsy-daemon right?
>> It seems like the main advantage of using geoclue as the front-end to
>> gypsy
>> is the
>> ability to use the master provider. Is that correct?
>>
>> Thanks.
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> http://lists.freedesktop.org/archives/geoclue/attachments/20090209/e0e4de13/attachment.htm
>>
>> ------------------------------
>>
>> _______________________________________________
>> GeoClue mailing list
>> GeoClue at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/geoclue
>>
>>
>> End of GeoClue Digest, Vol 21, Issue 4
>> **************************************
>>
>
>
> _______________________________________________
> GeoClue mailing list
> GeoClue at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/geoclue
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/geoclue/attachments/20090211/6845c9b6/attachment-0001.htm 


More information about the GeoClue mailing list