On Oct 20, 2006, at 5:37 PM, giovanni gamba wrote:
Hi all, i'm working on tmote sky using Boomerang. I'm trying to
follow the noise foor or in channel power.
I have 2 questions:
How can i read the RSSI register (i mean, what components and
commands to use ..)?
Is the RSSI value always valid? can i read it anytime i need (whit
a fixed sampling period for instance)?
Thank you very much!
This turns out to be a little complicated.
First, you want to read the CC2420 datasheet. It tells you how to
determine if the RSSI value is valid as well as when you can read it.
As far as components, you want to look in CC2420 directory. In 1.x,
there's an interface that lets you read the register: you pass
something like CC2420_RSSI as a parameter to say what register to
read. In 2.x you have a CC2420Register interface named RSSI, which
you can call read() on.
One thing is you want to make sure that the SPI bus isn't being used
for anything else. I'm not certain on how to do this in the 1.x
stack. In the 2.x stack, you instantiate an SpiC client and use the
Resource interface.
Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help