Is there a way to read the state of the computer? (HID Keyboard)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-19 6:07 PM
I'm using 'STM32F103RCT' and been create a HID Custom keyboard.
I want to know the states of 'Num Lock', 'Insert' and 'Caps Lock' etc on the HID keyboard's computer.
Because it has to be checked with LED.
lighting the LED is essential when connecting to the computer.
How do I know the state of the computer?
Reading the computer's state is the difficult problem.
Solved! Go to Solution.
- Labels:
-
STM32F1 Series
-
USB
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-20 6:39 PM
A keyboard does not "read" the host's (computer) Num lock etc. states.
Rather, the computer requests the keyboard to set its LEDs on/off.
The keyboard should advertise the LEDs capability in its HID report descriptor and should handle the host's requests properly.
-- pa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-20 6:39 PM
A keyboard does not "read" the host's (computer) Num lock etc. states.
Rather, the computer requests the keyboard to set its LEDs on/off.
The keyboard should advertise the LEDs capability in its HID report descriptor and should handle the host's requests properly.
-- pa
