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: matching against composite/HID device



On Mar 21, 2005, at 9:52 AM, Rhoads Hollowell wrote:

Shaun,

Any chance that your driver's ::start method is returning false?

No, it's matched and loaded for the USBDevice. It wasn't matching the USBInterface even though its score was the highest (90000). All of my driver classes are in the same module. Is that the problem? What I did as a workaround was to pass false to usbDriver->SetConfiguration, so it didn't perform the matching, then instantiated my interface driver and force-matched it to the interface, from within the device driver. I don't NEED to publish the interface since everything from there on is done in-kernel, but to use it from... ok, I wrote a test utility, and without using my driver, an IOUSBHIDDriver is matched to the USBInterface (which just contains a pair of interrupt pipes). The HID async callback is dropping reports (or it may be in the device's firmware), yet everything in the app is on a single thread in the main run loop. hidDevice->SendReport synchronously works fine and never fails. I can upload firmware as text thru the device's parser and it works fine, never failed. But performance is no-so-good.
--
Shaun Wexler
MacFOH
http://www.macfoh.com


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >matching against composite/HID device (From: Shaun Wexler <email@hidden>)
 >Re: matching against composite/HID device (From: Rich Kubota <email@hidden>)
 >Re: matching against composite/HID device (From: Shaun Wexler <email@hidden>)
 >Re: matching against composite/HID device (From: Rhoads Hollowell <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.