I Have tried this thing
I have one XBee in API as coordinator, and one router XBee in API
I connected the arduino to the router and installed the following code on arduino
#include <XBee.h>
uint8_t text[] = {'H', 'e', 'l', 'l', 'o'};
XBee xbee = XBee();
XBeeAddress64 remoteAddress = XBeeAddress64(0x0013a200, 0x407a3903);
ZBTxRequest zbTx = ZBTxRequest(remoteAddress, text, sizeof(text));
void setup () {
delay(1000);
xbee.begin(9600);
}
void loop () {
xbee.send(zbTx);
delay(3000);
}
the serial output of the arduino is:
7E 00 0F 10 01 00 7D 33 A2 00 40 7D 5E 70 39 FF FE
Which is has no response on coordinator !!
So I tried the following, I tried to communicate using direct I/O on the two XBees and I has a API frame communication from the router to the coordinator which is :
7E 00 12 29 00 13 A2 00 40 7C 48 1E 4C 46 01 01 00 01 00 00 01 00
and communicate well

I Think the problem is in the code on arduino it should be edited to send a frame such as the second one to establish communication
I’m I right ??
I think the following command should modified
ZBTxRequest zbTx = ZBTxRequest(remoteAddress, text, sizeof(text));
If yes, How to make that ??
P.S: the XBees configuration as follow
Receiver : COORDINATOR API, Version 21A7 , DH=0, DL=FFFF
Transmetter : ROUTER API, Version 23A7 , DH=0 , DL=0
AND THE SAME PAN ID
regards