This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Gadget HID Control EP Messages After Setup

Other Parts Discussed in Thread: OMAP-L137

Platform: OMAP-L137 EVM by Spectrum Digital
Kernel:   linux-2.6.18_pro500

After giving up on BIOSUSB, I am writing a custom USB Device HID driver based upon the Gagdet Zero code. My configuration uses EP0 or Control EP for Host->Device and EP1 as an Interrupt EP for Device->Host. I can enumerate and use various tools to verify the descriptors are correct. The problem is that none of the tools can open the device file. After the setup phase, my setup callback does not receive any more control messages. Looking at the musb driver, that behavior looks to be as designed.

Is there a way to continue to receive messages on the control EP after the setup phase?

  • I traced the problem to an incomplete driver installation for a USB HID device. On my Windows XP PC, there should be two devices in the Device Manager under Human Interface Devices:

    HID-compliant device

    USB Human Interface Device

    I was missing the "HID-compliant device". Uninstalling the device and plugging back in causes Windows to reinstall both devices.

    I think the very first driver install went bad as my USB descriptors were not completely defined at that time. Windows would remember and reuse that half-installed state. The HID driver would never be loaded and on the Linux side, I would never recieve any HID related messages.