Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Oct 2005 00:38:53 -0700
From:      "Loren M. Lang" <lorenl@alzatex.com>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: LibUSB fails to enumerate all devices
Message-ID:  <20051025073853.GA4759@alzatex.com>
In-Reply-To: <200510242254.31406.hselasky@c2i.net>
References:  <20051023095137.GC18930@alzatex.com> <041301c5d8d4$62749100$6600000a@venti> <200510242254.31406.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--r5Pyd7+fXNt84Ff3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Oct 24, 2005 at 10:54:30PM +0200, Hans Petter Selasky wrote:
> On Monday 24 October 2005 21:51, Brian K. White wrote:
> > ----- Original Message -----
> > From: "Loren M. Lang" <lorenl@alzatex.com>
> > To: <freebsd-usb@freebsd.org>
> > Sent: Sunday, October 23, 2005 5:51 AM
> > Subject: LibUSB fails to enumerate all devices
> >
> > I am developing a USB device which has two interfaces, one interface
> > uses a standard HID protocol, the other is completely custom at the
> > moment.  FreeBSD attaches appropriately to the HID interface and works
> > correctly.  For the custom interface, I was going to write a device
> > driver in userspace using libusb, but I can't seem to find it.  I wrote
> > a program to enumerate all devices on all busses, but the only device I
> > see is the one device I don't have any driver loaded for.  Does FreeBSD
> > not allow a userspace to access an interface of a usb device when any of
> > it's interfaces are grabbed by a kernel driver even though the interface
> > I want is not grabbed?
>=20
> No. ugen, which is the device libusb is searching for, is only created wh=
en no=20
> subdevices has been attached. It is not impossible to have a shadow "ugen=
"=20
> hanging on all USB devices, but it is a little complicated, because you g=
et=20
> two applications that can set the configuration: ugen and the USB device=
=20
> driver. Whenever the configuration number is set, all ugen devices in /de=
v=20
> must be re-created, and one should detach existing, attached USB sub-devi=
ces.

So LibUSB can only access USB devices that have an associated ugen
device?  And a usb device which has a kernel driver attached to any
interface will not have a ugen device available?  Is there any way,
LibUSB or not, to access the second interface of my device from
userspace or would it require a kerne driver?  Only the first interface
is attached to anything.

>=20
> --HPS
>=20

--=20
I sense much NT in you.
NT leads to Bluescreen.
Bluescreen leads to downtime.
Downtime leads to suffering.
NT is the path to the darkside.
Powerful Unix is.

Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: CEE1 AAE2 F66C 59B5 34CA  C415 6D35 E847 0118 A3D2
=20

--r5Pyd7+fXNt84Ff3
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFDXeENbTXoRwEYo9IRAl5FAJ9RoserYtE9r9WPlcds0uC1B8APtwCfZya8
HZwjrO+mAuSLpfvgX0Ie5Sg=
=0Ifa
-----END PGP SIGNATURE-----

--r5Pyd7+fXNt84Ff3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051025073853.GA4759>