Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- Hi ARTEM_BOND, thanks for replying! I know using delay is a bad way. Can u plz tell me another way to wait data from the host? I tried fcntl(fd1, F_SETFL, 0);, but i had to a long time without receive any data. --- Quote End --- Set timeout. http://linux.die.net/man/2/select http://www.linux.org/docs/ldp/howto/serial-programming-howto/x115.html Also you can make you own module (driver) for UART. And write you own UART with hardware time-out timer on Verilog.