ModemManager kills gpsd socket

Brent Sink brent.sink at gmail.com
Sun Sep 6 21:55:15 PDT 2015


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?

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/modemmanager-devel/attachments/20150907/18c1f62b/attachment.html>


More information about the ModemManager-devel mailing list