<?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 re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50251/how-to-re-provision-a-node-to-same-address-with-nrf52840-dk-board-in-mesh</link><description>i&amp;#39;m using nRF mesh sdk v2.1.1 with 2 boards and 1 provisioner board. I have un-provisioned 1 board with the help of config_client_node_reset(). I want to know the procedure to re-provision the unprovisioned node with same address.Please give me solution</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Aug 2019 05:18:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50251/how-to-re-provision-a-node-to-same-address-with-nrf52840-dk-board-in-mesh" /><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/202292?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2019 05:18:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1af6bad-690a-4d7a-b741-df5b36366ddf</guid><dc:creator>Sash</dc:creator><description>&lt;p&gt;i have deleted devkey with this function while the provision complete, it has worked.Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/202195?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 14:23:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31c7a3ed-9f64-4055-b146-76bef12bcc50</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;So what happened when you call&amp;nbsp;dsm_devkey_delete() for that handle ? Have you stepped into the code ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/202079?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 09:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cbf3f57-1f81-48c8-865e-657000121b32</guid><dc:creator>Sash</dc:creator><description>&lt;p&gt;devkey for first provisioned node is not deleted if i use dsm_devkey_delete().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/201650?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 14:34:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:985d5161-3b16-4b40-bf57-f2a3198d0767</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Yes, correct.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/201600?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 13:09:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dac3385-3ecb-4f8a-801e-3a6374749438</guid><dc:creator>Sash</dc:creator><description>&lt;p&gt;ok i understand about dsm_clear() now, should i call dsm_devkey_delete() next to config_client_node_rest() in provisioner main.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/201595?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 13:05:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f74ccba-5efe-4642-b263-9c2cd783fba1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure why you mention dsm_clear() here ?&lt;/p&gt;
&lt;p&gt;dsm_clear() is to be called on the provisionee (the node to be removed) not the provisioner.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/201528?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 11:19:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:779fff8b-16aa-4941-9125-a0b150647275</guid><dc:creator>Sash</dc:creator><description>&lt;p&gt;ok, what you saying is, i have to call sdm_devkey_delete() after config_client_code_reset() in provisioner main.c but the dsm_devkey)delete() contains handle parameter. dsm_clear() will not delete this devkey?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/201452?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 08:50:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98986631-60b0-4dbb-b316-e0b53021ad9a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;When you remove the node (calling&amp;nbsp;&lt;span&gt;config_client_node_reset() ) you can delete the device key in the dsm list on the provisioner by calling&amp;nbsp;dsm_devkey_delete()&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/201331?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 15:30:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffdf8ba3-1a99-41f9-81d3-7990d1da09f0</guid><dc:creator>Sash</dc:creator><description>&lt;p&gt;where should i need to call this dsm_devkey_delete()&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/201303?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 14:16:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8c1cc74-0d4e-4921-abaa-89bf171f587f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Call this&amp;nbsp;dsm_devkey_delete()&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/201254?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 12:59:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e4046b7-4d32-4a1e-b972-58672e942441</guid><dc:creator>Sash</dc:creator><description>&lt;p&gt;when provision first time the devkey is 9D F7 CC 2D C8 E8 B4 AA 66 C7 DC 41 40 9D AD 4E 00 and p_devkey address is 0x200036E0. After re-provision with same node address the devkey becomes AA 36 22 75 76 7D 55 34 4A 75 33 13 42 A8 1A 8E 00 and p_devkey address is &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;0x200036E0.&amp;nbsp;&lt;/span&gt;how to remove the address from device key list.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/201253?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 12:56:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28f04440-d215-41be-8b36-5c4612085b29</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I saw in the log you post ealier, there is some log about node reset on the provisioner for example:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;lt;t: 532066&amp;gt;, main.c, 702, Button 4 pressed&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;lt;t: 532068&amp;gt;, main.c, 716, ----- Node reset -----&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;lt;t: 532078&amp;gt;, main.c, 721, ----- Press reset button or power cycle the device -----&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;lt;t: 532081&amp;gt;, main.c, 728, Setup start after reset&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;lt;t: 532083&amp;gt;, main.c, 731, Waiting for node to be provisioned ...&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;lt;t: 532086&amp;gt;, provisioner_helper.c, 287, Scanning For Unprovisioned Devices&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please explain this.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regarding&amp;nbsp;devkey_handle, please debug the call to&amp;nbsp;dsm_devkey_add() inside&amp;nbsp;NRF_MESH_PROV_EVT_COMPLETE event handler in&amp;nbsp;prov_evt_handler(). And check if the&amp;nbsp;p_devkey in that call, would be exactly the same at the&amp;nbsp;p_devkey when you first provision the device. Also please check if&amp;nbsp;dsm_devkey_add () return NRF_SUCCESS or it actually return&amp;nbsp;NRF_ERROR_FORBIDDEN&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What I can see in the code of&amp;nbsp;dsm_devkey_add is that if the address is already inside the list of device keys, then the call&amp;nbsp;dev_key_handle_get() will return the handle and it will trigger&amp;nbsp;&amp;nbsp;NRF_ERROR_FORBIDDEN.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You would need to make sure the address is removed from the device key list.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/201242?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 12:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9de37744-ae51-4180-bd29-cac806f2ce9f</guid><dc:creator>Sash</dc:creator><description>&lt;p&gt;i&amp;#39;m resetting provisionee node (unprovision from network) by calling config_client_node_reset().I have successfully unprovisioned the node, I facing the issue, when i start provision to same address it provision to (address: 0x0100) same address but devkey_handle becomes 0 instead of 2.Can you please clarify why the devkey_handle becomes 0 when i re-provision the node with same address.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Please describe what exactly your code doing.&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m simply reset a node using config_client_node_reset() from provisioner and trying to re-provision it to same address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/201218?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 11:43:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29c732a2-1cdc-4939-9900-01c983437cc5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure I understand what you are doing. Are you saying you resetting the provisioner node ? Why would you reset the provisioner node ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My understanding is that you want to reset the provisionee node, a normal node in the network. To reset a normal node (reset means remove/unprovision it from the network) you call config_client_node_reset() inside the config client.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This (command with&amp;nbsp;CONFIG_OPCODE_NODE_RESET opcode) will be handled by the config server on the node to be reset.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please describe what exactly your code doing.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/201040?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 15:31:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33f90b01-2608-4ced-a9c0-6125962add4f</guid><dc:creator>Sash</dc:creator><description>&lt;p&gt;i have added the code which was in check_network_state function for provisioned_device =0, after reset a node by pressing button 4 from main.c. If i do like this i got error for devkey_handle.can you just help me to solve this devkey_handle issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/200974?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 13:03:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73b19ca7-166e-4519-aacc-36276f8a63c3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;This is something out of spec so you will be on your own if you want to do this. We unfortunately don&amp;#39;t have the resource to provide you the detailed instruction on how to do it. You would need to look into the provisioner code and find where we assign the address of the new node. Look for&amp;nbsp;next_device_address in the provisioner example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure your logging is about, why you have&amp;nbsp;&lt;span&gt;Flash remove complete&amp;nbsp; ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What you need to test first is to remove a node and add the node back as a new node with incremental address. After you can do that, you can start to modify to add the new node with the original address.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/200963?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 12:31:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:054c0244-c3d3-4b68-bd27-39b34661fa83</guid><dc:creator>Sash</dc:creator><description>&lt;p&gt;&amp;lt;t: 461821&amp;gt;, provisioner_helper.c, 287, Scanning For Unprovisioned Devices&lt;br /&gt;&amp;lt;t: 461857&amp;gt;, main.c, 118, Flash write complete&lt;br /&gt;&amp;lt;t: 532066&amp;gt;, main.c, 702, Button 4 pressed&lt;br /&gt;&amp;lt;t: 532068&amp;gt;, main.c, 716, ----- Node reset -----&lt;br /&gt;&amp;lt;t: 532078&amp;gt;, main.c, 721, ----- Press reset button or power cycle the device -----&lt;br /&gt;&amp;lt;t: 532081&amp;gt;, main.c, 728, Setup start after reset &lt;br /&gt;&amp;lt;t: 532083&amp;gt;, main.c, 731, Waiting for node to be provisioned ...&lt;br /&gt;&amp;lt;t: 532086&amp;gt;, provisioner_helper.c, 287, Scanning For Unprovisioned Devices&lt;br /&gt;&amp;lt;t: 534849&amp;gt;, main.c, 146, Flash remove complete&lt;br /&gt;&amp;lt;t: 535156&amp;gt;, main.c, 460, Config client event&lt;br /&gt;&amp;lt;t: 613530&amp;gt;, provisioner_helper.c, 144, UUID seen: 0059000000000000975B2B98BE9A8FF2&lt;br /&gt;&amp;lt;t: 613533&amp;gt;, provisioner_helper.c, 95, UUID filter matched&lt;br /&gt;&amp;lt;t: 614293&amp;gt;, provisioner_helper.c, 264, Provisioning link established&lt;br /&gt;&amp;lt;t: 693378&amp;gt;, provisioner_helper.c, 259, Static authentication data provided&lt;br /&gt;&amp;lt;t: 704892&amp;gt;, provisioner_helper.c, 192, Provisioning completed received&lt;br /&gt;&amp;lt;t: 704895&amp;gt;, provisioner_helper.c, 197, Adding device address, and device keys&lt;br /&gt;&amp;lt;t: 704898&amp;gt;, provisioner_helper.c, 200, Address: 0x0100 &lt;br /&gt;&amp;lt;t: 704900&amp;gt;, provisioner_helper.c, 203, devkey_handle:0&lt;br /&gt;&amp;lt;t: 627593&amp;gt;, app_error_weak.c, 103, Mesh error 15 at 0x00027FF1&lt;/p&gt;
&lt;p&gt;(Error in line:\provisioner\src\provisioner_helper.c:203)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It seems device key handle gets 0 if i reset the node and re-provision it.How to solve this problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to re-provision a node to same address with nRF52840 DK board in mesh</title><link>https://devzone.nordicsemi.com/thread/200786?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 13:44:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f833c93-4166-4217-a534-4568d7005fca</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mesh spec has no guide regarding this. By the spec, the address of a newly provisioned node should be the&amp;nbsp;increment of the last provisioned node.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But it should be possible to provision with the previous address. You need to modify the provisioner code to store the database and when you re-provision the unprovisioned node you use the same address.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>