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

Zigbee IAS Zone example

Hi,

I need help to clarify the API for IAS zone server.  If I can get example implementation,  it would be great.   

I have hard time understanding how zb_ias_zone_app_callback_t work.  There is no documentation on it.  Yes,  I found a link to it that just says.

typedef zb_ret_t(* 

zb_ias_zone_app_callback_t )(zb_uint8_t param, zb_uint16_t general_val)

and

zb_void_t zb_zcl_ias_zone_register_cb ( zb_uint8_t  endpoint,
zb_callback_t  process_result_cb,
zb_ias_zone_app_callback_t  general_cb 
)

Registry callbacks to get status of Zone Status Change Notification command.

Parameters
endpoint - local endpoint number
process_result_cb - notification sent callback function
general_cb

- general callback function

So,  Is the call back is called on Zone Status Change?   If it is only for Zone Status Change Notification,  Can you help to clarify the parameter ZB_ZCL_VALID_CIE_ADDR_SET that may be set on the call back?

Please let me know how I can get a good documentation on how the callbacks (the general_cb and process_result_cb in respect to IAS Zone Server.   

Thanks

Iman

Parents
  • Hi,

    I am sorry for the late reply. It looks like you can use this function to register a callback for to process the results for from the 'Zone Status Change Notification'. I think there is a typo and it should say 'Register' instead of 'Registry', if that makes more sense? I don't think it's necessary to register a callback unless you want to do something else after the notification is sent, since I don't see anything mention in the ZCL specification.
    I have given feedback to the developers about the need for an example implementation of the IAS zone cluster, it will perhaps come into the roadmap in the future but I can't make any promises. In the meantime if you have any more question I can try to help the best I can, if you have already partly implemented the cluster but are struggling you can share your code in here so I can test and help you debug at our side as well.

    BR,

    Marjeris

Reply
  • Hi,

    I am sorry for the late reply. It looks like you can use this function to register a callback for to process the results for from the 'Zone Status Change Notification'. I think there is a typo and it should say 'Register' instead of 'Registry', if that makes more sense? I don't think it's necessary to register a callback unless you want to do something else after the notification is sent, since I don't see anything mention in the ZCL specification.
    I have given feedback to the developers about the need for an example implementation of the IAS zone cluster, it will perhaps come into the roadmap in the future but I can't make any promises. In the meantime if you have any more question I can try to help the best I can, if you have already partly implemented the cluster but are struggling you can share your code in here so I can test and help you debug at our side as well.

    BR,

    Marjeris

Children
No Data
Related