[Tinyos-help] SetRFPower micaz TinyOs 1.x

KANG HUI huk at a.cs.okstate.edu
Sat Nov 4 07:08:53 PST 2006


Is it the hex number for power more than 15?

Hui

On Sat, 4 Nov 2006, [iso-8859-2] Kocsis László wrote:

> Hi All!
>
> I'm useing micaz, MIB520 programmer and TinyOS 1.x
>
> I tried to set the RF power by this code:
>
> uint8_t set_power;
> set_power = 15;
> call CC2420Control.SetRFPower(set_power);
>
> using call CC2420Control.GetRFPower();
> I monitoring the getted power by MessageCenter, but I see, only can set the power index between 1 to 15 insted of 1 to 31. If I try to set  - for example - 25, it set a random index for example: 9 or 4.
> Does somebody know why?
>
> What will be happen when I try to set higher index, than the battery can make (because the battery is too low already)? (Do not set and leave the last index??)
>
> Thanks!
>
> Laci
>




More information about the Tinyos-help mailing list