HidD_GetProductString with BLE HID device

CH, Lee 1 Reputation point
2021-05-19T13:22:45.147+00:00

I am developing a custom BLE HID device, it can successfully connect to my Windows 10 laptop.
However when I check the existing HID device's product name with python library pyhidapi
It returns an empty string.
By checking the source code of pyhidapi and hidapi,
I found that they use the function HidD_GetProductString to get the product string of the hid device.
So I would like to ask that if this is a valid function to get the product string of the BLE HID device?
And is the product string means the advertised device name from the BLE HID device?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,654 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,625 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rahul Ramadas 6 Reputation points Microsoft Employee
    2021-05-20T16:01:21.207+00:00

    This is currently not supported by the HID stack for BLE. The alternative is to use the Bluetooth LE APIs to query the information you need directly from DIS (Device Information Service), which is required to be supported by all HID-over-GATT BLE devices.

    Windows.Devices.Bluetooth


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.