USB Keyboard - setting LED's not working
Posted: Wed Oct 14, 2015 12:07 pm
I am working on a USB keyboard device driver/code for my OS.
Currently trying to get the numlock and capslock LED's to light up using the boot-protocol SetReport(Out), but even though the usb transfer is completed successfully, the LED's dont light up.
If i wait too long after initializing the device (i,e 1-4 seconds) before trying to set the LED's, then the usb transfer reports a CRC Time Out error. This makes me think im not completely initializing the device.
I do the following before trying to set the LED's:
USB_SetConfiguration
HID_SetProtocol (0) Boot-Protocol
HID_GetReportDescriptor
Am i missing a step? I could not find anything else in the HID specifications.
Currently trying to get the numlock and capslock LED's to light up using the boot-protocol SetReport(Out), but even though the usb transfer is completed successfully, the LED's dont light up.
If i wait too long after initializing the device (i,e 1-4 seconds) before trying to set the LED's, then the usb transfer reports a CRC Time Out error. This makes me think im not completely initializing the device.
I do the following before trying to set the LED's:
USB_SetConfiguration
HID_SetProtocol (0) Boot-Protocol
HID_GetReportDescriptor
Am i missing a step? I could not find anything else in the HID specifications.