Here is some code in this link that looks like it will work for the USBDeviceState initialization.
http://mac.mf3x3.com/A_PIC_PROGS/USB...SBDemo2_DT.txt
Also, here is some information on the keyboard receiving information from the PC. The PC tells the keyboard when to turn on the NumLock, CapLock, and ScrollLock LED.
http://www.picbasic.co.uk/forum/showthread.php?t=8925
I've seen another thread where someone was able to demonstrate "stealing" information from a PC a few bits at a time using the NumLock, CapLock, and ScrollLock signals. The sensitive information was sent back through the keyboard device and recorded on a microcontroller USB board.




Bookmarks