Search code examples
angularjsarduinoxbee

XBee how to discover router or end device trough API?


I'm working on a week-end project to setup a very basic angularjs web application con control xbees modules with an arduino attached to an Xbee Coordinator.

Long story short, is there any way to discover other modules that has join the network? I don't want to relay on the join notification because due to the boot time of the arduino board I'm not sure to catch all the notifications right in time.


Solution

  • I will assume you are using a DigiMesh Network. Don't know how it is in the ZigBee one.

    From the manual:

    Issuing the ND command sends a broadcast network discovery command throughout the network. All devices that receive the command will send a response that includes the device’s addressing information, node identifier string (see NI command), and other relevant information. This command is useful for generating a list of all module addresses in a network.