WICG / webhid

Web API for accessing Human Interface Devices (HID)
Other
140 stars 35 forks source link

Unknown Device #112

Open aroberts9 opened 1 year ago

aroberts9 commented 1 year ago

WebHID works fine when connecting a device over USB. Using Bluetooth over HID also works as expected. The only issue with HID over Bluetooth (from what I've seen) is that the device comes up as

"Unknown Device (VID:PID)"

It would be nice to have the name of the device or even the Bluetooth name if possible.

nondebug commented 1 year ago

Are you on Windows?

Do you know if your Bluetooth device is Bluetooth LE or Bluetooth Classic?

On Windows, Chromium's WebHID implementation uses HidD_GetProductString to fetch the product name, which isn't supported by the HID stack for BLE. Chromium would need to fetch the names of BLE devices through Windows.Devices.Bluetooth.

This is a WebHID implementation bug so I've filed this in the Chromium bug repo: https://crbug.com/1455500

aroberts9 commented 1 year ago

Yes on Windows & it is BLE.

Thank you for this information. Hopefully it can be implemented soon. Not the biggest deal but it also would look nicer with the name on the device picker.