Re: [Tinyos-help] MICA2 transmission power adjustment in tinyos 2.x

2010-10-25 Thread Prusayon Nintanavongsa
Hi Enrico, It works. Thank you very much for your help. Case closed. regards, PN Quoting Enrico Treu et...@uni-potsdam.de: Have you tried CC1000ControlP? Am Freitag, 22. Oktober 2010, 20:04:06 schrieben Sie: Thanks for your reply. However, it has compilation error

Re: [Tinyos-help] MICA2 transmission power adjustment in tinyos 2.x

2010-10-22 Thread Enrico Treu
In order to get this behaviour i simply added a few lines of code to my application: module /**/ { uses { //... interface CC1000Control as RadioStrengthControl; //... } } and event void Boot.booted() { //... #ifdef RFPOWER call RadioStrengthControl.setRFPower(RFPOWER); #endif //.. }

Re: [Tinyos-help] MICA2 transmission power adjustment in tinyos 2.x

2010-10-22 Thread Prusayon Nintanavongsa
Thanks for your reply. However, it has compilation error RadioStrengthControl.setRFPower not connect. What component should I put in the configuration file? For example, what component provides interface CC1000Control? Then I'll put that into my configuration file and wire it accordingly

Re: [Tinyos-help] MICA2 transmission power adjustment in tinyos 2.x

2010-10-21 Thread Enrico Treu
In order to get this behaviour i simply added a few lines of code to my application: module /**/ { uses { //... interface CC1000Control as RadioStrengthControl; //... } } and event void Boot.booted() { //... #ifdef RFPOWER call RadioStrengthControl.setRFPower(RFPOWER); #endif //.. }

[Tinyos-help] MICA2 transmission power adjustment in tinyos 2.x

2010-10-20 Thread Prusayon Nintanavongsa
Hi all, How do you adjust MICA2 transmission power in tinyos 2.x other than adding CFLAG in the Makefile? In tinyos 1.x, there's CC1000RadioC which can be wired to CC1000Control in order to call SetRFPower(). I would like to adjust the transmission power adaptively. Thank you. rdgs, PN