pedrohenriquegomes / fbr-tsch

Firmware implementation of FBR-TSCH for EWSN Dependability Competition 2016
Other
0 stars 1 forks source link

FAKESEND can only be executed if we receive a packte with state equal to ours #21

Closed pedrohenriquegomes closed 8 years ago

pedrohenriquegomes commented 8 years ago

The FAKESEND idea can only be used if we receive a packet with the same state that we have now and the last packet was received a long time ago. How it is implemented now we may get a transition before it happens. The 2s is the minimum interval in between transitions, but the transitions may take a long time, more than 2s. So, if we get a packet with the same state and our last packet was more than 4 seconds ago, it means we missed one transition. This assumes our packets will not be traveling on the network for more than 4 seconds, which is OK to assume.

pedrohenriquegomes commented 8 years ago

I forgot we have Fix #11 for this =)

twatteyne commented 8 years ago

FAKESEND is really just of testing, so we don't need to have a flashlight all the time. It should be removed for the production version of the code