From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 19 23:02:00 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 920A01065672 for ; Fri, 19 Nov 2010 23:02:00 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from ftp.translate.ru (ftp.translate.ru [80.249.188.42]) by mx1.freebsd.org (Postfix) with ESMTP id 5136A8FC16 for ; Fri, 19 Nov 2010 23:02:00 +0000 (UTC) Received: from desktop.home.serebryakov.spb.ru (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id 2995D13DF46 for ; Sat, 20 Nov 2010 01:42:34 +0300 (MSK) Date: Sat, 20 Nov 2010 01:42:29 +0300 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <19363551.20101120014229@serebryakov.spb.ru> To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Subject: FreeBSD (UNIXes?), UARTs, forced parity and "Custom" UART settings X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Nov 2010 23:02:00 -0000 Hello, Freebsd-hackers. When I implemented USB2COM driver, I found that there is NO flags in termios for forces parity. Here are flags to tunr parity on or off and make it odd or even, but no mention about forced (alway 1 -- odd -- or 0 -- even) parity, which is not dependend on data and acts as one more (inverted sometimes) stop bit. Virtually every UART has such mode (16x50-compatible UARTS hereis bit in LCR for it), but no flag in the (POSIX?) API! Did I miss something? How people communicate with equipment, which uses (and wants) forced parity? Some equipment uses this bit as address one... Another question -- does USB2COM driver need RS-485 mode (which is supported by hardware), and what is better way to turn it ons -- sysctl or ioctl? --=20 // Black Lion AKA Lev Serebryakov