Is it possible to find the distance between two Xbees?

Hey Everyone

I am working on a robot project. at the moment the robot is controlled by an application written in C# running on a PC which communicates through two Xbee modules: one connected to PC and the other on the robot connected to an arduino.

So, I was thinking to do some stuff with these two Xbees to show the range on the Screen using my C# application. I know it is possible to do it through X-CTU application and range test.

but, I am basically trying to do something like X-CTU application using the application developed in C#.

I don't know if it is possible or not. But I would be grateful if you can help me with this task. your help and suggestions are much appreciated.

Kind Regards

I don't think the X-CTU application measures distance with timing. Nor can it be accurate with RSSI. Therefore it does not measure distance at all. I believe it measures range by telling you how it is working at a specific location that you choose.

The "Range Test" in X-CTU only does an echo test and reports how many transmissions fail to return. This will allow you to detect when the X-Bee is starting to get Out Of Range but won't tell you how far away it is. See: ftp://ftp1.digi.com/support/documentation/90001067_a.pdf

Thanks for your reply,

I am not worried about the distance here. I am looking to find out how poor and how strong is the signal.

is there a way to find out, the quality of signal and based on that write a piece of software to show it on the screen similar to X-CTU

Thanks

You can do it the same way that X-CTU does it. Send known packets and look for the echo. If you don't get an echo within a few milliseconds your message did ot get through or the reply did not get trough.

Thank you John,

I didn't know how the range test is working, thanks to you
so, do you think I can program and show if the other Xbee is out of range. if yes. can you guide me? Please.

Yep, Thank you very much indeed,

Solved my question.