From owner-freebsd-usb@FreeBSD.ORG Mon Oct 6 11:11:50 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C1CF64B9; Mon, 6 Oct 2014 11:11:50 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 835BC9F8; Mon, 6 Oct 2014 11:11:50 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 9E0A81FE022; Mon, 6 Oct 2014 13:11:48 +0200 (CEST) Message-ID: <543278F1.9070607@selasky.org> Date: Mon, 06 Oct 2014 13:11:45 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: lev@FreeBSD.org, freebsd-usb@freebsd.org, "libusb-devel@lists.sourceforge.net" Subject: Re: Is here maximum size of buffer for libusb_fill_bulk_transfer() call? References: <543274CE.5080308@FreeBSD.org> <543276EF.5080809@selasky.org> <543277CF.9050407@FreeBSD.org> In-Reply-To: <543277CF.9050407@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2014 11:11:50 -0000 On 10/06/14 13:06, Lev Serebryakov wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > On 06.10.2014 15:03, Hans Petter Selasky wrote: > >>> Is here practical buffer size limit? I mean, maybe, standard >>> limits transfer size by 64K or something like this? >> >> If the transfer is too big, libusb in FreeBSD loops using an >> internal buffer, unlike Linux. You should be able to setup any >> positive length which fits into an integer of type "int" or >> "uint32_t". > My question is more about cross-platform behavior, as I try to write > cross-platform project. > Hi, In Linux you should not transmit more than 16Kbytes at a time for BULK at HighSpeed, from what I know. Might have been fixed recently though. --HPS