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.

CC2340R5: What is the maximum data length to transmit for data_stream example ?

Part Number: CC2340R5
Other Parts Discussed in Thread: SYSCONFIG

Hi team,

My customer is evaluating CC2340R5. They want to know the maximum data length to transmit. Please help clarify.

  • Hi,

    When transmitting data via BLE, the maximum amount of information that can be sent in a single package is called the Maximum Transmission Unit (MTU). We have a section in our User's Guide that goes in-depth into what the MTU is and how to configure it. In short, the Bluetooth LE specification, sets the maximum MTU size to 251 bytes. Multiple packets may be sent in a single connection interval if there is time and data to send. If the customer is looking for the maximum throughput of the device, then this will depend on both the central and peripheral configuration, the data sent, the connection parameters used, and several other factors. That said Bluetooth LE 5 has an upper limit on throughput due to the protocol itself of around 1394kbps as detailed in our CC26XX Throughput Example available on GitHub.

    Best Regards,

    Jan

  • Hi Jan,

    Thank you. For data_stream exmple, the sysconfig define MAX_PDU_SIZE as 69. So, customer can enlarge this value to 255 to get more throughput. Is this correct ?

  • Hi Jerry,

    Increasing the PDU size will increase the amount of data that can be sent. They would still need to enqueue enough data to fully fill the buffer to see an increase in throughput. The linked example contains logic that does this. The example is for the CC26XX device, so there will be some code differences, but the general logic should stay the same.

    Best Regards,

    Jan

  • Hi Jan, let's assume they have enough data to fill the buffer.  Do we allow increasing PDU to 251 bytes?

  • Hi James,

    Yes, we do. Increasing the PDU size should be done in this case.

    Best Regards,

    Jan