<?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>End Device Joining as New Device When Steering Mode Stopped</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115336/end-device-joining-as-new-device-when-steering-mode-stopped</link><description>We are working on a Zigbee-based network coordinator using the nRF52840. Our end device is connected to the coordinator, but when the end device leaves the network, it sometimes automatically joins the same coordinator, even though the coordinator is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Oct 2024 13:38:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115336/end-device-joining-as-new-device-when-steering-mode-stopped" /><item><title>RE: End Device Joining as New Device When Steering Mode Stopped</title><link>https://devzone.nordicsemi.com/thread/507385?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2024 13:38:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5c4ec6f-a6a8-4167-81b8-7b2d7f45887d</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We had a look at the sniffer logs:&amp;nbsp;&lt;span&gt;0x2a19 sends a permit join request right before the ZC opens the network, so the ZC behaves according to the specification.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1729604214537v3.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Zigbee R22 spec section 2.4.3.3.7 Mgmt_Permit_Joining_req:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1729604228008v5.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In addition the team spotted that&amp;nbsp;based on the sniffer log, your device is a ZR, not a ZED.&amp;nbsp;&lt;/span&gt;&lt;span&gt;It’s possible the youæve called it an end device by mistake but knowing the correct role might be important if we need to investigate why it sends a permit join request&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Andreas&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;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: End Device Joining as New Device When Steering Mode Stopped</title><link>https://devzone.nordicsemi.com/thread/506721?ContentTypeID=1</link><pubDate>Thu, 17 Oct 2024 12:34:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:892ada13-e937-4c3a-aa4a-0fdab8fa6157</guid><dc:creator>Kavitha</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/ahaug"&gt;AHaug&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;Please find my answer to your questions below:&lt;br /&gt;&lt;br /&gt;1.No, it is not part of the reaction to any &lt;code&gt;zb_zdo_app_signal_type_t&lt;/code&gt; signal.&lt;br /&gt;2.No, we are not using the ZB-Scheduler to call &lt;code&gt;stop_steering()&lt;/code&gt;/&lt;code&gt;zb_bdb_close_network()&lt;/code&gt;. We are directly calling the functions.&lt;br /&gt;3.Please find the attached .config file:&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/config_5F00_file.txt"&gt;devzone.nordicsemi.com/.../config_5F00_file.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Yes, we have physical access to the UART interface on our hardware. Could you please guide us on how to collect ZBOSS trace logs? We have checked the return status of &lt;code&gt;zb_bdb_close_network()&lt;/code&gt;, and it always returns &lt;code&gt;RET_OK&lt;/code&gt;, both when the issue occurs and when there are no issues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: End Device Joining as New Device When Steering Mode Stopped</title><link>https://devzone.nordicsemi.com/thread/506235?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2024 07:23:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc990431-b1ac-45e0-91b7-79c0accac5fb</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We would also be interested in checking&amp;nbsp;&lt;span&gt;the zb_bdb_close_network() result (RET_OK/RET_NO_MEMORY/RET_ERROR). The code shows that the return code is ignored. Could you check this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The discussion with them leads us to the following hypothesis:&lt;/span&gt;&lt;/p&gt;
&lt;ol start="1"&gt;
&lt;li&gt;
&lt;p&gt;The &amp;quot;positive permission&amp;quot; observed by the customer seems to be an anomaly. At least that&amp;#39;s what the protocol spec says: possible ZC reactions to AssociationRequest, BeaconRequest, .. are given, but when macAssociationPermit is &amp;quot;false&amp;quot; then in no case is a response containing permission:true allowed.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;According to doc/spec: zb_bdb_close_network() results in the use of a primitive for disabling permissions without a time limit. So yes, in other words the expected behavior is to close network permanently.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Of course, let&amp;#39;s keep in mind that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;we don&amp;#39;t know if zb_bdb_close_network() is effective, because in some cases (like some buffer allocation error) it may not be&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;maybe something additional (another request?) that we don&amp;#39;t know about yet changes the ZC device&amp;#39;s behavior&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Andreas&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: End Device Joining as New Device When Steering Mode Stopped</title><link>https://devzone.nordicsemi.com/thread/506154?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 13:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f826fd21-b74f-48d1-8b2d-6b20aa75a480</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Good timing! I just got an update from the developers. I&amp;#39;ll bring the information you&amp;#39;ve added to the discussion as well.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We have done some preliminary testing and have not encountered any anomalies in the operation of &lt;/span&gt;&lt;code&gt;zb_bdb_close_network()&lt;/code&gt;&lt;span&gt; so far. The coordinator does not behave as you describe after closing the network, it does not resume a &amp;quot;association permit: true&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;In other words we need to isolate the reason for&amp;nbsp;&lt;em&gt;&amp;quot;This issue is inconsistent, occurring only at certain times&amp;quot;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Could you supply an answer the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;from what context is the &lt;code&gt;void stop_steering()&lt;/code&gt; mentioned in the description used in the application&lt;br /&gt;(is it perhaps part of the reaction to some &lt;code&gt;zb_zdo_app_signal_type_t&lt;/code&gt; signal?)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;is zb-scheduler used to call &lt;code&gt;stop_steering&lt;/code&gt;/ &lt;code&gt;zb_bdb_close_network&lt;/code&gt;, i.e. by the ZB_SCHEDULE_APP_CALLBACK/ZB_SCHEDULE_APP_ALARM macro, or is the use direct?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;it might also be useful to know the details of the configuration (CONFIG_ZIGBEE_..), e.g. by sharing the &amp;quot;application/build/zephyr/.config&amp;quot; file.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Additionally, if we knew whether the your device that is operating on &amp;quot;&lt;em&gt;Custom hardware with nRF52840&lt;/em&gt;&amp;quot; had physical access to the UART interface, we could consider configuring the ZBOSS traces functionality (&lt;span&gt;&lt;span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.1.0/page/nrf/ug_zigbee_configuring_zboss_traces.html)"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;Technical Documentation&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt; to help with debugging and ask if you could share the collected logs.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: End Device Joining as New Device When Steering Mode Stopped</title><link>https://devzone.nordicsemi.com/thread/506099?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 11:58:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d87adafc-42bf-430c-8f38-241b1c31ae4f</guid><dc:creator>Kavitha</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/ahaug"&gt;AHaug&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;I wanted to clarify something regarding the code snippet I shared earlier. In the actual implementation of the &lt;code&gt;stop_steering()&lt;/code&gt; function, I had included the line to initialize the buffer (&lt;code&gt;zb_bufid_t buffer = 0;&lt;/code&gt;), but I accidentally missed sharing it in the snippet provided.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;Here is the corrected version:&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;pre class="ui-code" data-mode="text"&gt;void stop_steering() 
{ 
   ZB_SCHEDULE_APP_ALARM_CANCEL(steering_finished, ZB_ALARM_ANY_PARAM); 
   LOG_INF(&amp;quot;Network stopped&amp;quot;); 
   zb_bufid_t buffer = 0; 
   zb_bdb_close_network(buffer);
} &lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;We would greatly appreciate your quick response to resolve the issue at your earliest convenience.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: End Device Joining as New Device When Steering Mode Stopped</title><link>https://devzone.nordicsemi.com/thread/505696?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 10:05:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c3b4acb-b78a-43d1-a1f6-21b8a55fbd5b</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi Kavitha,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve queried the developers regarding your questions for some verification w.r.t what is going on. I will reach out to you shortly with a status report and with an answer when I hear back from them regarding this&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>