Serial hardware is standard RS232, supposedly 16550 UARTs. When there is no more bytes comming for 1 sec, I read the bytes available in the software buffer. This does not help. Supposedly, the stop condition occurs at the UART, and should be cleared by driver.
As I understand it, if the driver doesn't fetch characters fast enough, putting them in the 4096 byte software buffer, the UART gets full (more or less, depending on setting) and lowers its RTS. When the driver has emptied the UART, it is ready to receive characters again. I believe the UART takes care of the RTS signal automatically, or is it the driver that fails to reset the RTS signal when the UART is empty?
/A.J