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

Slow master DFU implementation over BLE

Hello,

I am looking for some tips to speed up a DFU transfer.

I have 2 BLE, I implemented a DFU master in the first one using SDK11.

Transfer duration is about 3mn30s (.bin is 180ko), too long compared to Nordic mobile App DFU (less than one minute).

For writing to DFU Packet characteristic, (WriteWithoutResponse required), I use the following :
            msg->req.write_req.gattc_params.write_op = BLE_GATT_OP_WRITE_CMD;

Then, I send next byte using BLE_EVT_TX_COMPLETE event in my custom_service_on_ble_evt(ble_ows_c_t * p_ble_ows_c, const ble_evt_t * p_ble_evt) function.

Do you know why the transfer is slow ?

Thank you

Best regards

Related