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

How to add Report Reception support to BLE UART and Zigbee Color Dimmer Light Switch Example?

By taking CLI as reference: added end point handlers, changed flash placement file with zb_ep_handlers.

Issue facing was:

ZB_ZCL_CMD_REPORT_ATTRIB command is not at all received in cli_agent_ep_handler_report. ZB_ZCL_CMD_CONFIG_REPORT_RESP is working indicating successful subscribing to Bulb.

Please clarify:

1. May I know why ZB_ZCL_CMD_REPORT_ATTRIB is not coming?

2. Is it recommended to try out, because we actually need to receive reports from light bulb to this switch?

  • Hello,

    Sorry, I am a bit confused.

     

    ZB_ZCL_CMD_REPORT_ATTRIB command is not at all received in cli_agent_ep_handler_report. ZB_ZCL_CMD_CONFIG_REPORT_RESP is working indicating successful subscribing to Bulb.

     indicates that you managed to subscribe to the bulb.

     

    Sridhar Jonnavittula said:
    Yes with CLI I can directly get reports from light bulb. So why I cannot directly receive report into switch example I used above?

     Also suggest that you are able to subscribe to the bulb.

     

    Sridhar Jonnavittula said:

    The subscribe command is success from ZB_BDB_COMM_BIND_SUCCESS.

    The control is not coming to line #1176 when light bulb ON/OFF state changed.

    Suggests that this is not workinf for the bulb.

     

     

    Sridhar Jonnavittula said:
    The control is not coming to line #1176 when light bulb ON/OFF state changed.

     Do you mean this line?

    ZB_FREE_BUF_BY_REF(param);

    Can you please describe how you successfully subscribed to the light bulb using the CLI example? The reason I ask for this is that I didn't manage to do so, and hence not sure if it is possible. 

    So, did you manage to subscribe to the bulb using CLI? And what am I looking for in your attached main.c file?

  • Please see cmd_zb_subscribe() API whether it is right to receive reports from bulb onoff cluster.

    Also can you please develop my requirement and send project/SDK in drive or FTP server?

    Commands I entered in CLI to interact with light bulb is same as this link

Related