how should ogpsd start gllin?
daniel at totalueberwachung.de
Sat Jul 26 23:40:52 CEST 2008
On Mon, 14 Jul 2008 10:22:02 +0200
"Michael 'Mickey' Lauer" <mickey at vanille-media.de> wrote:
> Am Montag 14 Juli 2008 07:46:21 schrieb Tim Niemeyer:
> > as you can read in my simple gypsy extension, the gps daemon has to
> > read the nmeaNP first, and then starts gllin.
> Luckily, there is an alternative to that. You can configure gllin to
> send out its data over a UDP port instead of a pipe. By using it that
> way, you are reliefed from any startup order constraints.
Yeah, UDP handling would be best since then gllin doesn't die every time
the pipe breaks.
> odeviced should take care about low-level powering on/off the gpsd
It should already do that even on GTA01, right?
Adding GTA01 support in ogpsd will require the following steps:
* You would need to create a UDPChannel that can listen for NMEA data
on a specified port and then have a GLChannel that will take care of
starting/stopping gllin with the necessary options. For that start/stop
information will need to be passed to the Channel when the device is
started/stopped. This should be done anyway so a device can be closed
and reopened (useful i.e. for USB GPS receivers).
* The NMEADevice needs to call the respective dbus functions from
GPSDevice so that the correct signals are generated.
The NMEA parsing code also needs some cleanup and be more robust, but I
think it will probably work for now anyway.
As I will be busy with SMS PDU handling next week I would really
appreciate if anyone wants to give this a shot.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 197 bytes
Desc: not available
More information about the smartphones-standards