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

Zigbee attribute report enabling automatically

Hey everybody!

I'm working with the zigbee cli agent router example.

Can anybody help, how can i get zigbee report automatically? The problem is that i have to enable info in the terminal to get reports. How can i get those whitout the command log enable info in the terminal?

Thank you for your help

Parents
  • Hi,

    You will need to see inside the example code which Zigbee functions are called in the CLI example and implement these functions yourself in your code. In components/zigbee/cli/zigbee_cli_cmd_zdo.c you can find the functions called for CLI zdo commands, such as "zdo bind on".

    The zcl commands are listed in zigbee_cli_cmd_zcl.c. As you can see, the zcl_subscribe on calls m_sub_subscribe() -> cmd_zb_subscribe(), which is found in components/zigbee/cli/zigbee_cli_cmd_attr_report.c.

    Reports are received by a function cli_agent_ep_handler_report , which gets called from cli_agent_ep_handler which is registered in main function of cli_agent_router example with ZB_AF_SET_ENDPOINT_HANDLER macro.

    See also my answer in this case.

    Best regards,

    Marjeris

Reply
  • Hi,

    You will need to see inside the example code which Zigbee functions are called in the CLI example and implement these functions yourself in your code. In components/zigbee/cli/zigbee_cli_cmd_zdo.c you can find the functions called for CLI zdo commands, such as "zdo bind on".

    The zcl commands are listed in zigbee_cli_cmd_zcl.c. As you can see, the zcl_subscribe on calls m_sub_subscribe() -> cmd_zb_subscribe(), which is found in components/zigbee/cli/zigbee_cli_cmd_attr_report.c.

    Reports are received by a function cli_agent_ep_handler_report , which gets called from cli_agent_ep_handler which is registered in main function of cli_agent_router example with ZB_AF_SET_ENDPOINT_HANDLER macro.

    See also my answer in this case.

    Best regards,

    Marjeris

Children
No Data
Related