Xiaohui,

Thank you very much for your prompt reply. If this is the proper way of 
turn off the radio, how can I verify the radio is turned of properly 
please? I mean what will be the current draw by using this 
approximately. Thank you very much.

Regards,

Ruoshui

Xiaohui Liu wrote:
> In order to call command stop() from interface 
> ActiveMessageC.SplitControl, you have to implement all the events in 
> this interface, which are SplitControl.startDone() and 
> SplitControl.stopDone() in your case. Hope this helps.
>
> Cheers,
> Xiaohui
>
> On Tue, Apr 14, 2009 at 5:21 PM, Ruoshui Liu <[email protected] 
> <mailto:[email protected]>> wrote:
>
>     Dear all,
>
>     I am currently measuring the current draw by the micaz mote as whole
>     when it is operating in the different modes. First of all, I started
>     with turning off the radio, here is my code:
>
>     configuration BlinkToRadioAppC {
>     }
>
>     implementation {
>        components MainC;
>        components BlinkToRadioC as App;
>        components ActiveMessageC;
>
>        App.Boot -> MainC;
>        App.SplitControl -> ActiveMessageC;
>     }
>
>
>     module BlinkToRadioC {
>        uses interface Boot;
>        uses interface SplitControl;
>
>     }
>
>     implementation {
>
>        event void Boot.booted() {
>            call SplitControl.stop();
>        }
>
>     }
>
>
>     However, I got the error message like this:
>
>     BlinkToRadioC.nc:18: `SplitControl.startDone' not implemented
>     BlinkToRadioC.nc:18: `SplitControl.stopDone' not implemented
>     make: *** [exe0] Error 1
>
>     Why can I not use the command Splitcontrol.stop() alone to turn
>     off the
>     radio?  Could anyone help with this or give me the hints on how to
>     properly turn off the radio please? Any help would be appreciated.
>
>     Ruoshui
>     _______________________________________________
>     Tinyos-help mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>

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

Reply via email to