From 94bf9a50a8c350d77f8291926d3bfbc06df236ea Mon Sep 17 00:00:00 2001 From: sdhsdh Date: Sat, 19 Sep 2009 21:13:26 +0000 Subject: [PATCH] - updates to go along with new low power listening interface --- apps/IPBaseStation/BaseStationP.nc | 2 +- tos/lib/net/blip/IPDispatchP.nc | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/IPBaseStation/BaseStationP.nc b/apps/IPBaseStation/BaseStationP.nc index fc7df4ee..71645ca9 100644 --- a/apps/IPBaseStation/BaseStationP.nc +++ b/apps/IPBaseStation/BaseStationP.nc @@ -358,7 +358,7 @@ implementation call PacketLink.setRetries(msg, 0); } #ifdef LPL_SLEEP_INTERVAL - call LowPowerListening.setRxSleepInterval(msg, LPL_SLEEP_INTERVAL); + call LowPowerListening.setRemoteWakeupInterval(msg, LPL_SLEEP_INTERVAL); #endif dbg("base", "radio send to: 0x%x len: %i\n", addr, len); if (call RadioSend.send(addr, msg, len) == SUCCESS) diff --git a/tos/lib/net/blip/IPDispatchP.nc b/tos/lib/net/blip/IPDispatchP.nc index 419cd687..76f19233 100644 --- a/tos/lib/net/blip/IPDispatchP.nc +++ b/tos/lib/net/blip/IPDispatchP.nc @@ -237,7 +237,7 @@ module IPDispatchP { event void RadioControl.startDone(error_t error) { #ifdef LPL_SLEEP_INTERVAL - call LowPowerListening.setLocalSleepInterval(LPL_SLEEP_INTERVAL); + call LowPowerListening.setLocalWakeupInterval(LPL_SLEEP_INTERVAL); #endif if (error == SUCCESS) { call ICMP.sendSolicitations(); @@ -791,10 +791,12 @@ module IPDispatchP { call PacketLink.setRetries(s_entry->msg, s_entry->info->policy.retries); call PacketLink.setRetryDelay(s_entry->msg, s_entry->info->policy.delay); #ifdef LPL_SLEEP_INTERVAL - call LowPowerListening.setRxSleepInterval(s_entry->msg, call LowPowerListening.getLocalSleepInterval()); + call LowPowerListening.setRemoteWakeupInterval(s_entry->msg, + call LowPowerListening.getLocalWakeupInterval()); #endif - dbg("IPDispatch", "sendTask dest: 0x%x len: 0x%x \n", call Ieee154Packet.destination(s_entry->msg), + dbg("IPDispatch", "sendTask dest: 0x%x len: 0x%x \n", + call Ieee154Packet.destination(s_entry->msg), call Packet.payloadLength(s_entry->msg)); if (s_entry->info->failed) { -- 2.39.2