I've created a module called "PowerManagement" that Turns On and Off certain devices on the mote including the radio. The module Wires to the CC1000ActiveMessageC module via the SplitControl interface. I then create a new module that uses my PowerManagment module. This module also uses the CC1000ActiveMessageC via the Receive Interface.
My question is this: Because I'm using SplitControl with a Sub Module is my higher level module not able to receive packets because it thinks the radio is off (it is not using the SplitControl interface)? or does my issue lie elsewhere? I hope this makes sense, if not please let me know and I will elaborate. Thanks, Ian -------------------------------Wiring---------------------------------- configuration SuspendApp { } implementation { components MainC, SuspendC, MotePowerApp, CC1000ActiveMessageC, new TimerMilliC() as SuspendTimer; SuspendC.Boot -> MainC; SuspendC.PowerControl -> MotePowerApp; SuspendC.Receive -> CC1000ActiveMessageC.Receive; SuspendC.SuspendTimer -> SuspendTimer; -------------------------------------------------------------------------- configuration MotePowerApp { provides { interface PowerControl; } } implementation { components MainC, McuSleepC, MotePowerC, Atm128AdcP, CC1000ActiveMessageC, HplAtm128GeneralIOC; components new TimerMilliC() as SleepTimer; PowerControl = MotePowerC; MotePowerC.Boot -> MainC; MotePowerC.McuSleep -> McuSleepC; MotePowerC.ADCControl -> Atm128AdcP; MotePowerC.RadioControl -> CC1000ActiveMessageC; MotePowerC.Circuit -> HplAtm128GeneralIOC.PortD1; MotePowerC.SleepTimer -> SleepTimer; }
_______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help