Skip to content

HID Remapper ecample - Abnormal HID report clarification #542

Closed

Description

@Sudrien

I don't know if is a bad device, or some weird provision of HID

I have the original version of Koolertron's 46 key macro pad. Keys can be mapped to mouse or keyboard functionality.

examples/DualRole/HID/hid_remapper/hid_remapper.ino#L144

  if (len != 8) {
    Serial.printf("report len = %u NOT 8, probably something wrong !!\r\n", len, dev_addr, instance);
    Serial.print("Report data: ");
    for (int i = 0; i < len; i++) {
      Serial.printf("%02X ", report[i]);
    }
    Serial.println();
  } else {

I tested a mapped the A key and got

report len = 18 NOT 8, probably something wrong !!
Report data: 00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 

Which is to say, it works as demonstrated if I patch it to

  if (len != 8 && len != 18 ) {

Could this or a similar report data log be added to the example?

Activity

  1. locked and limited conversation to collaborators on Aug 7, 2025
  2. converted this issue into a discussion #546 on Aug 7, 2025
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

    FeatureNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions