[Gta04-owner] gpsd software

Neil Jerram neil at ossau.homelinux.net
Sun Dec 4 22:01:58 CET 2011


"Dr. H. Nikolaus Schaller" <hns at goldelico.com> writes:

> Am 04.12.2011 um 21:11 schrieb NeilBrown:
>
>> On Sun, 4 Dec 2011 21:02:53 +0100 "Dr. H. Nikolaus Schaller"
>> <hns at goldelico.com> wrote:
>> 
>>> 
>>> Am 04.12.2011 um 01:28 schrieb Neil Jerram:
>>> 
>>>> I just wanted to point out that the latest gpsd (3.x) has a nice feature
>>>> that I believe allows providing GPS on demand with no need for an
>>>> "enable GPS" switch or something like "fsoraw -r GPS ...".
>>>> 
>>>> That is, it calls a hook script (/etc/gpsd/device-hook $DEVICE ACTIVATE)
>>>> when the first client connects on the gpsd port, and similarly
>>>> ((/etc/gpsd/device-hook $DEVICE DEACTIVATE) when the last client
>>>> disconnects from that port.
>>>> 
>>>> For GTA04, I think that means we can put the commands to enable and
>>>> disable GPS power into that script, and then just run gpsd all the time.
>>> 
>>> That is really a nice feature!

Credit for that is due to Paul Fertser, I believe (as well as to the
gpsd maintainers who agreed to apply his patch).  (Paul is a
longstanding contributor to things GTA02.)

>> It appears that you can send a SiRF command over the serial line to force a
>> power-off (though I haven't tested yet).  If that works, I plan to get the
>> 'rfkill' to pulse the line at power-on and arrange some udev script to send
>> the power-off command when the rfkill switches to 'off'.
>
> Looks good! To hide this toggle nature in the rfkill driver.

Indeed.  Great to hear that Neil already has this in his plans.

Regards,
        Neil


More information about the Gta04-owner mailing list