Messages in this thread | | | From | "Miquel van Smoorenburg" <> | Subject | Re: synchronous serial port communication (16550A) | Date | Tue, 23 Mar 2004 10:49:26 +0000 (UTC) |
| |
In article <40600CDD.5050807@pop2wap.net>, Christof <mail@pop2wap.net> wrote: >I have a possible problem with the 8250 serial port driver in linux (2.6.2). >I communicate with a graphic controller with LCD-Display via ttyS0. This >controller has a small buffer: 20 bytes. When the buffer is full it >asserts the CTS line. When it can receive data again, the CTS line is >cleared. >My software checks the CTS line each time before sending a byte. If it >is asserted, it waits until its cleared and goes on. When data is sent >although CTS is asserted, the graphic controller will be confused and >garbage will appear on the LCD screen.
Why don't you simply turn on hardware flow control (i.e. enable CRTSCTS with tcsetattr() or even stty) ?
Mike. -- Netu, v qba'g yvxr gur cynvagrkg :)
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |