FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

HID Interface string descriptor product · Issue #463 · node-hid/node-hid · GitHub

HID Interface string descriptor product #463

Description

I've seen a strange behavior with HID device enumeration with node-hid.

Context

  • I use iProduct string descriptor to set my product name.
  • I use HID Interface iInterface to describe HID interface with a name.

Current behavior

  • When I set the iInterface string descriptor in HID Interface descriptor, node-hid use it as product key. But the actual iProduct string descriptor is also defined.
  • Windows resolves the iProduct without issue and also resolves the HID iInterface string descriptor.

Wanted behavior

  • I think node-hid should resolve something like :
{
  "product": iProduct string descriptor,
  "hid": iInterface string descriptor,
}

Descriptors

Device Descriptor:
------------------------------
0x12      bLength
0x01      bDescriptorType
0x0200    bcdUSB
0xEF      bDeviceClass
0x02      bDeviceSubClass   
0x01      bDeviceProtocol   
0x40      bMaxPacketSize0
0x0001    idVendor
0x0002    idProduct
0x0200    bcdDevice
0x01      iManufacturer       "Me"
0x02      iProduct            "ProductName"
0x03      iSerialNumber       "1234567890"
0x01      bNumConfigurations

[...]

Interface Descriptor:
------------------------------
0x09      bLength
0x04      bDescriptorType
0x03      bInterfaceNumber
0x00      bAlternateSetting
0x02      bNumEndPoints
0x03      bInterfaceClass     (Human Interface Device Class)
0x00      bInterfaceSubClass   
0x00      bInterfaceProtocol   
0x07      iInterface          "HIDName"

[...]

String Descriptor Table
--------------------------------
Index  LANGID  String
0x00   0x0000  0x0409 
0x01   0x0409  "Me"
0x02   0x0409  "ProductName"
0x03   0x0409  "1234567890"
0x06   0x0409  "Other Interface string desc"
0x07   0x0409  "HIDName"

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL