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

Updating MTU Size for Tx and Rx with Android BLE Client

Hello,

I am developing FW on NRF52840_DK for a BLE Peripheral as a Reader.

Reader to Mobile App Tx size is 32 bytes

Mobile App to Reader Rx size is 133 bytes.

When Mobile (GATT Client), sends read request, it reads the 32 byte data in two attempts.

While Mobile, sends data, my code is only able to read first 20 bytes !!

Looks like the MTU is set by default to works as BLE 4.0/4.1 and  ATT data is set to max 20 bytes

How can i increase MTU size so that Client Reads all 32 bytes in 1 attempt and Reader Code can read all 133 bytes in 1 attempt.

I added these Kconfig settings, but still doesnt work. I dont want to change MTU dynamically, just want to set it once during build time.

CONFIG_BT_USER_DATA_LEN_UPDATE=y
CONFIG_BT_BUF_ACL_RX_SIZE=251
CONFIG_BT_BUF_ACL_TX_SIZE=251
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
Parents Reply Children
No Data
Related