nrf9160

Set command

The set command resets the modem to factory settings. Non-volatile Memory (NVM) is updated with this command. +CFUN=0 is not needed to trigger the update.

Active %XPOFWARN warning blocks the NVM factory reset.v1.3.x≥2

Syntax:

%XFACTORYRESET=<reset_type>
+CME ERROR code
518 – Not allowed in active state.
528 – Not allowed when power off warning is active.v1.3.x≥2

The set command parameter and its defined values are the following:

<reset_type>
0 – Reset all modem data to factory settings
1 – Reset user-configurable data to factory settings

The following command example resets all modem data to factory settings:

AT%XFACTORYRESET=0

The following command example resets user-configurable data to factory settings:

AT%XFACTORYRESET=1