HID report map data size limit?

Hi guys. May I ask some questions for ble_app_hids_keyboard_pca10056_s113 project from 17.1.0 nRF5 SDK:

Sadly a similar ticket was there but there were no clear answer:  Is there a limit to HID report map data?

My setup is NRF52840-QIAA with s113, 3 BLE services (DIS, BAS, HID similar to the original keyboard example).

Thanks to HID keyboard + Mouse combo answers  BLE HID Mouse and BLE HID keyboard integration in the same program with nrf52 dk. Need urgent help

I also tested this and the report map data was added successfully.

So now I'm trying to add consumer control as well.

https://github.com/Rallare/nrf51_ble_app_hids_kbd_consumercontrol/blob/eb9253685fe097f9b0c88212bb51c5e5ff3f7e08/main.c#L220

May I ask what's the size limit of report_map_data[] array? Will this be 251, similar to LE data length extension feature?

Or can this size be indefinite depending on how many BLE services and characteristics are supported?

Parents Reply
  • Thank you Kenneth. Although this report_map_data[] array size of 266 > 255 is working,

    let me use the nRF sniffer v4.1.1 to verify the MTU fragmentation. Back to my questions,

    first of all, what's the max MTU size I can use while using NRF52840-QIAA with s113?

    This should be 512 bytes, right?

    [1] can I set the ATT_MTU size higher, like 510 so that I can set the report_map_data[] array size to 500?

    So this means the max report_map_data[] array size is 509 for Bluetooth 5, right?

    [2] Have two HID services?

    HID service 1 has keyboard

    HID service 2 has mouse + consumer control

    If the report_map_data[] size exceeds 509, I should split this into several HID services, right?

Children
Related