gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] gpsd - AT command control on modems


From: Luca Weiss
Subject: Re: [gpsd-dev] gpsd - AT command control on modems
Date: Sat, 13 Jul 2019 18:55:35 +0200

On Samstag, 13. Juli 2019 18:48:35 CEST Paul Fertser wrote:
> On Sat, Jul 13, 2019 at 06:32:11PM +0200, Luca Weiss wrote:
> > > How about adding that to /etc/gpsd/device-hook (see man gpsd)?
> > 
> > Does the deactivation hook get called when no application is using gpsd
> > anymore - which would fit the power requirements mentioned above? Thanks
> > for the pointer!
> 
> IIRC, there was 30 seconds or so delay after the last client stopped
> using the device before the deactivation hook was called, but it's
> been a long time since I last looked into it.

The 30 seconds sound reasonable.

So basically: Make /etc/gpsd/device-hook a shell script which runs the 
activate or deactivate AT command when $2 (the second argument) is ACTIVATE or 
DEACTIVATE respectively.

I'll try that :)

Luca

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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