From owner-freebsd-usb@FreeBSD.ORG Wed Aug 31 14:38:29 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 C7FD116A41F for ; Wed, 31 Aug 2005 14:38:29 +0000 (GMT) (envelope-from tomdean@speakeasy.org) Received: from mail24.sea5.speakeasy.net (mail24.sea5.speakeasy.net [69.17.117.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 646CA43D45 for ; Wed, 31 Aug 2005 14:38:29 +0000 (GMT) (envelope-from tomdean@speakeasy.org) Received: (qmail 15107 invoked from network); 31 Aug 2005 14:38:28 -0000 Received: from dsl081-020-229.sea1.dsl.speakeasy.net (HELO asus.tddhome) ([64.81.20.229]) (envelope-sender ) by mail24.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 31 Aug 2005 14:38:28 -0000 Received: from asus.tddhome (localhost.tddhome [127.0.0.1]) by asus.tddhome (8.13.3/8.12.11) with ESMTP id j7VEg3fD006610; Wed, 31 Aug 2005 07:42:03 -0700 (PDT) (envelope-from tomdean@speakeasy.org) Received: (from tomdean@localhost) by asus.tddhome (8.13.3/8.12.11/Submit) id j7VEg2Nu006607; Wed, 31 Aug 2005 07:42:02 -0700 (PDT) (envelope-from tomdean@speakeasy.org) Date: Wed, 31 Aug 2005 07:42:02 -0700 (PDT) Message-Id: <200508311442.j7VEg2Nu006607@asus.tddhome> X-Authentication-Warning: asus.tddhome: tomdean set sender to tomdean@speakeasy.org using -f From: User Tomdean To: ticso@cicely.de In-reply-to: <20050831101526.GX37930@cicely12.cicely.de> (message from Bernd Walter on Wed, 31 Aug 2005 12:15:27 +0200) 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> 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 List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 14:38:29 -0000 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. tomdean /* * These are the maximum number of bytes transferred per frame. * The output buffer size cannot be increased due to the size encoding. ^^^^^^ */ #define UFTDIIBUFSIZE 384 #define UFTDIOBUFSIZE 64 I sent all 'a' == 0x61. Using gdb, (gdb) p/x buf $5 = {0x61616161 , 0x60316161, 0x61616161 , 0x60316161, 0x61616161 , 0x60316161, 0x61616161 , 0x60316161, 0x61616161 , 0x60316161, 0x61616161 , 0x6161, ^^^^ 382 bytes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 0x0 , 0x28052842, 0x0, 0x0, 0x0, 0x280695d8, 0xe8, 0x2813bda4, 0xbfbfe11c, 0x28052d83, 0xe8, 0x0, 0x2813c000, 0x14000, 0x28070100, 0x280695d8, 0x2813bda4, 0x28052d61, 0x28070100, 0x0, 0xe8, 0x28052d42, 0x280695d8, 0xbfbfe170, 0xbfbfe15c, 0x280527c1, 0xe8, 0x14000, 0x3, 0x1012, 0xffffffff, 0x280695d8, 0xbfbfe1cc, 0x28052428, 0x280695d8, 0x0, 0xbfbfe1cc, 0x28069bd4, 0x28069bf4, 0x2806f020, 0x0, 0x0, 0x25c, 0x3, 0x28137000, 0xc6000, 0x0, 0xda000, 0x28076000, 0x0, 0x0, 0x0, 0x28069c14, 0x2804e81a, 0x11, 0x0, 0x280701a0, 0x280695d8, 0x280509a9, 0x280695d8, 0xbfbfe44c, 0x2804f785, 0x28070100, 0x0, 0xbfbfe3d4, 0x2804f599, 0x0, 0x0, 0x0, 0x6, 0x0 , 0x28059cca, 0xc5, 0x0, 0x0, 0x8000, 0x3, 0x1002, 0xffffffff, 0x0, 0x0, 0x0, 0x0, 0x280541ce, 0xc5, 0x280695d8, 0xbfbfe2dc, 0x28052c98, 0x0, 0x8000, 0x3, 0x1002, 0xffffffff, 0x0, 0x0, 0x2805296a, 0x0, 0x0, 0x1000, 0x28050e72, 0x28089994, 0x28089994, 0xbfbfe30c, 0x28050df6, 0x2, 0x280857b4, 0xbfe30c, 0x280695d8, 0x28072020, 0x0, 0xbfbfe32c, 0x28050da1, 0x28089994, 0x9a6322b, 0x28070100, 0x0...}