[Tinyos-help] RE: Range micaz motes

David Moss dmm at rincon.com
Fri Sep 1 12:13:34 PDT 2006


The /contrib/rincon directory contributes radio stack code only for the
CC1000 though, not for the CC2420.

Looks like you can do a CFLAGS += -DCC2420_DEF_RFPOWER=0x1F in your Makefile
to set the RF power manually.  If you're editing a different parameter in
the MakeXbowLocal file to try to change the RF power, then you're editing
the wrong thing.  "RADIO_XMIT_POWER" = incorrect for the micaz.
CC2420_DEF_RFPOWER is where it's at.


Your application can change the RF power as well.  If you wire up your
component to the CC2420Control interface, which is provided by CC2420RadioC,
you have access to the command:

  /**
   * Set the transmit RF power value.  
   * The input value is simply an arbitrary
   * index that is programmed into the CC2420 registers.  
   * The output power is set by programming the power amplifier.
   * Valid values are 1 through 31 with power of 1 equal to
   * -25dBm and 31 equal to max power (0dBm)
   *
   * @param power A power index between 1 and 31
   * 
   * @result SUCCESS if the radio power was adequately set.
   *
   */
  command result_t SetRFPower(uint8_t power);	

I'm not sure if it will work by calling it on StdControl.init(), but it's
worth a try.  The CC2420 radio isn't finished starting up until
CC2420RadioC's SplitControl.startDone() event is signaled.  At the time of
that event, it will definitely be safe to call CC2420Control.SetRFPower(..).

-david




-----Original Message-----
From: tinyos-help-bounces at Millennium.Berkeley.EDU
[mailto:tinyos-help-bounces at Millennium.Berkeley.EDU] On Behalf Of Michael
Schippling
Sent: Friday, September 01, 2006 10:58 AM
To: Munaretto, Daniel
Cc: Tinyos-help at Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] RE: Range micaz motes


As I understand it, the rincon tree contributes entirely new radio code,
so it may not even use those defines. I haven't looked at it myself.
Perhaps you can search the radio source and see...
MS


Munaretto, Daniel wrote:
> Yeh, i did the right one. The only strange thing in my program is that i
work under contrib/rincon directory (i'm using the flash applications), and
then in the makefile i force the compiler to compile the MakeXbowlocal file
under contrib/xbow.
> Is it may be a source of errors?
>  
> cheers
> Daniele
> 
> 	-----Original Message----- 
> 	From: Michael Schippling [mailto:schip at santafe.edu] 
> 	Sent: Thu 8/31/2006 8:22 PM 
> 	To: Munaretto, Daniel 
> 	Cc: Tinyos-help at Millennium.Berkeley.EDU 
> 	Subject: Re: [Tinyos-help] RE: Range micaz motes
> 	
> 	
> 
> 	There are separate MakeXbowlocal defines for mica2,z...
> 	You did set the right one, right?
> 	
> 	Otherwise you could disconnect the antennas,
> 	or make really inefficient ones.
> 	MS
> 	
> 	Munaretto, Daniel wrote:
> 	> Sorry, i have to say i already modified the MakeXbowlocal file but
without results. I put the TX power to the minimum, but i obtain the same
transmitting range. And in my makefile i compile it!
> 	>
> 	>       -----Original Message-----
> 	>       From: Munaretto, Daniel
> 	>       Sent: Thu 8/31/2006 4:32 PM
> 	>       To:
> 	>       Cc: Tinyos-help at Millennium.Berkeley.EDU
> 	>       Subject: Range micaz motes
> 	>      
> 	>      
> 	>       Hi all,
> 	>          is there a really simple thing to do for reducing the
radius range of the micaz motes?
> 	>       i'm working in TinyOS 1.1.11.
> 	>       
> 	>       Thanks very much
> 	>       
> 	>       Daniele
> 	>
> 	>
> 	> _______________________________________________
> 	> Tinyos-help mailing list
> 	> Tinyos-help at Millennium.Berkeley.EDU
> 	>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 	
> 
_______________________________________________
Tinyos-help mailing list
Tinyos-help at Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




More information about the Tinyos-help mailing list