<?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>Coordinator Assert during commission of 24 devices</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79054/coordinator-assert-during-commission-of-24-devices</link><description>nRF Connect V 1.6.0 
 using samples/zigbee/network_coordinator against a nRF52840, I am trying to commission a larger number of devices to join the network. Currently 24 devices, but this happens at lower numbers of 11 devices as well. 
 enabled the CLI</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Nov 2021 18:45:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79054/coordinator-assert-during-commission-of-24-devices" /><item><title>RE: Coordinator Assert during commission of 24 devices</title><link>https://devzone.nordicsemi.com/thread/337346?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 18:45:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5270cd14-534c-44ef-bf7b-97010f46ab59</guid><dc:creator>Larry Martin</dc:creator><description>&lt;p&gt;Changing&amp;nbsp;&lt;span&gt;ZB_CONFIG_SCHEDULER_Q_SIZE from 48 to 127 changed the behavior of the problem.&amp;nbsp; I&amp;#39;ve been testing with configuration 1 above&amp;nbsp;and now when trying to &amp;quot;gang discover&amp;quot; 20+ devices it now seems that zboss runs out of buffers and never recovers (zb_buf_memory_low() returns 1 until we reset).&amp;nbsp; Initial testing with configurations 2 and 3 suggests we may just be trading off the likelihood of a zboss assertion with this unrecoverable low memory condition.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coordinator Assert during commission of 24 devices</title><link>https://devzone.nordicsemi.com/thread/337310?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 14:45:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4cc691b-c02b-4e09-9ecc-5efac018bf4d</guid><dc:creator>sedr</dc:creator><description>&lt;p&gt;Hi Larry,&lt;br /&gt;&lt;br /&gt;Could you try three configurations below and provide feedback whether or not any fail is observed during commissioning? (For coordinator device)&lt;br /&gt;&lt;br /&gt;1.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONFIG_NRF_802154_RX_BUFFERS set to 64&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZB_CONFIG_IOBUF_POOL_SIZE defined to 127U&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZB_CONFIG_SCHEDULER_Q_SIZE defined to 127U&lt;br /&gt;&lt;br /&gt;2.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONFIG_NRF_802154_RX_BUFFERS set to 32&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZB_CONFIG_IOBUF_POOL_SIZE defined to 127U&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZB_CONFIG_SCHEDULER_Q_SIZE defined to 127U&lt;br /&gt;&lt;br /&gt;3.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONFIG_NRF_802154_RX_BUFFERS set to 16&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZB_CONFIG_IOBUF_POOL_SIZE defined to 127U&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZB_CONFIG_SCHEDULER_Q_SIZE defined to 127U&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coordinator Assert during commission of 24 devices</title><link>https://devzone.nordicsemi.com/thread/337021?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 09:47:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb2b0c26-9fd2-4a96-a7a3-33b1b8eb15fd</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;div&gt;
&lt;p&gt;Hi Larry,&lt;br /&gt;&lt;br /&gt;The file 122 is the &lt;tt&gt;zb_nvram.c&lt;/tt&gt; and the line 1892 is inside &lt;tt&gt;zb_nvram_write_dataset(..)&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;We really would like to get a dump of all NVRAM logs &amp;amp; operations (from zb_nrf_nvram.c) to understand which operation causes the function to fail.&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coordinator Assert during commission of 24 devices</title><link>https://devzone.nordicsemi.com/thread/331380?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 17:23:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c2e10ee-e2ff-48c1-b1ca-ac32dc948492</guid><dc:creator>Larry Martin</dc:creator><description>&lt;p&gt;FYI, we just tried NCS 1.7.0 with zboss 3.8 and see similar asserts during commissioning of several nodes at once.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coordinator Assert during commission of 24 devices</title><link>https://devzone.nordicsemi.com/thread/331171?ContentTypeID=1</link><pubDate>Sat, 25 Sep 2021 16:17:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0946c52-8f32-47bd-847a-d624352b7123</guid><dc:creator>Larry Martin</dc:creator><description>&lt;p&gt;We have not seen any zb_osif_nvram_write errors, either before the assertions or at any other time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coordinator Assert during commission of 24 devices</title><link>https://devzone.nordicsemi.com/thread/330263?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 11:34:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cc9c95f-64de-4cf9-8ec8-1cd48ba4496d</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Larry,&lt;br /&gt;&lt;br /&gt;The limit is set at the ZBOSS compile time (CONFIG_ZB_ZDO_TRAN_TABLE_SIZE) and cannot be changed by the application. We don&amp;#39;t have the possibility to recompile the ZBOSS stack we delivered, since it will then not be a certified stack for instance. So I am afraid this is not a configurable limit.&lt;br /&gt;&lt;br /&gt;Our developers are asking if you could log all values returned by the zb_osif_nvram_write? It is possible that the assert(122,1892) is caused by the nvram write error at the OSIF layer.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coordinator Assert during commission of 24 devices</title><link>https://devzone.nordicsemi.com/thread/329768?ContentTypeID=1</link><pubDate>Thu, 16 Sep 2021 09:19:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe1da38f-199c-4842-af02-828ddd94c732</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Larry,&lt;br /&gt;&lt;br /&gt;I have passed this information to our Zigbee team to get some help at decoding the error messages, I am sorry for the delays but I will am waiting for their feedback about this and on how to change the number of ZDO transactions limit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coordinator Assert during commission of 24 devices</title><link>https://devzone.nordicsemi.com/thread/329446?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 12:48:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04a47f9b-e653-4155-90e2-ffcc3105f7e6</guid><dc:creator>Larry Martin</dc:creator><description>&lt;p&gt;Yes, these assertions are in the coordinator.&lt;br /&gt;&lt;br /&gt;We restrict our code to a maximum of 3 pending transactions at any one time.&amp;nbsp; We originally added this limit because we discovered that zboss was running out of buffers (zb_buf_memory_low() returning true) during commissioning of multiple devices.&amp;nbsp; Enforcing a limit of 3 pending transactions helped reduce the number of zboss assertions.&amp;nbsp; We eventually figured out how to increase the number of zboss buffers using a custom zb_mem_config header file&amp;nbsp;setting&amp;nbsp;&lt;span&gt;ZB_CONFIG_IOBUF_POOL_SIZE to&amp;nbsp;&lt;/span&gt;&lt;span&gt;127U, and since then we haven&amp;#39;t seen the low memory condition.&amp;nbsp; We continue to see the assertions during commissioning and leave operations.&lt;br /&gt;&lt;br /&gt;We use zdo_mgt_leave_req() to issue the leave request, and consider the transaction pending until the callback.&amp;nbsp; As noted above, we allow a maximum of 3 pending transactions of any type, including leave.&lt;br /&gt;&lt;br /&gt;I am curious about the limit on the number of ZDO transactions.&amp;nbsp; What it the source of this limit?&amp;nbsp; Is it configurable?&lt;br /&gt;&lt;br /&gt;And thanks for your help!&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Update:&amp;nbsp; I tried reducing the number of pending transactions to 1 at a time and still got the zdo assert(112,1892).&amp;nbsp; As we ask devices to leave I see that we&amp;#39;re getting a large number of ZB_ZDO_SIGNAL_DEVICE_UPDATE signals (status=device left).&amp;nbsp; &lt;span style="color:#0000ff;"&gt;&lt;strong&gt;I also see that we get multiple&amp;nbsp;ZB_ZDO_SIGNAL_DEVICE_UPDATE&amp;nbsp;signals for each device as it leaves, maybe one per neighbor?&lt;/strong&gt;&lt;/span&gt;&amp;nbsp; (Each node in our network is configured as a router+endpoint.)&amp;nbsp; Perhaps all this traffic is what&amp;#39;s triggering the assertion?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here&amp;#39;s an extract from our log showing the multiple device_update signals after a leave:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;{cmd:leave,addr:0x494E,device_addr:0x0000000000000000,remove_children:0,rejoin:0} &lt;span style="color:#0000ff;"&gt;&amp;lt;-- This calls&amp;nbsp;zdo_mgmt_leave_req(...)&lt;/span&gt;&lt;br /&gt;{rsp:&amp;quot;leave&amp;quot;,tsn:203}&lt;br /&gt;{nfy:&amp;quot;throttle&amp;quot;,can_send:0,pending:1,max:1,mem_low:0}&lt;br /&gt;{nfy:&amp;quot;leave&amp;quot;,tsn:203,status:0x0}&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000ff;"&gt;&amp;lt;-- sent from the zdo_mgmt_leave_req(...) callback&lt;/span&gt;&lt;br /&gt;{nfy:&amp;quot;throttle&amp;quot;,can_send:1,pending:0,max:1,mem_low:0}&lt;br /&gt;{cmd:leave,addr:0x23A2,device_addr:0x0000000000000000,remove_children:0,rejoin:0} &lt;span style="color:#0000ff;"&gt;&amp;lt;--another call to&amp;nbsp;zdo_mgmt_leave_req(...)&lt;/span&gt;&lt;br /&gt;{rsp:&amp;quot;leave&amp;quot;,tsn:204}&lt;br /&gt;{nfy:&amp;quot;throttle&amp;quot;,can_send:0,pending:1,max:1,mem_low:0}&lt;br /&gt;{nfy:&amp;quot;device_leave&amp;quot;,addr:0xf4ce3683c5e670ce,rejoin:0}&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000ff;"&gt;&amp;lt;-- ZB_ZDO_SIGNAL_LEAVE for 0x494E above&lt;/span&gt;&lt;br /&gt;{nfy:&amp;quot;device_update&amp;quot;,addr:0x494e,status:2}&amp;nbsp; &amp;nbsp;&lt;span style="color:#0000ff;"&gt;&amp;lt;-- ZB_ZDO_SIGNAL_DEVICE_UPDATE, status = device left&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;{nfy:&amp;quot;device_update&amp;quot;,addr:0x494e,status:2}&amp;nbsp; &amp;nbsp;&amp;lt;-- multiple signals received, possibly from multiple routes???&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;{nfy:&amp;quot;device_update&amp;quot;,addr:0x494e,status:2}&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;{nfy:&amp;quot;device_update&amp;quot;,addr:0x494e,status:2}&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;{nfy:&amp;quot;device_update&amp;quot;,addr:0x494e,status:2}&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;{nfy:&amp;quot;device_update&amp;quot;,addr:0x494e,status:2}&lt;/span&gt;&lt;br /&gt;{nfy:&amp;quot;leave&amp;quot;,tsn:204,status:0x0}&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coordinator Assert during commission of 24 devices</title><link>https://devzone.nordicsemi.com/thread/329373?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 09:56:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d99f436f-fe84-4977-a572-578c52718d16</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you trying to send 24 ZDO leave frames at once? There is a hard limit on the maximum number of concurrent ZDO transactions (currently set to 16).&lt;/p&gt;
&lt;p&gt;The assert is happening on the coordinator side right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coordinator Assert during commission of 24 devices</title><link>https://devzone.nordicsemi.com/thread/329274?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 14:47:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27c79736-d086-4679-b2a0-fd7663fbd229</guid><dc:creator>Larry Martin</dc:creator><description>&lt;p&gt;&lt;span&gt;FYI, here are the assertions we&amp;#39;ve seen after increasing the RX buffers:&lt;br /&gt;&lt;br /&gt;zdo assert(122,1892)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;zdo assert(112,1892)&amp;nbsp; &amp;lt;-- different file, 112 vs 122&lt;/span&gt;&lt;br /&gt;&lt;span&gt;zdo assert(124,589)&lt;/span&gt;&lt;br /&gt;&lt;span&gt;zdo assert(124,635)&lt;br /&gt;&lt;br /&gt;Assertions seem to occur during high traffic bursts.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coordinator Assert during commission of 24 devices</title><link>https://devzone.nordicsemi.com/thread/329115?ContentTypeID=1</link><pubDate>Sun, 12 Sep 2021 21:42:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44a84943-fc53-45c6-92fc-8949ac055d7c</guid><dc:creator>TKR</dc:creator><description>&lt;p&gt;Hello Marjeris,&lt;/p&gt;
&lt;p&gt;By increasing the buffers to 64, it did become a lot more stable so that was a good suggestion.&amp;nbsp; We are getting boss zdo asserts when we ask all devices to leave, though. If we cannot find a work around I&amp;#39;ll post another ticket with details.&lt;/p&gt;
&lt;p&gt;TKR&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coordinator Assert during commission of 24 devices</title><link>https://devzone.nordicsemi.com/thread/328954?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 08:50:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10553b18-a702-40da-a4f8-0431db96e162</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi TKR,&lt;/p&gt;
&lt;p&gt;We have two theories:&lt;/p&gt;
&lt;p&gt;From the problem description it sounds very likely to be a problem caused by packet collissions due to high traffic, but there should be ways to handle this according to our Zigbee team.&lt;/p&gt;
&lt;p&gt;It could also be an issue with lack of RX buffers. You may try to increase the number of buffer via Kconfig first and see if that helps:&lt;/p&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Increase the number of RX buffers
CONFIG_NRF_802154_RX_BUFFERS=32&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Try this and let me know how it goes. I will update you when I have more information as we continue to investigate this internally.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;/div&gt;
&lt;div&gt;Marjeris&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coordinator Assert during commission of 24 devices</title><link>https://devzone.nordicsemi.com/thread/328675?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 20:02:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db6d2575-0c86-4c91-ba8d-db170eea83ae</guid><dc:creator>TKR</dc:creator><description>&lt;p&gt;Hi Marjeris,&lt;/p&gt;
&lt;p&gt;To be clear, this seems to be immediately evident if you try to join all devices at one time. If we stagger the endpoints that come in, then the problem is rarely, if ever occurring.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;TKR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Coordinator Assert during commission of 24 devices</title><link>https://devzone.nordicsemi.com/thread/328271?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 20:57:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5a2fc6c-2e90-4ff4-8c97-ce779699981b</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am so sorry for the late reply. I have forwarded your questions about the maxiomum devices that can be added to a network to our Zigbee team but haven&amp;#39;t gotten an answer yet. In the old nRF5 SDK for Thread and Zigbee we had conducted tests with up to 24 devices, but with no architectural limitation for networks larger than that. The practical limiting factor will be the Trust Center memory (in the coordinator device) as the TC must hold link keys to all connecting devices. &lt;/p&gt;
&lt;p&gt;Do you have a sniffer trace that can help us debug when the devices are joining your coordinator network? I will like to see what is happening on air. In the log output it looks like some devices are being added multiple times.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>