Uartstream.send returns SUCCESS or FAIL depending on whether the request was accepted or not. Uartstream.sendDone signals whether the bytes were successfully sent or not. You should check these returned values before issuing Uartstream.receive. If you have written your own modules/code for RS485 that provides Uartstream interface then you should make sure that these returned values are appropriate.
On Fri, May 16, 2008 at 9:30 AM, vaasu <[EMAIL PROTECTED]> wrote: > Hii, > > does anyone know the timeout for uartstream.receive command.. > > I send a request to rs485 connector from uartstream.send interface .. and > then call uartstream.receive command to receive the response from rs485... > > the problem is ..sometime due to hardware failure rs485 doesn't always > respond to request send from uartstream.send interface... in such case.. my > code is stuck at uartstream.receive function... as the sensor node keeps on > waiting on the receive function... > > how do i find the timeout... because i cannot allow mote to wait on > uartstream.receive() function forever... pls guide if anyone has any clue... > > is uartstream interface provide any solution?? > > Thanks a lot... any response would be greatly appreciated as I'm in some > urgency!! > > Cheers, > Vaasu > > > > > > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
_______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help