From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 11 14:44:13 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FE6616A4B3 for ; Sat, 11 Oct 2003 14:44:13 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB2C24400D for ; Sat, 11 Oct 2003 14:43:51 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) h9BLhYt2047609 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Sat, 11 Oct 2003 23:43:37 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id h9BLhWS8028319 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 11 Oct 2003 23:43:33 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.10/8.12.10) with ESMTP id h9BLhV2u053972; Sat, 11 Oct 2003 23:43:32 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.10/8.12.10/Submit) id h9BLhV8G053971; Sat, 11 Oct 2003 23:43:31 +0200 (CEST) (envelope-from ticso) Date: Sat, 11 Oct 2003 23:43:31 +0200 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20031011214330.GL13791@cicely12.cicely.de> References: <20031010181349.GG13791@cicely12.cicely.de> <20031010182633.GD77306@dan.emsphone.com> <20031010183346.GH13791@cicely12.cicely.de> <20031011.151713.93584643.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031011.151713.93584643.imp@bsdimp.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.1-CURRENT alpha User-Agent: Mutt/1.5.4i cc: ticso@cicely12.cicely.de cc: freebsd-hackers@freebsd.org cc: dnelson@allantgroup.com cc: ticso@cicely.de Subject: Re: setting sio to even parity failed X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Oct 2003 21:44:13 -0000 On Sat, Oct 11, 2003 at 03:17:13PM -0600, M. Warner Losh wrote: > In message: <20031010183346.GH13791@cicely12.cicely.de> > Bernd Walter 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 |= CS8 | CLOCAL | PARENB; > : > > : > Do you maybe want CS7 here? > : > : No I need 8e1, but the output still looks like 8n1. > > 8e1? You want 8 data bits plus a nineth parity bit? Exactly - 11 bit-times per dataword. But the problem is already identified and was not on the FreeBSD side as I wrote in another mail. Now I'm worried with the sending timing - maybe I should switch to uftdi based serials, because they have large fifos and also have a transmitter enable output for half-duplex operation. Currently I handle transmitter enabling via RTS line from userland, which leaves a potential for not having the transmitter disabled when the accessed slave answers. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de