[Tinyos-help] SetRFPower micaz TinyOs 1.x

Kocsis László kocsis82 at freemail.hu
Sat Nov 4 07:05:29 PST 2006


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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20061104/317a7b8f/attachment.htm


More information about the Tinyos-help mailing list