USB HID for ESP32-S2

osiris81
Posts: 6
Joined: Fri Sep 11, 2020 12:57 pm

USB HID for ESP32-S2

Postby osiris81 » Fri Sep 11, 2020 1:13 pm

Hello,

there is an example for USB CDC for the ESP32-S2. For a new project, we need to implement USB HID (Generic, Device Mode).

I've seen an example for HID in the tinyusb github but I'm not able to get it working on the ESP32-S2. Will there be an example for USB HID for the ESP32-S2?

Thanks,
Rico

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: USB HID for ESP32-S2

Postby chegewara » Sun Sep 13, 2020 8:08 pm

Here you have few example HID reports you can use just like in example:
https://github.com/hathach/tinyusb/blob ... #L116-L304

If you dont find report map that suits you then you can try to build your own or wait when espressif will finish common HID API for ble and USB.

osiris81
Posts: 6
Joined: Fri Sep 11, 2020 12:57 pm

Re: USB HID for ESP32-S2

Postby osiris81 » Fri Feb 26, 2021 1:26 pm

Hello,

there is still no support for USB-HID in the esp-idf, will this ever be added?

Does anyone know a working example project for USB-HID for esp-idf (not arduino)? I tried to just compile an example from the tinyusb component itself, but this does not work...

Thanks for any help!

hhuysqt
Posts: 3
Joined: Mon Nov 22, 2021 8:35 am

Re: USB HID for ESP32-S2

Postby hhuysqt » Mon Nov 22, 2021 8:42 am

Hi, the USB HID and MSC components for ESP-IDF can be found at https://github.com/iot-components/tinyusb.

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: USB HID for ESP32-S2

Postby ESP_Sprite » Mon Nov 22, 2021 8:58 am

hhuysqt wrote:
Mon Nov 22, 2021 8:42 am
Hi, the USB HID and MSC components for ESP-IDF can be found at https://github.com/iot-components/tinyusb.
Note that this is not an official Espressif repository. Espressif stuff will be under the Espressif namespace, that is, the URL starts with https://github.com/espressif/ .

Who is online

Users browsing this forum: No registered users and 198 guests