beginner

Jussi Kukkonen jku at o-hand.com
Wed Mar 26 04:57:35 PDT 2008


I'm CCing the list for posterity...

Emanuele Leomanni wrote:
> Ok,
>    now I have more clear ideas, thanks.
> 
> I have a GPS Bluetooth receiver connected with my ubuntu and I would
> like to use a geoclue-example to see my geographical coordinates (like
> "Current position: longitude bla bla bla ...") updated by my GPS device.
> Is it possible with your simple examples?

Yes, position-example should work fine. The example may look like a lot
of code, but most of that is setting options or demoing the
get_position-method. You're basically only interested in
  * geoclue_position_new() -call
  * g_signal_connect() -call
  * position_changed_cb -function


> Should I have to start gpsd? Should I have to configure something?

Yeah, it needs to run already, that's the way gpsd works. Good that you
asked about the config: I had forgotten all about it. Using default
local port works just fine, but remote or non-default ports cannot be
used yet. Not a big deal, just haven't remembered it:
http://bugs.freedesktop.org/show_bug.cgi?id=15207

> If I write "cat /dev/rfcomm0" I am able to see my device updates. How to
> pass this info to geoclue?

Make sure gpsd is running. If not, run by hand ("gpsd /dev/rfcomm0"), or
use init scripts: you'll need to edit /etc/defaults/gpsd if you do that.

Then start "example/position-example Gpsd" and wait for fix.

Jussi


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: OpenPGP digital signature
Url : http://lists.freedesktop.org/archives/geoclue/attachments/20080326/f6a77e63/attachment.pgp 


More information about the GeoClue mailing list