On Oct 11, 2006, at 5:58 AM, [EMAIL PROTECTED] wrote:


Hi,
I am looking to change the radio frequency of micaz at runtime for tinyOS
2.0.
I searched through the Internet however all what I found is about tinyOS 1.x. Many things have changed in tinyOS 2.0 for CC2420 control. I looked to the files; I found out that CC2420Config contains all necessary command to
configure CC2420.
I use this interface “interface CC2420Config;” then I called the command
setChannel
    call CC2420Config.setChannel(11);

however still didn’t work and ask me to define SyncDone, so I set the event to
empty code.
event void CC2420Config.syncDone( error_t error ) {}

Again didn’t work.

I am wondering how can I fix this problem and change the radio channel at runtime, and if there is any example about that please send it to me, I really
need it.


Read the interface. You need to call sync() for your changes to take effect.

Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to