<?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 attribute reporting not reporting as configured.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49156/zigbee-attribute-reporting-not-reporting-as-configured</link><description>Since migrating to the Zigbee 3.1 SDK I have noticed a few oddities with the behavior of attribute reporting that I am thinking are related to the following bugfix: 
 
 The end device that I am working on is connected to a SmartThings hub. The device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Nov 2019 13:58:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49156/zigbee-attribute-reporting-not-reporting-as-configured" /><item><title>RE: Zigbee attribute reporting not reporting as configured.</title><link>https://devzone.nordicsemi.com/thread/220329?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 13:58:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85bec8a0-e676-4d82-8f1d-4b51a4078593</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Yes, this issue was fixed in SDK v3.2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee attribute reporting not reporting as configured.</title><link>https://devzone.nordicsemi.com/thread/219966?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2019 03:25:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:accee62a-912c-424c-8413-0bf0683dfbbd</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/patrick"&gt;Patrick&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Looks like this bug&amp;nbsp;&lt;/p&gt;
[quote userid="73423" url="~/f/nordic-q-a/49156/zigbee-attribute-reporting-not-reporting-as-configured/196872"]Is there a workaround to the bug you mentioned to store the reporting configuration?[/quote]
&lt;p&gt;is fixed in SDK v3.2, see this line from the release notes.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;- Fixed a bug that caused the reporting configuration to fall back to default values after the device reboot.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee attribute reporting not reporting as configured.</title><link>https://devzone.nordicsemi.com/thread/197571?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2019 09:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e5c0929-53d1-43fa-a2af-47df57a2fb56</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Patrick.&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;I have not found any more information about attribute reporting configuration than what is written in ZCL 2.5.11.2.&lt;/p&gt;
&lt;p&gt;I think that should clairfy attribute reportings should be sent.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee attribute reporting not reporting as configured.</title><link>https://devzone.nordicsemi.com/thread/196877?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 14:26:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a153d089-3c27-43bd-8113-bae34d339341</guid><dc:creator>Patrick</dc:creator><description>[quote userid="73423" url="~/f/nordic-q-a/49156/zigbee-attribute-reporting-not-reporting-as-configured/196872"]The only workaround so to speak is to set ERASE_PERSISTENT_CONFIG to ZB_TRUE.[/quote]
&lt;p&gt;So do not rely on attribute report configuration in at least this version of ZBOSS for both device-side and coordinator side configuration. This configuration must take place every time the device connects.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee attribute reporting not reporting as configured.</title><link>https://devzone.nordicsemi.com/thread/196872?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 14:17:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b395741-0e05-4de4-bc7d-448ce8416a33</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
[quote user="pcaddict"]a report will only be sent if the reportable attribute is also greater than the reportable change value. Is this correct?[/quote]
&lt;p&gt;&amp;nbsp;I will ask our developers about this so that we get a proper answer.&lt;/p&gt;
[quote user="pcaddict"]Is there a workaround to the bug you mentioned to store the reporting configuration?[/quote]
&lt;p&gt;&amp;nbsp;The only workaround so to speak is to set ERASE_PERSISTENT_CONFIG to ZB_TRUE.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee attribute reporting not reporting as configured.</title><link>https://devzone.nordicsemi.com/thread/196640?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 15:11:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78357e9a-1660-425c-ba99-b12f85305e02</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;Perhaps I have misunderstood how periodic reporting works. I was expecting that once the maximum interval was reached for any given cluster the reportable attribute&amp;nbsp; would be reported, regardless of value. I thought I had read this in the copy of the ZCL spec I have but looking again I see that the section that should describe report behavior (2.4.7) is apparently a misprint. Looking at another vendor&amp;#39;s documentation it would seem than even when the maximum interval has been reached, a report will only be sent if the reportable attribute is also greater than the reportable change value. Is this correct?&lt;/p&gt;
&lt;p&gt;Is there a workaround to the bug you mentioned to store the reporting configuration?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee attribute reporting not reporting as configured.</title><link>https://devzone.nordicsemi.com/thread/196547?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 12:42:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ed34d54-358d-4dd8-a8ff-310f859d6381</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;br /&gt;&lt;br /&gt;Could we try to summarize a bit here, there is a lot of information in this ticket now.&lt;br /&gt;&lt;br /&gt;There is a known bug in ZBOSS that if ERASE_PERSISTENT_CONFIG is set to ZB_FALSE, as you previously had, the reporting configuration is not properly stored in NVRAM data, so it is reset to defaults after device reboot. The log file appear to show that the device is reporting correctly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From the log file you provided, do you see that there are places, where the report is generated, but it shouldn&amp;#39;t be? Do you see that there are places where report should be generated, but it wasn&amp;#39;t?&lt;/p&gt;
&lt;p&gt;See attached table for reference.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x243/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-9523fd4430f849999d538c33c7478b50/pastedimage1562247082421v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee attribute reporting not reporting as configured.</title><link>https://devzone.nordicsemi.com/thread/196095?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 01:31:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03b8ac6f-539d-4839-bc80-5de009250e51</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;Andreas,&lt;/p&gt;
&lt;p&gt;I have attached a hex file configured as requested. Sensor readings have been replaced with values from the sensorsim library so hopefully it behaves in a similar enough fashion for testing. I did let the device run a bit and I think reporting is following the configuration set by the device, not the hub. After a period of time I did notice that reports would be delayed, though not to the extent as I was previously seeing.&lt;/p&gt;
&lt;p&gt;Finally, in an effort to make this a little easier than me having to compile any change you need I have created a SES project. Unfortunately I was unable to get SES to play nicely with any C++ so I have removed the sensor drivers and changed over a few other calls to make it compile in C. I fear that this may change too much to have testing mean much but it is worth a shot.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/zigbee_5F00_multi_5F00_sensor_5F00_pca10056.hex"&gt;devzone.nordicsemi.com/.../zigbee_5F00_multi_5F00_sensor_5F00_pca10056.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ZigbeeTempSensor.zip"&gt;devzone.nordicsemi.com/.../ZigbeeTempSensor.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee attribute reporting not reporting as configured.</title><link>https://devzone.nordicsemi.com/thread/196019?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 13:27:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0a12418-7738-41e9-afe0-21d2cc04ea3c</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Yes, that would be great. So that I can test it on my DK&amp;#39;s.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee attribute reporting not reporting as configured.</title><link>https://devzone.nordicsemi.com/thread/195984?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 12:26:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c55dadb-aac5-4222-946b-b534635e5c3a</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;Will you also need me to keep the firmware from communicating with TWI devices?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee attribute reporting not reporting as configured.</title><link>https://devzone.nordicsemi.com/thread/195932?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 10:32:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1536d8bb-e6c1-4b89-a325-06a9ac549f43</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not really able to build the mutli sensor project with your main.c and zb_multi_sensor.h file, could you provide me with your output hex file that is configured for channel 16?&lt;/p&gt;
&lt;p&gt;Would also be great if you could enable the binary trace by doing the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Change ZBOSS library to the one inside the &lt;code&gt;&amp;lt;InstallFolder&amp;gt;\external\zboss\lib\debug&lt;/code&gt; folder&lt;/li&gt;
&lt;li&gt;Configure the NRF logger module sdk_config.h&lt;/li&gt;
&lt;li&gt;Set the trace mask to 0xC48 and trace level to 3.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It&amp;#39;s described more in details &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v3.1.0%2Fzigbee_prog_principles.html&amp;amp;cp=5_3_3_1_1&amp;amp;anchor=zigbee_debugging"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee attribute reporting not reporting as configured.</title><link>https://devzone.nordicsemi.com/thread/195779?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 01:47:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aa82ddf-9548-4b6e-801a-96e15e9e0fbe</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;I am only working on an end device and do not have a coordinator or router set up on another dev kit. I did have another end device running a slightly older firmware based on SDK 3.0 that worked fine, connected to the same SmartThings hub I am using but had to replace the firmware so I could get a packet capture. The previous firmware did not have report configuration done device side (though I did try at one point and was seeing similar results).&lt;/p&gt;
&lt;p&gt;In order to provide the information you have asked for I changed ERASE_PERSISTENT_CONFIG to ZB_TRUE in order to capture the network key. Prior to this the device had ERASE_PERSISTENT_CONFIG set to ZB_FALSE. I made no other changes to the code. I have attached both my main.cpp and multi_sensor.h files for you to look over. I&amp;#39;d offer to provide the entire project however I am not using any of the supported IDEs.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;This is good to know and I will make this change in the future. I was originally using integers and apparently confused myself with unit conversions.&lt;/li&gt;
&lt;li&gt;Sniffer log and pertinent source files attached.&lt;/li&gt;
&lt;li&gt;As I mentioned above, ERASE_PERSISTENT_CONFIG was set to ZB_FALSE prior to resetting the end device so that I could get a good capture.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;While performing the capture I noticed a few things that I will note below. There are a few more oddities besides just reporting that I am seeing and cannot explain them. This capture was performed on a device that had just been commissioned on the hub. For your reference, the decryption key is 06647d2cfe5166a84bc692ae0c41c658. The device address is 0xdd26.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Frame 197: ZCL IAS Zone: Zone Enroll Response. I have no idea why this is here. Nowhere in my code do I have endpoint 0x0500. This is seen sporadically throughout the capture (Frames 228, 230, 2900).&lt;/li&gt;
&lt;li&gt;Report configuration occurs around frames 204, 236, and 246. The report configuration parameters are those set by SmartThings.&lt;/li&gt;
&lt;li&gt;Frame 865 looks to be the first temperature report. I left the device for close to 20 minutes and only began to receive reports when I placed the device near an air vent to speed things along. The device was commissioned at 5:32 and the report came in around 5:57.&lt;/li&gt;
&lt;li&gt;To test the device not reporting correctly after a reboot, I reset the device to observe its behavior. Frame 2349 is around the occurrence of the reboot. The device was rebooted at 6:54. The previous temperature report occurred at 6:41 and the next not until 7:22. While reporting still seems random at times, the device did settle into using the long poll interval after a device reboot faster. Perhaps clearing persistent storage had something to do with this.&lt;/li&gt;
&lt;li&gt;Frame 2568: After reboot, humidity is reported.&lt;/li&gt;
&lt;li&gt;Frames 2824, 3286, and others show a read attribute. I am not entirely sure what triggered this.&lt;/li&gt;
&lt;li&gt;Frame 2880: Battery percent remaining is read. For whatever reason the data reads 39.5, actual value is 79 and this is reflected in SmartThings. This is probably not an issue, just something I am not understanding.&lt;/li&gt;
&lt;li&gt;Frame 3434: Final temp report that I logged. This was 42 minutes from the previous report.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Unless I have completely missed the boat, the device should be reporting any value when the maximum interval has been reached. Prior device behavior had attribute reports coming in no later than the maximum interval consistently.&lt;/p&gt;
&lt;p&gt;I am also very confused as to why I am seeing packets containing the ZCL IAS Zone cluster and some other cluster that I have not been able to identify, 0x8021. I do not know which frame might show the latter but I did notice it in both the capture and SmartThings log when the device first joined. Neither of these are defined in my project so their presence is a mystery.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ZigBeeTemperatureSensor.cpp"&gt;devzone.nordicsemi.com/.../ZigBeeTemperatureSensor.cpp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/zb_5F00_multi_5F00_sensor.h"&gt;devzone.nordicsemi.com/.../zb_5F00_multi_5F00_sensor.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ZED-Capture.pcapng"&gt;devzone.nordicsemi.com/.../ZED-Capture.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/20190702_5F00_003900638_5F00_iOS.png" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks for taking a look.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zigbee attribute reporting not reporting as configured.</title><link>https://devzone.nordicsemi.com/thread/195501?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 05:44:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54d9d5ca-f75d-4e1f-96ba-7030b13ded52</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Patrick.&lt;/p&gt;
&lt;p&gt;Could you provide me with Sniffer Logs and the whole main.c? Also, are you only making the end device, do you have other devices as well?&lt;/p&gt;
&lt;p&gt;1) Try to use integers, not hex.&lt;/p&gt;
&lt;p&gt;2) It would be great to look at the Sniffe Logs and main.c for more information on this.&lt;/p&gt;
&lt;p&gt;3) Do not set ERASE_PERSISTENT_CONFIG to ZB_TRUE, set it to ZB_FALSE&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>