Thank you very much! By looking at the CntToLedsAndRfm program, I believe I can use TOS_LOCAL_ADDRESS. I think I will do something similar to IntMsg.h:

typedef struct IntMsg {
   uint16_t val;
   uint16_t src;
} IntMsg;

and set it similarly to IntToRfmM.nc:
message->src = TOS_LOCAL_ADDRESS;

Unfortunately, I'm not sure where TOS_LOCAL_ADDRESS is defined - I'm looking for it right now. This does work for the CntToLedsAndRfm program (using TOSBase, I can see the contents of the messages received, and it does have the correct NodeID), so perhaps I can just use similar code and it will work. I'd rather understand why it is working though.

Thanks,
Elizabeth


----- Original Message ----- From: "Michael Schippling" <[EMAIL PROTECTED]>
To: "Elizabeth Bodine" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Saturday, March 25, 2006 2:13 PM
Subject: Re: [Tinyos-help] not- Help with RSSI value


When you get a message in some mote receive function, the message
structure is a TOS_Msg. For micaz's this is defined in
   tos/platform/micaz/AM.h
The so-called rssi reading is tacked on to the end of the message
in the 'strength' field.

To make matters more confusing, mica2's and the "normal" host-PC
side code use a TOS_Msg defined in tos/types/AM.h (this struct is
transformed to/from the micaz version in TOSBase UART Framer code).
And to stay even more confused, the strength field is NOT supported
in the TM on the PC side, only within the motes themselves...

That was more information than you need, especially since the source
NodeID is NOT in the TOS_Msg struct...should you be interested in
your message's source you need to include a field for it in the payload
(TM.data). The Oscilloscope demo app does this in OscopeMsg.h

MS

Elizabeth Bodine wrote:
Hi,
I'm sorry, but I do not know enough about these motes to help you with your problem. In spite of that, I was hoping you could help me. I am trying to extract the NodeID from the messages I am sending (2 motes communicating), and I'm not sure what interface/library it is that I am supposed to be using. I noticed that you are extracting LQI and RSSI values (I assume using some sort of pointer structure) - how are you doing that? Which components have you used in order to be able to do that? Again, I am sorry I cannot help you figure out what is wrong with the RSSI values, but I hope you can help me.
 Thanks,
Elizabeth
 ----- Original Message -----
    *From:* Sara B. <mailto:[EMAIL PROTECTED]>
    *To:* [email protected]
    <mailto:[email protected]>
    *Sent:* Saturday, March 25, 2006 11:21 AM
    *Subject:* [Tinyos-help] Help with RSSI value


    Hi all,
     I'm using MicaZ platform and I'm trying to get LQI and RSSI values.
    I get correctly LQI values (Msg->lqi), but when trying to get RSSI
    (power level received) value by Msg->strength I obtain values around
    250 at -10 dBm with the 2 motes very near. If I have to substract
    the offset of -45 to get the final value on dBm, 250 - 45 it's not a
    good value for RSSI...
     Coud anyone give me a hand? Thanks in advance,
     S.

    ------------------------------------------------------------------------

    _______________________________________________
    Tinyos-help mailing list
    [email protected]

https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


------------------------------------------------------------------------

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to