On Mon, Jan 28, 2002, aj-libusb@... <aj-libusb@...> wrote:
> how can i use usb_reset ? do i need to sleep some time,
> or reopen the device, or what ?
> in my code i use usb_reset to reset my token device.
> the token device consists of a usb chip and a smartcard
> chip, and i hope the usb_reset will cause the token chip
> to reset the smartcard chip.
> but after the reset i cannot access the device:
> control transfer failes with "No such device".
> any idea ?
usb_reset resets the device to the point where it'll drop off the bus
and reenumerate. After you call that, you have to rescan for the device
and reopen it since it'll be a "new" device.