Re: Serial programming - Writing bytes in a blocking mode - Problem with tcdrain() ?

2005-05-18 Thread pbenito
Hi Christopher, thanks for your attention, I've been working on it, and I've found a workaround for the problem using the ioperm libraries, accessing the UART LSR register of the serial port. In this way I'm able to know exactly when the output buffer is empty. >I wonder if you're just seeing

Serial programming - Writing bytes in a blocking mode - Problem with tcdrain() ?

2005-05-16 Thread pbenito
Hi, I'm trying to use the serial port with Cygwin, and here is my problem: I can successfully write on the line, but I need to switch the RTS and DTR lines just AFTER the last byte is written in the line. I put the bytes that I want in the line with the command Write and I wait for the last byte