Re: USB host - HID keyboard and other things

2023-01-26 Thread Tim Hardisty
I have traced the USB communication and it gets as far as it polling for new data, but never gets any. It is all detected, instantiated properly, and so forth – just doesn’t get data. So, as suggested, a protocol issue. The keyboard I’m using reports itself as subclass BOOTIF and protocol

USB host - HID keyboard and other things

2023-01-19 Thread Tim Hardisty
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

Re: USB host - HID keyboard and other things

2023-01-19 Thread Gregory Nutt
An embarrassingly large number of typos: On 1/19/2023 2:19 PM, Gregory Nutt wrote: Should be pretty easy.  I think that you just need to add a HID report descriptor to the USB keyboard driver. https://wiki.osdev.org/USB_Human_Interface_Devices#Protocol. Shouldn't really require any code

Re: USB host - HID keyboard and other things

2023-01-19 Thread Gregory Nutt
On 1/19/2023 2:13 PM, Tim Hardisty wrote: Ultimately I need to make sure it works with most/any USB-C keyboard that customers might choose to plugin (or, at least, a style/type of keyboard that is widely available), but it’s not a priority right now. Should be pretty easy.  I think that you

Re: USB host - HID keyboard and other things

2023-01-19 Thread Tim Hardisty
Subject: Re: USB host - HID keyboard and other things Hi Tim, Look at page 85 here: https://www.usb.org/sites/default/files/documents/hid1_11.pdf "F.5 Keyboard: Using the Keyboard Boot Protocol This section explains some of the detail behind the requirements listed in Appendix G.4. T

Re: USB host - HID keyboard and other things

2023-01-19 Thread Alan C. Assis
get RNDIS working – so many random Kconfig settings needed > it seems. > > From: Gregory Nutt > Date: Thursday, 19 January 2023 at 19:18 > To: dev@nuttx.apache.org > Subject: Re: USB host - HID keyboard and other things > On 1/19/2023 1:12 PM, Alan C. Assis wrote: > >

Re: USB host - HID keyboard and other things

2023-01-19 Thread Tim Hardisty
Subject: Re: USB host - HID keyboard and other things On 1/19/2023 1:12 PM, Alan C. Assis wrote: > 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

Re: USB host - HID keyboard and other things

2023-01-19 Thread Alan C. Assis
On 1/19/23, Gregory Nutt wrote: > On 1/19/2023 1:12 PM, Alan C. Assis wrote: >> 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. > > Unless someone has

Re: USB host - HID keyboard and other things

2023-01-19 Thread Gregory Nutt
On 1/19/2023 1:12 PM, Alan C. Assis wrote: 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. Unless someone has extended the driver, the USB keyboard driver

Re: USB host - HID keyboard and other things

2023-01-19 Thread Alan C. Assis
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

USB host - HID keyboard and other things

2023-01-19 Thread Tim Hardisty
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