Skip to content

Sending Hid Messages gives strange result #148

@K372470

Description

@K372470

Good day

Im trying to make a controller for my device(NUX-MG30) and I need to send {12,192,4,88} to the usb interface of this device:

#include "hidgeneric.h"
#if CFG_TUD_HID
HIDgeneric dev;
const uint8_t buffer[4]={12,192,4,88};

void setup()
{
    Serial.begin(115200);
    dev.begin();
}

void loop()
{
    delay(1000);
    dev.write(buffer, sizeof(buffer));
}

#endif

This is a bit changed version of hid_generic.ino

Problem

It works and sends data, BUT USB Analyzer by Eltima Software says im sending {1,12,192,4,88} => arduino adds '1' byte at the start of my message
Is there anything I can do with it?

My settings

Plate: Esp32s3 dev module
USB-MODE: USB-OTG (TinyUsb)
CDC-ON-BOOT: True
JTAG: Disabled

End

Thanks to everyone who took a look at my problem

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