USB keyboard does not receive leds

Veda88
Posts: 3
Joined: Tue Sep 03, 2024 8:48 am

USB keyboard does not receive leds

Postby Veda88 » Tue Sep 03, 2024 8:55 am

I am using the "CompositeDevice" example in the arduino IDE. It has code to write events for the caps-lock, num-lock and scroll-lock to the console output. It also has code to press the caps-lock button when pressing the on-board button. The events for the leds are never written to the console. Not when I press the on-board button (I see the leds on my real keyboard change, so that works) also not when I press my real caps-lock button.

What can I do to get the led events? I'm using linux if that matters.

sudo evtest
and selecting
/dev/input/eventxx: Espressif Systems ESP32_S3_USB_OTG Keyboard
does show it is doing something with the caps lock led when pressing caps-lock on my real keyboard.
Last edited by Veda88 on Thu Sep 05, 2024 3:06 pm, edited 1 time in total.

Veda88
Posts: 3
Joined: Tue Sep 03, 2024 8:48 am

Re: USB keyboard does not receive leds

Postby Veda88 » Thu Sep 05, 2024 2:52 pm

Looking into it a bit more I see that the USBVendor example also does not work correctly. I can see the device in my webbrowser, connect to it, but I cannot send/receive data from the webbrowser. In the serial port also no info. Only when I press the button I see Button Pressed or Button Released. So serial port works.

Is this a problem with my linux? lsusb does show the device, usbhid-dump does show the hid device as well.

Veda88
Posts: 3
Joined: Tue Sep 03, 2024 8:48 am

Re: USB keyboard does not receive leds

Postby Veda88 » Fri Sep 06, 2024 1:18 pm

Using esp-idf I can get the keyboard leds to work. Well alright, I will switch to that.

Who is online

Users browsing this forum: Google [Bot] and 34 guests