How to send data from Router to Coordinator in API mode (XBee S2)

Hello everyone! I hope you guys can help me with this problem.

I configured one XBee as ZigBee Coordinator API and one as ZigBee Router API.

I can send from coordinator to router, but not from router to coordinator, and I don’t know how to fix this problem!

Configuration of coordinator:
MY=0
DH=13A200
DL= 409B7D31

Configuration of router:
MY= FFFE
DH=0
DL=0

API frame I’m trying to send from router to coordinator:
7E 00 12 10 01 00 00 00 00 00 00 FF FF 00 00 00 01 04 05 06 07 D9

Please help me! Why doesn’t it work?

If you are using Arduino, just add the following lines in your initialization

XBeeAddress64 addr64 = XBeeAddress64(0xDH, 0xLH); //DH is the MSB address of your address, LH is the LSB address of your router, example XBeeAddress64 addr64 = XBeeAddress64(0x0013A200, 0x40A7DB96);
//create the packet

ZBTxRequest zbTx = ZBTxRequest(addr64, payload, sizeof(payload));

// you can then send the packet as usual
void loop() {

xbee.send(zbTx);
}

Hello,

Have you figured this issue out yet?

I am having the same problem. I can send a command to the router, but I do not get any information back from the router. I know it is sending something back, but the coordinator is not spitting it out onto XCTU.

Thanks!

1 Like

I have the same settings Xbee serie 2.
Coordinator + PC (Eclipse) and arduino + Router (softwareSerial.h, Xbee.h), because from the arduino can not send data and if data arrives from coordinator to router.

Since arduino sending data with xbee.send (tx); and does not send data

I already work.
For this create a thread on Arduino for sending data to Cordinator (Eclipse API = 2) and Eclipse also create a thread that receives data from the API Router (Arduino, xbee.h, SoftwareSerial.h).

For sending data from the Coordinator (Eclipse) to Router (Arduino) do not use threads.

Both Xbee s2 (Coordinator, Router) are API = 2 mode with XB24-2B Zigbee protocol and 64-bit address.

The sending and receiving data network seamlessly with the use of wires.

Bye

this program is only for router to coordinator. its working but coordinator to router is not working.
Please help!!!

1 Like

i am facing the same issue have you found any solution ???

sorry… i want to ask…
how to print data ony without print the acknowledgment between xbee s2 in API mode???
please help me,

how about the sketch…

thx very much