[Tinyos-help] Re: help with Micaz RF Power
Daniele Munaretto
munaretto at docomolab-euro.com
Mon Nov 6 06:27:41 PST 2006
David A Sauder wrote:
> Hello Daniele-
> I saw your tinyos question about adjusting the micaz RF power and that
> you got it working by wiring your component with the CC2420Control. I
> am trying to do the same but I am have problems and still can not get
> it to work. Can you email me your configuration implementation so
> that I compare and find out what I am doing wrong?
>
> Here is the link to the thread with your question and answer:
> http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-September/019053.html
>
>
> Thanks!
> Andy Sauder
%Briefly: this is the usage in M.nc
uses
interface CC2420Control;
call CC2420Control.SetRFPower(1); (to usewhere you need to fix the range
in your program)
%this is the usage in the configuration file C.nc (my main program is
BcastM.nc)
configuration Bcast { }
implementation {
components Main, BcastM,GenericComm as Comm,
LedsC,PhotoTemp,TimerC,RandomLFSR/*,TinyAlloc*/,FlashBridgeC,CC2420RadioC;
Main.StdControl -> BcastM;
Main.StdControl->TimerC;
/*FlashBridge*/
Main.StdControl -> FlashBridgeC;
BcastM.FlashBridge -> FlashBridgeC.FlashBridge[unique("FlashBridge")];
BcastM.CC2420Control->CC2420RadioC;
Ciao
Daniele
More information about the Tinyos-help
mailing list