Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 May 2005 22:52:16 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org, ticso@cicely.de
Cc:        Daniel Rucci <rucci@warganizer.com>
Subject:   Re: force power over usb
Message-ID:  <200505202252.17614.hselasky@c2i.net>
In-Reply-To: <20050520192340.GP80082@cicely12.cicely.de>
References:  <428A2350.6000603@warganizer.com> <428E33CE.8060007@warganizer.com> <20050520192340.GP80082@cicely12.cicely.de>

next in thread | previous in thread | raw e-mail | index | archive | help
--Boundary-00=_B4kjCDMUIwkKptX
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Friday 20 May 2005 21:23, Bernd Walter wrote:
> On Fri, May 20, 2005 at 03:00:30PM -0400, Daniel Rucci wrote:
> > # usbdevs -v
> > Controller /dev/usb0:
> > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
> > Intel(0x0000), rev 1.00
> > port 1 powered
> > port 2 powered
> > Controller /dev/usb1:
> > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
> > Intel(0x0000), rev 1.00
> > port 1 powered
> > port 2 addr 2: full speed, self powered, config 1, Motorola Phone
> > (V3)(0x4902), Motorola Inc.(0x22b8), rev 0.01
> > Controller /dev/usb2:
> > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
> > Intel(0x0000), rev 1.00
> > port 1 addr 2: full speed, power 90 mA, config 1, product
> > 0x2441(0x2441), Actiontec Electronics(0x1668), rev 5.46
> > port 2 powered
> >
> > output did not hang. Is there anyway to change it so its not self
> > powered?
>
> It is what the device tells, maybe config 1 is just the configuration
> for running on own power.
> A device may have several configs with different power/feature sets.
> A freshly contected device is considered unconfigured.
> You can use /dev/ugen to set a different one - well if your device
> really has different ones.
> Just open(2) the device and use UR_SET_CONFIG ioctl.
> The disabling mesage is still very strange, as the device is not
> disabled.
> Unless you need it for something else you might as well try a kernel
> without ugen support.

You can dump all configurations with the attached program "usb_dump.c", when 
your device is attached as ugen.

cc usb_dump.c

./a.out -i -d -D -f /dev/ugen0

What does it say?

--HPS

--Boundary-00=_B4kjCDMUIwkKptX--



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