Home/Support/Support Forum/discovering xbee devices in zigbee network

discovering xbee devices in zigbee network

0 votes
Hi,

I am trying to know all the mac addresses of the devices in my zigbee network. The problem is that I find only my xbee boards but I dont find the HA dimmer that I have in my network. Im sure that the dimmer is in my network because I can comunicate with it but when i use the get_network() function it only appears the other xbee 3 boards. I use the following code:
xbee = XBeeDevice("/dev/ttyXBee", 9600)
xbee.open()
xnet = xbee.get_network()
xnet.start_discovery_process()
while xnet.is_discovery_running():
time.sleep(0.5)

devices = xnet.get_devices()
n_dev=len(devices)
r=0
while r <n_dev:
addresses= devices[r].get_64bit_addr()
asked Apr 22 in XBee3 ZigBee by pablovi96 New to the Community (25 points)
I have noticed that if I use the dimmer on/off button when the function is running the device is detected. Could this happen because of the dimmer being in sleep mode or something like that? How could I get all the devices in my network even if they are sleeping?

Please log in or register to answer this question.

1 Answer

0 votes
 
Best answer
Pablovi,

Yes, it most likely is because the device is asleep. What you would need to do is to have the device announce its self when it connects. You would then have to create a table with that data. You can also the ZDO functions to request the child table of each of your parent routers.

Digi Support
answered Apr 23 by mvut Veteran of the Digi Community (12,790 points)
selected Apr 27 by pablovi96
If I use the ZDO function to request the child table of the coordinator, should be enough to have all the devices, shouldnt it?
No.  A child table only tells you what End devices are associated to that parent. Neighbor tables tell you what routers are in range of that parent.
...