Hi
for changing the RF power there r 2 ways
1. wire the CC1000Comtrol interface of CC1000ControlM.nc to your module and in the start call CC1000Control.SetRFPower(uint8_t power) the power value to set can be found from cc1000 datasheet pg 32.
2. if you want to set the power permanently for all your programs you will need to make changes in two file CC1000Const.h and CC1000ComtrolM.nc in tos/platform/mica2
in cc1000const.h
first find the freq of your mote eg 433.002MHz etc
then in the cc1000const.h file there is an array CC1K_Params[6][31] here find the correct row
correspoding the the mote freq. once you find the correct row go to the line
// PA_POW 0x0b
((0x0<<CC1K_PA_HIGHPOWER) | (0xf<<CC1K_PA_LOWPOWER)),here in the second line change 0x0 and 0xf to the desired values.
in cc1000controlM.nc (this is only valid if you have not changed your cc1000controlM.nc to the new one posted on tinyos help list by David Moss)
in command result_t StdControl.init()
gCurrentParameters[0xb] = ((8 << CC1K_PA_HIGHPOWER) | (0 << CC1K_PA_LOWPOWER));
here change the 8 and 0 to the desired value ie what you have set above for cc1000const.h
Rahul Sawant
On 5/4/06, Aditya Bhave <[EMAIL PROTECTED]> wrote:
Hi,
I am doing a project on localization using wireless sensor networks. I need help very urgently as my project deadline is fast appraoching. I am using the old tinyos-1.x and need to know exactly how to set the RF power. We are using the MICA2 motes.
Any help would be greatly appreciated
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
