Changing communication channel and RF Power
To change default communication channel and RF Power you can either:
1) edit opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420Const.h
CC2420_DEF_CHANNEL 11 (this is default value)
CC2420_DEF_RFPOWER 0x1f (31, maximum, if you for example want to test multihop routing easiest way is to make RFPOWER smaller)
2) add line in Makefile
CC2420_DEF_CHANNEL = 11
CC2420_DEF_RFPOWER= 0x1f
3) change it in program by colling function from CC2420Control interface, called:
SetRFPower(uint8_t power);
1) edit opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420Const.h
CC2420_DEF_CHANNEL 11 (this is default value)
CC2420_DEF_RFPOWER 0x1f (31, maximum, if you for example want to test multihop routing easiest way is to make RFPOWER smaller)
2) add line in Makefile
CC2420_DEF_CHANNEL = 11
CC2420_DEF_RFPOWER= 0x1f
3) change it in program by colling function from CC2420Control interface, called:
SetRFPower(uint8_t power);
Comments
Ayman