Are there any known issues with USBDeviceReEnumerate()? I am having some
very serious problems with it.
I have three devices that are almost identical plugged into a single hub at
locations 911, 912, and 913. The most important difference is that they have
different vendor and product ids.
I have a startup item that runs a matching loop that matches all USB
devices, but applies USBDeviceOpen() / USBDeviceReEnumerate() /
USBDeviceClose() to just the three devices that I know are mine.
I have removed all my other drivers that match my devices in the system,
i.e. I am basically just reenumerating the devices for matching by the Apple
composite driver.
When I launch IORegistryExplorer and inspect the devices in the USB plane,
two of the three devices always have the same vendor and product id
properties, even though all three of them have unique numbers in reality.
I have seen it happen under 10.2.8, but it's not consistent. It always
happens under 10.3.2. If I take the call to USBDeviceReEnumerate() out, the
properties show up correctly in IORegistryExplorer.
Unfortunately since the actual idVendor and idProduct properties are messed
up, when my software runs I can't reliably identify the manufacturer of the
device. It's not a show-stopper problem, but it is an ugly one.
Any ideas anyone?
Chris.
> On 12/22/03 5:18 PM, "Chris Cooksey" <email@hidden> wrote:
>
>> What this boils down to is this: I need a way to stop the AppleUSBComposite
>> driver from matching my device. In fact, from what I can tell, there are a
>> number of people that need this ability.
>
> Some people have solved this problem by having a startup item that does a
> USBDeviceReEnumerate() on their device. This will unload and reload
> drivers, which will allow your driver to once again participate in matching,
> even if it depends on the AppleUSBAudio family.
>
> As far as I know, IOKit has no plans on modifying the way drivers are
> matched in the near term. We will keep in mind your requirements (and those
> of others) for the future.
>
> Good Luck,
>
> - Fernando
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.