cant able to read serial Port

Alan Cox alan at lxorguk.ukuu.org.uk
Sat Sep 22 18:05:18 UTC 2007


On Sat, 22 Sep 2007 14:21:13 +0530 (IST)
Devesh Here <devu_devesh at yahoo.co.in> wrote:

> hello All,
>   i am very new in Linux , and i made a small program in C that jst sends and tries to receive character from serial port. 
>   it is working fine for sending, but not receiving character from other end .. on other end Windows Xp running.  Read() function retuns error
>   no = 11, i m putting my small code, 

You set non blocking, you read, you get EAGAIN - meaining it would block.

I suspect you also want to turn off ECHO and ICANON




More information about the fedora-list mailing list