RE: Serial port methods

"Jeremy Kongs" <jeremy.kongs-6tN4nzCoH/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
The receive timeout specifies the maximum amount of time that the read is
allowed to take.  So that if you attempt to read, but there is no data, the
call to read will return after 2 seconds.


> -----Original Message-----
> From: tini-admin-6tN4nzCoH/[email protected] [mailto:[email protected]]On Behalf Of
> Mauro Farracha : Tyrex
> Sent: Tuesday, March 30, 2004 5:02 AM
> To: tini-6tN4nzCoH/[email protected]
> Subject: [TINI]Serial port methods
>
>
>
> Hi,
>
> Does anyone knows why when i use enableReceiveTimeout(2000), it doesnt
> wait 2 seconds to read bytes!!! its instantaneous (after - before = 0) it
> reads about ~100 characters.
> But when i use enableReceiveTimeout(2000) and
> enableReceiveThreshold(1024) the time elapse is 20ms and reads about 250
> characters... why it doesn't wait 2 seconds or better reads 1024 bytes!!!
>
> Does anyone knows why?
> Thx in advance.
>
>         Mauro Delgado Farracha
>         ([email protected])
>
>
> _______________________________________________
> TINI mailing list
> TINI-6tN4nzCoH/[email protected]
> To UNSUBSCRIBE, edit your profile, or see list archives:
> http://lists.dalsemi.com/mailman/listinfo/tini

_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.