Skip to main content
Visitor II
October 23, 2024
Question

How can I increase the BLE send rate and the memory size of the protocol stack

  • October 23, 2024
  • 1 reply
  • 586 views

Need to send data at high sampling rate in real time, how to configure the maximum transfer rate and large protocol stack memory to support high-speed transmission。And how to calculate the current Bluetooth transfer rate

The connection interval has been configured to 7.5ms, and a single packet can transmit up to 245 bytes from HCI

BLE_CMD_MAX_PARAM_LEN = 255

typedef __PACKED_STRUCT
{
  uint16_t Conn_Handle_To_Notify;
  uint16_t Service_Handle;
  uint16_t Char_Handle;
  uint8_t Update_Type;
  uint16_t Char_Length;
  uint16_t Value_Offset;
  uint8_t Value_Length;
  uint8_t Value[BLE_CMD_MAX_PARAM_LEN - 12];
} aci_gatt_update_char_value_ext_cp0;
 

1 reply

STTwo-32
Technical Moderator
November 19, 2024

Hello @jiefeng_wang 

To achieve a maximize throughput, I suggest you take a look at this application: https://github.com/stm32-hotspot/STM32WB-BLE-Basic-DataThroughput-Server. This app will help you to understand how to make it work on the best data throughput.

Best Regards.

STTwo-32