Sierra Wireless EM7455

Dan Williams dcbw at redhat.com
Fri Jun 3 15:15:53 UTC 2016


On Fri, 2016-06-03 at 14:38 +0200, Ralph Plawetzki wrote:
> Am 03.06.2016 um 14:09 schrieb Aleksander Morgado:
> > 
> > --set-preferred-mode must be given along with --set-allowed-modes;
> > and
> > as values for them you should use one of the combinations listed as
> > supported when showing the modem info with "mmcli -m 0".
> > 
> Sorry, can't find the right settings.
> 
> 
>   -------------------------
>   Modes    |      supported: 'allowed: 3g, 4g; preferred: none'
>            |        current: 'allowed: 3g, 4g; preferred: none'
>   -------------------------

For allowed modes, combinations are joined with "|".  That's non-
obvious I suppose, though 'mmcli --help-modem' does say:

  --set-allowed-modes=[MODE1|MODE2...]   Set allowed modes in a given modem.

But unfortunately the modem you have (or the plugin MM uses, which I
guess here is MBIM?) doesn't support changing modes; you only get the
"3g|4g" mode with no preference.  We don't yet know if/how MBIM devices
can lock to specific technologies unfortunately; there doesn't seem to
be anything in the MBIM spec to do so.

A modem that does support more modes looks like this:

  Modes    |      supported: 'allowed: 2g; preferred: none
           |                  allowed: 3g; preferred: none
           |                  allowed: 2g, 3g; preferred: none
           |                  allowed: 2g, 3g; preferred: 2g
           |                  allowed: 2g, 3g; preferred: 3g'
           |        current: 'allowed: 2g, 3g; preferred: none'

and there you would do something like:

sudo mmcli -m 0 --set-allowed-modes='2g'

sudo mmcli -m 0 --set-allowed-modes='2g|3g' --set-preferred-mode=2g
etc

Dan

> 
> [ralph at six ~]$ sudo mmcli -m 0 --set-preferred-mode=3g
> --set-allowed-modes='3g,4g'
> [sudo] Passwort für ralph:
> error: couldn't parse list of allowed modes: 'Couldn't match '3g,4g'
> with a valid MMModemMode value'
> [ralph at six ~]$ sudo mmcli -m 0 --set-preferred-mode=3g
> --set-allowed-modes='allowed: 3g, 4g; preferred: none'
> error: couldn't parse list of allowed modes: 'Couldn't match
> 'allowed:
> 3g, 4g; preferred: none' with a valid MMModemMode value'
> [ralph at six ~]$ sudo mmcli -m 0 --set-preferred-mode=3g
> --set-allowed-modes='3g, 4g; preferred: none'
> error: couldn't parse list of allowed modes: 'Couldn't match '3g, 4g;
> preferred: none' with a valid MMModemMode value'
> [ralph at six ~]$ sudo mmcli -m 0 --set-preferred-mode=3g
> --set-allowed-modes='3g'
> error: couldn't set current modes:
> 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unsupported:
> Setting allowed modes not supported'
> [ralph at six ~]$ sudo mmcli -m 0 --set-preferred-mode=lte
> --set-allowed-modes='lte'
> error: couldn't parse list of allowed modes: 'Couldn't match 'lte'
> with
> a valid MMModemMode value'
> [ralph at six ~]$ sudo mmcli -m 0 --set-preferred-mode=lte
> --set-allowed-modes=lte
> error: couldn't parse list of allowed modes: 'Couldn't match 'lte'
> with
> a valid MMModemMode value'
> [ralph at six ~]$ sudo mmcli -m 0 --set-preferred-mode='preferred: 3g'
> --set-allowed-modes='3g'
> error: couldn't parse preferred mode: 'Couldn't match 'preferred: 3g'
> with a valid MMModemMode value'
> [ralph at six ~]$ sudo mmcli -m 0 --set-preferred-mode='3g'
> --set-allowed-modes='4g'
> error: couldn't set current modes:
> 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unsupported:
> Setting allowed modes not supported'
> [ralph at six ~]$
> _______________________________________________
> ModemManager-devel mailing list
> ModemManager-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


More information about the ModemManager-devel mailing list