I can't swear that that specific code works, but what it is trying to do
is extract the received signal strength from each message and stick it
into a, maybe, unused byte of the message packet before resending it
over the UART. If you look for "strength" in the file you sent you
will see this in RadioReceive.receive():
    gRxBufPoolTbl[gRxHeadIndex] ->data[20] = Msg->strength;
So it's overwriting data byte 20 with the "rssi" of that message. But it
is not changing the data length of the message so it is probably assuming
that the packets you are receiving are already at least that long.
If that is not the case then Listen and other receivers will ignore it.
The easiest solution is to make sure you are sending full sized messages
from your re-Motes. And better, you should create a message type that
has byte 20 reserved for this use...

The actual message structure is in:  tos/types/AM.h (in T1 anyway)
and you can get, hopefully, as much as you need to know about messages
by going through the tutorial and looking at samples like CntToRFM and
Oscilloscope.

MS

ram kishore wrote:
Hi Everyone,

I have a mote(mica2) configured as base station using TOS Base application found in /tinyos1.x/contrib/xbow/apps.I use serialforwarder and Listen tool to see the transmitted packets.I want to read the RSSI value of the transmitted packets also.After scanning mailing lists, I found this link and implemented the solution:

<http:////mail.millennium.berkeley.edu/pipermail/tinyos-help/2007-July/026935.html> http: //mail.millennium.berkeley.edu/pipermail/tinyos-help/2007-July/026935.html <http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2007-July/026935.html>

Unfortunately,I failed.As a newbie,I dont have any idea of whats going on(Just a baby in the woods).Plzzzzz live me with any pointers, as how to change the TOSBaseM.nc file in order to read the RSSI values. Many Thanks in advance,
Kishore


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

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

--
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to