Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with resetting USB



At 4:23 PM -0400 9/23/05, Joseph R. DiPaolo wrote:

I want to be able to just launch and application that will reset the USB bus.

You don't reset the USB bus, you reset individual devices, which is done by resetting the port the device is attached to. So you have to be able to find you individual device. There are several examples which deal with device discovery.


Once you've found the device you need the ResetDevice method from the device interface. I'm not sure the driver will allow you to do that, if it does you'll leave the device in an uncertain state, where it'll need to be configured again.

This is probably a lot more complicated that you bargained for, so you should probably give up now

An alternative may be to use USBDeviceReEnumerate, which kicks out the driver and restarts its. I'm not entirely certain it'll do the reset though.

The best way to do this would be to subclass the composite driver, just for you device and put in the functionality to reset it there. Again not a very trivial task.
--
Barry Twycross
email@hidden
---
USB, it's not a Dyslexic BUS. (Thanks to TC.)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden


This email sent to email@hidden
References: 
 >Help with resetting USB (From: "Joseph R. DiPaolo" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.