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.

How to set Default AF register in ZNP

Other Parts Discussed in Thread: CC2530

Hi All,

I am using ZAP+ ZNP(CC2530) approach to build Zig Bee network. I want to reduce burden of ZAP MCU setting AF register  for router ZNP  and want to set default AF Register for router. I have configured the default device type as router.

Can I sett these where SimpleDescriptionFormat_t is initilized? Or I need to hard code these values at some where else?

With Regards,

Harshal

  • Hello Harshal,

    Are you trying to Pre-register the AF Endpoint in the ZNP so that you don't have to send

              (void)afRegister((endPointDesc_t * ENDPOINT_DESC)

    call to register the Endpoint within the ZNP. This would require modification on ZNP code. Or are you trying to just pre-create the endpoint on the ZAP side and on initialization send the command directly to ZNP to register the endpoint on initialization?

    The Process of Registering in the ZAP (for ex - from TVSA Sample Application) is -

    --> Call  afRegister()  to register the end point. This generates following actions -

       - A Check if the endpoint is already defined in the epList Linked List structure store on the ZAP Processor for the endpoints defined

       - If the Endpoint was not already defined then add the end Point to the epList linked list and send a command to ZNP to register the endpoint

    If you want to reduce the calls on ZAP processor - you can create the (epList) Link List Entry for your endpoint and then on intialization call to znp_afRegisterExtended() should send a command to ZNP to register the endpoint.

    Hope this helps.

    Regards,

    Suyash Jain

    .

  • Hello Suyash,

    Yes I am looking for Pre-registering the Endpoint along with complete AF register so as ZAP MCU should not be involved in it. 

  • Hello Mr Suyash,

    I have been searching for some answers on TI community and your answers really helped a lot. I am sorry for posting my query here but believed that my question is similar to one posted here. Can you please take out some time and reply to my query. Thanks

    I am trying to write a hybrid code for ZNP where it can be used with ZAP as well as standalone it can send/recieve few data without any ZAP for basic applications.

    The problem I am facing is that if I use "AF_REGISTER" default in the ZNP code then I can use AF_DATA_REQUEST without any problem but ZB_SEND_DATA_REQUEST command is not working. If I use ZB_APP_REGISTER_REQUEST before and then call ZB_SEND_DATA_REQUEST it works fine. 

    The reason I am using ZB_SEND_DATA_REQUEST so that I am able to use binding by specifying DestAddr : 0xFFFE which is not possible in AF_DATA_REQUEST.

    I looked at Zstack SIMPLE API document it has zb_SendDataRequest but nothing as zb_RegisterRequest or something similar which I can call ?

    Please let me know how to solve this issue ?

    Regards

    Bishan Preet Singh                

  • Hi Bishan,

    You can refer to my post at http://e2e.ti.com/support/wireless_connectivity/f/158/t/354905.aspx