# Automatically neighbor discovery with DigiMesh possible?

**URL:** <https://forums.digi.com/t/automatically-neighbor-discovery-with-digimesh-possible/1194>\
**Category:** XBee - DigiMesh\
**Created:** [January 8, 2013, 1:13pm UTC](https://forums.digi.com/t/automatically-neighbor-discovery-with-digimesh-possible/1194 "2013-01-08T13:13:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![togi](https://avatars.discourse-cdn.com/v4/letter/t/58f4c7/32.png) [@togi](https://forums.digi.com/u/togi)\
**Post date:** [January 8, 2013, 1:13pm UTC](https://forums.digi.com/t/automatically-neighbor-discovery-with-digimesh-possible/1194/1 "2013-01-08T13:13:56Z")

</div>

Hello developers,

Is there a function to start a neighbor discovery (1 hop) in a digiMesh network after a node is switch on?

The Hardware should be a Xbee DigiMesh 2.4 RF Modul.

I want to detect a motion with a sensor and inform the both adjacent nodes left and right of the detetcting node. All nodes are positioned in a equidistant row with a gap of 35 metres. The MAC adresses of the nodes are not known and i want to avoid LUT´s with addresses or other predefines.

This is only a theoretical question. I have no hardware to check hints.

Thanks for your help.

Regards Tom

---

<div class="post-metadata">

**Author:** ![sosovirus](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@sosovirus](https://forums.digi.com/u/sosovirus)\
**Post date:** [September 2, 2013, 8:42am UTC](https://forums.digi.com/t/automatically-neighbor-discovery-with-digimesh-possible/1194/2 "2013-09-02T08:42:43Z")

</div>

Hi Tom,

I used some functions to make neighbor discovery but it only gets one of the neighbors.

what i think its a problem in the xbee.py API that it ends the session with the first serial reply and before the other nodes sends its reply.

here are the code i used you can call it any times and every time it will recover a new node.

```auto

```

neigh\_list = xbee.ddo\_command(Router\_Mac[64 bit XXXX], ‘FN’, “”, 25, order=False, apply=True)

```auto

```

Regards,  
I.G
