Re: Serial port methods
Thomas Chenot <tom.chenot-6tN4nzCoH/[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
See ReceiveBehavior.html in your commapi (javax.comm) distribution (you originally downloaded from http://java.sun.com/products/javacomm/downloads/index.html to run JavaKit). The behavior is based on three parameters. 1) ReceiveThreshold, 2) ReceiveTimeout and 3) InputBuffer size. Once you have confirmed all of these settings then verify the behavior against the above document. If you see behavior that does not conform then please provide more information such as serial port name (serial0,...,serial4), TINIOS version (...,1.02f,...,1.12,...) and the three parameters (listed above) used. A small application (source) that reproduces the behavior that you see would not hurt. Mauro Farracha : Tyrex wrote: >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]) > > > > -- Thomas Chenot _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini