This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE HID FEATURE

hi,

   I use the SDK16.0 ,to develop BLE touchpad on nRF52833,which is should set non-zero value for feature reports .And now,i have a problem,how to implement the FEATURE report.The BLE keyboard demo has no process to handle" FEATURE".The following  image,i should add the process to handle FEATURE in the case BLE_HIDS_EVT_REPORT_READ? I add the ble_hids_feat_rep_set() (https://gist.github.com/kapi-no/ce902e1aed6aac57eae2c6a3eabf7b58)in ble_hids.c.And i call the ble_hids_feat_rep_set() in the on_hid_rep_char_write(p_evt) ,but Using sniffer to capture setup value  in Wireshark,geting also zero value.Please tell me how to do? would you have a complete BLE HID demo about how to set non-zero value for feature reports?

Kind regards!

Parents
  • Hello,

    I am sorry, but the HID protocol is a bit complex, and I am not sure I understand what you mean. What did you try to add when you got the zero value for feature reports? Shouldn't you call something similar to send_key_scan_press_release() if you want to imitate a touchpad? 

    Did you try to add ble_hids_feat_rep_set()? What does it return?

    Remember that the github that you link to is not made by us, so I am not familiar with it. 

    BR,

    Edvin

  • Hello,

    Can you give me a demo about the BLE HID Touchpad?And i believe i can know the PC enumerates whole  process of the BLE HID Touchpad .

      Best regards!

  • Hello,

    Sorry, we don't have any examples/demos displaying a HID Touchpad. We do have an example using a mouse. Have you compared this to the ble_app_hids_keyboard example? You need to find out how to initialize and send the HID reports for a touchpad. I didn't really find much information on touch pads in the USB HID usage tables documentation. The BLE is only a layer on top of this carrying the HID tables from the nRF to the computer. 

    Perhaps the ble_app_hids_mouse example is a better place to start. It already shows how to move the mouse and click.

    BR,

    Edvin

Reply
  • Hello,

    Sorry, we don't have any examples/demos displaying a HID Touchpad. We do have an example using a mouse. Have you compared this to the ble_app_hids_keyboard example? You need to find out how to initialize and send the HID reports for a touchpad. I didn't really find much information on touch pads in the USB HID usage tables documentation. The BLE is only a layer on top of this carrying the HID tables from the nRF to the computer. 

    Perhaps the ble_app_hids_mouse example is a better place to start. It already shows how to move the mouse and click.

    BR,

    Edvin

Children
Related