Factory reset

Allows end-user (application) to perform factory reset of the hardware

Introduction

From version 2.29 a BLE command has been added that initiates a factory reset of the SmartBridge.

Items that will be reset to the original setting include:

  1. Opt-in value
  2. Local API authentication tokens,
  3. Meter keydata,
  4. LORA commissioned node,
  5. Edge NILM configuration parameters
  6. Locally stored metering data
  7. Wifi credentials (if still present) ?

Not reset is:

  1. Replacement EUI (applicable when device acts as SmartBridge Replacement)
  2. Replacement platform address (applicable when hardware was moved to platform different from production setting)

To initiate the factory reset, the BLE interface must be active, so no active Wifi connection can be there. This is the case when

  1. the Smartbridge has never been onboarded (factory fresh), or
  2. the wifi credentials known to device are not valid or router is not in range, or
  3. the device has been instructed to 'forget' the wifi credentials (administrator call to Device Management API)

Procedure

  1. Connect with BLE to the device
  2. Turn on notification of characteristic 4e09.
  3. Write a byte (array) with 00 to UUID 4E04, this will trigger the factory reset.
  4. Monitor value of 4e09, potential values are:
    1. 0x00 Succes
    2. 0x01 Factory Reset in progress
    3. 0x02 Factory Reset error