Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Serial port overflow 1

Status
Not open for further replies.

scienzia

Programmer
Feb 21, 2002
160
IT
Hi,

I'm making a linux application that makes a lot of small writings on the serial port.

What I notice is that after 1 kB I have nonsense data transmitted, looks like I have an overflow on the output buffer.

I would like to know if there is a function that flushes the serial port, or if there is an option in opening the serial port that makes the writing blocking.

Thanks in advance.


 
There's a lot of useful port programming information here

--
 

found it:

tcdrain(fd);


...a star for you....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top