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,
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
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
3 matches
Mail list logo