<?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>Provisioning a mesh node after IV index update</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96975/provisioning-a-mesh-node-after-iv-index-update</link><description>Hi 
 I have a mesh network provisioned with the mesh shell. It has 30 nodes, all with relay enabled 
 Everything works as expected. The network has been running for 30 days now and it works as expected i.e the messages from all nodes reach their destination</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Feb 2023 19:29:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96975/provisioning-a-mesh-node-after-iv-index-update" /><item><title>RE: Provisioning a mesh node after IV index update</title><link>https://devzone.nordicsemi.com/thread/411780?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 19:29:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2009c694-42d2-4a64-a592-34fab9f3f570</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Thank you for clarification&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioning a mesh node after IV index update</title><link>https://devzone.nordicsemi.com/thread/411743?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 16:33:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57d506db-cdf3-4d96-9b75-9a128aac68eb</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hi, IV Index is passed through Provisioning Data. The provisioner&amp;#39;s IV Index will be passed to the provisioning device. There is no need to do it manually.&lt;/p&gt;
&lt;p&gt;cmd_iv_update_test enables Test mode, which will turn off 96 hours check. cmd_iv_update_test will toggle IV Update state (Normal -&amp;gt; In progress -&amp;gt; Normal).&lt;/p&gt;
&lt;p&gt;If you bring the provisioner to the network after a gap of IV updates, you need to give it some time to receive at least one beacon and recover the current IV index.&lt;/p&gt;
&lt;p&gt;Depending on the situation of the network it can take upto 10 minutes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioning a mesh node after IV index update</title><link>https://devzone.nordicsemi.com/thread/411726?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 15:49:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:779dbb76-af4b-4426-b080-b483160d65b5</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;I think the right way is to pass the IV Index to the mesh shell command. I&amp;#39;m not an expert in the shell, but the only occurrence of IV Index is here:&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/3.2.0/connectivity/bluetooth/api/mesh/shell.html#mesh-prov-local-netkeyindex-addr-ivindex"&gt;https://docs.zephyrproject.org/3.2.0/connectivity/bluetooth/api/mesh/shell.html#mesh-prov-local-netkeyindex-addr-ivindex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regarding the other methods -&amp;nbsp;I&amp;#39;ll pass the question to the mesh team.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioning a mesh node after IV index update</title><link>https://devzone.nordicsemi.com/thread/411718?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 15:34:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:820b3220-a59a-46fa-a711-f97a17824016</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;As I mentioned, I provision my nodes with the mesh shell so there is no mobile phone.&lt;/p&gt;
&lt;p&gt;One option is to pass the IV index to&amp;nbsp;the mesh shell command&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If my understanding is correct it can be obtained from cmd_iv_update_test from the&amp;nbsp; node that has been on the network prior to the one being provisioned.&lt;/p&gt;
&lt;p&gt;Another option is to call&amp;nbsp;cmd_iv_update_test or&amp;nbsp;cmd_iv_update on the newly provisioned node.&lt;/p&gt;
&lt;p&gt;Which method is preferred?&lt;/p&gt;
&lt;p&gt;Also, it&amp;#39;s not clear what the difference is between &lt;span&gt;cmd_iv_update_test or&amp;nbsp;&lt;/span&gt;&lt;span&gt;cmd_iv_update&amp;nbsp; - which one should be used to trigger an IV index update?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioning a mesh node after IV index update</title><link>https://devzone.nordicsemi.com/thread/411625?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 10:54:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ae717bb-8769-4a2e-b63a-2d1332fb0069</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote userid="77539" url="~/f/nordic-q-a/96975/provisioning-a-mesh-node-after-iv-index-update"]it updates every 96 hours if I&amp;#39; m not mistaken[/quote]
&lt;p&gt;An IV Index Update must not be started more often than every 192 hours. The Normal Operation must last AT LEAST 96 hours and the Update Active phase must additionally be AT MOST 144h. The IV Update should be initiated by a node which reached around 50% of it&amp;#39;s available SEQ number. With that assumption it should use the same amount of time to go to 100% and exhaust available SEQ numbers, so an IV Update is necessary. It has been calculated, that with some assumptions (number of packets per second) it won&amp;#39;t take less then ~96h.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The IV Update procedure is initiated by any node that is a member of a primary subnet. This may be done when the node believes it is at risk of exhausting its sequence numbers, or it determines another node is close to exhausting its sequence numbers. The node changes its IV Index and sends an indication to other nodes in the mesh that the IV Index is being updated.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;If the nodes are sending messages less frequently, the duration of normal operation may take longer time.&lt;/p&gt;
[quote userid="77539" url="~/f/nordic-q-a/96975/provisioning-a-mesh-node-after-iv-index-update"]Is my understanding correct that the addition of a node with&amp;nbsp; index 0 into the network with a higher IV index will trigger the IV index update in that node? If yes - how long does it usually take?[/quote]
&lt;p&gt;&lt;strong&gt;The current IV Index is sent to an unprovisioned node during provisioning in encrypted data&lt;/strong&gt; together with its Unicast Address and the Network Key. So a new node should know the current IV Index from the beginning. Mind, that the Provisioner needs to know the IV Index before it starts provisioning. A node can update its IV Index by at most 42, but the required time needs to pass (96h per step)&lt;/p&gt;
[quote userid="77539" url="~/f/nordic-q-a/96975/provisioning-a-mesh-node-after-iv-index-update"]Are there any&amp;nbsp; build configuration parameters that need to be enabled for this to happen ?[/quote]
&lt;p&gt;&lt;strong&gt;You may need to connect the Provisioner to a Prox&lt;/strong&gt;y (assuming you&amp;#39;re using a mobile phone) &lt;strong&gt;so that it receives a Secure Network Beacon with the current IV Index&lt;/strong&gt; and only then start provisioning.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>