<?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 reset a remote node using the Mesh provisioner example in NCS 1.9.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90019/how-to-reset-a-remote-node-using-the-mesh-provisioner-example-in-ncs-1-9-1</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Feb 2023 15:25:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90019/how-to-reset-a-remote-node-using-the-mesh-provisioner-example-in-ncs-1-9-1" /><item><title>RE: How to reset a remote node using the Mesh provisioner example in NCS 1.9.1</title><link>https://devzone.nordicsemi.com/thread/411166?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2023 15:25:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:def6f9cb-c502-4f56-87f3-b871aabfa469</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Could you show me how you are calling&amp;nbsp;&lt;span&gt;bt_mesh_cfg_node_reset?&amp;nbsp;And I assume&amp;nbsp;you are seeing the same issue when you are simply calling it from the provisioner without the first step of the remote node triggering it?&lt;/span&gt;&lt;/p&gt;
[quote user="Susheel"]Is there a way to manually remove&amp;nbsp;the node from the&amp;nbsp;CDB?[/quote][quote user="Susheel"]Since the callback timesout before it sees the reset status message, the provisioner doesn&amp;#39;t remove the node from its CDB.[/quote]
&lt;p&gt;Well that might depend on the provisioner, but I guess there would be no safe way for it to remove it from CDB without the status message. I do not think&amp;nbsp;&lt;span&gt;bt_mesh_cfg_node_reset does this though, it should be done manually.&amp;nbsp; Use bt_mesh_cdb_node_del to delete the node from CDB. Then refresh the keys.&amp;nbsp;To perform key-refresh, use bt_mesh_cfg_cli_net_key_update to upload a new key to all nodes, then use bt_mesh_cfg_cli_krp_set to switch key-refresh phase on all nodes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It would of course be preferable to find the issue here instead of betting on&amp;nbsp;bt_mesh_cfg_node_reset to function correctly, but giving no response.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reset a remote node using the Mesh provisioner example in NCS 1.9.1</title><link>https://devzone.nordicsemi.com/thread/409943?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 18:36:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c24a420-1897-4e96-a62c-2490e1c156fc</guid><dc:creator>Susheel</dc:creator><description>&lt;p&gt;Also, Please correct me if I am&amp;nbsp;wrong. Since the callback timesout before it sees the reset status message, the provisioner doesn&amp;#39;t remove the node from its CDB. Even though there is no chance for an attack(in my case atleast), I am not going to be able to reuse the address used by the node which got reset.&lt;/p&gt;
&lt;p&gt;Is there a way to manually remove&amp;nbsp;the node from the&amp;nbsp;CDB?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reset a remote node using the Mesh provisioner example in NCS 1.9.1</title><link>https://devzone.nordicsemi.com/thread/409693?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2023 17:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc5478c9-cf21-4a63-93f4-9ddd0e0d7486</guid><dc:creator>Susheel</dc:creator><description>&lt;p&gt;Hello Elfving,&lt;/p&gt;
&lt;p&gt;Sorry about the delay again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This error seems to be coming from &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/5786b63e6ca9b64f2e27308564f0a8737bd4586f/subsys/bluetooth/mesh/msg.c#L70" rel="noopener noreferrer" target="_blank"&gt;line&lt;/a&gt;. Please suggest.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reset a remote node using the Mesh provisioner example in NCS 1.9.1</title><link>https://devzone.nordicsemi.com/thread/401097?ContentTypeID=1</link><pubDate>Fri, 16 Dec 2022 15:30:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a29da9ed-b96d-4d85-9292-f87fb89e82f7</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;I am trying to find what is throwing 116 here. I assume you&amp;#39;ve added the log for these lines in the SDK?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1671204549332v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Could you show me where,&amp;nbsp;so that I know where&amp;nbsp;the 116 is coming from.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reset a remote node using the Mesh provisioner example in NCS 1.9.1</title><link>https://devzone.nordicsemi.com/thread/397825?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 10:35:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:311b42cc-3e2b-44bd-8883-50e9d5268bc3</guid><dc:creator>Susheel</dc:creator><description>&lt;p&gt;Hello Elfving,&lt;/p&gt;
&lt;p&gt;Apologies for the delay. I was able to get some logs from the provisioner. Looks like the reset status message with opcode 0x804A does get published from the remote node (address 0x006 in the attached pic) to the provisioner (address 0x0001) after receiving the reset request with opcode 0x8049. But the timeout occurs before the status gets received.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried increasing the cfg_cli timeout by multiplying it by 100 times. You can see the time difference in the log.&lt;/p&gt;
&lt;p&gt;Please advice.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/reset_5F00_timeout.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reset a remote node using the Mesh provisioner example in NCS 1.9.1</title><link>https://devzone.nordicsemi.com/thread/388783?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 12:55:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d699f7d-76af-46db-a6e6-8a2987707e49</guid><dc:creator>Elfving</dc:creator><description>[quote user="Susheel"]&lt;p&gt;P.S sorry for the delayed responses. I am juggling tasks at the moment.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Hehe likewise, sorry about the delay.&lt;/p&gt;
&lt;p&gt;Have you gotten any further with this? I understand that if it works, it works, though getting a timeout error was a bit surprising.&amp;nbsp;&lt;/p&gt;
&lt;div&gt;The config client shall receive a Config Node Reset Status message after sending a Config Node Reset.&lt;/div&gt;
&lt;p&gt;With the hardfault being fixed, is there any other relevant log coming from the node that is being reset?&amp;nbsp;If the node fails to send the status message (and it still resets) it should be observable &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/3110aa3a93171ce0e5bc62a1e37cf3235fac1e86/subsys/bluetooth/mesh/cfg_srv.c#L2077-L2111"&gt;in the logs&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reset a remote node using the Mesh provisioner example in NCS 1.9.1</title><link>https://devzone.nordicsemi.com/thread/386475?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2022 23:33:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ce4a5cd-9e82-44f5-8907-6424ebf29c7a</guid><dc:creator>Susheel</dc:creator><description>&lt;p&gt;Hello Elfving, I have increased my configuration timeout but, I still see -116 being returned.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have found that my remote node in fact resets due to a hard fault when it receives the reset command. Any idea why?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1663284704355v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;P.S sorry for the delayed responses. I am juggling tasks at the moment.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reset a remote node using the Mesh provisioner example in NCS 1.9.1</title><link>https://devzone.nordicsemi.com/thread/384580?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2022 12:41:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4646ff71-f861-4437-9cf0-a65743ec175b</guid><dc:creator>Elfving</dc:creator><description>[quote user="Susheel"]The remote node does reset and starts to broadcast unprovisioned beacons.[/quote]
&lt;p&gt;At least that sounds promising.&lt;/p&gt;
&lt;p&gt;Could you try increasing the timeout using bt_mesh_cfg_cli_timeout_set and see if that makes a difference?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reset a remote node using the Mesh provisioner example in NCS 1.9.1</title><link>https://devzone.nordicsemi.com/thread/384373?ContentTypeID=1</link><pubDate>Thu, 01 Sep 2022 17:08:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5ae81a7-062e-49b6-8c8b-310840fe491c</guid><dc:creator>Susheel</dc:creator><description>&lt;p&gt;Hello Elfving,&lt;/p&gt;
&lt;p&gt;Sorry for the delay again. Just got some time to test this. I do not get this error from any other configuration calls to this node. The remote node does reset and starts to broadcast unprovisioned beacons.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Susheel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reset a remote node using the Mesh provisioner example in NCS 1.9.1</title><link>https://devzone.nordicsemi.com/thread/381594?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 13:19:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcda4e23-e5d5-4eae-a340-07a4d0ea74b7</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello, no problem at all.&lt;/p&gt;
[quote user="Susheel"]I get an error code&amp;nbsp;-ETIMEDOUT(-116) returned from this function call. Is that expected?[/quote]
&lt;p&gt;I don&amp;#39;t think so. Are you getting the same error from any other similar calls to this node, like&amp;nbsp;&lt;span&gt;bt_mesh_cfg_beacon_get?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reset a remote node using the Mesh provisioner example in NCS 1.9.1</title><link>https://devzone.nordicsemi.com/thread/381255?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2022 02:28:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be679d80-b2a2-4979-b917-9c46349d2953</guid><dc:creator>Susheel</dc:creator><description>&lt;p&gt;Hello Elfving,&lt;/p&gt;
&lt;p&gt;Apologies for the delay. I did get a chance to test this code and it seems to work fine except, I get an error code&amp;nbsp;-ETIMEDOUT(-116) returned from this function call. Is that expected?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reset a remote node using the Mesh provisioner example in NCS 1.9.1</title><link>https://devzone.nordicsemi.com/thread/377938?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2022 18:14:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20cb6423-f9d6-42d5-b10a-0adb50ad8ed7</guid><dc:creator>Susheel</dc:creator><description>&lt;p&gt;Thank you Elfving, I was not aware of this function. Let me try it out. I will let you know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reset a remote node using the Mesh provisioner example in NCS 1.9.1</title><link>https://devzone.nordicsemi.com/thread/377849?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2022 12:01:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e4478d2-8d4c-4da0-8af9-ac6bb73d0831</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;I see. Well this should be rather straight-forward. Make a custom vendor model that sends a message to the provisioner, and then make the provisioner use &lt;span&gt;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/bluetooth/api/mesh/cfg_cli.html?highlight=node%20reset#c.bt_mesh_cfg_node_reset"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;bt_mesh_cfg_&lt;span&gt;node&lt;/span&gt;_&lt;span&gt;reset&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;/span&gt; on the return address.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reset a remote node using the Mesh provisioner example in NCS 1.9.1</title><link>https://devzone.nordicsemi.com/thread/377631?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2022 12:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d940d6d6-2078-47f1-aa6f-9728475c2c96</guid><dc:creator>Susheel</dc:creator><description>&lt;p&gt;Hello Elfving,&lt;/p&gt;
&lt;p&gt;Yes, the remote node needs to be unprovisioned.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Susheel&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reset a remote node using the Mesh provisioner example in NCS 1.9.1</title><link>https://devzone.nordicsemi.com/thread/377628?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2022 12:41:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:383ac28f-4cfa-467d-b0a1-dcda238c1cc5</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;So the node mentioned in step 1 is the one to be reset at the end?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reset a remote node using the Mesh provisioner example in NCS 1.9.1</title><link>https://devzone.nordicsemi.com/thread/377197?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 12:27:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e392167-de3b-4c91-b0c6-1a87493e4bb9</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will get back to you on this. Note that w&lt;/span&gt;&lt;span&gt;e have entered the summer holiday period in Norway so staffing is low, some delayed response time should be expected.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>