Home/Support/Support Forum/How to identify when a XBee device leaves the network ?

How to identify when a XBee device leaves the network ?

+1 vote
Hi,

I am using XBee - Java library provided by digi to establish communication between XBee devices. I have one coordinator and two end nodes. I want to identify when a XBee end node leaves the network and when XBee end nodes join the network. can any one suggest on how i can implement above scenario?

Thank you
asked Jun 9, 2015 in DigiMesh Proprietary Mesh Networking by Avinash Babu New to the Community (4 points)

Please log in or register to answer this question.

1 Answer

+1 vote
One of the best ways is to use the Join Notification with the API interface. This allows you to know when a device Joins the network. As for leaving, you would need to do a node discovery or to poll the parent for it's Child End Device Table.
answered Jun 9, 2015 by mvut Veteran of the Digi Community (11,450 points)
edited Jun 9, 2015 by mvut
Thanks for your quick reply. Regarding joining the netowrk, join notification is enabled in the configurations of xbee module. how can i check that using java library ?

Regarding Leaving the network, can you please explain how to implement it ?
I am sorry but I don't know the Java Lib.  

Yes the Join Notification is a setting on the XBee module that you can Enable.  It is the JN parameter.

As for leaving, again, you would need to poll the radios child table to see if a node is still listed or not. If it is not listed, then it most likely has left the network.
...