Xbee ATDN command gives ERROR

For making a connection between a Xbee Coordinator and Router I use the “ATDN XX” command.

Normally I get an “OK” after approximately 100 mSec, but ones every 10 to 20 attempts the Coordinator returns within 10 mSec with “ERROR”.

Is there anyone how can help me to solve this problem?

Exactly which XBee module and firmware do you have?

The AT commands do have some rigid timing constants. Before sending the AT command are you waiting long enough for the XBee to time out of the last AT command? See the XBee document for timing details.

I use Xbee S2 modules with Hardware= 194A and Firmware= 22A7

Coordinator setup:

+++

ATID AA

ATNI YY

ATDH 0

ATDL FFFF

ATGT 64 (GuardTime= 100mS)

ATWR

ATCN

After each command I wait for OK

Router setup:

+++

ATID AA

ATNI XX

ATDH 0

ATDL 0

ATGT 64

ATWR

ATCN

After each command I wait for OK

The sending sequence at the Coordinator:

+++

wait for OK

ATDN XX

wait for OK (arrives mostly after 100mSec)

Once every 10 to 20 connection setups I get ERROR within 10mSec.

(on OK the command mode is automatically closed, on ERROR I close the connection with ATCN)

I think the Coordinator has not even tried to connect with the Router.

Waiting an additional 10mSec before sending ATDN XX has no effect.

I also tried ATNR0 (reset Coordinator network), ATNR1 (reset network nodes) and ATFR (software reset), but all have no effect.

The total network has 8 Router Xbee’s. All waiting in idle mode for the Coordinator to set up a connection.

What timing details do you mean.

@Barts

Did you ever find a solution or cause for this problem. I am experiencing the exact same symptoms?

tnx in advance