Re: [uCsimm] About /dev/ttyS0

From: Ben Lau (
Date: Sat Feb 10 2001 - 12:36:03 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

    How do you config the serial port?
For example,did u set CREAD in c_cflag?

    And what do you need is blocking read or
non-blocking read?


-----------GEEK CODE 3.1----------- GCS/E/ED/O d- s: a--- C++@ UL>++@ P+ L(+) E+ W N+(++) o? K? w$ !O !M !V !PS PE? Y PGP+ t? !5 X- R tv- b+ DI? D- G e h-- r- y- ----------------------------------- This message resent by the list server

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