Date: Tue, 16 Feb 1999 15:21:04 -0800 (PST) From: tajh@blaze.ca To: freebsd-gnats-submit@freebsd.org Subject: i386/10121: Serial port parity setting problems with 3.1-RELEASE Message-ID: <19990216232104.34A8410F6C@hub.freebsd.org>
index | next in thread | raw e-mail
>Number: 10121
>Category: i386
>Synopsis: Serial port parity setting problems with 3.1-RELEASE
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Feb 16 15:30:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Tajh Leitso
>Release: 3.1-RELEASE
>Organization:
Blaze Telecommunications Inc.
>Environment:
>Description:
I have a custom application (MDB interface software) that runs under FreeBSD. The MDB spec calls for 9 bit words on the serial port and some other bizarre settings. What worked on 2.2.8, 3.0-RELEASE does not work on the 3.1-RELEASE system
>How-To-Repeat:
It may be hard if you do not have a device that supports 9-bit parity enabled serial communications but this works under 3.0 and not 3.1:
{ // Mode bit SET
tty.c_cflag = CS8;
tty.c_cflag |= CREAD;
tty.c_cflag |= CLOCAL;
tty.c_cflag &= ~HUPCL;
}
if (tcsetattr(fd, TCSANOW, &tty) == -1)
{
perror("tcsetattr");
exit(1);
}
>Fix:
I do not have the time to find out what happened to the sio code, however I am definately more than willing to help.
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990216232104.34A8410F6C>
