[RFC] Unmanaged GPS setup / location source

David McCullough david.mccullough at accelecon.com
Sun Jun 29 05:16:56 PDT 2014


Aleksander Morgado wrote the following:
> On Sat, Jun 28, 2014 at 2:02 PM, David McCullough
> <david.mccullough at accelecon.com> wrote:
> >
> > Aleksander Morgado wrote the following:
> >> Hey,
> >>
> >> I've been asked whether it would make sense to allow having
> >> ModemManager control the status of the GPS module in a device, *but*
> >> leaving the tty where the NMEA traces are dumped untouched. This would
> >> allow to integrate with other standard GPS applications which read
> >> from a tty, while leaving MM the control over when to enable/disable
> >> the GPS module.
> >>
> >> Any comments on this?
> >>
> >> I have a draft implementation (mmcli commands not yet done) already in
> >> the 'aleksander/gps-unmanaged' branch in upstream git, where I just
> >> define a new MM_MODEM_LOCATION_SOURCE_GPS_UNMANAGED source. When this
> >> source is enabled, GPS module is started but the GPS tty is not used.
> >> Of course, the implementation also forbids trying to enable unmanaged
> >> and raw/nmea GPS at the same time. Also, currently only done for
> >> Option/HSO (the only plugin which does GPS over a tty for now). I may
> >> add GPS support for Cinterion one of these days as well.
> >
> > I have recently completed Huawei support and have been meaning to send
> > in a patch.  I get on to it before things start changing too much :-)
> >
> 
> Ah! Superb :) Would really like to see that patch. How did you decide
> which tty is the GPS port for NMEA traces? Flagging it through udev?

Through udev,  I have 2 devices (MU609 and MU909) and they seem to use a
subclass to signfy the setting.  Anyway,  just udev rules to set.

I'd post it for you now but my office has been without power all weekend so
I cannot get to it until tomorrow.  Will send it through first thing,

Cheers,
Davidm

-- 
David McCullough,  david.mccullough at accelecon.com,   Ph: 0410 560 763


More information about the ModemManager-devel mailing list