How to change Sierra Wireless preferred firmware

Aleksander Morgado aleksander at aleksander.es
Tue Mar 23 21:16:08 UTC 2021


Hey!

On Tue, Mar 23, 2021 at 9:25 PM Tom Isaacson <tom.isaacson at teknique.com> wrote:
>
> I'm using a Sierra Wireless WP7610. Because we can switch SIM cards we
> need to be able to set the preferred firmware. Sierra implement this
> using the AT!IMPREF command:
> AT!IMPREF?
> !IMPREF:
>  preferred fw version:    02.28.03.01
>  preferred carrier name:  ATT
>  preferred config name:   ATT_002.071_000
>  preferred subpri index:  001
>  current fw version:      02.28.03.01
>  current carrier name:    ATT
>  current config name:     ATT_002.071_000
>  current subpri index:    001
> OK
>
> I asked them how I could do this via QMI and got the reply:
> "'at!impref' function call is SDK function SLQSSetSIMBasedImageSwitching."
>
> But is there any way of doing this via qmicli? If not is there an
> example on how to write an app with QMI?
>

Do you mean the automatic carrier config selection based on selected
SIM that Sierra supports in AT!IMPREF? if so, you can try to enable
that with (according to my notes, highly untested!):
$ qmicli -d /dev/cdc-wdm0 -p
--dms-set-firmware-preference="00.00.00.00,000.000_000,AUTO-SIM"
And then reset the module, e.g.:
$ qmicli -d /dev/cdc-wdm0 -p --dms-set-operating-mode=offline
$ qmicli -d /dev/cdc-wdm0 -p --dms-set-operating-mode=reset

If I'm not mistaken, selecting the AUTO-SIM carrier will trigger that
logic in the module, obviously only if you have multiple carrier
configs (plus firmware versions applicable to them).

If you wish to manually select specific firmware versions and carrier
configs of the ones installed in the module, you can also do that with
--dms-set-firmware-preference, e.g.
$ qmicli -d /dev/cdc-wdm0 -p
--dms-set-firmware-preference="05.05.58.00,005.025_002,Generic"
$ qmicli -d /dev/cdc-wdm0 -p --dms-set-operating-mode=offline
$ qmicli -d /dev/cdc-wdm0 -p --dms-set-operating-mode=reset

-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list