Yusnaidi,
See the CC2420Packet documentation (
http://www.tinyos.net/tinyos-2.1.0/doc/nesdoc/telosb/ihtml/tos.chips.cc2420.interfaces.CC2420Packet.html).

You are looking for CC2420Packet.getRssi(). get/set power are for
transmission power, getRssi will give you the received signal strength of a
received packet (or, the RSSI of the acknowledgement for a sent packet).

-Doug

On Fri, Dec 10, 2010 at 11:10 AM, Yusnaidi Md Yusof <[email protected]>wrote:

> Hi All,
>
> I am so stucked to read the power of the received packet. I am using CTP
> protocol and sending the packet using Send.send().
>
> I have tried with the AM communication (my other test that not using CTP
> protocol), and in that test I send packets using AMSend.send(). I set
> certain power using CC2420Packet.setPower() and able to read the correct
> same power using CC2420Packet.getPower().
>
> However, I always get power value as '31' using the CC2420Packet.getPower
> while running the test in CTP Protocol.
>
> I guess, CTP not support using AMSend, but only support using 'Send'
> interface.
>
> How can I get the power reading in CTP?
>
> Is it the nature that the 'Send.send()' used in CTP does not support
> CC2420Packet.getPower()??
>
> I do really need an advise here. Pleaseeeee...
>
> thanks
>
> Yusnaidi
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to