Hi! On Wed, 6 Jan 2010, Richard Figura wrote:
> Hi, > > I tried to run ctp together with lpl on a mica2 mote. I used MViz (demo app) > as ctp implementation and tried to add lpl support. It seems that the > listening part of lpl just works fine, but the motes don't send their packages > with lpl behavior. > > My changes in "MVizC.nc" are: > > in "Boot.booted():" > call LowPowerListening.setLocalSleepInterval(250); > > in "event void Timer.fired()" just before "if (call Send.send(&sendbuf, > sizeof(local)) == SUCCESS)" > > call LowPowerListening.setRxSleepInterval(&sendbuf, 250); > > My changes in "MVizAppC.nc" are: > > components CC1000CsmaRadioC as LplRadio; > MVizC.LowPowerListening -> LplRadio; > > I see that Collection has its own send implementation in > "CtpForwardingEngineP.nc" there it uses AMSend. Would this be the right place > to implement Low Power Listening for fast results, or did I miss something > else? Perhaps there is a way that does not affect the ctp implementation as > well? > In the latest CVS the global LPL settings can be controlled from the Makefile. You can take a look at apps/test/TestNetworkLpl to see this in action. The relevant lines are: CFLAGS += -DLOW_POWER_LISTENING CFLAGS += -DLPL_DEF_LOCAL_WAKEUP=512 CFLAGS += -DLPL_DEF_REMOTE_WAKEUP=512 CFLAGS += -DDELAY_AFTER_RECEIVE=20 All the best! Razvan ME _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
