> CCYau wrote:
> 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,
You may have to open the filestream in RDWR mode:
open ("/dev/ttyS0", 0_RDWR).
-- 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 email@example.com list server http://www.uClinux.com/
This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:40 EST