EM7455 Factor reset command

Hello All,

I am trying to factory reset my EM7455 module and found following command
mmcli -m <> --factory-reset=CODE, i am wondering what is CODE for EM7455 ?
Also found AT commands for the same will the following factory reset my modem ?

AT!ENTERCND="A710"
AT!RMARESET=1
AT!RESET

Do those AT commands work for your purpose?

To some extent yes , but i am more inclined one mmcli command

In QMI SDK, /docs/SwiApiReference/qaGobiApiDms_8h.html, it says "NULL-terminated string representing a six-digit service programming code:.
Maybe you can try “000000”.

I get following error when executing ‘mmcli -m 0 --factory-reset=‘000000’’
error: couldn’t reset the modem to factory state: ‘GDBus.Error:org.freedesktop.libqmi.Error.Protocol.Internal: Couldn’t restore factory defaults: QMI protocol error (3): ‘Internal’’

Here is the debug log:

Blockquote
Jun 25 18:31:33 ModemManager[23370]: performing a factory reset…
Jun 25 18:31:33 ModemManager[23370]: [/dev/cdc-wdm0] sent message… <<<<<< RAW: <<<<<< length = 22 <<<<<< data = 01:15:00:00:02:04:00:20:00:3A:00:09:00:01:06:00:30:30:30:30:30:30
Jun 25 18:31:33 ModemManager[23370]: [/dev/cdc-wdm0] sent generic request (translated)… <<<<<< QMUX: <<<<<< length = 21 <<<<<< flags = 0x00 <<<<<< service = “dms” <<<<<< client = 4 <<<<<< QMI: <<<<<< flags = “none” <<<<<< trans
Jun 25 18:31:33 ModemManager[23370]: [/dev/cdc-wdm0] received message… <<<<<< RAW: <<<<<< length = 20 <<<<<< data = 01:13:00:80:02:04:02:20:00:3A:00:07:00:02:04:00:01:00:03:00
Jun 25 18:31:33 ModemManager[23370]: [/dev/cdc-wdm0] received generic response (translated)… <<<<<< QMUX: <<<<<< length = 19 <<<<<< flags = 0x80 <<<<<< service = “dms” <<<<<< client = 4 <<<<<< QMI: <<<<<< flags = “response” <<<<<

I just have a try , same problem in Linux QMI SDK API ResetToFactoryDefaults() …
I guess this bug is still under analysis.

This is weird. Could you also try running

qmicli -p -d /dev/cdc-wdm0 --dms-validate-service-programming-code=000000

This works for me with a Lenovo EM7455:

# qmicli -p -d /dev/cdc-wdm0  --dms-validate-service-programming-code=000000
[/dev/cdc-wdm0] Service Programming Code validated

Using any other code fails, as expected:

# qmicli -p -d /dev/cdc-wdm0  --dms-validate-service-programming-code=000001
error: couldn't validate Service Programming Code: QMI protocol error (34): 'AuthenticationFailed'

Seems your code is different from previous test, ‘000000’ vs 000000

‘000000’ or ‘000000’ or “000000” none of them works

qmicli -p -d /dev/cdc-wdm0 --dms-validate-service-programming-code=000000
[/dev/cdc-wdm0] Service Programming Code validated
mmcli -m 0 --factory-reset=000000
error: couldn’t reset the modem to factory state: ‘GDBus.Error:org.freedesktop.libqmi.Error.Protocol.Internal: Couldn’t restore factory defaults: QMI protocol error (3): ‘Internal’’

same here, it is not working for 000000 or ‘000000’ in QMI SDK.
I am using FW 02.30.03.00.
@dl5162, which FW are you using?

Sorry, but I haven’t actually tried the factory reset as I don’t want to do that on this modem. I assumed the dms-validate-service-programming-code request would have the same problem, but I was wrong as demonstrated by @prap4network.

FWIW, I’m running 02.24.05.06 since I haven’t been satisfied with the stability of any of the newer firmwares. Might be just me…