# How to request remote xbee to send packet back?

**URL:** <https://forums.digi.com/t/how-to-request-remote-xbee-to-send-packet-back/20913>\
**Category:** XBee - 802.15.4\
**Tags:** request, api-request, xbee\
**Created:** [November 19, 2019, 9:14am UTC](https://forums.digi.com/t/how-to-request-remote-xbee-to-send-packet-back/20913 "2019-11-19T09:14:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ann1280](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@ann1280](https://forums.digi.com/u/ann1280)\
**Post date:** [November 19, 2019, 9:14am UTC](https://forums.digi.com/t/how-to-request-remote-xbee-to-send-packet-back/20913/1 "2019-11-19T09:14:08Z")

</div>

Currently I have 2 xbee series 2 (S2CTH). I connect one with Arduino Uno and set as Coordinator in API mode. Another one sets as end device in API mode, just put on Dongle and connect to computer. I would like to get RSSI and I understand that for series 2, I cannot get RSSI value directly so I use the firmware of series 1 instead. When I send packet using XCTU from end device and using below code, upload via Arduino IDE to Coordinator, I can receive RSSI value as I want. However, my question is “Can I send any code from coordinator to request end device to send back packet so that I can use below code to receive RSSI without end device sending packet from XCTU?”

I’m not sure what frame type I should use for this case. And what should I set to be mode for end device, Transparent Mode or API Mode?

#include  
#include

// XBee’s DOUT (TX) is connected to pin 8 (Arduino’s Software RX)  
// XBee’s DIN (RX) is connected to pin 9 (Arduino’s Software TX)  
SoftwareSerial serial1(8, 9); // RX, TX

XBee xbee=XBee();  
XBeeResponse response = XBeeResponse();  
Rx16Response rx16 = Rx16Response();  
Rx64Response rx64 = Rx64Response();

uint8\_t option = 0;  
uint8\_t data = 0;  
uint8\_t rssi = 0;

void setup()  
{  
Serial.begin(9600);  
serial1.begin(9600);  
xbee.setSerial(serial1);

}

void loop()  
{  
xbee.readPacket(1000);  
if (xbee.getResponse().isAvailable())  
{  
Serial.println(“available”);  
if(xbee.getResponse().getApiId() == RX\_64\_RESPONSE || xbee.getResponse().getApiId() == RX\_16\_RESPONSE)  
{  
if (xbee.getResponse().getApiId() == RX\_16\_RESPONSE)  
{  
xbee.getResponse().getRx16Response(rx16);  
option = rx16.getOption();  
data = rx16.getData(0);  
rssi = rx16.getRssi();  
[//Serial.print](https://Serial.print)("data: ");Serial.println(data);  
[//Serial.print](https://Serial.print)("option: ");Serial.println(option);  
Serial.println(rssi);  
}  
else  
{  
// Serial.println(“64”);  
xbee.getResponse().getRx64Response(rx64);  
option = rx64.getOption();  
data = rx64.getData(0);  
rssi = rx64.getRssi();  
Serial.println(rssi);  
}  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [November 19, 2019, 10:36am UTC](https://forums.digi.com/t/how-to-request-remote-xbee-to-send-packet-back/20913/2 "2019-11-19T10:36:06Z")

</div>

You can try to use a remote AT command (0x17) frame to issue the DB command. That should allow you to read back the RSSI value of this remote AT command.

---

<div class="post-metadata">

**Author:** ![MavisLee](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@MavisLee](https://forums.digi.com/u/MavisLee)\
**Post date:** [January 7, 2020, 10:07am UTC](https://forums.digi.com/t/how-to-request-remote-xbee-to-send-packet-back/20913/3 "2020-01-07T10:07:26Z")

</div>

Hi…

I have tried to use the remote AT Mode command (0x17) for coordinator. But I still not understand how the coordinator can get the packet received by End Devices.  
Could you explain in detail?  
Thank you very much.

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [January 8, 2020, 11:13am UTC](https://forums.digi.com/t/how-to-request-remote-xbee-to-send-packet-back/20913/4 "2020-01-08T11:13:36Z")

</div>

That is not something that really can be or should be answered on a Support forum. If you are not understanding a concept, then it would be better for you to contact Digi Support either via email or from the web site.

---

<div class="post-metadata">

**Author:** ![Tania\_Islam](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@Tania\_Islam](https://forums.digi.com/u/Tania_Islam)\
**Post date:** [March 21, 2022, 8:03am UTC](https://forums.digi.com/t/how-to-request-remote-xbee-to-send-packet-back/20913/5 "2022-03-21T08:03:46Z")

</div>

Hi, can you post the connection between Arduino and XBee, please?
