Dear Zhichao Cao, Thank you very much for answer. What you say makes perfect sense to me. I'm really thankful for your help.
I couldn't figure it out by myself. I somehow always missed the fact, that data_total is only reset if data_success > 0. Thanks again Christian On Tue, 20 Sep 2011 10:11:27 +0800 Cao Zhichao <caozc...@gmail.com> wrote: > Dear Christian, > > I'm a TinyOS user from China. > > Your question is very interesting. Based on my consideration, the > possible answer is that when the node 1 is down, the data_success > variable (line 292) is always 0 so that the data_total (line 296) > will never be set to 0, it will increase to a large number might be > larger than 5. Thus the new ETX estimation will be bigger than 50. So > node 2 will choose node 3 when it loses enough packets. > > Hope this could help you:) > > Best Regards > Zhichao Cao _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help