Hi all,
I've played arround with the parameters and now it works as expected.
With the newest tinyos trunk (rev 4941). I have set 
LowPowerListeningConfig.getListenLength() to 38ms instead of 5ms (this 
corresponds the length of 1600 cca checks on telosb motes) and
set LocalWakeupInterval to 500
and RemoteWakeupinterval to 550.

In the TestLpl app I don't understand these lines of Code.

     if (sendInterval >= 0)
       call LowPowerListening.setRemoteWakeupInterval(&packet, 
sendInterval);

which value has RemoteWakeupInterval if sendInterval is lesser than 0 ?





Am 17.06.2011 16:26, schrieb Miklos Maroti:
> Did you set the local wakup interval as well to the same value? Miklos
>
> On Fri, Jun 17, 2011 at 2:44 PM, Christian Haas<h...@tm.uka.de>  wrote:
>> On 06/16/2011 02:05 PM, Miklos Maroti wrote:
>>> Hi Christian,
>>>
>>> Please post the code you are using for the test if you can.
>> The code is pretty simple:
>>
>>
>> #ifdef LOW_POWER_LISTENING
>> call LowPowerListening.setRemoteWakeupInterval(&pkt, SEND_INTERVAL);
>> #endif
>>
>> if (call CSend.send(1,&pkt, PAYLOAD_SIZE) == SUCCESS)
>>         {
>>
>>         }
>>
>>
>>
>> You can see the results in the attached plots of the energy consumption
>> of the iris nodes. Sleep interval and RemoteWakeupInterval set to 1000.
>>
>> For tinyos2.1.0: The cca check(red) fails, no pkt transmitted.
>>
>> For the newer versions you can see that the remotewakeupinterval and
>> therefor the duration the msg is sent is wrong. That leads to pkt loss
>> even if the cca check would work correctly.
>>
>>
>> Regards,
>>   Christian
>>
>> --
>> Dipl. Inform. Christian Haas
>> Karlsruher Institut für Technologie
>> TM Prof. Dr. Zitterbart
>> Raum 102, Geb. 20.50
>> Engesserstraße 2 Rechts
>> 76128 Karlsruhe
>> Germany
>>
>> Tel.: +49 721 608-48673
>> Email:h...@tm.uka.de
>> Jabber-ID: h...@tm.uka.de
>>
>>
>>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to