From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 28 15:51:47 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35F2316A4CE for ; Sun, 28 Mar 2004 15:51:47 -0800 (PST) Received: from tv.soth.at (door.soth.at [80.110.102.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BB6643D2D for ; Sun, 28 Mar 2004 15:51:46 -0800 (PST) (envelope-from toni@tv.soth.at) Received: from tv.soth.at (tv.soth.at [127.0.0.1]) by tv.soth.at (8.12.10/8.12.10) with ESMTP id i2SNpiKh010631; Mon, 29 Mar 2004 01:51:44 +0200 Received: (from toni@localhost) by tv.soth.at (8.12.10/8.12.10/Submit) id i2SNpi08010629; Mon, 29 Mar 2004 01:51:44 +0200 Date: Mon, 29 Mar 2004 01:51:44 +0200 From: Toni Andjelkovic To: jitendra pande Message-ID: <20040328235144.GA9389@tv.soth.at> References: <20040328105156.82902.qmail@web42003.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040328105156.82902.qmail@web42003.mail.yahoo.com> User-Agent: Mutt/1.4.1i cc: freebsd-hackers@freebsd.org Subject: Re: Problem with usb in FreeBSD 4.8....help!!! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2004 23:51:47 -0000 On Sun, Mar 28 2004 (02:51:56 -0800), jitendra pande wrote: > My application uses libusb for iinteracting with the usb devices... > libusb on freeBSD 4.8 tries to find /debv/ugen0, /dev/ugen1 and so > on....hence couldn't able to detect more then one device. ... > FreeBSD 4.8 and FreeBSD 5.0 Note that the port version of libusb (0.1.7_1) ignores device endpoints (/dev/ugenX.Y), so it may be necessary to find and open them by yourself. Also note that opening the control endpoint (/dev/ugen0) instead will prevent libusb from finding the device, because FreeBSD allows the control endpoint to be open only once: usb_os_find_devices: couldn't open device /dev/ugen0: Device busy Also note that on 5.x (or -CURRENT) there are other problems to watch out for: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/63375 Cheers, Toni