Sarah,

Just to clarify this issue a bit: there is no mechanism in TinyOS that
would allow the receiver to query what the transmitter's TX power
setting was.

CC2420Packet.getPower(msg) should only be called by the transmitter,
_before_ calling AMSend.send(msg). All other uses would result in an
undefined return value.

Nothing prevents you from writing the transmit power value into the
payload, though. That way, the receiver would get it for sure... if
that's what you want to achieve.

Janos

On Sat, Aug 24, 2013 at 12:54 PM, Sarra Sarah <[email protected]> wrote:
> I want to set transmit power for cc2420, so i did that:
>
> I added this line on make file: CFLAGS +="-DCC2420_DEF_RFPWER=1"
>  and then i wanted to read transmit power in receiving the packet i used
> call CC2420Packet.getPower(msg), but transmit power is 0x00. i dont know
> where is the problem.
>
> Thank you for help !!
>
> _______________________________________________
> 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