Hello,
I am using nrf52832 with nrf Mesh DK. Is there a way to unprovision the board from the hardware or command line and not from the app?
Many thanks in advance ,
Rp
Hello,
I am using nrf52832 with nrf Mesh DK. Is there a way to unprovision the board from the hardware or command line and not from the app?
Many thanks in advance ,
Rp
Hi Rp,
In our app when you click remove node, we will send a "Node Reset" 0x8049 message to the client server on the node to reset the node.
In the nRF52 code you can find the code to handle that message in handle_node_reset(); and node_reset().
If you want to reset a node locally, you can also call node_reset() in your code, either trigger by hardware or command line (if you have an interface).
Note that, this won't tell the provisioner to remove the node itself. I don't think there is a way a node can notify that it's leaving the network. But you can always define your own protocol to do so.
This is clear. I want to know is there a button on a board which can unprovision the board?And how will I come to know about this?
and please note consider that I dont have access to source code but only the binaries.
Yes, button 4 (3 in the code in button_event_handler() ). I'm referring to lightswitch example.
Hi Hung,
I am attempting to reset a provisioned node inside the main function. I took your advice and used the code from the light switch server example (as seen below). Whenever this gets called however I am getting a mesh weak error "app_error_weak.c, 108, Mesh assert at 0x0002BFEE (:0)". I am on the latest SDKs. I figured out that the function causing the error is "mesh_stack_config_clear". Any ideas on why this might be happening or any ideas on another way to reset a provisioned board from the main?
if (mesh_stack_is_device_provisioned()) { #if MESH_FEATURE_GATT_PROXY_ENABLED (void) proxy_stop(); #endif mesh_stack_config_clear(); node_reset(); } else { __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "The device is unprovisioned. Resetting has no effect.\n"); }
Hi Brad,
When you see an error, you can use addr2line to translate the address to the line of code for further debugging. Or you can step inside mesh_stack_config_clear() to see what exactly throwing error.
Have you tested the light switch server example to press button 4 on the board to erase provisioning data ?
Hello ,
is button#4 correct for unprovisioning the node/Please confirm
Thnx
Rp
Hello ,
is button#4 correct for unprovisioning the node/Please confirm
Thnx
Rp
Have you looked at the code ?
thanks it worked !
Great :D