XBee ATND Problem

Hi,

I have XBee 1mW chip antenna module, I am using X-CTU. After typing +++ when I type ATND I get “ERROR” message. I couldn’t figure out why this is happening and I am also kind of rookie at this XBee stuf. What can I do to make ATDN work?

Channel and PAN ID parameters are the same on all modules I want to scan with XBee

Thanks for any help.

I’ll assume that you have series 1 XBees with 802.15.4 firmware. Please confirm as there are several flavors of XBees.

If you read the Digi document 90000982 on these XBees, the DN command says:

DN (Destination Node) Command

AT Command: ATDN

Parameter Range: 20-character ASCII String

Minimum Firmware Version Required: v1.x80

<Networking {Identification}> The DN command

is used to resolve a NI (Node Identifier) string to

a physical address. The following events occur

upon successful command execution:

  1. DL and DH are set to the address of the

module with the matching NI (Node Identifier).

  1. ‘OK’ is returned.

  2. RF module automatically exits AT Command Mode.

If there is no response from a modem within 200 msec or a parameter is not specified (left blank),

the command is terminated and an ‘ERROR’ message is returned.

Which should answer your question as to why you are getting the ERROR response.

Opps, I am sorry I was going to write ATND. I get ERROR when I write ATND, any ideas?

I guess it is series 1 XBee

btw thanks for previous reply

The firmware version is the best way to ID your XBee modules and what Protocol is being used. You can get this by clicking on “Test/Query” in the PC Settings tab of X-CTU.

After typing the +++ do you get the ‘OK’ response? If not then the XBee didn’t see the +++.

yes after +++ I get OK but when I type ATND it keeps giving ERROR

It is XB24 firmware:10E6

Ok, you have Series 1 XBees with the latest 802.15.4 firmware.

Do other AT commands work? Like ATIS.

Are your other XBees powered on and connecting, Associated?

I’ll guess you are running these as Peer-to-Peer and not with one module set as a Coordinator. If this is true then I suspect that the ND command is not valid in Peer-to-Peer. Look in the doc starting on page 15 (XBee®/XBee-PRO Networks).

You could try setting one XBee to be a Coordinator, cycle power on all units and retry the ND command.

Definitely try the simpler AT commands first.

Does ATMY give you the XBee’s MY address?

Can you change that address? Type ATMY 6, and then ATMY, and see if you get “6” in return.

ATND is a fairly complicated command involving a search for other modules, so the problem could be in several places.

yep, ATMY gives the 16 bit adress and I can change it via command mode.

Check these items:

ATMM - is it 0? Because ATND is Digi-proprietary, not per IEEE

ATAP - is it 0? Not sure ND is valid in API mode

channel number and PAN ID valid?

thanks stevech, it is ATMM when I set it to 0, problem is gone

Thanks Steve…

I was hoping you would read this and know the answer.

de nada