From owner-freebsd-usb@FreeBSD.ORG Wed Aug 31 15:04:20 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7447516A41F for ; Wed, 31 Aug 2005 15:04:20 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D42F43D48 for ; Wed, 31 Aug 2005 15:04:19 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.10/8.12.10) with ESMTP id j7VF4EBS034928 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Wed, 31 Aug 2005 17:04:16 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j7VF3wKi003715 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 31 Aug 2005 17:03:59 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j7VF3wO7001595; Wed, 31 Aug 2005 17:03:58 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j7VF3wkc001594; Wed, 31 Aug 2005 17:03:58 +0200 (CEST) (envelope-from ticso) Date: Wed, 31 Aug 2005 17:03:58 +0200 From: Bernd Walter To: User Tomdean Message-ID: <20050831150357.GD37930@cicely12.cicely.de> References: <200508202157.j7KLv1GF005017@asus.tddhome> <20050826112422.GY37930@cicely12.cicely.de> <200508301751.j7UHpCt8000858@asus.tddhome> <200508302100.12140.hselasky@c2i.net> <200508302046.j7UKklqR000628@asus.tddhome> <20050831101526.GX37930@cicely12.cicely.de> <200508311442.j7VEg2Nu006607@asus.tddhome> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200508311442.j7VEg2Nu006607@asus.tddhome> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de Cc: ticso@cicely.de, freebsd-usb@freebsd.org Subject: Re: Ucom/Uftdi Thru-put X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 15:04:20 -0000 On Wed, Aug 31, 2005 at 07:42:02AM -0700, User Tomdean wrote: > I changed the input buffer size. The read reported 382 bytes. The > buffer is 6*(4*16)==384 bytes long. On the scope I see 6 distinct > groupings in the USB data stream. Looks like ucom/uftdi, or something > up the chain, is using 64 bytes anyway. Every 64 bytes, there seem to > be 2 bytes not from the data stream. Uftdi.c subtracts 2 from count, > giving 382 bytes. Yes - that's exactly what I'm saying: the buffer can't just be increased without further changes. Btw.: it is the FTDI chip itself adding the bytes. I already said that I have tested patches to do this correctly, just need to pic them up. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de