<?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>Issue with End Device Timeout Configuration on nRF52840 Sleepy End Device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114881/issue-with-end-device-timeout-configuration-on-nrf52840-sleepy-end-device</link><description>We are developing a sleepy end device using the nRF52840, based on the light switch sample. We have set zb_set_ed_timeout to 16384 minutes, which is approximately 11 days. I have attached a Wireshark log where you can observe the End Device Timeout Request</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Oct 2024 10:15:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114881/issue-with-end-device-timeout-configuration-on-nrf52840-sleepy-end-device" /><item><title>RE: Issue with End Device Timeout Configuration on nRF52840 Sleepy End Device</title><link>https://devzone.nordicsemi.com/thread/505140?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2024 10:15:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8af7d6e2-1281-43d5-b7d1-3d47ed01b88b</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Kavitha"]Based on your response, I believe that for these settings, the end device should send three End Device Timeout requests within 64 minutes. Am I correct? However, I don&amp;#39;t see any End Device Timeout requests after packet no. 17. I waited more than 2 hours and still did not see any End Device Timeout requests. Please have a look at the attached sniffer log (&amp;quot;lightSwitch_Networkcoordinator_Sample&amp;quot;). The device address is &lt;strong&gt;&lt;em&gt;0xdb22&lt;/em&gt;&lt;/strong&gt;.[/quote]
&lt;p&gt;End devices can use MAC Data Poll and End Device Timeout Request as keepalive mechanisms. What is used depends on what the parent device supports, which the parent informs the end device about in the first End Device Timeout Response. Looking at the sniffer log, the parent only supports MAC Data Poll keepalive, so the end device will poll its parent using Data Request packets.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" title="" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1728295457843v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If you look at the first End Device Response from the Deconz gateway, you can see that it supports both MAC Data Poll and End Device Timeout Request:&lt;/p&gt;
&lt;p&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/pastedimage1728296064300v6.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&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><item><title>RE: Issue with End Device Timeout Configuration on nRF52840 Sleepy End Device</title><link>https://devzone.nordicsemi.com/thread/504985?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2024 11:49:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4eec6f5d-512c-4e08-aef5-c7167c71d7f9</guid><dc:creator>Kavitha</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/marte.m"&gt;Marte Myrvold&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;I have done some testing with two different coordinators. One gateway is programmed with the Zigbee coordinator sample, and the other is a Deconz(ConBee ||) gateway. I have observed different behaviors between them.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;Testing 1:&lt;/strong&gt;&lt;br /&gt;&lt;span&gt;The end device is programmed with the Zigbee light switch sample, SDK version 2.0.0, and the gateway is programmed with the Zigbee network coordinator sample, SDK 2.1.0.&lt;/span&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;The light switch sample program has the following settings:&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;zb_set_ed_timeout(ED_AGING_TIMEOUT_64MIN);
zb_set_keepalive_timeout(ZB_MILLISECONDS_TO_BEACON_INTERVAL(((64 * 60 * 1000) / 4)));&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Based on your response, I believe that for these settings, the end device should send three End Device Timeout requests within 64 minutes. Am I correct? However, I don&amp;#39;t see any End Device Timeout requests after packet no. 17. I waited more than 2 hours and still did not see any End Device Timeout requests. Please have a look at the attached sniffer log (&amp;quot;lightSwitch_Networkcoordinator_Sample&amp;quot;). The device address is &lt;strong&gt;&lt;em&gt;0xdb22&lt;/em&gt;&lt;/strong&gt;.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/lightSwitch_5F00_Networkcoordinator_5F00_Sample.pcapng"&gt;devzone.nordicsemi.com/.../lightSwitch_5F00_Networkcoordinator_5F00_Sample.pcapng&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Testing 2:&lt;/strong&gt;&lt;br /&gt;When I connected the same end device, programmed with the same light switch sample and with the same end device timeout and keepalive timeout configuration, to the Deconz(ConBee ||) gateway, the end device sent an End Device Timeout request every 16 minutes. Please have a look at the attached sniffer log (&amp;quot;DeconzGatewaywithLightswitchsample&amp;quot;). The device address is &lt;strong&gt;&lt;em&gt;0x40cb&lt;/em&gt;&lt;/strong&gt;.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/DeconzGatewaywithLightswitchsample.pcapng"&gt;devzone.nordicsemi.com/.../DeconzGatewaywithLightswitchsample.pcapng&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For the Deconz(ConBee ||) gateway, it seems to be working correctly, but with the Zigbee network coordinator sample, it is not. Can you please clarify this?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with End Device Timeout Configuration on nRF52840 Sleepy End Device</title><link>https://devzone.nordicsemi.com/thread/504296?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2024 08:38:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a9a6794-0392-4cd6-b7b7-f3e73ea15a06</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Kavitha,&lt;/p&gt;
&lt;p&gt;I apologize for the delay.&lt;/p&gt;
[quote user=""]According to the above configuration, I should expect the End Device Timeout Request every 16384 minutes. Is this correct?[/quote]
&lt;p&gt;The frequency at which the end device polls its parents, i.e., sends an End Device Timeout Reque, is set with zb_set_keepalive_timeout. In your configuration, you are setting it to poll every 4096 minutes.&lt;/p&gt;
[quote user=""]What is the maximum value for &lt;strong&gt;&lt;code&gt;zb_set_ed_timeout&lt;/code&gt;&lt;/strong&gt;?[/quote]
&lt;p&gt;The maximum value is 16384 minutes, set by the Zigbee specification. The specification does not specify how often the end device should poll its parent, but it is recommended that it poll its parent three times during the end device timeout.&lt;/p&gt;
&lt;p&gt;I do not know why the end device polls every 11 minutes when you set the polling period to 4096 minutes, but I will investigate this and get back to you in a couple of days.&lt;/p&gt;
&lt;p&gt;Have you tested with other coordinators or parent devices, particularly from other manufacturers? Do you see the same behavior regardless of the parent device?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>