This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Factory Reset function and erasing EnOcean switch data

I am trying to erase the EnOcean switch data without erasing the board. node_reset() function isn't erasing the EnOcean switch data after commissioning. 

I would like to know how to erase the switch data without erasing. 

Also, is there any function defined to perform a factory reset without erasing the board? 

I am investigating about a way to do a factory reset with buttons on the board.

Thank you.

  • Hi

    I assume you are using our EnOcean example with compatible EnOcean switches. What do you mean by erasing switch data without erasing? I am sorry but there is no function that does a factory reset without a board erase, as a factory reset includes a board erase.

    It should probably be possible to set a button to perform factory resets, but we do not have an example for just that, so you will have to modify our example in that case.

    Best regards,

    Simon

  • What do you mean by erasing switch data without erasing?

    I would like to erase the switch information when a node_reset() is being executed. Right now, after provisioning the node and resetting the node using the app, it just erases the publishing/subscribing information but not the Enocean switch data. Similar operation with the button 4. 

    Without a factory reset, I am looking to erase the switch information.

    you will have to modify our example in that case.

    Okay. 

  • Hi

    By switch data, do you mean the switch status and optional data stored in the DK servers? It seems a little unclear.

    Could the nrf_flash_erase function be what you are looking for?

    Best regards,

    Simon

  • Could the nrf_flash_erase function be what you are looking for?

    Okay, I will try that but that function does take the address of data as an input. Can I know where the EnOcean commissioning data is stored?

  • Hi

    Is your end goal to remove the node from the mesh network without erasing the bonding information? Please correct me if I am wrong. I am just trying to understand what your application is supposed to do.

    By commisioning data do you mean the provisioning data?
    The provisioning data is stored on the provisioner, you can see the mesh_stack_provisioning_data_store function in our provisioner example for more information. So if you are using I.E. the nRF Mesh app the data will be stored in your mobile device running the app, and if you are using the interactive PyACI the data is stored on your computer.

    Best regards,

    Simon

Related