Welcome to the Linux Foundation Forum!

Problem in reading data from serial port.


Hi all,

I am writing code for reading & writing the data from serial port (UART of ARM Processor).

But i am facing a problem in reading.

As written in man page the read() call returns the character till it will get "Enter/Carriage return" or "EOF". I am interfacing the GPRS modem on this serial port. So from Modem there is no way to get me "Enter/Carriage return" or "EOF".

Because of this read() gets blocked.

Is there any other way to just read the received characters without EOF & returns that characters?

Please help me for this.



Upcoming Training