This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

b20: serial port bugs


I use NT 4.0 SP3 and Cygwin B20.

CSIZE and CBAUD use one same bit. Therefore CS8 sets a bit that is used
for B57600 and B115200.

select() never tells that something is available for read from a serial
port.

When select returns with timeout, the read bitmask (at least) still has
all the bits set. I think they should be zeroed, since the descriptors
are not available for read.

Even read() never gives any characters from serial port.

ioctl TCGETA and TCSETA return error.

I have set using tcsetattr() the following settings:
c_iflag = IGNBRK | INPCK;
c_oflag =  0;
c_cflag = B9600 | CS8 | CREAD |CLOCAL | HUPCL | PARENB;
c_lflag =  0;
c_cc[VMIN] = 0;
c_cc[VTIME] = 0;

I tried VMIN = 1. It seemed not to block as it is supposed to, but
read() returned with 0 when there was no characters. However, with this
setting I was able to read characters for a while, but after a couple of
characters it seemed to stop. I have given up debugging for now.

Ctrl-C in gdb seems to kill the gdb.


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]