This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2652R: zstackmsg device announce and end devices joining network

Part Number: CC2652R

Hi,

I am working on detecting devices in the network by gathering their source address to identify them, eventually their endpoints and panId etc.
I have the following questions;

1. To clarify, zstackmsg_cmdIDs_ZDO_DEVICE_ANNOUNCE is callbacked ONLY when a devices has joined the network? 

2. Does cui have a function that can show a list of array or table of addresses? Currently we are just converting from int -> char -> strcat and printing it out.


Regards,
Hamza

  • Hi Hamza,

    Hamza Kadhum said:
    1. To clarify, zstackmsg_cmdIDs_ZDO_DEVICE_ANNOUNCE is callbacked ONLY when a devices has joined the network? 

    Yes, this is correct. Note that when a "Device Announce" is received the association and binding tables are also updated with the new short address of the joining device. 

    Hamza Kadhum said:
    2. Does cui have a function that can show a list of array or table of addresses? Currently we are just converting from int -> char -> strcat and printing it out.

    No, there are no inherent functions to show a list/table of addresses. This is something that you would manually have to program.

    The ZigBee Linux Gateway Project SLA shows a local sample application through a UI (more complex than the CUI you are referring to). However, it updates a device list showing the new ZigBee device with its IEEE address, the short address, and the End Point information.

    If you download the ZigBee Linux Gateway you can navigate to the following directory:

    C:\ti\Zigbee_3_0_Linux_Gateway_x\source\Projects\zstack\linux\demo\framework\user_interface

    You can see how the code is structured there and maybe use that as a reference to create a similar table/list if that is your end goal instead of just printing out the information the way you are doing it now. In the end, this is dependent on your application.

    Best Regards,

    Marlyn

  • Hi Marlyn,

    Ok Great! I will have look at that! 

    Regarding binding tables, where are they located? 


    Regards,
    Hamza 


  • BindingTable[NWK_MAX_BINDING_ENTRIES] in nwk_globals.c and you can use API in binding_table.c for operation.