factory test mode

Sai Chaitanya msaichaitanya at gmail.com
Thu Sep 2 12:06:38 UTC 2021


As a follow up to the query below, there seems to be something missing
about QMI DMS service. In simple words, if I set operating mode to
factory-test or setFWpref+offline+reset, it seems not possible to get back
to 'online' mode? The modem seems to be stuck in some state? A FW update
(with the same firmware which is already in the modem), seems to be one way
out though.

So basically, cannot come back to normal mode and 'online', when I use this:

qmicli -d /dev/cdc-wdm0 --dms-set-firmware-preference=......
qmicli -d /dev/cdc-wdm0 --dms-set-operating-mode=offline
qmicli -d /dev/cdc-wdm0 --dms-set-operating-mode=reset

or

qmicli -d /dev/cdc-wdm0 --dms-set-operating-mode=factory-test

After a power-cycle also, I cannot bring it back online. It stays in
'low-power'

*# qmicli -d /dev/cdc-wdm0 --dms-get-operating-mode*
[/dev/cdc-wdm0] Operating mode retrieved:
Mode: 'low-power'
Reason: 'unknown'
HW restricted: 'no'
*# qmicli -d /dev/cdc-wdm0 --dms-set-operating-mode=online*
error: couldn't set operating mode: QMI protocol error (60):
'InvalidTransition'

Is there a way out other than FW reflash? If the modem is kept in
boot&hold with at!boothold, I don't have this issue. I can come back to
normal mode and online after an extra power cycle. But it seems not the
case if I bring the modem to boot&hold with QMICLI:DMS commands.

Kindly advise what I am missing.
Regards,
Sai.

On Tue, Aug 31, 2021 at 10:18 AM Sai Chaitanya <msaichaitanya at gmail.com>
wrote:

> Hi all,
>
> After putting the modem to factory-test mode, what is the way out to get
> back to online mode? It only allows,
>
> # qmicli -d /dev/cdc-wdm0 --dms-set-operating-mode=factory-test
> [/dev/cdc-wdm0] Operating mode set successfully
> # qmicli -d /dev/cdc-wdm0 --dms-set-operating-mode=online
> error: couldn't set operating mode: QMI protocol error (60):
> 'InvalidTransition'
> # qmicli -d /dev/cdc-wdm0 --dms-set-operating-mode=offline
> [/dev/cdc-wdm0] Operating mode set successfully
> # qmicli -d /dev/cdc-wdm0 --dms-set-operating-mode=reset
> [/dev/cdc-wdm0] Operating mode set successfully
> # qmicli -d /dev/cdc-wdm0 --dms-set-operating-mode=offline
> [/dev/cdc-wdm0] Operating mode set successfully
> # qmicli -d /dev/cdc-wdm0 --dms-set-operating-mode=reset
> [/dev/cdc-wdm0] Operating mode set successfully
> # qmicli -d /dev/cdc-wdm0 --dms-get-operating-mode
> [/dev/cdc-wdm0] Operating mode retrieved:
> Mode: 'low-power'
> Reason: 'unknown'
> HW restricted: 'no'
> # qmicli -d /dev/cdc-wdm0 --dms-set-operating-mode=online
> error: couldn't set operating mode: QMI protocol error (60):
> 'InvalidTransition'
>
>
> The next state allowed seems to be only offline or reset, but power
> cycling the modem is not bringing it back to 'online'. Now I am not sure
> how to bring it back to online mode without having to reflash the FW.
>
> Regards,
> Sai.
>


--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20210902/2127e150/attachment.htm>


More information about the libqmi-devel mailing list