Added a timer to each phase structure that keeps track of for how long
a particular receiver has not ACKed packets. After some time (currently 16 seconds), the sender will begin sending full strobe periods again.
This commit is contained in:
parent
3ae774c91a
commit
eb58968459
2 changed files with 11 additions and 4 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: phase.h,v 1.4 2010/04/03 13:28:30 adamdunkels Exp $
|
||||
* $Id: phase.h,v 1.5 2010/09/13 13:39:05 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -42,6 +42,7 @@
|
|||
#define PHASE_H
|
||||
|
||||
#include "net/rime/rimeaddr.h"
|
||||
#include "sys/timer.h"
|
||||
#include "sys/rtimer.h"
|
||||
#include "lib/list.h"
|
||||
#include "lib/memb.h"
|
||||
|
@ -52,6 +53,7 @@ struct phase {
|
|||
rimeaddr_t neighbor;
|
||||
rtimer_clock_t time;
|
||||
uint8_t noacks;
|
||||
struct timer noacks_timer;
|
||||
};
|
||||
|
||||
struct phase_list {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue