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.

remove devices from Network

Other Parts Discussed in Thread: Z-STACK

Hello, 

I'm working in Z-Stack Home 1.2.1 to create a network sensors in mesh topology. When i try to remove the device from the network I use the function: ZDP_MgmtLeaveReq( zAddrType_t *dstAddr, uint8 *IEEEAddr, uint8 RemoveChildren, uint8 Rejoin, uint8 SecurityEnable )

This function remove successfully device from the network , although the device still considered on the network list.

Any one know other process to remove device from network and remove all information of that device in all network lists?

Best regards,

Nalves

  • What do you mean "device still considered on the network list"? If a device receives leave request and sends leave response to sender of ZDP_MgmtLeaveReq, the device should be removed from the network completely.
  • Hello Yikai Chen,

    I will explain the network schema that i would like in my system. I have 1 coordinator (dongle) and 4 Router devices. The coordinator is the only device that can accept devices in my network (Enable joining when i click on button), this devices have permition to accept only 2 devices (NWK_MAX_DEVICE_LIST = 2). The first 2 router devices joining the network without any problem, but when i want to accept a 3th router device, the coordinator can´t accepted it, when this happen, it send a remove device for the 3th router and send a message whit 3th router mac address to other 2 routers in network to enter in joinning mode to accept the device in network. The problem is when i send the remove device, the 3th router can´t join the network. it's look like the network association list is full and don't accept any more devices.

    Can you tell me if i do something wrong or give me some notes about this process.

    Best regards

    Nalves
  • Hello Yikai Chen,

    I have more updates to my last description. The 3th and 4th routers joined the network with alternative process (by other router) but when i want to add more routers, the coordinator never more accepted any device, but if i remove one of the routers connected to network and tur one another router the coordinator accept it. It that means that my network is limited at 4 devices.

    Best regards

    Nalves
  • Do you use ZDP_MgmtPermitJoinReq to make your router allow device join?
  • Hello YiKai Chen,

    Yes I used that function, although i have another input, After accept 8 devices in network, i check the messages changed in network using Packet Sniffer and after have 8 devices on network, and i try to insert another router, the coordinator never more send beacons response to device (don't send any beacon response) so is that reason that any more routers can join the network. Exist any counter to detect the devices in network that I can control and check  devices on network?

    Best regards

    Nalves

  • You can try to use ZDP_MgmtLqiReq to detect the devices in network.
  • I know the number of devices that are on network, i want to know why coordinator stop sending beacons response after 8th router accepted in network.
  • I see that you uses Z-Stack Home 1.2.1 to test this. I would suggest you to use Z-Stack Home 1.2.2 to test again. If it still happens, would you attach the sniffer log?
  • Hello YiKai Chen,

    Attached you can analyse the log.log_test.psd

    For introduction, the network is formed by 10 routers and 1 coordinator. The coordinator only accept directly 3 devices ( #define NWK_MAX_DEVICE_LIST     3), the next routers join network, at the beginning to join by coordinator, but coordinator have 3 routers already connected and remove the 4th and nexts routers from the network and send for router that are connected to network ZDP_MgmtPermitJoinReq for they can accept the router that try to join network.

    This process works fine until 9th router. after 9th router the coordinator never more accept any device in network, directly or by other routers.

    Best regards

    nlaves

  • I see all of your ZRs don't enable permit join. How do you enable permit join on ZR?

  • Hello YK Chen

    The ZR's devices enable joining by indication of of coordinator, that sends a Permit join indication to all routers to permit join the new device with specific IEEE address.

  • I don't see Permit Join is enable on your ZR and that's why I ask how you enable it. Can you specify which API and how you use it to enable permit join from ZC?