This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF51422 HID example modification

Hello

I'm using nRF51422 with S310 softdevice. I've been testing HID example (keyboard) for a while. What I'm trying to do is to send as much as possible bytes at once in a single report. I do like this:

uint8_t ucData[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";

ble_hids_inp_rep_send(&m_hids,
                                 INPUT_REPORT_KEYS_INDEX,
                                 INPUT_REPORT_KEYS_MAX_LEN,
                                 ucData);

All works well until INPUT_REPORT_KEYS_MAX_LEN is not more than 8, otherwise it does not work. So 8 bytes is the maximum for now.

My question is: what is the max number of bytes that can be sent at a time and how to do that? And, of course, the same question applies for receiving side.

I have a feeling that report_map_data[] descriptor should be modified, but I don't know how to do that and also I can't find any documentation on this. Forget mouse, forget keyboard, I would like to make HID as generic as possible.

Regards

Parents Reply Children
No Data
Related