Re: setting sio to even parity failed

2003-10-11 Thread Bernd Walter
On Fri, Oct 10, 2003 at 08:33:46PM +0200, Bernd Walter wrote: On Fri, Oct 10, 2003 at 01:26:33PM -0500, Dan Nelson wrote: In the last episode (Oct 10), Bernd Walter said: buf.c_iflag |= IGNBRK; buf.c_cflag = ~(CSIZE | PARODD); buf.c_cflag |= CS8 | CLOCAL |

Re: setting sio to even parity failed

2003-10-11 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Bernd Walter [EMAIL PROTECTED] writes: : On Fri, Oct 10, 2003 at 01:26:33PM -0500, Dan Nelson wrote: : In the last episode (Oct 10), Bernd Walter said: : buf.c_iflag |= IGNBRK; : buf.c_cflag = ~(CSIZE | PARODD); : buf.c_cflag

Re: setting sio to even parity failed

2003-10-11 Thread Bernd Walter
On Sat, Oct 11, 2003 at 03:17:13PM -0600, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Bernd Walter [EMAIL PROTECTED] writes: : On Fri, Oct 10, 2003 at 01:26:33PM -0500, Dan Nelson wrote: : In the last episode (Oct 10), Bernd Walter said: : buf.c_iflag |= IGNBRK;

setting sio to even parity failed

2003-10-10 Thread Bernd Walter
void opensio(char* devname) { struct termios buf; int val; fd = open(devname, O_RDWR); if (fd 0) { printf(open serial %s failed: %s\n, devname, strerror(errno)); exit(1); } val =

Re: setting sio to even parity failed

2003-10-10 Thread Dan Nelson
In the last episode (Oct 10), Bernd Walter said: buf.c_iflag |= IGNBRK; buf.c_cflag = ~(CSIZE | PARODD); buf.c_cflag |= CS8 | CLOCAL | PARENB; Do you maybe want CS7 here? -- Dan Nelson [EMAIL PROTECTED] ___

Re: setting sio to even parity failed

2003-10-10 Thread Bernd Walter
On Fri, Oct 10, 2003 at 01:26:33PM -0500, Dan Nelson wrote: In the last episode (Oct 10), Bernd Walter said: buf.c_iflag |= IGNBRK; buf.c_cflag = ~(CSIZE | PARODD); buf.c_cflag |= CS8 | CLOCAL | PARENB; Do you maybe want CS7 here? No I need 8e1, but the output