From owner-freebsd-usb@FreeBSD.ORG Tue Nov 13 16:42:33 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 60F5D561 for ; Tue, 13 Nov 2012 16:42:33 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.c2i.net [212.247.155.2]) by mx1.freebsd.org (Postfix) with ESMTP id DFB638FC08 for ; Tue, 13 Nov 2012 16:42:32 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50,T_FRT_BELOW2 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe09.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 169836795; Tue, 13 Nov 2012 17:42:30 +0100 From: Hans Petter Selasky To: SAITOU Toshihide Subject: Re: isochronous transfer packet is out of sequence Date: Tue, 13 Nov 2012 17:44:11 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <201211121342.47141.hselasky@c2i.net> <201211131452.16508.hselasky@c2i.net> <20121114.002306.36926536.toshi@ruby.ocn.ne.jp> In-Reply-To: <20121114.002306.36926536.toshi@ruby.ocn.ne.jp> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201211131744.11220.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 16:42:33 -0000 On Tuesday 13 November 2012 16:23:06 SAITOU Toshihide wrote: > In message: <201211131452.16508.hselasky@c2i.net> > > Hans Petter Selasky writes: > > On Tuesday 13 November 2012 14:26:52 SAITOU Toshihide wrote: > >> In message: <201211121342.47141.hselasky@c2i.net> > >> > >> Hans Petter Selasky writes: > >> > On Monday 12 November 2012 12:52:08 SAITOU Toshihide wrote: > >> >> I have tryed the USB isochronous transfer for UVC cam using libusb > >> >> interface and I find the packet fragment is out of sequence on the > >> >> FreeBSD(1). But I don't find it on the MacBook(2). > >> >> > >> >> (1) FreeBSD 9.1-RC2, Intel Core i7 3770T > >> >> (2) Mac OS X 10.6.8, Intel Core 2 Duo, libusb 1.0.9 (single core) > >> >> > >> >> Can I prevent this behaviour using libusb interface or is > >> >> this an expected behaviour? > >> >> > >> >> The bellow I issued two libusb_submit_transfer at the beginning. > >> >> > >> >> Hi, There are some internal limits, maybe not visible directly at libusb level. The host hardware usually does not handle more than 128 milliseconds of transfers at a time. You should not sumbit more frames than will be processed in (128 - 16) / 2 ms at any time. For HighSpeed with fastest interval you will need around 8*2*56 ms worth of frames, which is the maximum supported. grep -r USB_MAX_FS_ISOC_FRAMES_PER_XFER /usr/include grep -r USB_MAX_HS_ISOC_FRAMES_PER_XFER /usr/include Webcamd has patches for the Linux code, to fix this issue. --HPS