This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Max Attribute Length

Other Parts Discussed in Thread: CC2540

Hi, I am new to CC2540. According to Bluetooth LE spec, I understand that attribute/characteristic length could be max 512 bytes. But it seems that TI CC2540 cannot send more than 22 bytes at a time. While my initiator iPhone 4S is receiving only 20 bytes at a time. My questions are:

*) TI CC2540 cannot send more than 22 bytes in a single BLE packet, right?

*) Does iPhone CoreBluetooth API support more than 20 bytes in a packet? If so then how?

  • Hi Ahmad,

    The GATT spec allows for a maximum attribute length of 512 bytes. That is not related to how much can be sent over the air in one packet.

    The maximum amount of application data that can be sent in one BLE Packet is 20 Byte, due to L2CAP limitation. This is the Core spec applying for all BLE implementations, including iOS Core Bluetooth.

    Best Regards.

  • Joakim,

    I have recently ran into the same type of issue and noticed the maximum amount of application data that can be sent in one BLE Packet is 20 Byte.

    How did you come to understand that

    Joakim Lindh said:
    This is the Core spec applying for all BLE implementations, including iOS Core Bluetooth.

    Is there any documentation where I could find this and use a reference??