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.

Find the parent address of any device

Other Parts Discussed in Thread: Z-STACK

The APSME-REMOVEDEVICE.request primitive requires the parent address of the device it wishes to leave the network.

Question is, does Z-stack keep this information around so I don't have to walk the network?

  • Hi,

    parent of the local device can be found using the API described in Z-stack API document 3.4.2.1.3 and 3.4.2.1.4 section.

    However it seems to me your query is about how would a node in the network know the parent of any specific device, in case it wants to remove it.

    To do this, you need to map out the NWK topology using Mgmt_lqi_req/rsp and progressively retrieve all neighbor and parents progressively.

    Thanks,

    TheDarkSide 

  • Hi Joo,

    If you want to ask a device leave network, you can use ZDP_MgmtLeaveReq and it doesn't need to know the parent of this device. You can issue this command with device's short address and IEEE address.