[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cbfc3cfa8acbc02dde848ec4e1d71b5089ff1d10.camel@redhat.com>
Date: Sat, 07 Apr 2018 21:44:59 -0500
From: Dan Williams <dcbw@...hat.com>
To: Pavel Machek <pavel@....cz>, Merlijn Wajer <merlijn@...zup.org>
Cc: Tony Lindgren <tony@...mide.com>,
Sebastian Reichel <sebastian.reichel@...labora.co.uk>,
Mark Brown <broonie@...nel.org>,
Liam Girdwood <lgirdwood@...il.com>,
Rob Herring <robh+dt@...nel.org>,
Lee Jones <lee.jones@...aro.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, alsa-devel@...a-project.org,
linux-omap@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel@...labora.com
Subject: Re: simultaneous voice/data works (was Re: call/normal switch was
Re: omap4-droid4: voice call support was)
On Sat, 2018-04-07 at 14:22 +0200, Pavel Machek wrote:
> On Sat 2018-04-07 10:10:00, Pavel Machek wrote:
> > Hi!
> >
> > It seems qmicli can be used while unicsy_demo/ofone talks to the
> > modem
> > using the AT commands.
> >
> > So I could do:
> >
> > qmicli -d /dev/cdc-wdm0 --wds-follow-network --wds-start-
> > network=apn=internet.t-mobile.cz
> > route del default
> > sudo ifconfig wwan0 up
> > dhclient wwan0
> >
> > to get GPRS/UMTS connection. AT commands still work.
> >
> > Does anyone have any idea what to do to get the GPS to work?
>
> Got that to work.
>
> I installed modemmanager -- unfortunately that claims ttyUSB4 so it
> breaks voice/sms -- but then
It shouldn't break SMS since MM will do SMS via QMI, but yeah for now
it'll break voice because that would happen via QMI too, and we haven't
implemented voice for QMI yet.
--help-messaging
--help-sms
Also available via D-Bus of course.
> mmcli -m 0 --enable
> mmcli -m 0 --location-enable-gps-nmea
> watch -n .3 sudo mmcli -m 0 --location-get-gps-nmea
>
> ...can be used to get GPS data. Droid4 seems to have rather bad GPS,
> so you should probably put it near window for testing.
>
> Is there way to grab data from modemmanager and feed it to gpsd, so
> that normal applications can access gps? I don't see easy way.
>
> I tried --location-enable-gps-unmanaged , but that did not work for
> me.
That requires a TTY that would spit out the GPS data; in this mode MM
only sends the start/stop commands, and what comes out the GPS TTY is
undefined (at least by MM).
So unless you know that one of the 6600's TTYs does GPS and in what
format it does GPS, then no.
Doesn't --location-get-gps-nmea work for you? That will spit out the
latest NMEA traces MM gets from the modem, if it supports NMEA. I
believe --location-status will tell you what methods MM supports with
the modem.
Also available via D-Bus of course.
> Is modemmanager enabling GPS, or is it talking to libqmi to do that?
> The code is quite confusing to me...
Yes. When the modem is driven with QMI, then all the data comes from
QMI. For other modems (like Huawei HiLink and Gobi 1000) the enabling
commands are done via AT on the main command port and then one of the
TTYs starts spewing out NMEA.
Dan
Powered by blists - more mailing lists