Uno R4 Wifi HID

Product page specifies board has built in HID support via USB
When I try using HID-project, I get the following at compile

Arduino/libraries/HID-Project/src/HID-Project.h:35:2: error: #error HID Project can only be used with an USB MCU.

Do I need to manually define USBCON for cortex-m4 MCU?

HID-project is for AVR MCU
the Uno R4 WiFi doesn't have the USB connector on the main MCU, but on the esp32-S3 module which serves as programmer.

HID-project is not compatible with the Uno R4.

If you install the keyboard and mouse libraries, things should compile

Mouse libraries to send HID reports from the arduino, but is it possible to send the arduino HID reports through USB Host Shield then?

No sorry it is not.

Why not? Can't I find the HID with pid/vid and use hid_open/hid_write and then poll it from arduino side using USB.task?

You can try but I wouldn't expect you to be able to do this. Go on prove me wrong.

^^^

With mouse connected to usb host and pc through usb c, hid write returns write access denied
Without mouse connected, hid write returns incorrect function even though my report descriptor seems correct -> I think in theory it is possible to send HID if arduino is recognized as a USB host and not a USB device

I tried using serial com instead, but if CDC is enabled the arduino is not recognized as HID device on Windows. This works on my Mac though

Anyone have insight on how to resolve Windows recognizing the arduino as HID device
even if it has com port?

can you see my posts? I said the the USB connector is not connected to the main MCU

Yes but not clear on why that imposes limitations on what Im trying to do?

ESP32 acts as a serial bridge between a PC and the RA4M1 MCU. Why can't HID reports be sent to USB serial ESP_USB, passed though RA4M1_Bridge, and processed in MCU which then uses RA4M1_USB to send HID. Sure I can't use HID-project but can I not create my own HID report descriptor parser for the MCU?

because there is nothing in the esp32 that would make it communicate the bytes received over UART as USB HID. it just forwards them as USB Serial.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.