On Tue, Aug 11, 2009 at 9:13 AM, Philip Levis<[email protected]> wrote:
>
> On Aug 10, 2009, at 11:04 PM, Mehmet Akif Antepli wrote:
>
>> Hi Omprakash,
>>
>> There has been a bug fix in the LinkEstimatorP.nc module. I updated the
>> files and tested CTP with 4bitle. I did some test on micaz motes,
>>
>> Before code update, one-hop link qualities were about 15, 30,...
>>
>> But after code update they become 265, 280..... as if the link is very
>> bad...
>>
>> There seems to be a problem with in the line;
>>
>> 379: if (packetGap >= BLQ_PKT_WINDOW) {
>>
>>
>> I also updated the code  CtpForwardingEngineP. But that was rev. 1.19 (I
>> just realized that CtpForwardingEngineP code was updated to rev. 1.20 Â 5
>> hours ago :) )
>>
>> Another thing is that soon after the network is formed, all the links
>> dissepear and network becomes disconnected. No messages are routed to the
>> sink
>>
>> I will try it again with rev. CtpForwardingEngineP 1.20
>
> Sounds like it wasn't a bug fix!
You should apply this path to the link estimator. But I haven't tested
it so it is not in the CVS yet.
diff -r1.11 LinkEstimatorP.nc
379c379,383
< if (packetGap >= BLQ_PKT_WINDOW) {
---
> // The or with packetGap >= BLQ_PKT_WINDOW is needed in case
> // failcnt gets reset above
>
> if (((NeighborTable[idx].rcvcnt + NeighborTable[idx].failcnt) >=
> BLQ_PKT_WINDOW)
> || (packetGap >= BLQ_PKT_WINDOW)) {
- om_p
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help