Hi Tim, AFAIK the current USB HID keyboard implementation existent on NuttX doesn't work with all keyboards. I don't know details about it, so let me share what I know so far:
A NuttX user reported some years ago that he test USB Keyboard on STM32 boards and got it working. He was using the keyboard: Perixx Mini USB Keyboard PERIBOARD-409. I think the currently NuttX USB Keyboard driver needs to be extended to support more keyboards. Do do that someone need to inspect the USB communication and figure out what is going on. BR, Alan On 1/19/23, Tim Hardisty <t...@hardisty.co.uk> wrote: > Hi all, > > I have finally got the USB interfaces working on my custom board (SAMA5D27) > and, as a host, can see USB memory sticks, mount them and read/write to > them. Also working as a USB device, using USB-C instead of OTG with an > FUSB302 controller to auto switch between the 2 modes. To say I’m very > pleased is an understatement!!!! > > I have now enabled HID keyboard and after a bit of messing around with the > config it is now registering as /dev/kbda. If I run the hidkbd example I am > not getting any characters though – it is stuck waiting for input. Same if I > choose it as for USB console – the connect is seen, but no characters are > delivered. > > Is there some other step I’ve missed? In case it’s relevant, it’s actually a > USB-C keyboard (that works fine on my Linux NUC). > > Also: since, ultimately, the design needs to determine what sort of host > device has been connected (keyboard or memory stick to start with) what is > the technique needed to determine the device type connected? What do I poll > or read to find the enumerated devices? In Linux there are various things > such as “usb-devices” or “lsusb” > > Thanks, > > TimJTi. > >