I have been trying to write this kind of stuff too.
Hope the following helps ...

event TOS_MsgPtr ReceiveIntMsg.receive(TOS_MsgPtr m) {
    IntMsg *message = (IntMsg *)m->data;
    /*printf ("received RSSI value = %u , message value = %u, from source
%u\n", m->strength, message->val, message->src);*/
    call IntOutput.output(m->strength);
    return m;
  }

However, I am not sure if this is right because when I tried it on TOSSIM,
the RSSI value I get was always zero. Just for context, this code is from
the TinyOS turorial example RfmToInt / IntToRfm. All mote instances are
boradcasting packets periodically. I am yet to try it on actual motes. No
idea about BER though.

-Siddharth.

On Wed, 27 Oct 2004, gauarv  reddy wrote:

>  �
Hi all,

Does any has a code for recording RSSI values (precisely received signal strength 
values). I want to know if it is possible to record the BER at the physical layer. I 
would appreciate the suggestions.

Thanks in advance,

GR

_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to