I'm able to run this sample code. It prints out USB device information of a keyboard and a barcode scanner I plugged in. But I thought it may print out RAW HID data when I type on the keyboard like 8-byte reports etc. but nothing is printing out. Is this sample code supposed to print anything out if I press keys or scan bar codes? These are working devices I've been using for projects. I could probe it with my Beagle analyzer to see what's going on though. My hunch is that set config was issued but there's no regular polling.
I'm hoping to find a bare metal example though. Something that would allow me to see how the control transfers and bulk transfers are done. What library function to call with what arguments. These library examples may be too high level
This is from my bar code scanner. It's an HID keyboard emulation device. Works as a keyboard, sending 8-byte INT-IN packets for each character.
I'm hoping to find a bare metal example though. Something that would allow me to see how the control transfers and bulk transfers are done. What library function to call with what arguments. These library examples may be too high level
This is from my bar code scanner. It's an HID keyboard emulation device. Works as a keyboard, sending 8-byte INT-IN packets for each character.
Code:
USBDeviceInfo claim this=20005E48
****************************************
** Device Level **
vid=5E0
pid=1200
bDeviceClass = 0
bDeviceSubClass = 0
bDeviceProtocol = 0
09 04 00 00 01 03 01 01 00 09 21 10 01 00 01 22 4D 00 07 05 81 03 40 00 03
USBDeviceInfo claim this=20005E48
****************************************
** Interface Level **
09 04 00 00 01 03 01 01 00 09 21 10 01 00 01 22 4D 00 07 05 81 03 40 00 03
bInterfaceNumber = 0
number end points = 1
bInterfaceClass = 3
bInterfaceSubClass = 1
HID (BOOT)
bInterfaceProtocol = 1
report descriptor size = 77
endpoint = 81
attributes = 3 Interrupt
size = 64
interval = 3