XBee Communication

Hi I'm trying to comunicate two Xbee S2 one as a Coordinator and the other one as End Device. I used Moltosenso Iron to configurate them in the same network with this AT commands:

COORDINATOR ATID 1111 ATBD 3 ATNI COORDINATOR ATCH 14 ATMY 0 ATDH 000d6f00 ATDL 00068924 ATWR OK ATCN OK

END DEVICE ATID 1111 ATBD 3 ATNI NODE1 ATCH 10 ATMY 5F10 ATDH 000d6f00 ATDL 00068924 ATWR OK ATCN OK

Then i tryed this code in the EndDivece to see if works:


/* Serial Test code Sends "testing..." over the serial connection once per second while blinking the LED on pin 13. Used for testing serial devices such as the XBee. Adapted from the SoftSerial Demonstration code */

define ledPin 13

byte pinState = 0; void setup() { pinMode(ledPin, OUTPUT); Serial.begin(9600); } void loop() { Serial.println("testing..."); // toggle an LED just so you see the thing's alive. toggle(13); delay(1000); } void toggle(int pinNum) { // set the LED pin using the pinState variable: digitalWrite(pinNum, pinState); // if pinState = 0, set it to 1, and vice versa: pinState = !pinState; }


But it does'nt. I don''t know where is the problem. I'll appreciate if someone how know xbee could help me.

Thanx.

I used Moltosenso Iron to configurate them in the same network with this AT commands:

Unless you copied and pasted the wrong data, you've given the two XBees the same ID (DH and DL). It's no wonder they can't talk to each other.

Thanx for answering PaulS. I'm new in this if i did something wrong can you tell me what i need to change? i just try this other configuration and it didn't work either:

COORDINATOR ATID 1111 ATBD 3 ATNI COORDINATOR ATCH 14 ATMY 0 ATDH 13A200 ATDL 40616282 ATSH 13A200 ATSL 40690791 ATWR OK ATCN OK

END DEVICE ATID 1111 ATBD 3 ATNI NODE1 ATCH 10 ATMY 5F10 ATDH 13A200 ATDL 40690791 ATSH 13A200 ATSL 40616282 ATWR OK ATCN OK