Re: [uCsimm] About /dev/ttyS0

From: Tom Walsh (tom@cyberiansoftware.com)
Date: Sat Feb 10 2001 - 09:02:16 EST


> CCYau wrote:
>
> ucSimm,
> I write a program about reading and writting the
> ttyS0, but in fact I can only write the data into the ttyS0,
> but I can not read the data from the ttyS0 in correctly,Can you
> give me some example to slove the problem!
> Thanks and best regards,
> long

You may have to open the filestream in RDWR mode:

open ("/dev/ttyS0", 0_RDWR).

TomW

-- 
Tom Walsh - WN3L - Embedded Systems Consultant
'www.openhardware.net', 'www.cyberiansoftware.com'
"Windows? No thanks, I have work to do..."
This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:40 EST