Initial signal quality query on MBIM modems

Ben Chan benchan at chromium.org
Fri Jan 5 22:46:06 UTC 2018


On Fri, Jan 5, 2018 at 7:33 AM Dan Williams <dcbw at redhat.com> wrote:

> On Fri, 2018-01-05 at 06:57 +0000, Ben Chan wrote:
> > Hi Aleksander and Dan
> >
> > ModemManager currently relies on unsolicited MBIM_CID_SIGNAL_STATE
> > notification to obtain signal quality updates, and it doesn't query
> > the
> > initial signal quality. I've observed that some MBIM modems issue a
> > MBIM_CID_SIGNAL_STATE
> > notification only when there is a notable change in RSSI. The signal
> > quality may remain at 0 for quite some time. It's more noticeable
> > when
> > simply restarting ModemManager after the modem has been initialized
> > and
> > enabled once.
> >
> > We could simply enable periodic signal quality polling on an MBIM
> > modem,
> > but that's less ideal as it may unnecessarily wake the modem up from
> > USB
> > selective suspend (unless we use a much longer polling period).
> >
> > I'm thinking about letting ModemManager issue an initial
> > MBIM_CID_SIGNAL_STATE query when it enables MBIM_CID_SIGNAL_STATE
> > notification.  Does that sound reasonable to you. If so, I'll submit
> > a
> > patch.
>
> Sounds OK to me.
>

On a related question, it seems like QMI uses both periodic polling and
unsolicited indication for signal strength updates. Is that intentional?
 If we decide that it's best to handle signal updates over unsolicited
notifications for MBIM and QMI modems, perhaps we could bake the logic in
MMIfaceModem instead.  Currently, MMIfaceModem skips periodic updates if
the load_signal_quality function pointer is NULL or if load_signal_quality
returns UNSUPPORTED. Neither addresses the case where we want to call
load_signal_quality to load the initial signal quality but skip further
periodic polling.  I guess we could use a
MM_IFACE_MODEM_PERIODIC_SIGNAL_UPDATES_DESIRED property to indicate such an
intention?


>
> Dan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20180105/a521a68e/attachment.html>


More information about the ModemManager-devel mailing list