<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to unprovision nrf Mesh DK board using the hardware?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44410/how-to-unprovision-nrf-mesh-dk-board-using-the-hardware</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Oct 2019 11:32:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44410/how-to-unprovision-nrf-mesh-dk-board-using-the-hardware" /><item><title>RE: How to unprovision nrf Mesh DK board using the hardware?</title><link>https://devzone.nordicsemi.com/thread/212800?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 11:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52b11d8c-a3d1-452e-b10b-20329d628645</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Great :D&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to unprovision nrf Mesh DK board using the hardware?</title><link>https://devzone.nordicsemi.com/thread/212787?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 10:50:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:158be63c-cf0e-49a0-bab4-8f8dcbb843e6</guid><dc:creator>raulp</dc:creator><description>&lt;p&gt;thanks it worked !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to unprovision nrf Mesh DK board using the hardware?</title><link>https://devzone.nordicsemi.com/thread/211588?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 14:53:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28f9c79a-37be-4be7-9668-7a86941eb24e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Have you looked at the code ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to unprovision nrf Mesh DK board using the hardware?</title><link>https://devzone.nordicsemi.com/thread/211176?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 09:46:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8477f41f-fb31-49c9-8945-55f172f85331</guid><dc:creator>raulp</dc:creator><description>&lt;p&gt;Hello ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;is button#4 correct for unprovisioning the node/Please confirm&lt;/p&gt;
&lt;p&gt;Thnx&lt;/p&gt;
&lt;p&gt;Rp&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to unprovision nrf Mesh DK board using the hardware?</title><link>https://devzone.nordicsemi.com/thread/175585?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 09:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b928544d-9891-4d89-a2b6-4e43f5554963</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Brad,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;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.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tested the light switch server example to press button 4 on the board to erase provisioning data ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to unprovision nrf Mesh DK board using the hardware?</title><link>https://devzone.nordicsemi.com/thread/175488?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 20:48:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b2561a2-8d11-4ad0-81bd-546b69f7591e</guid><dc:creator>BubDev</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;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&amp;nbsp;&amp;nbsp;&amp;quot;app_error_weak.c, 108, Mesh assert at 0x0002BFEE (:0)&amp;quot;. I am on the latest SDKs. I figured out that the function causing the error is &amp;quot;mesh_stack_config_clear&amp;quot;. Any ideas on why this might be happening or any ideas on another way to reset a provisioned board from the main?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt; 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, &amp;quot;The device is unprovisioned. Resetting has no effect.\n&amp;quot;);
            }
         &lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to unprovision nrf Mesh DK board using the hardware?</title><link>https://devzone.nordicsemi.com/thread/174964?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2019 08:54:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:249dc5ad-935c-4122-998b-5bf36ba6dfc0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Yes, button 4 (3 in the code in &lt;span&gt;button_event_handler()&amp;nbsp;&lt;/span&gt;).&amp;nbsp; I&amp;#39;m referring to lightswitch example.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to unprovision nrf Mesh DK board using the hardware?</title><link>https://devzone.nordicsemi.com/thread/174886?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 17:26:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c61efe32-0bb5-46c8-ab91-a5710e685da2</guid><dc:creator>raulp</dc:creator><description>&lt;p&gt;and please note consider that I dont have access to source code but only the binaries.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to unprovision nrf Mesh DK board using the hardware?</title><link>https://devzone.nordicsemi.com/thread/174884?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 17:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff4ff47c-74a8-44ab-a271-7db5281fb6a0</guid><dc:creator>raulp</dc:creator><description>&lt;p&gt;Hello ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I had a look at it but I am not getting how it is related with my question?&lt;/p&gt;
&lt;p&gt;My question is simple&lt;/p&gt;
&lt;p&gt;&amp;quot;Is there any hardware button on the nrf5832 evaluation board which can un-provision the board&amp;quot; ?&lt;/p&gt;
&lt;p&gt;Yes or No.&lt;/p&gt;
&lt;p&gt;If Yes , then How?&lt;/p&gt;
&lt;p&gt;many thanks in advance !&lt;/p&gt;
&lt;p&gt;Rp&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to unprovision nrf Mesh DK board using the hardware?</title><link>https://devzone.nordicsemi.com/thread/174760?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 09:53:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a76677b9-2dfa-432c-9481-3a92ffb4a9dc</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Raul,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My mistake, the&amp;nbsp;&lt;span&gt;node_reset() only restart the node (CPU reset) not erasing the provisioning data.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Provisioning data can be erased using&amp;nbsp;mesh_stack_config_clear()&amp;nbsp; ( this is what used in&amp;nbsp;handle_node_reset -&amp;gt;&amp;nbsp;apply_reset() )&amp;nbsp;&lt;br /&gt;You can refer to button 3 handler in&amp;nbsp;button_event_handler() in light switch server.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;No, power reset won&amp;#39;t unconfigure the device.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to unprovision nrf Mesh DK board using the hardware?</title><link>https://devzone.nordicsemi.com/thread/174642?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 17:08:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08becaee-5b1b-4ba1-ae45-6936e09d1548</guid><dc:creator>raulp</dc:creator><description>&lt;p&gt;yes&amp;nbsp; its like :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;node_reset&amp;gt; mesh_stack_device_reset&amp;gt; device_reset&amp;gt; hal_device_reset&lt;/p&gt;
&lt;p&gt;void hal_device_reset(uint8_t gpregret_value)&lt;br /&gt;{&lt;br /&gt;#if defined(SOFTDEVICE_PRESENT)&lt;br /&gt; &lt;strong&gt;(void) sd_power_reset_reason_clr(RESET_REASON_MASK); /* avoid wrongful state-readout on reboot */&lt;/strong&gt;&lt;br /&gt;#if defined(S130) || defined(S110)&lt;br /&gt; (void) sd_power_gpregret_set(gpregret_value);&lt;br /&gt;#elif defined(S132)&lt;br /&gt; (void) sd_power_gpregret_set(gpregret_value, RESET_REASON_MASK);&lt;br /&gt;#endif&lt;br /&gt; (void) sd_nvic_SystemReset();&lt;br /&gt;#else&lt;br /&gt; NRF_POWER-&amp;gt;RESETREAS = RESET_REASON_MASK; /* avoid wrongful state-readout on reboot */&lt;br /&gt; NRF_POWER-&amp;gt;GPREGRET = gpregret_value;&lt;br /&gt; NVIC_SystemReset();&lt;br /&gt;#endif&lt;br /&gt; NRF_MESH_ASSERT(false);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;So as per this , power reset (from the hardware) will unconfigure the device? Plz elaborate.&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Rp&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to unprovision nrf Mesh DK board using the hardware?</title><link>https://devzone.nordicsemi.com/thread/174490?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 10:12:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0146f8e-5572-49f5-bc4b-7ced081d400a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Raulp,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you checked the &lt;span&gt;node_reset()&amp;nbsp;&lt;/span&gt;function I pointed to ? It&amp;#39;s located in main.c in the lightswitch server example .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to unprovision nrf Mesh DK board using the hardware?</title><link>https://devzone.nordicsemi.com/thread/174373?ContentTypeID=1</link><pubDate>Tue, 05 Mar 2019 18:06:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:636d6a0d-0224-4f1d-9577-338891f53274</guid><dc:creator>raulp</dc:creator><description>&lt;p&gt;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?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to unprovision nrf Mesh DK board using the hardware?</title><link>https://devzone.nordicsemi.com/thread/174347?ContentTypeID=1</link><pubDate>Tue, 05 Mar 2019 16:03:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19b25cd7-872d-4c73-b247-d0a419b891ef</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Rp,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In our app when you click remove node, we will send a &amp;quot;Node Reset&amp;quot; 0x8049 message to the client server on the node to reset the node.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the nRF52 code you can find the code to handle that message in&amp;nbsp;handle_node_reset(); and&amp;nbsp;node_reset().&lt;/p&gt;
&lt;p&gt;If you want to reset a node locally, you can also call&amp;nbsp;node_reset() in your code, either trigger by hardware or command line (if you have an interface).&lt;/p&gt;
&lt;p&gt;Note that, this won&amp;#39;t tell the provisioner to remove the node itself. I don&amp;#39;t think there is a way a node can notify that it&amp;#39;s leaving the network. But you can always define your own protocol to do so.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>