<?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>mesh updates under Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92016/mesh-updates-under-zephyr</link><description>Our devices are provisioned via mesh shell, not over the air so we have to pass the IV index to the mesh provisioning command However, because the current IV index is not known ( no public API that I could find ) index 0 is always passed As a result if</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Sep 2022 09:06:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92016/mesh-updates-under-zephyr" /><item><title>RE: mesh updates under Zephyr</title><link>https://devzone.nordicsemi.com/thread/387027?ContentTypeID=1</link><pubDate>Tue, 20 Sep 2022 09:06:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af319091-4501-4d67-8940-f336a26856da</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andy,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s actually possible to trigger IV index update by using&amp;nbsp;&lt;span&gt;cmd_iv_update_test() ,&amp;nbsp;CONFIG_BT_MESH_IV_UPDATE_TEST need to set to y.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh updates under Zephyr</title><link>https://devzone.nordicsemi.com/thread/386937?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 14:35:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95961092-e7a7-4e81-8327-4f53a90570cb</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;I provisioned 4 devices on Friday.&lt;/p&gt;
&lt;p&gt;Everything works as expected&lt;/p&gt;
&lt;p&gt;So far the index has &amp;#39;t changed.&lt;/p&gt;
&lt;p&gt;This morning I send the mesh iv-update command and got&lt;/p&gt;
&lt;p&gt;mesh iv-update&lt;br /&gt;Transitioned to IV Update Normal state&lt;br /&gt;IV Index is 0x00000000&lt;br /&gt;I&amp;#39;ll let you now in a couple days when the index changes&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Thank you&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh updates under Zephyr</title><link>https://devzone.nordicsemi.com/thread/386829?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 11:24:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5664ba47-a8f4-47d8-84be-25fd05162314</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andy,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Yes as far as I know it&amp;#39;s the feature that supported by the mesh stack by default.&amp;nbsp;&lt;br /&gt;Could you try to test if the IV index only moved to 1&amp;nbsp; or 2 and then you provision a new node with IV index 0 . Would it manage to join the network after provisioning and wait for 10 minutes ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh updates under Zephyr</title><link>https://devzone.nordicsemi.com/thread/386734?ContentTypeID=1</link><pubDate>Sat, 17 Sep 2022 14:11:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d8cf6e4-12c4-4177-82bc-c6bed3d0daff</guid><dc:creator>AndyM</dc:creator><description>[quote userid="2121" url="~/f/nordic-q-a/92016/mesh-updates-under-zephyr/386639"]Basically the node need to listen for Secure Network beacon to update the IV index. I&amp;#39;m not so sure why in your case the node couldn&amp;#39;t update that.&amp;nbsp;[/quote]
&lt;p&gt;This sounds like something that should be handled by the mesh stack. Perhaps there is a config setting that needs to be enabled?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh updates under Zephyr</title><link>https://devzone.nordicsemi.com/thread/386639?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2022 12:14:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dad53fe7-f193-4f8f-a23f-cc35f2fb9454</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andy,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1.&lt;/p&gt;
[quote user=""] Is there a public API to get the current IV index from a provisioned device?[/quote]
&lt;p&gt;As far as I know there isn&amp;#39;t one but you can get the IV index from a node that has&amp;nbsp;&lt;span&gt;CONFIG_BT_MESH_IV_UPDATE_TEST=y&lt;/span&gt;&amp;nbsp;using the following command:&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/9926b90bf6c3642cc37e3b91bf859f75b25a3169/subsys/bluetooth/mesh/shell/shell.c#L559-L572"&gt;https://github.com/zephyrproject-rtos/zephyr/blob/9926b90bf6c3642cc37e3b91bf859f75b25a3169/subsys/bluetooth/mesh/shell/shell.c#L559-L572&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2. I don&amp;#39;t think it&amp;#39;s&amp;nbsp; a good idea. You will break the Bluetooth Mesh spec and will run out of sequence number after some time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. Please have a look at section 3.10.6&amp;nbsp;IV Index Recovery procedure in the Bluetooth mesh profile specification v1.0.1. Basically the node need to listen for Secure Network beacon to update the IV index. I&amp;#39;m not so sure why in your case the node couldn&amp;#39;t update that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is a caveat if the current IV Index is greater than your current IV Index +42 it will not be possible to recover. Please have a look at page 130:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:71px;max-width:668px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1336x142/__key/communityserver-discussions-components-files/4/pastedimage1663330350563v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>