Arduino Uno <-> Xbee <--> Xbee <-> Arduino Uno, Xbee Series 2 in API mode

Hi,

I'm trying to cummunicate between two Arduinos with two Xbee's (incl adapter kit: XBee Adapter kit [v1.1] : ID 126 : $10.00 : Adafruit Industries, Unique & fun DIY electronics and kits).
First I just tried if my Serial connection is working:
Arduino via Serial ports to ftdi cable: checked the traffic on both sides using Arduino Serial Monitor and CoolTerm.
-> Bytes could be received on the other side. (both directions)

I already used the Xbee's in AP mode -just sending via the hardware serial port - this also worked.
But I have to use API mode as I need to communicate with 2 or more Xbee's and I guess this is only properly possible with API mode.

My setting:
both Xbee's are in the same PAN
#1 is Xbee Coordinator API (connected Arduino: uploaded the TX sketch)
#2 is Xbee Router API (connected Arduino: uploaded the RX sketch)
both: baud rate: 9600

Now I just uploaded the two example sketches (Series2_TX, Series2_RX) from the Xbee library (sketches attached).
And did following adaption:
- payload
in the example the payload is read from Pin5, but I thought I would just send some constant values for testing purpose
I replaced the commented part below with just the declaration/initialization of the payload array:
//uint8_t payload[] = { 0, 0 };
uint8_t payload[] = { 97, 98 };
//int pin5 = 0;

//pin5 = analogRead(5);
//payload[0] = pin5 >> 8 & 0xff;
//payload[1] = pin5 & 0xff;

- ZBTxRequest Destination Address
Of course I also changed the Destination Address to my receiving Xbee:
XBeeAddress64 addr64 = XBeeAddress64(0x0013a200, 0xXXXXXXXXX);

Result:
The only visual output I get is the integrated PIN 13 LED on the two Arduinos:

  • Coordinator (TX sketch) & Xbee #1 (Coordinator):
    -> in a loop: blinks once, then twice: this means nothing is coming back to the Xbee...

  • Router (RX sketch) & Xbee #2 (Router):
    -> no LED blinks: no packet ever arrives on Xbee #2

In general my question is, what could be wrong, as I more or less copied the example code and thought this shouldn't make too many problems...?
Is it correct to use both Xbee's in API mode?
Both types (Coordinator, Router/End device) can send and receive data, right?
Am I missing an import configuration for the Xbee's (in XCTU)?
Fyi: The red LED on my #1 Xbee never flashes - shouldn't it flash in case data is beeing sent?
-> could this mean no data is even sent from Arduino #1 to Xbee #1...?

I'm glad for every help and advice...
Please find attached the two example codes provided by the library...

Best regards,
Guti

Series2_Tx.pde (2.75 KB)

Series2_Rx.pde (3.23 KB)

Hey,

I'am also stuck. I've never used them before. Have You found the solution? If so, would You please share it with us.