[Tinyos-help] set the RFpower level in TinyOS 2.1
BAI LI
libai0915 at gmail.com
Wed Jul 1 06:06:01 PDT 2009
Hi,
Thanks for your reply. At the beginning, I thought they must have one
similar interface like in TinyOS1.x. But I guess I was wrong. I wonder how
other people set the RF power level in TinyOS 2.x.
Regards,
Bai
On Wed, Jul 1, 2009 at 3:19 AM, Michael Schippling <schip at santafe.edu>wrote:
> Sorry, I'm a luddite. I should think that there is a similar
> interface in T2. Did you try searching for SetRFPower and
> such like?
>
> MS
>
>
> BAI LI wrote:
>
>> Hi,
>> Thanks for your reply. But sorry for the confusion. I mean how to do it
>> in TinyOS2.1 not TinyOS1.x. Thanks.
>> Regards,
>> Bai
>>
>> On Tue, Jun 30, 2009 at 2:41 AM, Michael Schippling <schip at santafe.edu<mailto:
>> schip at santafe.edu>> wrote:
>>
>> From tos/interfaces/CC2420Control.nc:
>>
>> /**
>> * 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);
>> MS
>>
>>
>> BAI LI wrote:
>>
>> Hi,
>> I went through some posts in the list and most of them talked
>> about how to set the RF power in tinyOX 1.x. I am just wondering
>> if anyone knows how to set the RF power level dynamically in the
>> code instead of adding some flag in the makefile? I know in 1.x,
>> i have to use CC2420Control interface. Thanks in advance.
>> Regards,
>> Bai
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> Tinyos-help at millennium.berkeley.edu
>> <mailto:Tinyos-help at millennium.berkeley.edu>
>>
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090701/eef72778/attachment.htm
More information about the Tinyos-help
mailing list