DemolishunWork
Active member
Hey, there is a USB HID device I want to emulate for testing. These are things I have available to me:
Well, I have the code to talk to the device, but I am not quite sure what I would really need to do to emulate this on the Teensy 3.1. I am assuming there is a way to do custom HID devices with the Teensy 3.1?
Things I know I need:
To complicate things I don't have the device on hand. But if I could get my device to respond to the same code that would be fine. Also, is it possible for a single device to return multiple VID and PID values to emulate multiple devices at once? I would love to keep the serial port functioning on top of the new HID interface.
- Python and C code showing how to talk to the USB device. I can make out that this is an HID device.
- A Wireshark dump showing the communication to the device. I don't know USB very well so I am not sure what part of that dump is needed to emulate a device.
Well, I have the code to talk to the device, but I am not quite sure what I would really need to do to emulate this on the Teensy 3.1. I am assuming there is a way to do custom HID devices with the Teensy 3.1?
Things I know I need:
- HID descriptor. I "think" I can pick this out of the Wireshark data.
- The control/format for sending requests. The code I have seems to send an array of data of a fixed size for every request.
- The format for receiving data. I think it is just an array I get back, not sure on length though.
To complicate things I don't have the device on hand. But if I could get my device to respond to the same code that would be fine. Also, is it possible for a single device to return multiple VID and PID values to emulate multiple devices at once? I would love to keep the serial port functioning on top of the new HID interface.