ESP32_USB_Host_HID icon indicating copy to clipboard operation
ESP32_USB_Host_HID copied to clipboard

5 byte Generic (Joystick) input report data fragmented into 3 reports

Open Bob2345de opened this issue 8 months ago • 0 comments

Testing hid_host_joystick.ino with a USB button box with 32 buttons, the incoming 5btye (generic report (6byte with header see HID Explorer data below) seems to be read as separate reports of 2, 2,and 1 btye (ie loops 3 times for each input report from the device). Button presses are being registered properly in the appropriate byte (1-5).

Any idea why this would be happening, and how to retrieve the data in a single event data array? Thanks.

PIO Terminal Output: Generic 0000| 0000| 00| 0000| 0000| 00|

HID Explorer Output: (https://nondebug.github.io/webhid-explorer/) Connect ButtonBOX

Input report 00 00 00 00 00 00 productName: ButtonBOX vendorId: 0x0483 (1155) STMicroelectronics productId: 0x567 opened: true collections[0] Usage: 0001:0004 (Generic Desktop > Joystick) Input reports: 0x00 Input report 0x00 40 values * 1 bit (bits 0 to 39) Data,Var,Abs Usages: 0009:0001 (Button Button 1) to 0009:0028 (Button Button 40) Logical bounds: 0 to 0

Bob2345de avatar Feb 12 '25 14:02 Bob2345de