Re: Bug in the /dev/ttySx handling code?

2005-05-10 Thread Martin Koegler
On Mon, May 09, 2005 at 10:35:26PM +0200, Martin Koegler wrote: > At least, I understand, why stty -F /dev/ttyS0 under cygwin return 0 baud: > tcgetattr returns 0 baud, if DTR is not set, which is different to the > behaviour of Linux. > > I would like to track the problem down,

Bug in the /dev/ttySx handling code?

2005-05-09 Thread Martin Koegler
On Mon, May 09, 2005 at 12:46:55PM -0500, Terry Dabbs wrote: > > It appears you are using com1, with this command: > stty -F /dev/ttyS0 -a > > But, you strace shows ttyS1, which is com2. Are you plugged into the proper > port with your cable? Yes, I used the right port, as on the Linux PC cat

Bug in the /dev/ttySx handling code?

2005-05-09 Thread Martin Koegler
I compiled a linux program, which uses the serial driver (and is working) under cygwin (winxp), but the communication was not working. For initializing the port, I use: fd = open (dev, O_RDWR | O_NOCTTY); tcgetattr (fd, &t1); t1.c_cflag = B19200 | CS8 | PARENB | CLOCAL | CREAD; t1.c_ifla