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.

Reply via email to