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

Increase MTU size blinky example

Hi all,

It could be something simple, but I cant get it yet.

If I increase: NRF_BLE_GATT_MAX_MTU_SIZE from 23 to 247 on sdk_config.h attr_char_value.max_len inside my characterstic to 244 on the service file params.p_len = 244;

when I call sd_ble_gatts_hvx() I cant see nothing being pushed from my peripheral are these the correct steps to increase the MTU size and send biggers packets thought BLE? or do I have to do some extra steps?

Thanks Marco

Parents
  • Hi Hung, I checked the sd_ble_gatts_hvs() and it is returning err code 12291 when I increase the MTU size on my periphera. I also made NRF_BLE_GATT_MAX_MTU_SIZE from 23 to 247 on sdk_config.h on my central device (my peer device).

    Using a Sniffer I got the following when the sd_ble_gatts_hvx() is called my peripheral send a ATT_exchange_MTU_Req opcode 0x02 ClientRxMTU 0x00F7 to the central and the central response is ATT_exchange_MTU_Rsp Opcode 0x03 ServerRxMTU 0x0017

Reply
  • Hi Hung, I checked the sd_ble_gatts_hvs() and it is returning err code 12291 when I increase the MTU size on my periphera. I also made NRF_BLE_GATT_MAX_MTU_SIZE from 23 to 247 on sdk_config.h on my central device (my peer device).

    Using a Sniffer I got the following when the sd_ble_gatts_hvx() is called my peripheral send a ATT_exchange_MTU_Req opcode 0x02 ClientRxMTU 0x00F7 to the central and the central response is ATT_exchange_MTU_Rsp Opcode 0x03 ServerRxMTU 0x0017

Children
No Data
Related