USB keyboard to Computer to Teensy

Status
Not open for further replies.

keyboard

New member
Hello,

I'm fairly new to this sort of stuff and I have been working on a project and I'm not sure of where to go next. I'm attempting to use a USB keyboard, that is connected to the same computer that the Teensy is, to send information to the the Teensy. This information would include keystrokes and key combinations such as Ctrl + Alt + Delete. I have been able to get the Teensy to send keyboard commands/information to the computer by using some of the commands found here: http://arduino.cc/en/Reference/KeyboardPress but I have not been able to figure our a way to do the inverse. If anyone could point me in the right direction it would be much appreciated.

Thank you, in advance!

Additional information:
Teensy 2.0++
Teensduino
Windows 8 PC
 
First, here's a copy of the USB spec. It's a huge PDF, but you really should look only at chapter 4, and maybe the first bit of chapter 5. That will give you a really solid understanding of USB.

http://www.pjrc.com/teensy/beta/usb20.pdf

In the context of chapter 4's info, both Teensy and the USB keyboard are USB devices. The host controls everything, so you'd need software on the host to relay the data. Again, please read (or just skim) chapter 4 for a deeper understand of how USB works....
 
Status
Not open for further replies.
Back
Top