On Sat, Mar 12, 2011 at 8:51 PM, Philip Levis <p...@cs.stanford.edu> wrote:
>
> On Mar 7, 2011, at 2:02 AM, David wrote:
...
>> If the motes are unable to contact the basestation for a long time
>> (eg: hours/days), but then later the basestation becomes available -
>> then how long typically would it take for the network to re-establish,
>> and for data to start coming through from the sensors?
>
> That is a great question: we've definitely tested starting a mote fresh, but 
> if it was disconnected for a long time (the link was bad), it make take a 
> while for the link estimate to come down to a point where the node might use 
> it. It in part also depends on whether there are other nodes: the 
> disconnected node might be creating routing loops, desperately searching for 
> a route to the root. In that case it might take a while. This seems like a 
> good test case to try sometime and make sure CTP handles well.

If the gap in sequence number is too large, it should reset the
estimator so we can use it as quickly as possible. But, yeah, it is
good to test these cases.


>From LinkEstimatorP.nc:

    packetGap = seq - NeighborTable[idx].lastseq;
...
    if (packetGap > MAX_PKT_GAP) {
      initNeighborIdx(idx, NeighborTable[idx].ll_addr);
...

- om_p

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to