Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jun 2009 15:57:14 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Subject:   Re: Device reset
Message-ID:  <200906251557.17973.hselasky@c2i.net>
In-Reply-To: <200906251524.04072.nick@van-laarhoven.org>
References:  <200906251524.04072.nick@van-laarhoven.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 25 June 2009 15:24:02 Nick Hibma wrote:
> HPS,
>
> In FBSD7 I committed  an ioctl on the ugen.c (some time ago) that allowed
> for resetting the device. Not a port on the device, but the device itself.
> This was a function that was unimplemented in libusb1 up to then. For
> example some Atmel devices need a reset after you uploaded the firmware.
>
> I cannot seem to find this functionality in usb_ioctl.h in teh FBSD8 USB
> stack.
>
> Another use for this feature is to be able to reset a device into a known
> state, like the 3G dongles that freeze. Power-cycling them is the short way
> out of the situation.
>
> Cheers,

Hi Nick,

It's still there:

See "USB_DEVICEENUMERATE()". Supported by by libusb and libsub20.

Also see:

usbconfig -u X -a Y reset

--HPS




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