Forum Rule: Always post complete source code & details to reproduce any issue!
-
USB HID Set Report. Where to get the Data?
Hi, I'm using Teensy to reverse-engineer a USB HID device that uses HID Set Report Requests (HID 1.11 spec, 7.2.2 page 52). With my reverse engineered driver on the Teensy connected to a Windows host, I can catch the Set Report Request request sent from the host within usb_dev.c, but I have no idea where to get the Data part from.
Type: 0x21
Request: 0x09 SET_REPORT
Value:0x0301 Feature Report #01
Index: 0x0000
Lenght 0x08 8-bytes of data...but where?
I can see the Raw data bytes in USBlyzer and they contain expected values, but I don't know where to access them from within the Teensy USB code. The setup structure is fixed at 8 bytes (0x0921030100000008) and does not contain a Data field as described in the spec. Thanks for any hints!
Last edited by Genoil; 08-04-2017 at 09:59 AM.
-
never mind, figured it out already.
-
would you mind sharing? thank you.
-
Senior Member+

Originally Posted by
pauleffect
would you mind sharing? thank you.
This is a 2 year old thread and these are the only two posts by that person, so unlikely they will respond...
If you do have some specific questions, you might try asking it in a new thread. You might also include additional information like which Teensy...
But if you are asking about T3.x and how their USB descriptor is defined,
You might start by looking that files (where Arduino installed)/hardware/teensy/avr/cores/teensy3/usb_desc.c (and .h)
-
I'm sorry. I figured it out seconds later. Will follow your advice.
-
-
Senior Member+
Happy Holidays to you as well.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules