How to reset a remote node using the Mesh provisioner example in NCS 1.9.1

Hello Experts,

I am trying to realize the following sequence

1) Reset button pressed on the remote node.

2) Remote node intimates the Mesh provisioner node by sending a message to it.

3) Mesh provisioner node initiates a node reset procedure remotely.

Could you please guide me through the process? I am using the nrf52832 DK as a provisioner and nrf52840 Dk as the sensor server/sensor client.

Thank you!

Parents
  • Susheel said:
    The remote node does reset and starts to broadcast unprovisioned beacons.

    At least that sounds promising.

    Could you try increasing the timeout using bt_mesh_cfg_cli_timeout_set and see if that makes a difference?

    Regards,

    Elfving

  • Hello Elfving, I have increased my configuration timeout but, I still see -116 being returned. 

    I have found that my remote node in fact resets due to a hard fault when it receives the reset command. Any idea why?

    P.S sorry for the delayed responses. I am juggling tasks at the moment.

    Update: for the fault, I just had to increase the stack size of the mesh_adv thread. But, I still see the timeout returned for the function call even after increasing the cfg_cli timeout to 4 times the original. Please advice.

Reply
  • Hello Elfving, I have increased my configuration timeout but, I still see -116 being returned. 

    I have found that my remote node in fact resets due to a hard fault when it receives the reset command. Any idea why?

    P.S sorry for the delayed responses. I am juggling tasks at the moment.

    Update: for the fault, I just had to increase the stack size of the mesh_adv thread. But, I still see the timeout returned for the function call even after increasing the cfg_cli timeout to 4 times the original. Please advice.

Children
Related