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.

MT_ZDO_FUNC and MT_ZDO_MGMT

Hi at all...

I have a problem with my coordinator. I would manage the _ProcessZDOMsgs( zdoIncomingMsg_t *inMsg ) to know the IEEE address of the ED that bind with my mesh. I defined in f8Coord.cfg this function:

  • -DMT_ZDO_CB_FUNC
  • -DMT_TASK
  • -DMT_SYS_FUNC
  • -DMT_ZDO_FUNC
  • -DMT_ZDO_MGMT

and in the Init of EmptyApp.c:

  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, End_Device_Bind_rsp );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, Match_Desc_rsp );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, IEEE_addr_rsp );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, NWK_addr_rsp );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, Node_Desc_rsp );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, Power_Desc_rsp );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, Simple_Desc_rsp );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, Active_EP_rsp );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, Mgmt_Rtg_rsp );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, Mgmt_Rtg_req );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, Mgmt_Direct_Join_req );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, Mgmt_Permit_Join_req );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, Mgmt_Direct_Join_rsp );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, Mgmt_Permit_Join_rsp );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, NWK_addr_req );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, IEEE_addr_req );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, Node_Desc_req );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, Simple_Desc_req );
  • ZDO_RegisterForZDOMsg( EmptyApp_TaskID, Match_Desc_req ).

 

Why don't I reach the _ProcessZDOMsgs when and end-device bind with me? How can I obtain the IEEE adress of an end device and remove it from my network?

  • you need to do something when you get a rsp or any other msg 。
    EX :
    when you get the Device_annce,you will know the address, and you could send a Active_EP_req by using this address
    then you will get the Active_EP_rsp,and so on

    the zstack would not do all the thing for you ,because it doesn't know what you want to do next