Coordinator endpoint

Hello, I developed for my customer, a ZigBee coordinator in last 2019, using nRF5 SDK for Thread and Zigbee v3.2.0.
I has installed many sistems on field, equipped witn several battery powered sensors (door, motion, occupancy ...) and mains powered actuators (bulbs and smart plug).
I have only one endpoint # 64 configured on my coordinator, and now I need to add a second endpoint to receive the info from some end-node that sends to fixed endpoint #255
How can I add it?
Thanks for help

Abele

  • This is my main init

    But the define for ZB_AF_SET_ENDPOINT_HANDLER is for only one endpoint 

    Could you sent me a sample code to configure and handle on my coordinator more that one endpoint?

    Thanks

    Abele

  • abe said:

    But the define for ZB_AF_SET_ENDPOINT_HANDLER is for only one endpoint 

    For creating multiple you can just keep using that multiple times.

    But for now, I think you might just need one. If you use ZB_AF_SET_ENDPOINT_HANDLER, and configure all the clusters your SonOff sensor needs on this end point, does that change anything?

    Regards,

    Elfving

  • Hi,

    yes, I tried to Bind and Subscribe all SonOff needed cluster to my ZIGBEE_ADRI_ENDPOINT, but for alarm cluster it report always to endpoint 255, regardless the configuration sent and accepted
    Then, If I have godd understood, I can add to my sorce code two lines as follow:
    ZB_AF_SET_ENDPOINT_HANDLER (ZIGBEE_ADRI_ENDPOINT, _agent_ep_handler);
    ZB_AF_SET_ENDPOINT_HANDLER (ZIGBEE_ADRI_ENDPOINT_255, _agent_ep_handler_255);
    and on _agent_ep_handler_255 I can process all data received on endpoint 255, that's right?
    Abele

  • abe said:
    and on _agent_ep_handler_255 I can process all data received on endpoint 255, that's right?

    Yes, if my understanding is correct then, if the correct clusters are configured, you should receive it on that endpoint handler.

    abe said:
    ZB_AF_SET_ENDPOINT_HANDLER (ZIGBEE_ADRI_ENDPOINT_255, _agent_ep_handler_255);

    Are you using 255 as the actual endpoint number here? Maybe that is the issue. You have to use between 1 and 240.

    Regards,

    Elfving

  • I apologize for the long delay ... I was busy with other works ..
    To sumarize ... I have a Sonoff Zigbee 3.0 end node that sends IAS Alarm info to coordinator using endpoint #255 It even sends all other infos (battery level and voltage, ...) to coordinator endpoint #64 (as configured by my code)
    Here below the declaration to configure the two endpoints:

    I also tried to add this to declare macro

    But I have error!

    How can I add this endpoint to my coordinator?
    I need to make it able to receive from Sonoff end node!

    Many thanks for help!

    Abele

Related