<?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>nrf mesh SDK 2.1.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72819/nrf-mesh-sdk-2-1-1</link><description>Hellou, i have questiuons about NRF MESH SDK 2.1.1. 
 We have in production street light based on light_switch_server_nrf52832_xxAA_s132_6_0_0 from NRF SDK 2.1.1. 
 When we tested communication, we have problem by changeing IV index by big communication</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Apr 2021 14:14:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72819/nrf-mesh-sdk-2-1-1" /><item><title>RE: nrf mesh SDK 2.1.1</title><link>https://devzone.nordicsemi.com/thread/304605?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 14:14:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7c96362-7660-4388-97c8-99fe2e4f1f87</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. Behaviour after SoftDevice assert depends on the type of build. If it is a debug build, then it enters an infinite loop. That makes it easy to fetch the details about the assert from a debug session. If it is a release build, then it resets the device. At least that is the default behaviour from our SDK. If you have changed that in code, then the behaviour may be different.&lt;/p&gt;
&lt;p&gt;2. It may be a good idea to upgrade to a later SDK+SoftDevice, as there has been bugfixes and features added since nRF5 SDK for Mesh v2.1.1. However, I think the issue that you are seeing is not something we have seen in the SDK, and most likely related to your particular implementation.&lt;/p&gt;
&lt;p&gt;Regarding the changes to &lt;code&gt;iv_timeout_limit_passed()&lt;/code&gt;, please note that this is part of the Bluetooth mesh stack. You are not supposed to change the Bluetooth mesh stack, and the qualifications we have done for the stack is only valid if you leave it unchanged. I suspect that something related to the issues were introduced by you changing the stack. In particular the change from 96 hours timeout to 5 minute timeout sounds like a recipe for disaster. What other stack changes have you done?&lt;/p&gt;
&lt;p&gt;The mechanism that you mention, for making the device go into unprovisioned state if it has not received any commands for five minutes, how is that one implemented?&lt;/p&gt;
&lt;p&gt;How are you checking the device in all possible freeze locations, and what do you do on that check?&lt;/p&gt;
&lt;p&gt;Freezes inside of the SoftDevice are highly unlikely. I have not yet seen any issue of freezing inside of SoftDevice, and if it happened then your watchdog should trigger. As previously mentioned, asserts inside of the SoftDevice would go to the fault handler, and the default fault handling in the SDK is to reset the device (at least in release builds).&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: nrf mesh SDK 2.1.1</title><link>https://devzone.nordicsemi.com/thread/304282?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 13:00:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df691250-8de9-4bd4-8b11-f63eabb67940</guid><dc:creator>vnagy1</dc:creator><description>&lt;p&gt;Next questions:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. WDT priority is setup&amp;nbsp;WDT_CONFIG_IRQ_PRIORITY 7. Program consist of softdevice, bootloader and main program.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;WDT is started in bootloader, after jump to main program where is watchdog feeds. Every possible loop where tha main program can freeze it was tested and wdt reset the device.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In topic&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29788/soft-device-assert/118164#118164"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/29788/soft-device-assert/118164#118164&lt;/a&gt;&amp;nbsp;is describe :&lt;/p&gt;
&lt;p&gt;4.&lt;span&gt;It depends on the SoftDevice if it will continue or not (even though it really should stop). The SoftDevice will disable all interrupts, and whatever happens after the assertion is undefined behavior. ----&amp;gt;&amp;gt;&amp;gt;if device stop and not continue - wdt timer is off because all inteerupts is disabled and so is no possible for wdt reset the device, right?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Its any next possible way how device reset in this state, if wdt not reset device? By software, because power down or external reset is no posiible?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. We use actually mesh SDK 2.1.1 and softdevice&amp;nbsp;&amp;nbsp;s132_nrf52_6.0.0_softdevice in NRF52832_AA version chip.&amp;nbsp; If we go to higher version of MESH SDK and softdevice it is possible that same problem will be in this higher version? If yes, that only one way how can work correctly its take on PCB next external watchdog which check is device is working , or its somewhere freeze for example in softdevice.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf mesh SDK 2.1.1</title><link>https://devzone.nordicsemi.com/thread/304177?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 06:42:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2af50911-2d9d-42c2-a4f7-e5518b079ba0</guid><dc:creator>vnagy1</dc:creator><description>&lt;p&gt;Hellou, so i tested issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That device is not response ion the cmd is not because that have bad seqeunce number or IV index. IV index was 0 , and sequence number was too low for IV index changing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We has 4 device which was not response on cmd. Every node(server) has build in function , that not receive more than 5 minutes any cmd, device is going unprovisioned. When device is unprovisioned the light go to state (OFF-ON-OFF-ON) .&lt;/p&gt;
&lt;p&gt;At by disconnecting master(client) to 5 minutes,all light was OFF. After 5 minutes all lights blink, and go to unprovisioned state. But that 4 device which not response to cmd not go blink and unprovisioned - this was still OFF. After this i reset power of this 4 device and wait 5 minutes to unprovisioned device - device blink and go to unprovisioned state.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In program we have turn on watchdog.&lt;/p&gt;
&lt;p&gt;Every place where is possible that device freeze I check and of all of loop wdt reset device.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is also softdevice&amp;nbsp;s132_nrf52_6.0.0_softdevice. Its possible that device freeze somewhere in softdevice?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If device go to hardfault interrupt and is not define hardfault_handler - is device freeze?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf mesh SDK 2.1.1</title><link>https://devzone.nordicsemi.com/thread/300189?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 14:55:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:311611f0-41df-4064-bfb3-1616b436642c</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The timeout of 96 hours is from the Bluetooth mesh specification. The reason is for giving all nodes a chance to completely roll over to the new IV index before the old one gets deprecated. (There are always two IV indexes that are &amp;quot;valid&amp;quot;, letting nodes still using the &amp;quot;old&amp;quot; index participate in the network until they get a message they should go over to the &amp;quot;new&amp;quot; one.)&lt;/p&gt;
&lt;p&gt;If you set that timer lower than 96 hours, then your solution will no longer be Bluetooth mesh compliant. You risk that nodes on your network may stop working, in particular if there are other nodes on the network (that are incapable of shorter IV update frequencies.)&lt;/p&gt;
&lt;p&gt;Since the devices start working again after a reset, it sounds strange if it should be rapid IV index rollover causing this. Some more information would be needed to figure out what might be the issue.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Do your devices do any logging, that can be examined?&lt;/li&gt;
&lt;li&gt;Is it isolated to single devices, or does it happen with multiple devices at the same time?&lt;/li&gt;
&lt;li&gt;Does it happen when the device exhausts sequence numbers? When triggering IV Update?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>