[Tinyos-help] Check if a packet is being received after a given time.

2013-03-26 Thread Sean Dekker
Hi all, It seems that I can't figure out the logic for the following scenario: I have 2 TelosB nodes. and they sending packet to each other every 500 ms. Now if any of the nodes goes out of radio range, I want to light up an led on TelosB to indicate that there was no packet received after like

Re: [Tinyos-help] Check if a packet is being received after a given time.

2013-03-26 Thread Dang Thi Hai Ha
Hi, You are right about using a boolean and an additional timer (let's call them isReceived and CheckerTimer respectively). CheckerTimer should have half the duration when you want to check the receive() event. The first time CheckerTimer is fired will serve to switch the value of isReceived to fa