ElieNamias / xbee-arduino

Automatically exported from code.google.com/p/xbee-arduino
GNU General Public License v3.0
0 stars 0 forks source link

how to get the sender address? #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I'm new to the xbee and arduinos. In my project, I'm using four xbee pros 
(series 2) to build a WSN localization system. I use three of them to be the 
reference and one for tracking. Each node is attached to an arduino. Now the 
tracked node will receive three messages from the reference node. Thus I want 
to know the sender's address of each message. How can I do it? I found the 
function getRemoteAddress64 (). But I don't know how to use it. What is the 
primary expression of getRemoteAddress64 ()?

In addition, series 2 cannot get the rssi value from the packet. I figured out 
two ways to obtain that value. One is sending AT command request and the other 
is measuring the value of RSSI pin. Both two ways  are included in my code. 
Some one can check wether they are right for me? And I'm wondering which one 
will be better? Or is there any other ways to get RSSI value?

Final question, RSSI is not a highly reliable method to estimate the locations. 
So I want to get the data transmission time as well. In my code, I repeat 
broadcasting messages and counts the times of the broadcasting in order to get 
the time. I'm not sure wether it is a right way... Can anyone help me with 
that? Really thanks!!!!!

The attachments are my codes. Thank you again!!!

Original issue reported on code.google.com by lww...@gmail.com on 23 Jul 2012 at 10:27

Attachments:

GoogleCodeExporter commented 9 years ago
Questions should go on the forum. This is for submitting issues

Original comment by andrew.rapp@gmail.com on 2 Feb 2014 at 7:01