Skip to content

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

Description

@Bob2345de

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions