I'd like to try an emulate a USB HID device (a pedometer). I know the vendor ID and product ID of what I want to emulate. My questions are:
1. Is it possible to program the Teensy with a specific vendor and product ID? I'm guessing yes, since it can emulate a keyboard and mouse.
2. Can I write C++ code and compile that to an image that the Teensy understands? If so, what toolchain is to be used and how do I upload it to the Teensy? Since it's more complicated than a sketch, I assume using the Arduino IDE is out of the question.
3. I used wireshark to capture some USB traffic to my pedometer, how difficult is the task of emulating this on the Teensy? I have programming knowledge, but no USB programming knowledge.
4. Are there other tools/boards that would make this process any easier? Perhaps analyze and decode things better?
Essentially, what I'm trying to do is plug in the Teensy and the software will think the Teensy is the pedometer and communicate with it as such. Since I didn't write that software, I don't know the data being sent in the USB request message. However, I'm guessing it shouldn't be too difficult to reverse engineer.... but I could be wrong.
Any suggestions on how to approach this with the Teensy? Teensy 2.0 or 3.0?
1. Is it possible to program the Teensy with a specific vendor and product ID? I'm guessing yes, since it can emulate a keyboard and mouse.
2. Can I write C++ code and compile that to an image that the Teensy understands? If so, what toolchain is to be used and how do I upload it to the Teensy? Since it's more complicated than a sketch, I assume using the Arduino IDE is out of the question.
3. I used wireshark to capture some USB traffic to my pedometer, how difficult is the task of emulating this on the Teensy? I have programming knowledge, but no USB programming knowledge.
4. Are there other tools/boards that would make this process any easier? Perhaps analyze and decode things better?
Essentially, what I'm trying to do is plug in the Teensy and the software will think the Teensy is the pedometer and communicate with it as such. Since I didn't write that software, I don't know the data being sent in the USB request message. However, I'm guessing it shouldn't be too difficult to reverse engineer.... but I could be wrong.
Any suggestions on how to approach this with the Teensy? Teensy 2.0 or 3.0?