This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to declare custom ZigBee cluster?

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&anchor=att_declaration )

in order to declare one, but the mentioned example files (simple_gw_device.h and simple_gw.c) are missing in the nRF5 SDK for Thread and Zigbee v3.0.0, as well in the previous SDK version.

Can it be downloaded somewhere? Or, maybe, it is possible to point me to another example?

  • Hi

    First, i want to thank u for your post and final response, it helped me a lot.

    Second, i am wondering if you have tried to enable the reporting for the attributes of the custom cluster?

    I am trying to enable the reporting custom clusters's attribute, but i found that the end device responds just one time on the request and the doesn't send any other attributes reports.

    Using the zigbee sniffer, i found that in the reporting request sent from the coordinator the ZCL Header -> manufacturer-specific is always false (0), which is wrong by ZigBee specification, it should be 1

    Here what i found in the specs:
    "The manufacturer specific sub-field SHALL be set to 0 if this command is being
    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."

    The problem is that value is set by the macro "ZB_ZCL_GENERAL_INIT_CONFIGURE_REPORTING_SRV_REQ" and it set always to 0.

    I have tried to change it manually, but it doesn't work. it gave me a Malformated packet

    So i want to know if you had some issues like that one or not.

    I want also to ask , if can he help me.

    Thanks in advance

Related