<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/87923/iv-index-and-lpn-devices-that-leave-mesh</link><description>Hello, We&amp;#39;re developing an LPN product that will leave the mesh and stay off the mesh for up to 3 days (possibly more). When it rejoins the mesh, the central server/gateway could have some resets in between. Is there a chance the IV index will prevent</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Thu, 02 Jun 2022 17:43:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/87923/iv-index-and-lpn-devices-that-leave-mesh" /><item><title>RE: IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/thread/370751?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 17:43:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:361fbc62-2fd3-4226-a6ee-eba231edb630</guid><dc:creator>user99042</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;It&amp;#39;s worth noting that we took the advice from another thread and set NETWORK_SEQNUM_FLASH_BLOCK_SIZE from 8192 and changed it to 512.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I added in the sequence number/IV index&lt;br /&gt;&lt;br /&gt;I&amp;#39;ll repeat this with units with a fresh IV index and see if there&amp;#39;s any hints there.&lt;br /&gt;&lt;br /&gt;Let me know if there&amp;#39;s anywhere I could add debug messages to better see the error.&lt;br /&gt;&lt;br /&gt;Right now the error coming back is timeout so it might be that the server is rejecting messages from the phone&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Here&amp;#39;s the nRF Mesh app for Android log while doing it:&lt;br /&gt;&lt;a href="https://test-devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/app-log-only-8049.txt"&gt;test-devzone.nordicsemi.com/.../app-log-only-8049.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the server/proxy receiving an 8049 opcode to node 0x0066 (I don&amp;#39;t see it here)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://test-devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1680.8049-server_5F00_proxy.txt"&gt;test-devzone.nordicsemi.com/.../1680.8049-server_5F00_proxy.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/thread/370713?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 13:22:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b5f7c62-ab8e-4981-89c0-bcb49ea8dc9b</guid><dc:creator>user8164</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="aross11"]I overrode a client&amp;#39;s IV index to be 42 (within). This caused by server to update to IV index 42 as well[/quote]
&lt;p&gt;This would be expected behavior, and is explained by client sharing secure beacon which server receives, server noticing it is behind and therefore performing IVI Recovery.&lt;/p&gt;
[quote user="aross11"]however, even the client can&amp;#39;t send a message to the server anymore[/quote]
&lt;p&gt;Where does it fail, is it in the sending, or that the server never seem to receive anything? What is the sequence number and IV Index bits of those packets?&lt;/p&gt;
&lt;p&gt;Do you have minimal examples for reproducing this on a DK?&lt;/p&gt;
&lt;p&gt;Based on your descriptions, it sounds like for instance sequence number not being reset could be an explanation, or if the replay protection is not working properly (not reset) when doing IVI Recovery. From what I recall, IV Index is not fully stored neither in packets sent nor in replay list, rather only the least significant bit is used (since the node knows what IV Indexes are possible for the current IV Index and IV Index update state.) If there&amp;#39;s a bug somewhere, that sounds like a possible place.&lt;/p&gt;
[quote user="aross11"]Does the nRF Mesh app for iOS have it&amp;#39;s own IV index?[/quote]
&lt;p&gt;I do not quite understand what youi mean by that. The nRF Mesh apps (both Android and iOS) follows the Bluetooth mesh specification, which means they should also be able to participate in IV Index Update and IV Index Recovery. I will double check if the phone apps do indeed have IVI Recovery functionality.&lt;/p&gt;
&lt;p&gt;You mention in a separate thread (&lt;a href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88513/nrf-mesh-app-stops-workings-after-iv-update"&gt;nRF Mesh App stops workings after IV update&lt;/a&gt;) that you think this is a sequence number issue. I agree. Can you share the logs (or other information)I from your testing on this?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/thread/370283?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 15:41:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24427b13-7717-4a37-b2fe-e11d553d8067</guid><dc:creator>user99042</dc:creator><description>&lt;p&gt;Should I open up a new issue for this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/thread/370048?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 17:29:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c716914d-ffa6-4ae8-b7e2-88a806cd203b</guid><dc:creator>user99042</dc:creator><description>&lt;p&gt;I&amp;#39;m pretty convinced me screwing with the IV index is messing with the sequence number and now nothing gets through anywhere&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/thread/369685?ContentTypeID=1</link><pubDate>Thu, 26 May 2022 18:00:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5130f60-3ad9-4bb2-9421-951b313a6482</guid><dc:creator>user99042</dc:creator><description>&lt;p&gt;Okay so now I&amp;#39;m getting somewhere.&lt;br /&gt;&lt;br /&gt;I overrode a client&amp;#39;s IV index to be 42 (within). This caused by server to update to IV index 42 as well, now I can see all of my nodes again (friendship succeeded, I see them all), however, even the client can&amp;#39;t send a message to the server anymore. When they&amp;#39;re both fresh, no problem, however once the IV update happens, the two are unable to send messages to each other anymore (I have verified with a log output message that the IV index is correct and matches.)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The other funny part is that once I have the IV index &amp;quot;hacked&amp;quot; I can no longer get the TTL information from the app either. That is to say:&lt;br /&gt;&lt;br /&gt;-Start with default IV on server, TTL can be loaded in nRF Mesh App&lt;br /&gt;-Provision, things look good, TTL refresh still works&lt;br /&gt;-&amp;quot;Hack&amp;quot; IV to match locked up friends&lt;br /&gt;-Now the server is friends with the locked up clients, however button presses aren&amp;#39;t working&lt;br /&gt;-TTL loading doesn&amp;#39;t work either&lt;br /&gt;-It seems as though it&amp;#39;s stuck in&amp;nbsp;NET_STATE_IV_UPDATE_IN_PROGRESS mode as well&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Basically I need a way to hack the IV index in the most expected of ways such that the TTL refresh in the app still works. I also have the client in the same configuration, and again, I can&amp;#39;t load the TTL. It almost seems as though an IV index of any non zero value and the app doesn&amp;#39;t work with it.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Does the nRF Mesh app for iOS have it&amp;#39;s own IV index?&lt;br /&gt;&lt;br /&gt;Any suggestions?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/thread/369606?ContentTypeID=1</link><pubDate>Wed, 25 May 2022 16:26:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d14f0460-6a30-4ec4-815a-3c835fb0817f</guid><dc:creator>user99042</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;quot;I highly doubt there could be any issue there, but if you could sniff the network traffic (e.g. nRF Sniffer) or provision a DK into the network with a mesh applicaiton logging network activity.&amp;quot;&lt;br /&gt;&lt;br /&gt;I&amp;#39;ll try both of these things. I can add another client and output what it sees. Can you tell me what function triggers the secure update so I can add a log output?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;quot;&lt;/span&gt;This sounds a bit weird. How are the messages addressed? Are the proper appkeys bound to the models and used for the publication? I agree, if messages go one way this is most likely not an IV Index issue.&lt;/p&gt;
&lt;p&gt;For confirmation of my assumptions, the LPN is what you refer to as the client, and the gateway is what you refer to as the server? What mesh models are you using?&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Correct, client = LPN.&lt;br /&gt;&lt;br /&gt;In the nRF Mesh app I can refresh TTL, and I&amp;#39;ve verify they&amp;#39;ve subscribed to the correct groups and publish to the correct group. I even see it add itself as a friend to the server, however nothing I do seems to make it&amp;#39;s way down to it.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;ll try out the nRF Sniffer and see what I can find. My other thought was to override the IV index to something higher and see if I can trigger an IV update in test mode that way.&lt;br /&gt;&lt;br /&gt;The model is based off of the generic on off but modified for an 8 byte message.&lt;br /&gt;&lt;br /&gt;It&amp;#39;s worked pretty well for a while now, it just seems occasionally something really weird happens and the messages get rejected in some fashion.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/thread/369604?ContentTypeID=1</link><pubDate>Wed, 25 May 2022 16:10:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4880438f-7abf-4e55-8282-ea3a6bc9b3fb</guid><dc:creator>user8164</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="aross11"]How can I be sure I&amp;#39;m sending out a secure beacon?[/quote]
&lt;p&gt;I highly doubt there could be any issue there, but if you could sniff the network traffic (e.g. nRF Sniffer) or provision a DK into the network with a mesh applicaiton logging network activity.&lt;/p&gt;
[quote user="aross11"]Essentially I have a switch that when triggered, the client sends a notification over mesh to the server. This works, I can see the message come in on the server. However, sending messages down to the client are being ignored.[/quote]
&lt;p&gt;This sounds a bit weird. How are the messages addressed? Are the proper appkeys bound to the models and used for the publication? I agree, if messages go one way this is most likely not an IV Index issue.&lt;/p&gt;
&lt;p&gt;For confirmation of my assumptions, the LPN is what you refer to as the client, and the gateway is what you refer to as the server? What mesh models are you using?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/thread/369527?ContentTypeID=1</link><pubDate>Wed, 25 May 2022 12:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba8aec76-43ce-49b1-8b0d-5bfa4c5b0f4b</guid><dc:creator>user99042</dc:creator><description>&lt;p&gt;So I actually have some units now having the issue I&amp;#39;ve seen before.&lt;br /&gt;&lt;br /&gt;Essentially I have a switch that when triggered, the client sends a notification over mesh to the server. This works, I can see the message come in on the server. However, sending messages down to the client are being ignored.&lt;br /&gt;&lt;br /&gt;How can I be sure I&amp;#39;m sending out a secure beacon? Shouldn&amp;#39;t the fact that I can receive a message from the client mean that the IV indexes are good?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The client is sealed and potted so there&amp;#39;s not a lot of physical debugging I can do I&amp;#39;m afraid. (I really need to make a DFU backdoor)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/thread/369525?ContentTypeID=1</link><pubDate>Wed, 25 May 2022 12:24:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f48a1c8-cfb7-410a-bae6-4724ff060268</guid><dc:creator>user8164</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I got some feedback from our mesh team.&lt;/p&gt;
[quote user="tesc"]If the LPN is not in a friendship, it will try to initiate one. If there has been IV Index updates, this will fail repeatedly, at which point the LPN should check Secure Network Beacons to see if an IV Index Recovery is needed. Some action may be needed from the application.[/quote]
&lt;p&gt;The IV Index Recovery will be triggered if receiving a secure beacon with an IV Index higher than the current one. Beacons are sent through the network every 10 seconds (on average), which means there is some waiting time, and the node must be in a scanning state in order to receive the beacon. The recovery procedure itself is instantaneous (it updates a few variables in memory.)&lt;/p&gt;
&lt;p&gt;It does however depend on a couple of prerequisites: It can only happen after a timeout of 192 hours, and only if the node is not in the mimddle of an IVI Update. In order for the LPN to know that 192 hours has passed, it must have been on for that amount of time since the timer was last reset. Timer status is stored periodically, so the total &amp;quot;on time&amp;quot; might be divided in several sessions.&lt;/p&gt;
[quote user="tesc"]Similarly if the LPN is in a friendship, but has not polled through an IV Index Update, some action may be needed from the application.[/quote]
&lt;p&gt;Staying in friendship beyond one IV Index update is not possible, since the maximum PollTimeout corresponds to 96 hours. In other words: In order to keep the friendship, one must have one successful poll at least once every IV Index. I did the calculations wrong when checking max PollTimeout for that previous answer, and found an erroneous max PollTimout that was longer than 96 hours. Correct number is 96 hours max.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/thread/369358?ContentTypeID=1</link><pubDate>Tue, 24 May 2022 16:02:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce53e8a9-a551-46aa-98f6-f102ee18d24f</guid><dc:creator>user8164</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I noticed you had a second set of questions.&lt;/p&gt;
&lt;p&gt;The beacon is a collective effort of the network, where at any one place in the network topology one is expected to get, on average, one beacon every ten seconds. I.e. with two nodes, each node would send a beacon every 20 seconds, for a 10 second average. All nodes participate in this, as mandated by spec, and there is no setting controlling it.&lt;/p&gt;
[quote user="aross11"]I&amp;#39;m in a situation now where I&amp;#39;m sending out a replacement unit to a client and I&amp;#39;m realizing that there&amp;#39;s no real gaurentee that the two will talk now.[/quote]
&lt;p&gt;It must be provisioned into the network, and as such &amp;quot;synced&amp;quot; with the IVI, yes. Does the system have provisioning support at the customer location, or is it &amp;quot;pre-provisioned&amp;quot; (so that provisioning is out-of-scope for the customer?)&lt;/p&gt;
&lt;p&gt;You will likely need some action from the application in order to recover the IVI. As mentioned in my previous reply, I will get back to you, hopefully before week-end (i.e. tomorrow.)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/thread/369355?ContentTypeID=1</link><pubDate>Tue, 24 May 2022 15:56:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:147db283-723b-411b-88f1-37ad790a7456</guid><dc:creator>user8164</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="aross11"]I am a little hesitant to switch to nRF Connect SDK because of the project development timeline.[/quote]
&lt;p&gt;I have no issues understanding that rationale, especially if far in devlopment (and with devices out there already.) We are keeping some track of key values for the new SDK (memory requirements, power usage, etc.) although I do not currently have LPN power usage numbers at hand.&lt;/p&gt;
[quote user="aross11"]I assume the phone app compatibility hasn&amp;#39;t changed?[/quote]
&lt;p&gt;Phone app is unchanged, as is the mesh specification, mesh models, etc. In fact nRF Connect SDK has slighlty better model coverage (and is the place where all new functionality will be developed.)&lt;/p&gt;
[quote user="aross11"]Do you have any suggestions on how to create a scenario where the IV index is bad so I can see what&amp;#39;s going wrong?[/quote]
&lt;p&gt;For testing purposes you could lift the restriction of 192 hours between IV Index Updates, or maybe even hard code some IV Index &amp;quot;jump&amp;quot; to a new value, for instance set back the IVI for a node to emulate it being &amp;quot;behind&amp;quot;.&lt;/p&gt;
&lt;p&gt;I am yet to hear back from the team, but will check with them and (hopefully) get back to you tomorrow.&lt;/p&gt;
&lt;p&gt;Please note Thursday is public holiday here in Norway, and many take Friday off as well for the long weekend.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/thread/369338?ContentTypeID=1</link><pubDate>Tue, 24 May 2022 14:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3700cf9a-fd4a-4402-9668-79711ab45bc1</guid><dc:creator>user99042</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m really hoping there&amp;#39;s a clear why to validate that the secure beacon update is actually being sent.&lt;br /&gt;&lt;br /&gt;I called for a client:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    status = net_state_iv_index_set(30, p_prov_data-&amp;gt;flags.iv_update);
    //status = net_state_iv_index_set(p_prov_data-&amp;gt;iv_index, p_prov_data-&amp;gt;flags.iv_update);&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;And left it at default for the server.&lt;br /&gt;&lt;br /&gt;At no point was the server able to communicate to the client, even when trying to set up publishing and subscription in nRF Mesh. (Updating TTL fails)&lt;br /&gt;&lt;br /&gt;I&amp;#39;m in a situation now where I&amp;#39;m sending out a replacement unit to a client and I&amp;#39;m realizing that there&amp;#39;s no real gaurentee that the two will talk now.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Does the server send out the secure beacon by default or is it only enabled by the setting in the app?&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/thread/368656?ContentTypeID=1</link><pubDate>Thu, 19 May 2022 14:26:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e030642-38f9-4556-bd98-190c139bb393</guid><dc:creator>user99042</dc:creator><description>&lt;p&gt;Thank you for the detailed response!&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;First off I am using the nRF 5 Mesh SDK/17 (co-existence). I am a little hesitant to switch to nRF Connect SDK because of the project development timeline. I&amp;#39;ll spend time investigating the new SDK and see what the transition would look like. Power consumption is the biggest concern and something I hope having an RTOS running won&amp;#39;t be impacted by- are there numbers for LPN current draw? I assume the phone app compatibility hasn&amp;#39;t changed? E.g. the iOS nRF Mesh has worked well for us. The Android version has not, but that&amp;#39;s a seperate issue.&lt;br /&gt;&lt;br /&gt;&amp;quot;&lt;span&gt;If the LPN is not in a friendship, it will try to initiate one. If there has been IV Index updates, this will fail repeatedly, at which point the LPN should check Secure Network Beacons to see if an IV Index Recovery is needed. Some action may be needed from the application. Similarly if the LPN is in a friendship, but has not polled through an IV Index Update, some action may be needed from the application. I have reached out to our mesh development team for further details, and will get back to you when I know more.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think is this what I&amp;#39;m seeing. I don&amp;#39;t have any units displaying the behavior&amp;nbsp;currently. Do you have any suggestions on how to create a scenario where the IV index is bad so I can see what&amp;#39;s going wrong? I was thinking of just doing a test where the init value sets the IV index to something that would trigger the secure update process which is where I think things aren&amp;#39;t working right.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/thread/368612?ContentTypeID=1</link><pubDate>Thu, 19 May 2022 12:36:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f43ae1d1-5765-4c2b-b65c-5aeb55a958fe</guid><dc:creator>user8164</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First of all, which SDK are you using? For new projects we recommend the nRF Connect SDK, while the older nRF5 SDK for Mesh is in maintenance mode and will not see new development. See our &lt;a href="https://test-devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-sdk-and-nrf5-sdk-statement"&gt;nRF Connect SDK and nRF5 SDK statement&lt;/a&gt;. The thread you refer to is about the nRF5 SDK for Mesh, which is the old solution.&lt;/p&gt;
&lt;p&gt;Are you currently experiencing issues with nodes losing track of the network, or is it a theoretical exercise? If you have issues in practice, then we can look further into those. For now I will assume it is a theoretical matter.&lt;/p&gt;
[quote user="aross11"]If the whole mesh was powered off for up to 6 months at a time, would this pose any issue?[/quote]
&lt;p&gt;If all nodes, including provisioners, relay nodes, everything is off, then there will be no IV Index Updates. The updates are triggered by network activity. Messages sent from a node are tagged with a sequence number, for replay protection, and IVI Update is triggered when a node gets close to depleting sequence numbers. With no activity, there should be no updates&amp;nbsp; triggered. Similarly, if network traffic is low, the updates may be much less frequent than once every 192 hours.&lt;/p&gt;
[quote user="aross11"]&lt;span&gt;&lt;br /&gt;&lt;/span&gt;What could happen with our device is that it goes out of the mesh for 3 days, comes back, *maybe* talks back and forth with the server (sending stuff like battery level back), and then goes out of the mesh.&lt;br /&gt;&lt;br /&gt;A schedule could look like this (and why the 8 days is concerning)&lt;br /&gt;&lt;br /&gt;Day 1: Out of the mesh&lt;br /&gt;Day 3: Back on mesh briefly,leaves again&lt;br /&gt;Day 6: &lt;span&gt;Back on mesh briefly,leaves again&lt;/span&gt;&lt;br /&gt;--Day 8: IV update happens--&lt;br /&gt;Day 9: Back on mesh but can no longer communciate as IV is now out of date[/quote]
&lt;p&gt;Thanks for elaborating. In order to perform the IV Index Recovery procedure, the node must listen for the Secure Network beacon, which is (on average) transmitted once every 10 seconds. It contains the network ID and the current IV Index. I see now that according to the Bluetooth Mesh Profile specification, in order to follow the current state of the IV Index, the LPN must poll its Friend node at least once every 96 hours (half the frequency of IV Index updates.) This is most likely due to the update procedure comprising of two main steps, each (at least) 96 hours long. If doing so, the node will keep track of the IV Index.&lt;/p&gt;
&lt;p&gt;If the LPN is not in a friendship, it will try to initiate one. If there has been IV Index updates, this will fail repeatedly, at which point the LPN should check Secure Network Beacons to see if an IV Index Recovery is needed. Some action may be needed from the application. Similarly if the LPN is in a friendship, but has not polled through an IV Index Update, some action may be needed from the application. I have reached out to our mesh development team for further details, and will get back to you when I know more.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/thread/368388?ContentTypeID=1</link><pubDate>Wed, 18 May 2022 13:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e87e0e86-80c8-48e6-ab26-f8778ff2755f</guid><dc:creator>user99042</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;quot;If you experience issues after a week away from the network, then there might be some issues with the IV Index Recovery procedure.&amp;quot;&lt;br /&gt;&lt;br /&gt;If this event happens what can be done to recover the IV index? Is there a method of manually triggering it? I&amp;#39;ve noticed some units stop talking all together to us after a couple of weeks separated&amp;nbsp;but some messages do manage to come back through (mainly those sent by the LPN, not the other way). The only fix I&amp;#39;ve found is unprovisioning and reprovisioning once it starts up the advertisement. This likely won&amp;#39;t be acceptable to our users so I&amp;#39;m hoping there&amp;#39;s a safe way to send out the secure beacon, or increase the rate it goes out such that the scenario is less likely to happen.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;From the link I posted they make a few suggestions about updating some defines.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;NETWORK_MIN_IV_RECOVERY_INTERVAL_MINUTES&amp;nbsp;&lt;/strong&gt;or even set it to zero for debugging purposes so that a node won&amp;#39;t wait for timeout to run the IV Index Recovery procedure. (will this prevent said scenario from happening?)&lt;br /&gt;&lt;br /&gt;Our units are battery powered and have seasons where they&amp;#39;re in use and not in use. If the whole mesh was powered off for up to 6 months at a time, would this pose any issue? I&amp;#39;m thinking we need a &amp;quot;storage mode&amp;quot; that would prevent the IV updates from happening.&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;I think I need to clarify the scenario a bit better:&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&amp;quot;IV Index update can only happen once every 192 hours (8 days). This means you should have no IV Index related issues if away from the network for 3 days.&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;What could happen with our device is that it goes out of the mesh for 3 days, comes back, *maybe* talks back and forth with the server (sending stuff like battery level back), and then goes out of the mesh.&lt;br /&gt;&lt;br /&gt;A schedule could look like this (and why the 8 days is concerning)&lt;br /&gt;&lt;br /&gt;Day 1: Out of the mesh&lt;br /&gt;Day 3: Back on mesh briefly,leaves again&lt;br /&gt;Day 6: &lt;span&gt;Back on mesh briefly,leaves again&lt;/span&gt;&lt;br /&gt;--Day 8: IV update happens--&lt;br /&gt;Day 9: Back on mesh but can no longer communciate as IV is now out of date&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: IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/thread/368239?ContentTypeID=1</link><pubDate>Wed, 18 May 2022 08:59:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b47c2063-840e-457c-a7cd-d7975f6dad49</guid><dc:creator>user8164</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;IV Index update can only happen once every 192 hours (8 days). This means you should have no IV Index related issues if away from the network for 3 days. If the IV Index of the node is lagging too far behind for an IV Index update, the IV Index Recovery procedure will kick in, up to around 40 IV Updates behind. If further behind the node is unable to rejoin the network and must be reprovisioned.&lt;/p&gt;
&lt;p&gt;If you experience issues after a week away from the network, then there might be some issues with the IV Index Recovery procedure. After around 10 months you risk enough IV Index updates to have passed for the node to have completely lost the network.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IV Index and LPN devices that leave mesh</title><link>https://test-devzone.nordicsemi.com/thread/368029?ContentTypeID=1</link><pubDate>Mon, 16 May 2022 11:29:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3672c06d-46f9-4c3e-980a-8b1aff3433b0</guid><dc:creator>user106736</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Our Mesh experts are out of office until Wednesday due to a national holiday.&lt;/p&gt;
&lt;p&gt;We will return to this case later this the week.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>