bhushan,

Turning the radio off and in is as simple as the following:

RadioControl.stop();
RadioControl.start();

Where in the module file:
uses interface StdControl as RadioControl;

You can include the previous two statements in any block you would like. I used them inside of a timer block to make the mote sleep so that I can save power.

You can do this with any component on the mote that you wire in the configuration.

You can verify the results by observing the power output.

Hope this helps.
Greg


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

Reply via email to