I am not sure of T2. But in T1, it is possible to change RF power at
runtime, and it is not per-packet basis. Because when setRFpower is called,
a corresponding register is visited and modified.

On Thu, Apr 10, 2008 at 11:17 PM, Urs Hunkeler <[EMAIL PROTECTED]> wrote:

> Hi Chris,
>
> The CC2420PacketC.setPower() command is on a per-packet basis.
>
> I had a look at the source code. As far as I can see it is not possible
> to change the default TX power at runtime as it is a pre-compiler
> constant. You can, however, change it at compile-time with a line like
> the following in the Makefile.
>
> CFLAGS += "-DCC2420_DEF_RFPOWER=1"
>
> There seems to be some code in
> $TOSROOT/tos/chips/cc2420/control/CC2420ControlP.nc that indicates that
> somebody either wants to or has previously implemented code that would
> allow a global TX power change at runtime. Anybody in the community
> knows more about this?
>
> Cheers,
> Urs
>
>
> Chris Yao wrote:
> >   Hi,
> >
> >   I notice that CC2420PacketC.nc has a setPower() command. If I want to
> change the transmission power to some value, say 10, do I need to call
> setPower() for every packet? or call setPower() once is just fine?
> >
> >   This question has been discussed before. But no answer is given.
> >
> >   Thanks,
> >
> >   Chris
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Renjie Huang
Sensorweb Research Laboratory
http://sensorweb.vancouver.wsu.edu/
Washington State University
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to