It compiles but it don't work fine. I want it to works with pseudo-terminals.
2007/1/17, Dave Korn <[EMAIL PROTECTED]>:
On 17 January 2007 14:38, Florent Morin wrote:
> I use select() to read/write socket and read/write serial. But, after
> writing the content of socket on serial port, I can't
On 17 January 2007 14:38, Florent Morin wrote:
> I use select() to read/write socket and read/write serial. But, after
> writing the content of socket on serial port, I can't read serial port
> (access denied).
> I have tested it on Linux. It works fine. When I send data throw
> telnet protocol
Hello,
Like you say, CREAD isn't the real problem.
I use select() to read/write socket and read/write serial. But, after
writing the content of socket on serial port, I can't read serial port
(access denied).
This is an extract of my source code :
CODE -
On Fri, 12 Jan 2007, Corinna Vinschen wrote:
> On Jan 11 16:53, Florent Morin wrote:
> > For testing, I have tried with a working program : stty. It works fine
> > with all options, but not with CREAD.
> >
> > $ stty cread < /dev/ttyS0
> > stty: /dev/ttyS0: unable to perform all requested operation
On Jan 11 16:53, Florent Morin wrote:
> Hello,
>
> I actually develop a program in C for reading and writing data on
> serial port. It works fine on GNU/Linux. I now test it with cygwin
> (Windows XP).
>
> I begin to set the port options, then I read/write information and
> restore port settings.
Hello,
I actually develop a program in C for reading and writing data on
serial port. It works fine on GNU/Linux. I now test it with cygwin
(Windows XP).
I begin to set the port options, then I read/write information and
restore port settings. I can write on serial port but can't read.
For test
6 matches
Mail list logo