[Tinyos-help] Displaying RSSI value in TOSSIM using TinyViz
Philip Levis
pal at cs.stanford.edu
Tue Sep 5 07:47:24 PDT 2006
On Sep 5, 2006, at 6:37 AM, Tarun Bansal wrote:
> I am trying to get RSSI value in TOSSIM (version is 1.1.11-3). The
> code that I am using is:
>
> event TOS_MsgPtr ReceiveRUmsg.receive(TOS_MsgPtr m) {
> uint16_t RSSI = m->strength;
> dbg(DBG_USR2, "Receive signal strength as %d\n",(int)RSSI);
> }
>
> This doesnt seem to work as it shows value as 0. Looking at the
> archives I see that TinyOS versions 1.x doesnt support this. But
>
> 1. Does 2.x support this?
2.x currently does not support this, for two reasons:
1) The exact radio metadata interfaces have not been determined yet
(i.e., should RSSI readings be hardware independent or hardware
dependent).
2) The code hasn't been written.
Since the 2.x radio model is based on RSSI, once 1) is determined, 2)
will be very easy to do. Then, you will be able to access RSSI
readings. I am not sure whether this will be ready by the first 2.0
release.
Phil
More information about the Tinyos-help
mailing list