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

NRF maximum gatt mtu size

Hi,

I am trying to develop an application which recieves data over SPI and I want to send this data over ble, I am using NUS service. I am recieving 5 bytes over SPI at a time, and SPI sampling rate is around 4 Mhz.

I am sending this data to ble buffer, till I get NRF_ERROR_RESOURCES err_code. Also when I get BLE_GATTS_EVT_HVN_TX_COMPLETE notification I push remaining data in BLE queue. I repeat this procedure.

I am able to maximum MTU size set in config file to 158.

I have used gatt_mtu_set(),data_len_ext_set,conn_evt_len_ext_set from nrf's demo project for throughput.

But when I set maximum mtu size to 251 and try to use it, nrf chip doesn't advertise and there is no ble transfer?

From different ques on nordic developer zone I came to know that max size is 247 bytes. Do we need to change something on app side for this?

Parents
  • You can have a look at the ble_app_att_mtu_throughput example, see if you see any differences. This configures for maximum throughput. What event length are you using? If the connection interval is 400 ms, the event length should also be 400 ms. 424.6 kbps is the maximum measured throughput in 1Mbps with simultaneous send Notification and receive Write command. Only sending notifications one way you can achieve 771.1 kbps.

    It also depends what you are connecting to, what kind of central device is it? You will typically only achieve the numbers above when you have our devices in both ends of the link.

Reply
  • You can have a look at the ble_app_att_mtu_throughput example, see if you see any differences. This configures for maximum throughput. What event length are you using? If the connection interval is 400 ms, the event length should also be 400 ms. 424.6 kbps is the maximum measured throughput in 1Mbps with simultaneous send Notification and receive Write command. Only sending notifications one way you can achieve 771.1 kbps.

    It also depends what you are connecting to, what kind of central device is it? You will typically only achieve the numbers above when you have our devices in both ends of the link.

Children
No Data
Related