Re: [Tinyos-help] Help in handling UartStream.Receive timeout

2018-01-01 Thread Jobish John
Thanks Xiaoyang for the help and suggestions. Will go through the mentioned documentations and try "*byte-by-byte" * handling. Regards Jobish john On Mon, Jan 1, 2018 at 9:18 PM, Xiaoyang Zhong wrote: > The idea is to use "*async event void UartStream.receivedByte(uint8_t > data)*" to proce

Re: [Tinyos-help] Help in handling UartStream.Receive timeout

2018-01-01 Thread Xiaoyang Zhong
The idea is to use "*async event void UartStream.receivedByte(uint8_t data)*" to process the stream *"byte-by-byte"*, instead of calling the "*UartSream.receive(buf, len)"* function. The later would return only when exactly "len" bytes are received, and it would hold the resource. Processing the u

[Tinyos-help] Help in handling UartStream.Receive timeout

2018-01-01 Thread Jobish John
Hi, I am using telosb mote and UartStream interface in nesc to receive data from a sensor (Tinyos 2.1.2). Once UartStream.receive() is initiated and due to some reasons if the data is not received, the mote will keep on waiting for the data and is not able to receive or transmit any packets after