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

Alarms Cluster workflow, ZigBee

I would like to know, what is the correct workflow with Alarms ZCL cluster?

There are no examples with it in SDK (at least, as I have seen). The documentation on this subject is extremely concise, just lists the types, functions, etc. It doesn’t explain, which actions I need to do for myself (some callbacks?), and which part the ZigBee stack will manage?

So, it is entirely unclear for me, how to use it.

Particularly, I am interested in using Alarms with Electrical Measurement cluster, i.e., to alarm about the voltage outbound the safe region, for example. How could I set up and use it?

  • Hi Anna.

    You can use ZB_ZCL_ALARMS_SEND_RESET_ALARM_REQ manually when detecting the alarm situation.

    Alarm tables are actually handled automatically. You pass the name of them to the ZB_ZCL_DECLARE_ALARMS_ATTRIB_LIST define (look at its definition in zb_zcl_alarms.h). Take a look at zcl_alarms_commands.c  where the function that iterates over them is (when you clear an alarm). So they are handled automatically, so if you need to get them, out of ZB_ZCL_DECLARE_ALARMS_ATTRIB_LIST, you can see how they are called, these tables.

     Best regards,

    Andreas

  • Hi, Andreas.

    Thank you for your reply. 

    Unfortunately, I have no access to the ZBOSS source files (besides the headers), because the SDK provides the precompiled ZBOSS stack (libzboss files). So, I cannot see the functions' realization, (particularly zcl_alarms_commands.c), just their declarations in header files.

    Sincerely,

    Anna

     

Related