<?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>[Zigbee] Sleepy end device get out of sleep in approx 10 mins</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78493/zigbee-sleepy-end-device-get-out-of-sleep-in-approx-10-mins</link><description>Hi everyone, 
 I have this question to ask. So I am trying do make an end device that run on low power. I can see that there is an example about the sleepy end device in the Zigbee and Thread SDK 4.1. So i try it and measure the current through the prolifier</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Oct 2021 06:41:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78493/zigbee-sleepy-end-device-get-out-of-sleep-in-approx-10-mins" /><item><title>RE: [Zigbee] Sleepy end device get out of sleep in approx 10 mins</title><link>https://devzone.nordicsemi.com/thread/334477?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 06:41:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de298cfe-d8ed-455b-afec-a46a5269b05d</guid><dc:creator>Tu Hoang</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply, I have tested the new setting for the SDK and let the board run for 12 hours straight to find out that the power consumption did not suffer from the waking problem like before. So I guess that your walkaround solve the problem.&lt;/p&gt;
&lt;p&gt;Thank you very much, I could not do it without your support.&lt;/p&gt;
&lt;p&gt;Best regards and have a nice day,&lt;/p&gt;
&lt;p&gt;Tu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Sleepy end device get out of sleep in approx 10 mins</title><link>https://devzone.nordicsemi.com/thread/330198?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 08:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bb1c220-a75b-4a89-9774-0e857007bca4</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Tu,&lt;/p&gt;
&lt;p&gt;Have you been able to test the workaround? Did it work, or are you still experiencing this issue?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Sleepy end device get out of sleep in approx 10 mins</title><link>https://devzone.nordicsemi.com/thread/328938?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 07:42:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d87b43c-1cda-43af-9079-00aaab7cec28</guid><dc:creator>Tu Hoang</dc:creator><description>&lt;p&gt;Hi Marte,&lt;/p&gt;
&lt;p&gt;Thank you for the reply, so as i can see the value RADIO_DRIVER_RTC_OVRFLW_S the the amount of time in second that a device is allow to sleep.Anyway, I will try it and tell you the result.&lt;/p&gt;
&lt;p&gt;Thank you for your help,&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Tu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Sleepy end device get out of sleep in approx 10 mins</title><link>https://devzone.nordicsemi.com/thread/328923?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 07:04:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5954ffa7-8317-4ec8-b3f6-f652336fd9a9</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Tu,&lt;/p&gt;
&lt;p&gt;This might be caused by the sleep period being longer than RTC overflow, as RTC overflow is 520 seconds, which is rather close to 10 minutes. Please try to make the following changes in&amp;nbsp;external/zboss/osif/zb_nrf52_timer.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// In file: external/zboss/osif/zb_nrf52_timer.c
// make two changes
///////////////////////////////////////////
// Need this defines for later sleep period
// calculations.
// 
// Change this block:
#define ZB_NRF52_TIMER_VALUE    15360  /*microseconds in one beacon interval*/
// to this block:
#define ZB_NRF52_TIMER_VALUE      15360  /*microseconds in one beacon interval*/
#define MS_PER_S                  1000UL /* Miliseconds in one second. */
#define RADIO_DRIVER_RTC_OVRFLW_S 512UL  /* Time that has passed between overflow events. On full RTC speed, it occurs every 512 s. */
#define ZB_NRF52_MAX_SLEEP_PERIOD_MS  ((RADIO_DRIVER_RTC_OVRFLW_S - 1) * MS_PER_S) /* Zigbee max sleep period to prevent RTC timer overflow. */
///////////////////////////////////////////
///////////////////////////////////////////
// Workaround for long zigbee sleep period.
// Sleep period longer than RTC overflow,
// results in very short sleep scheduled,
// waking up the CPU frequently.
// 
// Change this block:
m_timer.dt        = 1000 * sleep_tmo;
// To this block:
/* Workaround for long zigbee sleep period.
 * Device wakes up on RTC event and scheduling sleep period
 * longer than RTC overflow (512 seconds) can result in very short sleep scheduled
 * whick wakes up CPU frequently and increases power consumptiom.
 */
m_timer.dt        = 1000 * ((sleep_tmo &amp;gt; (ZB_NRF52_MAX_SLEEP_PERIOD_MS)) ? (ZB_NRF52_MAX_SLEEP_PERIOD_MS) : (sleep_tmo));
///////////////////////////////////////////&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Sleepy end device get out of sleep in approx 10 mins</title><link>https://devzone.nordicsemi.com/thread/328853?ContentTypeID=1</link><pubDate>Thu, 09 Sep 2021 13:32:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31fb44e6-d16e-40d8-91ca-777fe0f699bb</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Tu,&lt;/p&gt;
&lt;p&gt;I am sorry for the delay.&lt;/p&gt;
&lt;p&gt;I do not already know of any reason for the current consumption to suddenly go up after 10 minutes. I have tried to&amp;nbsp;look into it to see if I could figure out why this is happening, but I have not been able to find an explanation as of yet. Are you able to turn on more logging? If you get logging from the&amp;nbsp;zigbee_default_signal_handler() in zigbee_helpers.c, then you might see if the Zigbee stack generates any signal that is handled there when the current increase happens.&lt;/p&gt;
&lt;p&gt;I have asked our developers if they know what might be the cause of this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Sleepy end device get out of sleep in approx 10 mins</title><link>https://devzone.nordicsemi.com/thread/328562?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 11:03:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8167b44e-4ded-4294-a0ea-1d1fb727f6c4</guid><dc:creator>Tu Hoang</dc:creator><description>&lt;p&gt;Hi Torbj&amp;oslash;rn,&lt;/p&gt;
&lt;p&gt;Is there any update on the problem?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Tu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Sleepy end device get out of sleep in approx 10 mins</title><link>https://devzone.nordicsemi.com/thread/325319?ContentTypeID=1</link><pubDate>Tue, 17 Aug 2021 13:22:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5879e9d1-3c55-4bba-86a1-f7c87b2d8ea4</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Tu&lt;/p&gt;
&lt;p&gt;I think I will need help from the Zigbee experts to investigate this further, and I will do my best to get back to you early next week when they are back in office.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Sleepy end device get out of sleep in approx 10 mins</title><link>https://devzone.nordicsemi.com/thread/325037?ContentTypeID=1</link><pubDate>Mon, 16 Aug 2021 08:26:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91cf046c-5228-4ae3-95f1-d506bc804f77</guid><dc:creator>Tu Hoang</dc:creator><description>&lt;p&gt;Hi Torbj&amp;oslash;rn,&lt;/p&gt;
&lt;p&gt;Yes, you got that right, no devices were trying to communication to my board as well as my board was not connect to zigbee since there are no gw to send permit join request.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Tu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Sleepy end device get out of sleep in approx 10 mins</title><link>https://devzone.nordicsemi.com/thread/325034?ContentTypeID=1</link><pubDate>Mon, 16 Aug 2021 08:16:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6645d765-f0a9-4a75-a17c-c92a4c45a767</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Tu&lt;/p&gt;
&lt;p&gt;Thanks for the additional information.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So if I understand you correctly you are not connected to anything over Zigbee?&lt;/p&gt;
&lt;p&gt;There are no other Zigbee devices in the area that might try to communicate with yours?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Sleepy end device get out of sleep in approx 10 mins</title><link>https://devzone.nordicsemi.com/thread/324738?ContentTypeID=1</link><pubDate>Fri, 13 Aug 2021 02:13:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:172b453f-87d1-41c2-8b44-c1186de5268a</guid><dc:creator>Tu Hoang</dc:creator><description>&lt;p&gt;Hi Ovrebekk,&lt;/p&gt;
&lt;p&gt;Nice to meet you.&lt;/p&gt;
&lt;p&gt;Yes, i have a JlinkV9 debugger and use RTTViewer to see the log. I also put the code below in the zigbee handler and it is showing the time it have before waking up. In the first 10 mins, it just showing occationally the sleep_tmo. and the number are changing correctly (from the maximum timeout to to 0) but after 10 mins or even less, the sleep_tmo is poping up repeatedly (like in milisec). Beside that, I do not have anything in the log since the code i modified from the example are at the bare minimum of the example. I guess this have something to do with the Zigbee since i am not starting anything else but a buttons and some leds.&lt;/p&gt;
&lt;p&gt;This is always happen every time after i reset and start up the program.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        case ZB_COMMON_SIGNAL_CAN_SLEEP:
            {
                zb_zdo_signal_can_sleep_params_t *can_sleep_params = ZB_ZDO_SIGNAL_GET_PARAMS(p_sg_p, zb_zdo_signal_can_sleep_params_t);
                NRF_LOG_INFO(&amp;quot;Can sleep for %ld ms&amp;quot;, can_sleep_params-&amp;gt;sleep_tmo);
                zb_sleep_now();
            }
        break;
        &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Hope that help,&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Tu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Sleepy end device get out of sleep in approx 10 mins</title><link>https://devzone.nordicsemi.com/thread/324687?ContentTypeID=1</link><pubDate>Thu, 12 Aug 2021 13:39:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22a8bb11-2fb4-405f-8e46-f977b64472c3</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately most of my colleagues experienced with Zigbee are on holiday for this week and next, so it is a bit limited what Zigbee support we can provide until they are back.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you done any testing with the debugger to try and figure out what might be happening when the current consumption increases?&lt;/p&gt;
&lt;p&gt;Might there be any log output that could indicate something?&lt;/p&gt;
&lt;p&gt;Would you say it happens consistently after a reset, at the same time?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>