Device reset

Hans Petter Selasky hselasky at c2i.net
Thu Jun 25 13:57:52 UTC 2009


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



More information about the freebsd-usb mailing list