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 query the current PermitJoining state of the Network?

Other Parts Discussed in Thread: Z-STACK

Hello,

im wondering is there a way to directly query the current PermitJoining state of the whole ZigBee-Network?

I know that i can get it as an answer per device via the ZDO_MGMT_LQI_REQ. However i find it difficult to interpret this answer, the interface specification tells the bits 1-0 are showing the current state. But why 2 bits? I got a byte of 0x02 for the state there...means bit 1 is set to 1 and bit 0 to 0. Im having trouble to tell now the actual state...is joining permitted or not? Is there any document to clarify this?

thanks!

  • Hi Thomas,

    unfortunately it seems the ZIgBee spec, though provided a placeholder for the PermitJoin flag to be reported through Mgmt_Lqi_req/Mgmt_Lqi_rsp, did not provide a mechanism for the nodes in the network to have that information updated and exchanged between nodes.

    So, to answer your query, there's no 'standard' way to know what is the PermitJoin status of each node in the network interrogating remotely the nodes.

    You can have a per hop broadcast visibility of the current status of the PermitJoin flag for the 1-hop routers by sending a Beacon Req, thing that i am pretty sure you already thought about.

    TI Z-stack provides a way to access to the PermitJoin flag by calling MAC_MlmeGetReq() API.

    Please check section 5.2.5 of the MAC API document in Documents/API folder of your Z-stack install.

    Thanks,

    TheDarkSide