Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 7 of 7

Thread: USB HID Set Report. Where to get the Data?

  1. #1
    Junior Member
    Join Date
    Aug 2017
    Posts
    2

    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 10:59 AM.

  2. #2
    Junior Member
    Join Date
    Aug 2017
    Posts
    2
    never mind, figured it out already.

  3. #3
    Junior Member
    Join Date
    Jul 2019
    Posts
    18
    would you mind sharing? thank you.

  4. #4
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    6,096
    Quote Originally Posted by pauleffect View Post
    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)

  5. #5
    Junior Member
    Join Date
    Jul 2019
    Posts
    18
    I'm sorry. I figured it out seconds later. Will follow your advice.

  6. #6
    Junior Member
    Join Date
    Jul 2019
    Posts
    18
    Happy holidays, Kurt!

  7. #7
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    6,096
    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
  •