From owner-freebsd-current Wed Nov 14 12:46: 8 2001 Delivered-To: freebsd-current@freebsd.org Received: from btclick.com (mta02.btfusion.com [62.172.195.247]) by hub.freebsd.org (Postfix) with ESMTP id EC00C37B405 for ; Wed, 14 Nov 2001 12:46:02 -0800 (PST) Received: from heather.plazza.uk ([213.120.117.63]) by btclick.com (Netscape Messaging Server 4.05) with ESMTP id GMT5OK00.W47; Wed, 14 Nov 2001 20:45:56 +0000 Received: from localhost (localhost [127.0.0.1]) by heather.plazza.uk (8.11.6/8.11.6) with ESMTP id fAEKkX500614; Wed, 14 Nov 2001 20:46:52 GMT (envelope-from n_hibma@webweaving.org) Date: Wed, 14 Nov 2001 20:46:33 +0000 (GMT) From: Nick Hibma X-X-Sender: To: Peter Wemm Cc: Julian Elischer , Subject: Re: USB and -current In-Reply-To: <20011114044328.CCB8C38CC@overcee.netplex.com.au> Message-ID: <20011114204445.K567-100000@heather.plazza.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It would be trivial to write a driver, like uscanner, that does the collection of two endpoints into one bidirectional file descriptor. Endpoints are the pipes that USB communicates over, and due to sloppy documentation in the USB spec. implementors of firmware didn't realise that 1-in and 1-out are different endpoints. If 1-in and 1-out would have been used, ugen0.1 could have been used bidirectionally and all would have been well. Nick On Tue, 13 Nov 2001, Peter Wemm wrote: > Julian Elischer wrote: > > I haven't been able to find the usb mailing list.... > > where's it gone? > > > > I've been trying ot run some USB programs > > specifically gphoto2 > > and I came to the conclusion that there may be some incompatibility > > in the libusb layer.. > > > > since then I discovered that there are TWO libusb's.. > > > > One from NetBSD and one from the world of pinguins (Actually sourcforge) > > > > It seems to me that our libusb needs to be called libusb-hid > > since it only supports the HID compatible devices and the one at sourceforge > > should probably be called libusb. > > > > Has anyone managed to get the libusb (gpl) to work under freeBSD -current? > > More specifically has anyone managed to get the gphoto2 library to work? > > Yes. There are fundamental differences between our usb kernel stack and > gphoto's assumptions. I know of one person who has made it work, I think > it was Daniel O'Connor (If I remember the name right). The biggest problem > was that you have to open *two* fd's to the camera (one for send, one for > recieve) vs. the single fd that serial and linux use. > > Cheers, > -Peter > -- > Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au > "All of this is for nothing if we don't go to the stars" - JMS/B5 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message