XBee S2C at a Grove development kit doesn't request data.

Hello, i recently started using Xbee’s.

I got two Xbees. Lets call them Xbee A (Connected to PC) and Xbee B (Remote).
My goal is to measure the RSSI value at Xbee A received from Xbee B for localization goals.
This works with XCTU. What im doing is:

// Requesting node discovery in XCTU.
7E 00 04 08 01 4E 44 64

// Sending some data payload to Xbee B so Xbee B will respond to Xbee A
7E 00 18 11 01 00 13 A2 00 41 72 FC 3A FF FE E8 E8 00 11 C1 05 00 00 FF 05 05 FE A4

// At this moment i know the last package received was from Xbee B. At that moment i request
// the Xbee RSSI value (DB command)
7E 00 04 08 01 44 42 70

This works perfectly in XCTU. These same commands i implemented in my microcontroller and sent them to Xbee A.
The problem is that it sometimes works, and sometimes it doesn’t. The Grove development kit got some Rx and Tx lamps. Sometimes the Rx lamps (so receiving data from the PC) isnt flicking. So it seems i dont even send commands. But i checked it with a hyperterminal and im sending commands all the time. Is it possible that Xbee A is in sleep mode sometimes ? I can’t find anything about it… Sometimes when it works, i try to click on the reset button of the microcontroller… And then it doesn’t work anymore after sending the commands i showed above.

Both Xbee A and Xbee B are configured in API Enabled (AP =1).

Are my commands wrong or am i missing something?

Thanks in advance!

Are you using hardware flow control?

1 Like

I dont actually. I will look into it, thanks!