From owner-freebsd-usb@FreeBSD.ORG Wed Nov 26 05:43:00 2008 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED9561065670; Wed, 26 Nov 2008 05:43:00 +0000 (UTC) (envelope-from thierry.herbelot@free.fr) Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) by mx1.freebsd.org (Postfix) with ESMTP id 8FB8E8FC13; Wed, 26 Nov 2008 05:43:00 +0000 (UTC) (envelope-from thierry.herbelot@free.fr) Received: from smtp3-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp3-g19.free.fr (Postfix) with ESMTP id 219B617B532; Wed, 26 Nov 2008 06:42:59 +0100 (CET) Received: from mail.herbelot.nom (bne75-4-82-227-159-103.fbx.proxad.net [82.227.159.103]) by smtp3-g19.free.fr (Postfix) with ESMTP id CDF1E17B543; Wed, 26 Nov 2008 06:42:58 +0100 (CET) Received: from tulipe.herbelot.nom (tulipe.herbelot.nom [192.168.2.5]) by mail.herbelot.nom (8.14.1/8.14.1) with ESMTP id mAQ5guwq018184; Wed, 26 Nov 2008 06:42:57 +0100 (CET) From: Thierry Herbelot To: Alfred Perlstein Date: Wed, 26 Nov 2008 06:42:50 +0100 User-Agent: KMail/1.9.10 References: <200811252228.09926.thierry.herbelot@free.fr> <20081125234904.GP28578@elvis.mu.org> In-Reply-To: <20081125234904.GP28578@elvis.mu.org> X-Warning: Windows can lose your files X-Op-Sys: Le FriBi de la mort qui tue X-Org: TfH&Co X-MailScanner: Found to be clean MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200811260642.51025.thierry.herbelot@free.fr> Cc: usb@freebsd.org Subject: Re: concurrent access to multiple endpoints of a USB device ? 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, 26 Nov 2008 05:43:01 -0000 Le Wednesday 26 November 2008, Alfred Perlstein a écrit : > * Thierry Herbelot [081125 13:51] wrote: > > Hello, > > > > (this is with the old USB stack, on a -slow- 7.1 i386 machine) > > > > I'm playing with a USB2.0 device which exposes multplie endpoints > > (control on EP0, then bulk endpoints 1, 2 and 3). > > > > When I run a control application doing EP0 requests simultaneously with > > another process reading off EP2, the reading process only gets errors : > > "Received -1 vs 65536 bytes requested ep 2 errno=5 (Input/output error)" > > > > The control application by itself works correctly. > > > > I'm using a simple read system call to read from ugen0.2 : > > "nb_bytes = read(ep_fd[2], buf, nb);" > > > > Is there anything I should do to for example increase the ep2 buffer size > > ? (maybe I should also try the new USB stabck, for sure) > > Give usb2 a shot. Hans is pretty on top of issues in it. will do ASAP : thanks for the advice TfH