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

How many Kbytes per second we can reach in ble_app_uart?

F:\nRF5_SDK_16.0.0_98a08e2\examples\ble_peripheral\ble_app_uart

I tested above example, found the speed only 3K per second. Do we have a way to increase the speed?

Parents
  • Hi,

    In main.c
    Connection interval:
    Line 94 and 95 defines the connection interval min/max

    DLE:
    Line 114 defines the packet size.
    BLE_GATT_ATT_MTU_DEFAULT is 23 bytes, but can be changed to NRF_SDH_BLE_GATT_MAX_MTU_SIZE -3 instead. 
    This I have not verified, but I will ask my colleagues if this is the correct approach.
    However, feel free to test your self in the meantime. 

    static uint16_t   m_ble_nus_max_data_len = BLE_GATT_ATT_MTU_DEFAULT - 3;           
    /**< Maximum length of data (in bytes) that can be transmitted to the peer by the Nordic UART service module. */

Reply
  • Hi,

    In main.c
    Connection interval:
    Line 94 and 95 defines the connection interval min/max

    DLE:
    Line 114 defines the packet size.
    BLE_GATT_ATT_MTU_DEFAULT is 23 bytes, but can be changed to NRF_SDH_BLE_GATT_MAX_MTU_SIZE -3 instead. 
    This I have not verified, but I will ask my colleagues if this is the correct approach.
    However, feel free to test your self in the meantime. 

    static uint16_t   m_ble_nus_max_data_len = BLE_GATT_ATT_MTU_DEFAULT - 3;           
    /**< Maximum length of data (in bytes) that can be transmitted to the peer by the Nordic UART service module. */

Children
Related