Open rleython opened 4 months ago
@rleython Thanks for choosing Espressif product! May I know which chip do you use?
Thanks for your reply @weiyuhannnn , I am using the ESP32-WROOM-32D
I have the same issue.
esp_hidd_send_consumer_value(hid_conn_id, HID_CONSUMER_PLAY_PAUSE, true);
has no effect
Hello,
Please find the attached patch for instructions on sending the commands you asked for.
To send more custom commands, you need to adjust the report map in hid_device_le_prf.c
as well as the hid_dev.h
file and the hid_consumer_build_report
function.
0001-patch-add-support-for-sending-PLAY-PAUSE-and-AC-home.patch
Answers checklist.
IDF version.
V5.2.2
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
What is the expected behavior?
What I am trying to do is to emulate an STB Remote Controller that uses the BLE connection to control a STB, when I connect the original remote control to my Android Phone I can detect the commands, and I can control i.e. the youtube player; Using the BLE example now I am able to use most of the commands defined there, but for _HID_CONSUMER_PLAYPAUSE that is defined in hid_dev.h file, it is not working as expected, neither in the STB or in the Youtube player, and the same is happening with the _HID_CONSUMER_ACHOME but this last one is not defined in hid_dev.h but I guess the code is the rigth one.
Most of the commands are working as expected using the HID, and HID consumer codes, exept for codes:
#define HID_CONSUMER_PLAY_PAUSE 205 // Play/Pause
and one more code not defined but acoording to some search should be :#define HID_CONSUMER_AC_HOME 223 // AC Home
What is the actual behavior?
When I connect the BLE device to an application that identifies the keypressed, this is doing nothing, Is like the user is sending anything.
Steps to reproduce.
Basically I just modified the example to hardcode the commands:
Build or installation Logs.
No response
More Information.
0x09, 0xCD, // Usage (Play/Pause)
to the descriptor _hid_device_leprf.c filebut none of the above solutions are working as what I was expecting.
Any help or advice is really apreciated