<?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>How to declare custom ZigBee cluster?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46773/how-to-declare-custom-zigbee-cluster</link><description>I am trying to follow the section “Declaring custom cluster” ( https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.thread_zigbee.v3.0.0%2Fusing_zigbee__z_c_l.html&amp;amp;anchor=att_declaration ) 
 in order to declare one, but the mentioned</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Nov 2019 15:28:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46773/how-to-declare-custom-zigbee-cluster" /><item><title>RE: How to declare custom ZigBee cluster?</title><link>https://devzone.nordicsemi.com/thread/222428?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 15:28:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68a1d940-d4b9-4714-a2d2-674fa5a981de</guid><dc:creator>Arsanios</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/annar"&gt;AnnaR&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, i want to thank u for your post and final response, it helped me a lot.&lt;/p&gt;
&lt;p&gt;Second, i am wondering if you have tried to enable the reporting for the attributes of the custom cluster?&lt;/p&gt;
&lt;p&gt;I am trying to enable the reporting custom clusters&amp;#39;s attribute, but i found that the end device responds just one time on the request and the doesn&amp;#39;t send any other attributes reports.&lt;/p&gt;
&lt;p&gt;Using the zigbee sniffer, i found that in the reporting request sent from the coordinator the ZCL Header -&amp;gt; manufacturer-specific is always false (0), which is wrong by ZigBee specification, it should be 1 &lt;/p&gt;
&lt;p&gt;Here what i found in the specs:&lt;br /&gt;&lt;strong&gt;&lt;em&gt;&amp;quot;The manufacturer specific sub-field SHALL be set to 0 if this command is being&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;used to configure attribute reports defined for any cluster in the ZCL or 1 if this command is being used to configure attribute reports for manufacturer specific attributes.&amp;quot;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The problem is that value is set by the macro &amp;quot;ZB_ZCL_GENERAL_INIT_CONFIGURE_REPORTING_SRV_REQ&amp;quot; and it set always to 0.&lt;/p&gt;
&lt;p&gt;I have tried to change it manually, but it doesn&amp;#39;t work. it gave me a Malformated packet&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So i want to know if you had some issues like that one or not.&lt;/p&gt;
&lt;p&gt;I want also to ask &lt;a href="https://devzone.nordicsemi.com/members/andreasf"&gt;AndreasF&lt;/a&gt;, if can he help me.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to declare custom ZigBee cluster?</title><link>https://devzone.nordicsemi.com/thread/187588?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 17:24:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b056d139-215a-41dd-aa90-eadb65775641</guid><dc:creator>AnnaR</dc:creator><description>&lt;p&gt;Just a minor addition to the answer, in case someone will have the same issue.&lt;/p&gt;
&lt;p&gt;The Pressure Measurement Cluster belongs to ZCL, and its ID (&lt;strong&gt;ZB_ZCL_CLUSTER_ID_PRESSURE_MEASUREMENT&lt;/strong&gt;) is already declared in &lt;strong&gt;zb_zcl_common.h&lt;/strong&gt;. However, the cluster itself isn&amp;rsquo;t realized in the current SDK version. Also, as it from standard ZCL, it doesn&amp;rsquo;t require a Manufacturer Code, that is mandatory for a custom cluster.&lt;/p&gt;
&lt;p&gt;So, in order to add a custom manufacturer-specific cluster, one can use the multi-sensor example, but need to:&lt;br /&gt;1) Define Custom Cluster ID as well as Manufacturer ID in custom cluster header file:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define ZB_ZCL_CLUSTER_ID_?????????? 0xXXXX
#define ZB_ZCL_MANUF_CODE_?????????? 0xXXXX&lt;/pre&gt;&lt;br /&gt;2) Use the defined manufacturer code instead of &lt;strong&gt;ZB_ZCL_MANUF_CODE_INVALID&lt;/strong&gt; in &lt;strong&gt;ZB_ZCL_CLUSTER_DESC&lt;/strong&gt; macros while forming the device cluster list.&lt;/p&gt;
&lt;p&gt;Sincerely,&lt;/p&gt;
&lt;p&gt;Anna&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to declare custom ZigBee cluster?</title><link>https://devzone.nordicsemi.com/thread/185681?ContentTypeID=1</link><pubDate>Tue, 07 May 2019 10:40:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:639f57e9-52dd-4c48-a073-a170e9d9d42c</guid><dc:creator>AnnaR</dc:creator><description>&lt;p&gt;Hi, Andreas.&lt;/p&gt;
&lt;p&gt;Thank you very much for these references!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Indeed, the pressure cluster escaped my attention.&lt;/p&gt;
&lt;p&gt;Sincerely,&lt;/p&gt;
&lt;p&gt;Anna&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to declare custom ZigBee cluster?</title><link>https://devzone.nordicsemi.com/thread/185599?ContentTypeID=1</link><pubDate>Tue, 07 May 2019 06:11:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:529e036a-5257-461b-ad24-6c048ab9717b</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi again.&lt;/p&gt;
&lt;p&gt;Could you take a look at the header files in &lt;strong&gt;\examples\zigbee\experimental\multi_sensor\zb_multi_sensor.h &lt;/strong&gt;and &lt;strong&gt;components\zigbee\pressure_cluster\zb_zcl_pressure_measurement.h?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;These two files contains the necessary declarations for a custom non-ZCL cluster.&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: How to declare custom ZigBee cluster?</title><link>https://devzone.nordicsemi.com/thread/184781?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 08:16:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4deb85ae-4bf3-48ba-87c2-9518183d0400</guid><dc:creator>AnnaR</dc:creator><description>&lt;p&gt;Hi, thanks for the reply, but the mentioned case is not so close to this one (at least, as I think), because here I need to add our own (non-ZCL) cluster.&lt;/p&gt;
&lt;p&gt;Maybe, you could provide an example, how to declare a custom cluster and using it in .c file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to declare custom ZigBee cluster?</title><link>https://devzone.nordicsemi.com/thread/184746?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 05:24:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:480c6115-6182-4948-bd7a-13d375cb07cb</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
[quote user=""]in order to declare one, but the mentioned example files (simple_gw_device.h&amp;nbsp;and&amp;nbsp;simple_gw.c) are missing in the nRF5 SDK for Thread and Zigbee v3.0.0, as well in the previous SDK version.[/quote]
&lt;p&gt;&amp;nbsp;I have made a notification to the developer team that this is missing.&lt;/p&gt;
&lt;p&gt;I also see that you have a similar case where you ask how this is done, I will answer that there (&lt;a href="https://devzone.nordicsemi.com/support-private/support/228260"&gt;Link to case&lt;/a&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>