gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] Getting a SKY report more quickly


From: Eric S. Raymond
Subject: Re: [gpsd-users] Getting a SKY report more quickly
Date: Sun, 10 Apr 2016 05:55:41 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

David J Taylor <address@hidden>:
> I'm still working on the problem of getting a count of satellites available
> and satellites used.  I found some Python code which returns me a list I may
> be able to use, but it seems that the SKY report may take some cycles to
> appear.  Is there a way when getting a stream of reports from gpsd to make
> the SKY report the first one?

No.  The order and frequency of reports is set by the device, not by GPSD.
On most devices the skyview is shipped once every five seconds. 

For some device types it may be possible for you to send the GPS a control 
string
that changes the frequency of the skyview sentence. You can't do this directly
using gpsd, but you may be able to write a little script using gpsctl to do
it.  First, you need to find out if your GPS has that control capability, and
if so what the command format is.

> Alternatively, is there a simple API to determine the available and used
> satellite count?  Is it held in the shared memory, perhaps?

It's easy to get from the C structure updated by the C client library.
Look at the 'satellites_visible' member and the 'used' flags in the
satellire structure array.
-- 
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]