Linux Reading Data from UART
I want to read data from UART, i followed this tutorial , the write function works as expected, however i'am getting problem with the read function : This is the uart_init function: void uart_init() { printf("\n +----------------------------------+"); printf("\n | Serial Port Write |"); printf("\n +----------------------------------+"); /*------------------------------- Opening the Serial Port -------------------------------*/ fd = open("/dev/ttyUSB0",O_RDWR | O_NOCTTY| O_SYNC); /* !!blocks the read */ /* O_RDWR Read/Write access to serial port */ /* O_NOCTTY - No terminal will control the