<?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>[Zigbee] Problem with Zcl callback handler in zigbee and thread 4.2.0</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88440/zigbee-problem-with-zcl-callback-handler-in-zigbee-and-thread-4-2-0</link><description>Hi guys, 
 So lately, I decided to update the sdk from 4.1.0 to 4.2.0 and there are some problem that I can not solve myself. So I use the macro ZB_ZCL_REGISTER_DEVICE_CB to register a device call back in 4.1.0 and now keeping it in 4.2.0. 
 But I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Mon, 13 Jun 2022 09:40:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88440/zigbee-problem-with-zcl-callback-handler-in-zigbee-and-thread-4-2-0" /><item><title>RE: [Zigbee] Problem with Zcl callback handler in zigbee and thread 4.2.0</title><link>https://test-devzone.nordicsemi.com/thread/372071?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 09:40:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:526fcc9c-6eea-4af6-87ee-8a1e124c5c60</guid><dc:creator>user97655</dc:creator><description>&lt;p&gt;Thank you for your answer and sorry for the late reply,&lt;/p&gt;
&lt;p&gt;So this behavior can be easily seen by using CLI dongle and a NRF_dev board running example from the two light bulb example. You can just add some log in the zcl handler and using the cli dongle to send on/off command. You can tried to send 2-3 off command to see that only the first off command will trigger the callback&lt;/p&gt;
&lt;p&gt;So if nothing you can do to change the SDK, is there any other way I can use to fix this behavior like changing to another command or something.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Tu&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Problem with Zcl callback handler in zigbee and thread 4.2.0</title><link>https://test-devzone.nordicsemi.com/thread/371173?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 13:29:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ef1eee0-ae1b-44cc-8c45-b2fd60e202bf</guid><dc:creator>user26071</dc:creator><description>&lt;p&gt;Is this seen in e.g. the light bulb examples in v4.1.0 and 4.2.0? It is still a bit vague to me. If not, can you zip and send some examples that I can use to replicate this on a few DKs?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Disclaimer:&lt;/p&gt;
&lt;p&gt;If the behavior did actually change, I guess there isn&amp;#39;t much we can do, since the nRF5 SDK for Thread and Zigbee is in maintenance mode (meaning there will not be any updates unless there are crucial security bugs that need patching). All future development is on the nRF Connect SDK (NCS).&lt;/p&gt;
[quote user="Tu Hoang"]But the problem is that after a reset, the value on/off in the cluster attribute is return to 0.[/quote]
&lt;p&gt;So this was not the case in 4.1.0? If it was not, then I assume that this must have been stored in flash by the zboss stack (but I don&amp;#39;t think it is).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Problem with Zcl callback handler in zigbee and thread 4.2.0</title><link>https://test-devzone.nordicsemi.com/thread/370975?ContentTypeID=1</link><pubDate>Mon, 06 Jun 2022 02:37:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55c0e125-b644-4208-8353-3a75bb6a551e</guid><dc:creator>user97655</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Sorry for the late response and making the last reply unclear&lt;/p&gt;
&lt;p&gt;I do not use binding and configure report but use API such as to create a report message and send.&lt;/p&gt;
&lt;p&gt;So in my system I have a set of buttons; each goes with one endpoint and have an on/off cluster. If I press a button I want it to send an on/off to the coordinator and the coordinator will work as a gateway to send out the data through Ethernet to the server. I also have an app to control the button through the internet by using the data in the server. Because I form my own package report without configure (using marcro like ZB_ZCL_START_PACKET, ZB_ZCL_CONSTRUCT_GENERAL_COMMAND_REQ_FRAME_CONTROL, ZB_ZCL_CONSTRUCT_COMMAND_HEADER, ZB_ZCL_PACKET_PUT_DATA8 and ZB_SEND_SHORT_CMD) I usually just send the message without making changes in cluster attribute. This will make the data on the server and the attribute value in devices go un-sync. So there will be cases when the attribute is off/on and the command send to the device is also off/on. The call back was declared with ZB_ZCL_REGISTER_DEVICE_CB as usual. In 4.1.0, the callback register by that macro is always called whenever there are a on/off command. But from what I see, in 4.2.0, The callback will only called when the value in on/off command change the attribute in device cluster. If the value in that endpoint is off and I send an off command to it , it will not change anything thus the callback is not triggered. The same case goes with on. So what I did is to add ZB_ZCL_SET_ATTRIBUTE to everytime I press the buttons.&lt;/p&gt;
&lt;p&gt;But the problem is that after a reset, the value on/off in the cluster attribute is return to 0. What I ask is that is there any way I can persist the value on every reset without initiate a new regions in Fds.&amp;nbsp; Also, Is there any way I can get the callback to call every time.&lt;/p&gt;
&lt;p&gt;Thank you and looking forward for your answer,&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Tu&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Problem with Zcl callback handler in zigbee and thread 4.2.0</title><link>https://test-devzone.nordicsemi.com/thread/370331?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 06:28:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2e372a7-d78b-42c0-89bb-9288b8b4345b</guid><dc:creator>user26071</dc:creator><description>&lt;p&gt;Hello Tu,&lt;/p&gt;
&lt;p&gt;It is not clear to me what you used to do and what you have to do now. Can you explain in detail how you used to change the value, which doesn&amp;#39;t work anymore. What API did you use?&lt;/p&gt;
[quote user="Tu Hoang"]In the last SDK version 4.1.0 I do not need to set the value in the cluster but looks like in 4.2.0 your developers have made some changes so now the on/off command is only callback when the value to change is different from the value in the command[/quote]
&lt;p&gt;How did you do it before?&lt;/p&gt;
[quote user="Tu Hoang"]But I have one more problem, after reset does the value that I use ZB_ZCL_SET_ATTRIBUTE will persist since when I reset the device the issue happen again.[/quote]
&lt;p&gt;Can you explain what you mean by this? This is not clear to me.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Zigbee] Problem with Zcl callback handler in zigbee and thread 4.2.0</title><link>https://test-devzone.nordicsemi.com/thread/370313?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 02:12:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98e3cff8-04ad-4ae2-bb3a-04ff33043c7a</guid><dc:creator>user97655</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Well I have just figured it out that I need to use this marco ZB_ZCL_SET_ATTRIBUTE to set the cluster on/off value correspondingly whenever I change the state with the button so that when the on/off command is receive it will call the zcl callback function.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the last SDK version 4.1.0 I do not need to set the value in the cluster but looks like in 4.2.0 your developers have made some changes so now the on/off command is only callback when the value to change is different from the value in the command. Now everything works as normal.&lt;/p&gt;
&lt;p&gt;But I have one more problem, after reset does the value that I use ZB_ZCL_SET_ATTRIBUTE will persist since when I reset the device the issue happen again.&lt;/p&gt;
&lt;p&gt;I am look 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: [Zigbee] Problem with Zcl callback handler in zigbee and thread 4.2.0</title><link>https://test-devzone.nordicsemi.com/thread/370258?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 13:57:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fa82e9b-1a79-40d3-9a6d-277f30ffbfc3</guid><dc:creator>user26071</dc:creator><description>&lt;p&gt;Hello Tu,&lt;/p&gt;
&lt;p&gt;This is not something that I have seen reported before. Do you have some application that I can use to replicate this behavior? Or did you just use one of the already existing examples?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>