*

Hi all,
**

I have an adaption version of the Surge_Reliable application of Crossbow on
mica2 motes. I want to get the motes in a sleep mode and wake them up with a
timer. I want to use the HPLPowerMangement module in tos.
*

First I enable the HPLPowerManagement module by *" call
PowerManagement.enable(); "
*

Then I want to put the radio off by calling: " *call
RouteControl.StdControl.stop(); *"

The I get this compile error: " *interface has no command or event named
'StdControl' *"
*

This is the configuration file: (I think something is wrong in the
configuration file) :
**

components Main, ADSAppM, TimerC, LedsC, ADCC, PhotoTemp,

GenericCommPromiscuous as Comm, EWMAMultiHopRouter as multihopM ,
HPLPowerManagementM;

Main.StdControl -> ADSAppM.StdControl;

Main.StdControl -> multihopM.StdControl;

Main.StdControl -> TimerC;

Main.StdControl -> Comm;

ADSAppM.ADCControl -> ADCC;

#ifndef PLATFORM_PC

ADSAppM.Batt -> ADCC.ADC[TOS_ADC_BANDGAP_PORT];

#else

ADSAppM.Batt -> ADCC.ADC[10];

#endif

ADSAppM.Temp -> PhotoTemp.ExternalTempADC;

ADSAppM.TempStdControl -> PhotoTemp.TempStdControl;

ADSAppM.Timer -> TimerC.Timer[unique("Timer")];

ADSAppM.Leds -> LedsC.Leds;

ADSAppM.ReceiveMsg -> Comm.ReceiveMsg[AM_SURGEMSG];

ADSAppM.RouteControl -> multihopM;

ADSAppM.Send -> multihopM.Send[AM_SURGEMSG];

multihopM.ReceiveMsg[AM_SURGEMSG] -> Comm.ReceiveMsg[AM_SURGEMSG];

ADSAppM.PowerManagement -> HPLPowerManagementM;

}
*

RouteControl is wired to multihopM. multihopM is a different name for the
EWMAMultiHopRouter. EWMAMultiHopRouter provide the interface StdControl.

Why can't the compiler find the StdControl function of EWMAMultiHopRouter???



Many thanks in advance,

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

Reply via email to