Skip to content

Need an interface to modify the Vendor (manufacturer) name and Product name of a USB HID device #10273

@Ccccraz

Description

@Ccccraz

Related area

usb, usb hid

Hardware specification

ESP32S3

Is your feature request related to a problem?

As a newcomer to HID device development, I have recently been attempting to develop a custom HID project. Based on the existing functionality, I am able to complete the development of most features. However, I noticed that the Vendor name and Product name recognized in my operating system are "Espressif Systems" and "TinyUSB HID" respectively. I would like to be able to modify these two strings.

Describe the solution you'd like

  • As in esp-idf, by defining it in the following manner:
const char* hid_string_descriptor[5] = {
    // array of pointer to string descriptors
    (char[]){0x09, 0x04},  // 0: is supported language is English (0x0409)
    "TinyUSB",             // 1: Manufacturer
    "TinyUSB Device",      // 2: Product
    "123456",              // 3: Serials, should use chip ID
    "Example HID interface",  // 4: HID
};
  • Provide methods similar to the following:
void set_vendor_name(char* name, size_t size);
void set_device_name(char* name, size_t size);

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions