-
-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to pass correct hid device name #703
Comments
https://www.bluetooth.com/specifications/specs/human-interface-device-profile-1-1-1/ |
Same question here.
I read somewhere else that Windows takes the controller name from that attribute in the advertisment. To my opinion, we need better API documentation. |
I'm not sure how windows recognizes the device name and as far as HID support is concerned I don't know much about it, the code for it is community supplied. There are 2 ways to set the name via BLE:
While this is true for any repo it's not easy to maintain and I welcome with open arms any contributions. I'm not sure what documentation is missing for this use case, can you elaborate? Here is the way most of this HID stuff works, USB or Bluetooth, there is a VID and PID value, Windows probably looks at those first, compares to the table of registered devices and derives the name from the registry, ignoring any other data from the BLE device, this is only my guess. If I am correct in my suspicion, and windows ignores the values I have described how to set above, then there is nothing you can do unless you want to spend $$$$ to register your VID/PID to have it recognized by windows. |
There is no issue with the device name. It is correctly set by NimBLE and correctly recognized by Windows.
I did some tests.
This question has been answered by a Microsot's employee here: "The product string returned will be the value of the SDP attribute called "Service Name" in table 5.3 (section 5.3.3) of the I took a look to that section, which is available here: |
Thanks, that makes sense. I don't know much about the HID stuff, never had to work with it. I'd suggest looking at how all the other attributes are added and see if you can add this one and the same manner. |
My mistake. This applies to Bluetooth classic only, not BLE. However, I found a proper workaround, which is described here. |
Thanks for the update, confirms my suspicions that windows gets the name from the Bluetooth registry using the VID/PID which isn't home gamer friendly obviously. |
Im having the same Problem, dose this mean its not possible? or can someone make some sort of guide :3? |
@Volanaro The only way that we know of at this time is to manually change the name in the Windows registry as there is no provision in the BLE HID spec to provide the product name. |
ahh okay thanks!, wonding if it would be possible to spoof the bluetooth as usb... dout it.. that would be another problem initself lol |
An excerpt from the link above: Why all this mess?Believe it or not, the HID specification does not include a "display name".
In fact, you can. You may assign the same VID/PID found in a USB device to a BLE device because VID/PID does not play a role in the loading of the drivers for a BLE device. However, never do the opposite. |
Device does not show up with the ble name given instead windows generates a name.
The text was updated successfully, but these errors were encountered: