Forum Discussion
Altera_Forum
Honored Contributor
16 years ago"Resource temporarily unavailable" while reading from "dev/ttyS0"
Hi all, i have ported uClinux on DE2 2c35 board and i want to use RS232 port on the board to communicate with a PC. I understand that I can use "dev/ttyS0" for that purpose. I can open and write ...
Altera_Forum
Honored Contributor
16 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.