NUS Max data size

Hello,

What is the max data size for NUS?

According to BLE data throughput in the S140 document, it looks like 247 but the data was sent successfully with  NRF_SDH_BLE_GATT_MAX_MTU_SIZE 435 by using NUS and if I set more than that, it caused crashes.

Can anyone clarify it if NUS MAX MTU size is bigger than BLE spec or my code just worked luckily but I am supposed to do that?

Thank you in advance.

Parents
  • Hi eleven-x_devteam,

    247 is the maximum number of bytes that can be transmitted in an GATT write/notification in one Link Layer packet. Achieving that give you the least header/total data ratio, which gives you the best throughput.

    Higher MTU is still possible. That just means that your GATT operations get broken down into more than one Link Layer packet.

    Could you please give some more details about the kind of crashes that you encounter when setting NRF_SDH_BLE_GATT_MAX_MTU_SIZE to higher than 435?

    Hieu

Reply
  • Hi eleven-x_devteam,

    247 is the maximum number of bytes that can be transmitted in an GATT write/notification in one Link Layer packet. Achieving that give you the least header/total data ratio, which gives you the best throughput.

    Higher MTU is still possible. That just means that your GATT operations get broken down into more than one Link Layer packet.

    Could you please give some more details about the kind of crashes that you encounter when setting NRF_SDH_BLE_GATT_MAX_MTU_SIZE to higher than 435?

    Hieu

Children
No Data
Related