ModemManager kills gpsd socket

David McCullough david.mccullough at accelerated.com
Mon Sep 7 00:22:49 PDT 2015


Brent Sink wrote the following:
> Well, I think I found the issue.  On line #3365 in
> plugins/huawei/mm-broadband-modem-huawei.c, I found this:
> 
> static char *gps_startup[] = {
>     "^WPDOM=0",
>     "^WPDST=1",
>     "^WPDFR=65535,30",
>     "^WPDGP",
>     NULL
> };
> 
> http://cgit.freedesktop.org/ModemManager/ModemManager/tree/plugins/huawei/mm-broadband-modem-huawei.c?id=1.4.0
> 
> So, I guess I need to change this, unless there is a way to do this at
> runtime?


You got it,  its hard coded to 30 seconds.  Thats what I was refering to.
I am sure a patch to make it configurable would be welcome ;-)

You could try issuing:

	mmcli -m XXX --command=^WPDFR=65535,1

after the modem connects ?  Not sure if that will work (or stick for long)

Cheers,
Davidm


> On Mon, Sep 7, 2015 at 12:31 AM, Brent Sink <brent.sink at gmail.com> wrote:
> 
> > Thanks David!  I totally missed that one in the man page.  I'm now able to
> > use gpsd on ttyUSB3.  However, I noticed one strange thing... when I have
> > gpsd running without MM, I have it set up to report the position every 1
> > second.  When MM is running, it seems to have changed it to every 30
> > seconds.  I tried forcing it to report every 1s using the required AT
> > commands, but I can't seem to change it.
> >
> > You mentioned that MM will still setup the GPS parameters... is there a
> > way for me to change the parameters to report every 1s?  The --command
> > option seems to only be available in debug mode.
> >
> > On Sun, Sep 6, 2015 at 9:21 PM, David McCullough <
> > david.mccullough at accelerated.com> wrote:
> >
> >>
> >>
> >> Brent Sink wrote the following:
> >> > Hello,
> >> >
> >> > I have a Huawei mu609 mPCIe module that has GSM + GPS, and I'm using
> >> > ModemManager (and NetworkManager) to setup the connection to the
> >> network,
> >> > and gpsd to retrieve the GPS coordinates from the module.  This module
> >> > creates 5 serial ports (ttyUSB0 - ttyUSB4).  ttyUSB2 is used to send AT
> >> > commands, and ttyUSB3 is the output of the GPS data.  If I disable
> >> > ModemManager, I can get the GPS data from gpspipe and from a gpsd socket
> >> > that I have created.
> >> >
> >> > However, when ModemManager is enabled, I no longer get any data from the
> >> > GPS.  It seems like it just resets the device and gets rid of any
> >> > configurations I made.  I realize that I can also get the GPS data
> >> inside
> >> > of ModemManager using --location-get-gps-nmea, but this has no
> >> connection
> >> > to my gpsd socket.
> >> >
> >> > Am I doing something wrong?  Is there a way to still get data via a gpsd
> >> > socket while using ModemManager?  Let me know if you need the debug
> >> logs.
> >> > Thanks!
> >>
> >> Pretty sure you want to look at '--location-enable-gps-unmanaged' to allow
> >> other processes to manage the GPS data on the GPS data port without MM
> >> getting in the way,
> >>
> >> MM will still setup the GPS parameters though,  but you should be able to
> >> run gpsd on ttyUSB3,
> >>
> >> Cheers,
> >> Davidm
> >>
> >> --
> >> David McCullough,  david.mccullough at accelerated.com,   Ph: 0410 560 763
> >>
> >
> >
> >
> > --
> > -brent
> >
> 
> 
> 
> -- 
> -brent

> _______________________________________________
> ModemManager-devel mailing list
> ModemManager-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


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


More information about the ModemManager-devel mailing list