View Full Version : HID RAW debug on teensy3

10-30-2012, 07:25 AM
Right now I'm struggling with trying to get the HID raw debugging stuff (http://www.pjrc.com/teensy/rawhid.html) working. I've added the HID raw interface and endpoints to the usb descriptor table. I've added the HID raw report table. I've added code to the usb_dev.c usb_setup() to handle the request for the HID raw report table (similar to the code for GET_DESCRIPTOR but using request 0x01a1). This doesn't seem to be working. The older style USB code has some delays before sending the report table that I wonder if I need to figure out how to do in the new style USB code. The old code also seems to send zeros instead of the actual HID raw report table?! I'm not sure why this would be so...

The mac seems to see the hid raw device and ask for the report table but never receive it:

2.097 [3] IOUSBHIDDriver(IOUSBHIDDriver)[0xf66fb00]::GetHIDDescriptor Final request failed; err = 0xe000404f

The modified code is checked into my mercurial repo (https://bitbucket.org/cmason/teensy3).

Any suggestions would be really appreciated.