[PATCH] Huawei GPS support (udev activated)
David McCullough
david.mccullough at accelecon.com
Thu Jul 3 18:35:07 PDT 2014
Aleksander Morgado wrote the following:
> On Thu, Jul 3, 2014 at 4:12 PM, David McCullough
> <david.mccullough at accelecon.com> wrote:
> > Aleksander Morgado wrote the following:
> >> On Wed, Jul 2, 2014 at 2:02 AM, David McCullough
> >> <david.mccullough at accelecon.com> wrote:
> >> >> On Mon, Jun 30, 2014 at 8:50 AM, David McCullough
> >> >> <david.mccullough at accelecon.com> wrote:
> >> >> >
> >> >> > Hi all,
> >> >> >
> >> >> > Here is a patch to provide GPS support for Huawei modems. This change
> >> >> > tested and working on both the MU609 (3G) and MU909 (LTE) modems.
> >> >> >
> >> >> > There are a lot of options for configure the GPS that I have hardcoded to
> >> >> > the most likely to work. This should get you a working GPS lock.
> >> >> >
> >> >> > Cheers,
> >> >> > Davidm
> >> >> >
> >> >> > Signed-off-by: David McCullough <david.mccullough at accelecon.com>
> >> >> >
> >> >>
> >> >> Patch doesn't apply in git master; can you rebase it?
> >> >
> >> > Sorry about that, I tend to stick on a specific rev for a while.
> >> > New patch below,
> >>
> >> I fixed a minor thing in your patch, just to initialize the "pflags"
> >> variable in grab_port():
> >>
> >> MMPortSerialAtFlag pflags = MM_PORT_SERIAL_AT_FLAG_NONE;
> >
> > Ah yes, missed that :-(
> >
> >> Applied to git master, thanks!
> >>
> >> Would you also like to do the GPS unmanaged changes for Huawei?
> >
> > I will have a look at it. Since the code is mostly like the option code
> > I should be able to use that as an example right ?
>
>
> Yes, or the Cinterion one. The logic is just to avoid opening the NMEA
> tty when requesting unmanaged GPS, and that's it.
Ok, posted a patch which I think does all that is needed.
I noticed some inconsistencies when testing unmanaged mode:
1. gps was enabled - CORRECT
2. ModemManager was not tracking/reporting GPS status - CORRECT
3. ModemManager still have the tty open - ???????
I could run cat on the tty though and see the NMEA output but i was
concerned that MM still had it opened. A brief look around in MM and I
could not see how the unmanaged mode prevented the tty port from getting
opened.
So it seemed to work, just wanted to make sure this makes sense to you ?
Thanks,
Davidm
--
David McCullough, david.mccullough at accelecon.com, Ph: 0410 560 763
More information about the ModemManager-devel
mailing list