I have a big problem. I am currently accessing the serial port through the following interceptors:
fd = open( "/dev/ttyS1", O_RDWR | O_NOCTTY )
then I read it using the following code snippet
i = select( fd + 1, &rfds, NULL, NULL, &tv )
...
iLen = read( fd, buf, MAX_PACKET_LEN )
The problem is that before I read, I need to determine if there were any buffer overflows. Both at the serial port level and on internal tty-flip buffers.
We tried cat /proc/tty/driver/serial, but the overspending does not seem to be listed (see output below)
1: uart:16550A port:000002F8 irq:3 tx:70774 rx:862484 fe:44443 pe:270023 brk:30301 RTS|CTS|DTR
source
share