Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Oct 2003 23:43:31 +0200
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        ticso@cicely.de
Subject:   Re: setting sio to even parity failed
Message-ID:  <20031011214330.GL13791@cicely12.cicely.de>
In-Reply-To: <20031011.151713.93584643.imp@bsdimp.com>
References:  <20031010181349.GG13791@cicely12.cicely.de> <20031010182633.GD77306@dan.emsphone.com> <20031010183346.GH13791@cicely12.cicely.de> <20031011.151713.93584643.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Oct 11, 2003 at 03:17:13PM -0600, M. Warner Losh wrote:
> In message: <20031010183346.GH13791@cicely12.cicely.de>
>             Bernd Walter <ticso@cicely12.cicely.de> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031011214330.GL13791>