<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>[Update Zigbee SDK] Problem when update from zigbee and thread 4.1.0 to zigbee and thread 4.2.0</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88174/update-zigbee-sdk-problem-when-update-from-zigbee-and-thread-4-1-0-to-zigbee-and-thread-4-2-0</link><description>Hi guys, 
 I have a question about migration guide from the old 4.1.0 thread and zigbee sdk to 4.2.0. 
 The story is that I have this project running 4.1.0 on my custom board with some bugs that seems to be fixed in 4.2.0 due to the release note. When</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Wed, 01 Jun 2022 02:04:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88174/update-zigbee-sdk-problem-when-update-from-zigbee-and-thread-4-1-0-to-zigbee-and-thread-4-2-0" /><item><title>RE: [Update Zigbee SDK] Problem when update from zigbee and thread 4.1.0 to zigbee and thread 4.2.0</title><link>https://test-devzone.nordicsemi.com/thread/370312?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 02:04:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7658224-f5a8-4011-b58c-e1b6d0d79868</guid><dc:creator>user97655</dc:creator><description>&lt;p&gt;Thanks you for your answer it is good to know this behavior is nothing abnormal.&lt;/p&gt;
&lt;p&gt;The support team in Nordic never let me down. Thanks a lot&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: [Update Zigbee SDK] Problem when update from zigbee and thread 4.1.0 to zigbee and thread 4.2.0</title><link>https://test-devzone.nordicsemi.com/thread/370266?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 14:16:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c47e5276-dc64-439c-83b7-2222a052efe2</guid><dc:creator>user93921</dc:creator><description>&lt;p&gt;Hi Tu,&lt;/p&gt;
&lt;p&gt;Here ZB_USE_SLEEP is defined in zb_vendor.h, so this router device will respond to the sleep signal.&amp;nbsp;This &lt;strong&gt;can_sleep signal&lt;/strong&gt; is related to the &amp;quot;Sleepy&amp;quot; End Device but &amp;quot;Sleepy&amp;quot; End Device is more than that.&lt;/p&gt;
&lt;p&gt;I got a more detailed explanation from our Zigbee development team:&lt;/p&gt;
&lt;div&gt;ZBOSS stack libraries used in v4.2 are built with a slightly different configuration. For example, ZBOSS stack can be put to sleep for every role, previously it was limited to End Devices only (End Devices are linked with _ed library variant and previously only this library was compiled with ZB_USE_SLEEP enabled).&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;In principle, this &lt;strong&gt;can_sleep signal&lt;/strong&gt; is used to inform that the stack has nothing to do for some time. ZBOSS has its own scheduler so it can calculate for how long it can &amp;quot;sleep&amp;quot;. It&amp;#39;s especially useful in NCS where there are other threads that may need some CPU time but have lower priority than zboss-thread.&lt;br /&gt;&lt;br /&gt;&amp;quot;&lt;strong&gt;Sleepy mode for End Device&lt;/strong&gt;&amp;quot; is more than that. It changes how the device behaves in the network.As End Device, the device sends Data requests to the parent device with a fixed interval:&lt;/div&gt;
&lt;div&gt;When it&amp;#39;s &amp;quot;sleepy&amp;quot;, the device turns on its radio on regular basis to ask parent device about pending packets. Radio is turned off when there no more packets to receive or send.&lt;/div&gt;
&lt;div&gt;When it&amp;#39;s not &amp;quot;sleepy&amp;quot;, the radio is always on so the device can receive packets.&lt;/div&gt;
&lt;div&gt;&amp;quot;Sleepy&amp;quot; End Device is meant for battery-powered applications because it&amp;#39;s optimized for low power consumption - radio is off for most of the time and application usually has little to process so the CPU can be halted (WFE/WFI to be precise) for longer periods of time.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;/div&gt;
&lt;div&gt;Charlie&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Update Zigbee SDK] Problem when update from zigbee and thread 4.1.0 to zigbee and thread 4.2.0</title><link>https://test-devzone.nordicsemi.com/thread/370058?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 00:53:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:514d3311-e001-4c3d-8280-ee13a115c6fe</guid><dc:creator>user97655</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;Well in the light bulb example, the device is a router so it will not process that signal but will put it in default case. If I remember correctly unless the device plays the role of a end device, it will never handle that signal.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#ifdef ZB_USE_SLEEP
        case ZB_COMMON_SIGNAL_CAN_SLEEP:
            /* Zigbee stack can enter sleep state.
             * If the application wants to proceed, it should call zb_sleep_now() function.
             *
             * Note: if the application shares some resources between Zigbee stack and other tasks/contexts,
             *       device disabling should be overwritten by implementing one of the weak functions inside zb_nrf52840_common.c.
             */
            zb_sleep_now();
            break;
#endif
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As you can see the handle of this signal is only enable with ZB_USE_SLEEP is defined and that macro is only there if the device is ED as in the code below&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#ifdef ZB_ED_ROLE
#define ZB_USE_SLEEP
#endif
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So It does not really explain my question which is why in my &lt;em&gt;void zboss_signal_handler(zb_bufid_t bufid) &lt;/em&gt;if I put the log there it will show that there are signal 22(ZB_SIGNAL_CAN_SLEEP) coming repeatedly, but when the signal is handled by &lt;em&gt;zigbee_default_signal_handler &lt;/em&gt;, somehow the defaults handler ignore it.&lt;/p&gt;
&lt;p&gt;I want to know how to do it just to verify if this behavior is normal and if it will have any effect on the overall performance of the system.&lt;/p&gt;
&lt;p&gt;Looking forward to hearing from you,&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: [Update Zigbee SDK] Problem when update from zigbee and thread 4.1.0 to zigbee and thread 4.2.0</title><link>https://test-devzone.nordicsemi.com/thread/370027?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 14:17:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e41948a6-5b23-4462-adef-5a03ee100c3a</guid><dc:creator>user93921</dc:creator><description>&lt;p&gt;Hi Tu,&lt;/p&gt;
&lt;p&gt;Shouldn&amp;#39;t this singal be processed by the following codes in&amp;nbsp;zigbee_default_signal_handler function?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        case ZB_COMMON_SIGNAL_CAN_SLEEP:
        //NRF_LOG_INFO(&amp;quot;zboss_signal_handler signal %d&amp;quot;, sig);
            /* Zigbee stack can enter sleep state.
             * If the application wants to proceed, it should call zb_sleep_now() function.
             *
             * Note: if the application shares some resources between Zigbee stack and other tasks/contexts,
             *       device disabling should be overwritten by implementing one of the weak functions inside zb_nrf52840_common.c.
             */
            zb_sleep_now();
            break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Update Zigbee SDK] Problem when update from zigbee and thread 4.1.0 to zigbee and thread 4.2.0</title><link>https://test-devzone.nordicsemi.com/thread/369662?ContentTypeID=1</link><pubDate>Thu, 26 May 2022 11:10:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47753cdc-fafd-427e-a46a-aeb0ee434fa3</guid><dc:creator>user97655</dc:creator><description>&lt;p&gt;Hi Charlie&lt;/p&gt;
&lt;p&gt;So, I have some update on the problem. So the problem is that I have this&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void zboss_signal_handler(zb_bufid_t bufid)
{
    zb_zdo_app_signal_hdr_t *p_sg_p = NULL;
    zb_zdo_app_signal_type_t sig = zb_get_app_signal(bufid, &amp;amp;p_sg_p);
    zb_ret_t status = ZB_GET_APP_SIGNAL_STATUS(bufid);
    /*NRF_LOG_INFO(&amp;quot;zboss_signal_handler signal %d&amp;quot;, sig);*/
    switch (sig) {
        default:
            ZB_ERROR_CHECK(zigbee_default_signal_handler(bufid));
        break;
    }
}
        &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If I uncomment the Log in this funtion it will pop up repeatedly signal 22. But the weird thing is that in the zigbee_default_signal_handler(bufid), when signal 22 hit, it will go to default like in this code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        default:
            /* Unimplemented signal. For more information see: zb_zdo_app_signal_type_e and zb_ret_e. */
            NRF_LOG_INFO(&amp;quot;Unimplemented signal (signal: %d, status: %d)&amp;quot;, sig, status);
            break;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But I can never see the log pop up which means that The code in default signal handler has do some thing to filter out the signal. But still I can not figure out how to achieve the same outcome in the self implemented zboss_signal_handler&lt;/p&gt;
&lt;p&gt;I also test with the devkit pca10100 and have the same outcome. I also attach the code for you to check it out&lt;/p&gt;
&lt;p&gt;&lt;a href="https://test-devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3884.light_5F00_bulb.zip"&gt;test-devzone.nordicsemi.com/.../3884.light_5F00_bulb.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you&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: [Update Zigbee SDK] Problem when update from zigbee and thread 4.1.0 to zigbee and thread 4.2.0</title><link>https://test-devzone.nordicsemi.com/thread/369398?ContentTypeID=1</link><pubDate>Wed, 25 May 2022 02:59:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95e42db2-50f9-40dc-80c7-8df06f98c80f</guid><dc:creator>user97655</dc:creator><description>&lt;p&gt;Thank you for your support I will attach the SDK config files and makefile for you to check if there are any configuration should be made&lt;/p&gt;
&lt;p&gt;&lt;a href="https://test-devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0726.app_5F00_config.h"&gt;test-devzone.nordicsemi.com/.../0726.app_5F00_config.h&lt;/a&gt;&lt;a href="https://test-devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1307.sdk_5F00_config.h"&gt;test-devzone.nordicsemi.com/.../1307.sdk_5F00_config.h&lt;/a&gt;&lt;a href="https://test-devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8244.Makefile.txt"&gt;test-devzone.nordicsemi.com/.../8244.Makefile.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Update Zigbee SDK] Problem when update from zigbee and thread 4.1.0 to zigbee and thread 4.2.0</title><link>https://test-devzone.nordicsemi.com/thread/369264?ContentTypeID=1</link><pubDate>Tue, 24 May 2022 11:39:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71c249f9-1972-4a81-ba7a-d0d685819d10</guid><dc:creator>user93921</dc:creator><description>&lt;p&gt;Ok,&amp;nbsp;Is it possible some specific modification in your application triggered this issue? I will also check with our development team for the possible cause. Let&amp;#39;s keep each other updated.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Update Zigbee SDK] Problem when update from zigbee and thread 4.1.0 to zigbee and thread 4.2.0</title><link>https://test-devzone.nordicsemi.com/thread/369137?ContentTypeID=1</link><pubDate>Tue, 24 May 2022 02:39:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a2e3830-b54b-47ec-a911-75d7e6608425</guid><dc:creator>user97655</dc:creator><description>&lt;p&gt;Well, I have tried it and no I do not have the same problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Update Zigbee SDK] Problem when update from zigbee and thread 4.1.0 to zigbee and thread 4.2.0</title><link>https://test-devzone.nordicsemi.com/thread/369019?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 12:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed625b46-0663-4b04-be2b-3c2001cd4e56</guid><dc:creator>user93921</dc:creator><description>&lt;p&gt;Hi Tu,&lt;/p&gt;
&lt;p&gt;Have you&amp;nbsp;experienced the same issue when you test&amp;nbsp;the original&amp;nbsp;&lt;span&gt;ZigBee light bulb&amp;nbsp;sample on nRF52840DK?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>