Home  >  Support  >  Support Forum  >  How to send data from Router to Coordinator in API mode (XBee S2)
Notice! We've recently migrated to using a new forum, we hope you enjoy it. If you are an existing member and this is your first time visiting our new forum, please reset your password to be able to sign in.

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

0 votes
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?
asked May 26 in RF Solutions and XBee by dinkymonkey New to the Community (0 points)

Please log in or register to answer this question.

3 Answers

0 votes
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);
}
answered May 27 by mustika New to the Community (2 points)
0 votes
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!
answered Jun 16 by stevenette New to the Community (1 point)
0 votes
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
answered 2 days ago by jreyes New to the Community (1 point)
Your M2M Expert™for Businessfor Developers
Newsletter SignupYouTubeGoogle+FacebookCopyright © 1996-2013 Digi International Inc. All rights reserved. Legal
...