-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
[Request for insight] Android set_player_leds info? #119
Comments
yes, You can try to enable it by changing the and then try setting the correct For BLE controllers you will need to change that with something like Search in the Bluepad32 for |
Thanks @ricardoquesada, for your time, insight and understanding. I did think that function was disabled, but normally see a debug env or something. Again, apologies for my poor coding skills. I will investigate Maybe nobody has made a device that is a good reference design via BLE only? I was hoping that if the correct If you see or know of anything that is worth sharing, please let me know. |
I think you are in the right direction, but I got confused with the terminology. What you need to do, is to define an "Input report" in the "HID descriptor". I guess, just a guess, that on the gamepad then you should receive a sort of "Gatt service hid report" event. That's my guess. |
Thanks @ricardoquesada for your input, no pun intended ;-) That might have been more funny in my head. I might have abuse the terminology trying to sound like I know what I am doing, but I am just guessing. I think the // INPUT (Data,Var,Abs)
tempHidReportDescriptor[hidReportDescriptorSize++] = 0x81;
tempHidReportDescriptor[hidReportDescriptorSize++] = 0x02;
thou you may be looking at it from the Rather let me update my PoC and make a build with some tests and see where we get. Mind if I poke you further? Have not found anywhere else that has offered feedback. Thanks a ton. Two things that I don't understand or can track in the code, is how does the |
a bit late but... the "hid descriptor" is sent from the gamepad to the host. the gampead, AFAIK, has no real need for the HID Descriptor, besides reporting it to the host. I'm closing this bug. Please, reopen if you still have questions |
Thanks @ricardoquesada. Please can we keep this open? I am still interested in getting this working or outlining why it might not currently be possible, but I am hoping it is. I was trying to understand how the I am not sure what characteristic need to be defined in the HID descriptor on the client, so that Bluepad32 can find and setup LED functions. I was thinking it might be similar to how BLE keyboards do their LEDs, but I see there is an issue open about how to handle these. Might it be worth setting a sketch to help debug that? In the HID descriptor reported, is the Report ID not also noted? I remember seeing info about gamepads needing or using Report IDs other than the first one, but should be found in the HID descriptor. I was also wonder how Bluepad32 selects device category, I was initially guessing the VID:PID of client device, but have not confirmed myself, could I ask if I am right or if Bluepad32 is doing some sort of HID descriptor pattern patching or something? |
Bluepad32 parses the HID here:
yes, VID:PID are the primary values used to determine the type of device. |
I'm reopening the issue, but I don't understand what exactly is the problem and/or question. Can you describe what exactly you need from Bluepad32 ? |
Thanks @ricardoquesada I would like to add PlayerLED(s) support to ESP32-BLE-Gamepad and hopefully have Bluepad32 support this, which I was thinking might be easy and a stepping stone to rumble and possible haptic. Seeing that ESP32-BLE-Gamepad v0.6.x now has |
Is your feature request related to a problem? Please describe.
Looking for info or insight on how the android_set_player_leds is enabled? Basically looking to find out what would be needed to add to the
Gatt Descriptor
to work with bluepad32.I was thinking something like:
Been looking for an implementation that I could use or mimic so that I could add to the
ESP32-BLE-Gamepad
library, but not yet found anything that I can use, might just be a poor programming skills.I found the function
uni_hid_parser_android_set_player_leds
inuni_hid_parser_android.c
, but I can't see how it's enabled.The text was updated successfully, but these errors were encountered: