From owner-freebsd-usb@FreeBSD.ORG Fri Aug 26 11:25:11 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 9DC7916A41F for ; Fri, 26 Aug 2005 11:25:11 +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 C8FA443D49 for ; Fri, 26 Aug 2005 11:25:10 +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 j7QBP6BS091484 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 26 Aug 2005 13:25:08 +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 j7QBOOKi060303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Aug 2005 13:24:25 +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 j7QBOOa4049656; Fri, 26 Aug 2005 13:24:24 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j7QBONRj049654; Fri, 26 Aug 2005 13:24:23 +0200 (CEST) (envelope-from ticso) Date: Fri, 26 Aug 2005 13:24:23 +0200 From: Bernd Walter To: User Tomdean Message-ID: <20050826112422.GY37930@cicely12.cicely.de> References: <200508202157.j7KLv1GF005017@asus.tddhome> <20050826093914.GV37930@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050826093914.GV37930@cicely12.cicely.de> 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: 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: Fri, 26 Aug 2005 11:25:11 -0000 On Fri, Aug 26, 2005 at 11:39:15AM +0200, Bernd Walter wrote: > On Sat, Aug 20, 2005 at 02:57:01PM -0700, User Tomdean wrote: > > I am running FreeBSD 5.4 on an ASUS A7N266E. > > > > I have a FTDI FT8U245BM based UMP2 driven by an Atmel ATmega16, connected to ucom0. > > > > usb0: OHCI version 1.0 > > usb0: on ohci0 > > usb0: USB revision 1.0 > > uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > > uhub0: 3 ports with 3 removable, self powered > > ohci1: mem 0xee800000-0xee800fff irq 21 at device 3.0 on pci0 > > usb1: OHCI version 1.0 > > usb1: on ohci1 > > usb1: USB revision 1.0 > > uhub1: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > > uhub1: 3 ports with 3 removable, self powered > > ... > > ucom0: FTDI USB HS Serial Converter, rev 1.10/2.00, addr 2 > > > > The FT8U245BM looks like an FT8U232AM, except the 'other side' is > > parallel rather than serial. From the EEPROM, > > > > vendor 0x0403 == USB_VENDOR_FTDI > > product 0x6001 == USB_PRODUCT_FTDI_SERIAL_8U232AM > > release 0x0200 > > > > My FreeBSD process just loops, reading ucom0. The microprocessor just > > loops, waiting for space in the UMP2 transmit buffer, 'TXE#' then writes an > > 'a'. > > > > The thru-put is 1000060 bytes in 32.26 seconds or about 31 KBytes/sec. > > > > The microprocessor spends most of the time waiting for TXE#. > > > > Is this near the max thru-put of the uftdi driver? > > Keep in mind that Full-Speed USB is just 12MBit/s plus much overhead. > You are near the theoretical limit. Ups - sorry, I missed that it took 32.26 seconds. It depends very much on your programming, so details would help to analyse your bootlenecks. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de