From owner-freebsd-usb@FreeBSD.ORG Wed May 18 06:56:27 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C162106566C for ; Wed, 18 May 2011 06:56:27 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id 169658FC08 for ; Wed, 18 May 2011 06:56:26 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=1W/zHQV/91afZrGZjnmxK4mmm0xPtKVmshL3njyU5IE= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=UwCjvsZbf_Bs8qx7l9kA:9 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mailfe01.swip.net X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_20 autolearn=ham version=3.3.1 X-TFF-CGPSA-Version: 1.7 X-T2-CGPSA-Filter: Scanned Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 128543504; Wed, 18 May 2011 08:56:24 +0200 From: Hans Petter Selasky To: Luca Pizzamiglio Date: Wed, 18 May 2011 08:55:17 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <4DD134A7.1070208@bally-wulff.de> <4DD240F7.60903@bally-wulff.de> <4DD26DEF.8030601@bally-wulff.de> In-Reply-To: <4DD26DEF.8030601@bally-wulff.de> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105180855.17517.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: SMARTCARD USB Reader 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, 18 May 2011 06:56:27 -0000 On Tuesday 17 May 2011 14:45:35 Luca Pizzamiglio wrote: > Hi, > > It was my mistake, I didn't understand that libusb20_tr_open() wants the > bEndpointAddress provided by the end point descriptor as ep_no parameter. > Man pages are not extremely detailed and I used usbconfig sources as > documentation, but I didn't found examples on transfer functions usage, > then my mistake. > > Does anyone know a project or library that use libusb20 that I could use > as example? > > If HPS agree, I want to use the experience I'm collecting to improve > documentation or to write examples and/or a tutorial. > > thanks again > > Regards, > Luca Hi, You can look at: /usr/ports/multimedia/webcamd Feel free to write an USB toturial. --HPS