You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
I have searched the issue tracker for a similar issue and not found a similar issue.
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_PLAY_PAUSE 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_AC_HOME 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:
I am sending the keycode in true,
Then I wait small period of time to simulate the keypress
Then I sent the keycode in false to release the key
I have tried all the codes from 0x00 to 0xFF in both HID and HID Consumer codes and none of them are doing what is expected. I did it to discard that maybe there is another code expected.
I have tried adding the 0x09, 0xCD, // Usage (Play/Pause)to the descriptor hid_device_le_prf.c file
Also I noticed that the case to build the buffer when calling the function: hid_consumer_build_report has all the cases exept for the commands that I was looking for, so I have tried adding the case like:
case HID_CONSUMER_PLAY_PAUSE:
HID_CC_RPT_SET_BUTTON(buffer, HID_CONSUMER_PLAY_PAUSE);
break;
but none of the above solutions are working as what I was expecting.
Any help or advice is really apreciated
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Some of the HID consumer codes are not working as expected using the ble_hid_device_demo example (PlayPause(0xCD) AC Home (0xDF))
Some of the HID consumer codes are not working as expected using the ble_hid_device_demo example (PlayPause(0xCD) AC Home (0xDF)) (IDFGH-13227)
Jul 10, 2024
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_PLAY_PAUSE 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_AC_HOME 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_le_prf.c filebut none of the above solutions are working as what I was expecting.
Any help or advice is really apreciated
The text was updated successfully, but these errors were encountered: