<?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>Unable to receive publish from server after unprovision and re-provision the same node</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49806/unable-to-receive-publish-from-server-after-unprovision-and-re-provision-the-same-node</link><description>Hello, I&amp;#39;ve developed a BLE Mesh Network using the NRF MESH 3.1.0 SDK and the nR5F SDK 15.2.0. My network has 1 client node and max 63 server nodes: I&amp;#39;m using the generic on-off model to implement a light switch. I&amp;#39;ve found this strange behaviour: If</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Sep 2019 08:16:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49806/unable-to-receive-publish-from-server-after-unprovision-and-re-provision-the-same-node" /><item><title>RE: Unable to receive publish from server after unprovision and re-provision the same node</title><link>https://devzone.nordicsemi.com/thread/210857?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 08:16:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62ea6d36-d8ea-47c9-b2fb-6ae332f83d29</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;No problem.&amp;nbsp;&lt;br /&gt;Sorry about the confusion!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll close the case for now. If you have any further questions, you are welcome to create a new ticket.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to receive publish from server after unprovision and re-provision the same node</title><link>https://devzone.nordicsemi.com/thread/210826?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 06:14:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ea3b30d-52a5-41f9-b702-26ebe70e05dd</guid><dc:creator>Andrea Pieretti</dc:creator><description>&lt;p&gt;Ok, Thank you for the feedback.&lt;/p&gt;
&lt;p&gt;In my case, I will take the risk ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to receive publish from server after unprovision and re-provision the same node</title><link>https://devzone.nordicsemi.com/thread/210816?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 05:24:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afd58b84-9b5b-4e4f-82fb-9482cabd5d59</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi again!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I might have misunderstood the feedback from our Mesh team.&amp;nbsp;&lt;/p&gt;
[quote user="Joakim-Jakobsen"]Secondly, your suggestion of clearing of the replay list of the client after re-provisioning the server node is not valid. Because for a node which is provisioned, replay list should not be cleared manually.[/quote]
&lt;p&gt;&amp;nbsp;This was not quite correct from my side.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If your application is able to tolerate the risk of clearing the replay cache, you can clear the replay list manually. Note that this will have implications for the replay protection.&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to receive publish from server after unprovision and re-provision the same node</title><link>https://devzone.nordicsemi.com/thread/207797?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 07:24:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41b16ae6-efea-4eda-8280-0d38eb502a01</guid><dc:creator>Andrea Pieretti</dc:creator><description>&lt;p&gt;Thank you for the feedback.&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;I understand what happens, but waiting the correct sequence number from the server will cause the loss of many messagges.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;If I can&amp;#39;t clear the replay list, how can I fix this?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to receive publish from server after unprovision and re-provision the same node</title><link>https://devzone.nordicsemi.com/thread/207787?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 06:40:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50dfe56c-01d7-4fd0-9f83-dcb049119f1e</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Got some feedback on this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After you unprovision the server node, and reprovision it, this will cause sequence number on the server nodes to reset to zeros. Therefore all the messages sent by the server nodes will get filtered by the replay protection mechanism of the client node. This will continue to happen until the server node starts sending messages with a higher sequence number than the one stored in the client&amp;#39;s replay list.&lt;/p&gt;
&lt;p&gt;Secondly, your suggestion of clearing of the replay list of the client after re-provisioning the server node is not valid. Because for a node which is provisioned, replay list should not be cleared manually.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to receive publish from server after unprovision and re-provision the same node</title><link>https://devzone.nordicsemi.com/thread/202548?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 09:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c844e1f6-29a9-48e0-a880-7e9faa28b2f5</guid><dc:creator>Andrea Pieretti</dc:creator><description>&lt;p&gt;Ok, &lt;/p&gt;
&lt;p&gt;please let me know when you&amp;#39;ve some news&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to receive publish from server after unprovision and re-provision the same node</title><link>https://devzone.nordicsemi.com/thread/202143?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 12:27:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d3037da-3404-43e7-b7a1-e2f75a581513</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry about the delay here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Your question have been forwarded to our Mesh developers so that they can confirm this.&amp;nbsp;&lt;br /&gt;I&amp;#39;ll get back to you when I have more information from them.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to receive publish from server after unprovision and re-provision the same node</title><link>https://devzone.nordicsemi.com/thread/201632?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 13:47:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:089149cf-3680-4f5e-8faa-48963c16321a</guid><dc:creator>Andrea Pieretti</dc:creator><description>&lt;p&gt;Any news?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to receive publish from server after unprovision and re-provision the same node</title><link>https://devzone.nordicsemi.com/thread/200475?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 10:37:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d91c4225-3277-425c-89fa-a4f28fa404ce</guid><dc:creator>Andrea Pieretti</dc:creator><description>&lt;p&gt;The Nordic app sets always a new address during provisioning.&lt;br /&gt;&lt;br /&gt;However, I think that the problem is due by the &lt;strong&gt;m_replay_cache&lt;/strong&gt; list, which is an 64 element array in my case.&lt;br /&gt;&lt;br /&gt;Le me explain you:&lt;br /&gt;in transport.c, the function &lt;strong&gt;transport_packet_in&lt;/strong&gt; is called when e mesh network message is received.&lt;br /&gt;&lt;br /&gt;Inside this function i&amp;#39;&amp;#39;ve noted that &lt;strong&gt;replay_cache_has_elem&lt;/strong&gt; returns &lt;strong&gt;false&lt;/strong&gt;, because It find other element with the same source address and that not respect the Mesh Profile Specification below&lt;br /&gt;&lt;br /&gt;&lt;em&gt;/* According to Mesh Profile Specification v1.0 Section 3.8.8, we should discard packets&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp;* coming IV indexes lower than a previous packet from the same source as well as&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp;* packets on the same IV index with lower sequence numbers. */&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;The node reset cause the clear of the &lt;strong&gt;m_replay_cache&lt;/strong&gt; list inside the function &lt;strong&gt;replay_cache_clear&lt;/strong&gt;, called by the &lt;strong&gt;replay_cache_init&lt;/strong&gt; function.&lt;br /&gt;&lt;br /&gt;I think that a call of the &lt;strong&gt;replay_cache_clear&lt;/strong&gt; function after a node provision can solve my problem&lt;br /&gt;&lt;br /&gt;Am I correct?&lt;br /&gt;&lt;br /&gt;Are there any hidden drawbacks?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to receive publish from server after unprovision and re-provision the same node</title><link>https://devzone.nordicsemi.com/thread/199850?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 14:28:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b462f0df-5d9f-4112-8b20-a00819f76060</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Ok, I haven&amp;#39;t been able to reproduce this using the Nordic nRF Mesh app. Are you seeing the same behavior if you use our app to &amp;quot;re-provision&amp;quot; the node?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to receive publish from server after unprovision and re-provision the same node</title><link>https://devzone.nordicsemi.com/thread/199676?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 08:06:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd719a64-2ec5-4140-9771-9b72b962a7f6</guid><dc:creator>Andrea Pieretti</dc:creator><description>&lt;p&gt;I&amp;#39;m provisioning the devices using the smartphone with our app, which is based on Nordic Libraries.&lt;br /&gt;&lt;br /&gt;I see that this behaviour happens especially when I re-provision a node with the same address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to receive publish from server after unprovision and re-provision the same node</title><link>https://devzone.nordicsemi.com/thread/198955?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 12:02:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f56499b6-4ece-495c-b49b-5b22c109656a</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t seen this issue before. I wasn&amp;#39;t able to reproduce it either.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How are you provisioning the devices? Are you using the nRF Mesh app or the static provisioning example in the SDK?&lt;/p&gt;
&lt;p&gt;I can ask our Mesh team if they have seen something similar and if this is a known issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim Jakobsen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>