From owner-freebsd-usb@FreeBSD.ORG Sat Aug 20 21:54:18 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 2ACD216A41F for ; Sat, 20 Aug 2005 21:54:18 +0000 (GMT) (envelope-from tomdean@speakeasy.org) Received: from mail28.sea5.speakeasy.net (mail28.sea5.speakeasy.net [69.17.117.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2CB543D53 for ; Sat, 20 Aug 2005 21:54:17 +0000 (GMT) (envelope-from tomdean@speakeasy.org) Received: (qmail 3217 invoked from network); 20 Aug 2005 21:54:17 -0000 Received: from dsl081-020-229.sea1.dsl.speakeasy.net (HELO asus.tddhome) ([64.81.20.229]) (envelope-sender ) by mail28.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 20 Aug 2005 21:54:17 -0000 Received: from asus.tddhome (localhost.tddhome [127.0.0.1]) by asus.tddhome (8.13.3/8.12.11) with ESMTP id j7KLv1vj005020 for ; Sat, 20 Aug 2005 14:57:01 -0700 (PDT) (envelope-from tomdean@speakeasy.org) Received: (from tomdean@localhost) by asus.tddhome (8.13.3/8.12.11/Submit) id j7KLv1GF005017; Sat, 20 Aug 2005 14:57:01 -0700 (PDT) (envelope-from tomdean@speakeasy.org) Date: Sat, 20 Aug 2005 14:57:01 -0700 (PDT) Message-Id: <200508202157.j7KLv1GF005017@asus.tddhome> X-Authentication-Warning: asus.tddhome: tomdean set sender to tomdean@speakeasy.org using -f From: User Tomdean To: freebsd-usb@freebsd.org Subject: Ucom/Uftdi Thru-put X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2005 21:54:18 -0000 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? tomdean