You should be able to set xmit power dymanically using:
// set Xmit strength
// mica2 916 Mhz -20 0x02 -- 2
// -10 0x09 -- 9
// 0 (1mw) 0x80 -- 128
// 5 0xFF -- 255
call CC1000Control.SetRFPower( value );
There is a similar i'face for the micaz as well, but I don't have
an example right at hand.
Also if you compile under the contrib/xbow tree you get the MakeXbowLocal
file that has a compile time define for xmit power. In fact, I was not
completely successful at getting the mica2 radio to work without the xbow
code. I know that tree is usable with 1.1.7 and above, so you don't need
to go all the way to .15.
MS
Aditya Bhave wrote:
If you are using the MICA2 motes with tinyos-1.1.10 you should edit the
CC1000Const.h file in /tos/platform/mica2.
Scroll down to CC1K_Params[5][31] in the file. Depending on the freq of
the motes you are using, you should change the contents of PA_POW at the
appropriate place. The default value is 0xff. If you change it to 0x00
you can get a range of 3 feet or around that much.
If you are using tinyos-1.1.15 you should edit the MakeXbowLocal file.
Check the manual that comes on the CD to see what and where to change.
I perosnally did the above in my project. If you figure out how the same
thing can be done using the Pots interface in the program itself, please
let me know. Thanx
On 5/15/06, *Prashant Kr. Gupta* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
I have been trying to reduce the radio range by using Pot interface...
but it seems that it doesn't helps much... what can i do
thanks
prashant
_______________________________________________
Tinyos-help mailing list
[email protected]
<mailto:[email protected]>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
<https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help>
--
regards,
Aditya Bhave
------------------------------------------------------------------------
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help