By default, LPL is disabled. Have you put PFLAGS+=-DLOW_POWER_LISTENING in the makefile?
Janos On Mon, Jan 17, 2011 at 11:05 AM, 吴凤刚 <[email protected]> wrote: > Hi everyone, > Recently, I've been trying implementing LPL on irismote, with > tinyos-2.x. Yet one problem occured > I found in LowPowerListening interface the command of getting and > setting local sleep interval, and write code as follows, which simply > setting the sleep interval and trying to read the set value: > // receive dataMsg from the sink node > dutyCycle = ((data_msg_t*)payload)->dutyCycle; > call LPL.setLocalWakeupInterval(dutyCycle); > ..... > // try to read the recent set value > dataMsg->dutyCycle = call LPL.getLocalWakeupInterval(); > // then send the 'dataMsg' to sink node and display it on PC > > But when the sink node receives the message and recover the dutyCycle, > it is always zero filled. I'm sure there is no problem in the transmission > part, because if the node send the received dutyCycle directly back to the > PC , it will have the right result. Yet when the dutyCycle is read > by LPL.getLocalWakeupInterval(), it is zero. > I've been stuck here for many days without any progress. Is there > anyone that can help me? Thanks a lot:) > Best wishs, > Fenggang > _______________________________________________ > Tinyos-help mailing list > [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
