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.
HidD_GetProductString with BLE HID device
CH, Lee
1
Reputation point
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?
1 answer
Sort by: Most helpful
-
Rahul Ramadas 6 Reputation points Microsoft Employee
2021-05-20T16:01:21.207+00:00