Skip to main content

DA14531 BLE data rate

1 month ago

DA14531 BLE data rate

Posted byMathieuB10分 1 reply
0 upvotes

Dear all,

I am wondering what is the highest data rate you managed to achieve with a DA14531 using Bluetooth communication.

It seems I can't go higher than ~2kBytes/s:

——我using the template code from 6.0.14.1114,

——我using the USB dev kit,

- I have tried with the complete template or only keeping 1 service with 1 characteristic (the "ADC_val_1"), it doesn't change anything

- If I set "string_len" lower than 200, it works well; but if I set it to a higher value (e.g. 250), the connection with the chip only last a few seconds.

Here is the code used for the test:

uint16_t string_len = 250; uint8_t dataToSend[400]; //unsigned int j = 0; void scheduler(void); void user_on_connection(uint8_t connection_idx, struct gapc_connection_req_ind const *param) { default_app_on_connection(connection_idx, param); app_easy_timer(10, scheduler); } void user_on_disconnect( struct gapc_disconnect_ind const *param ) { default_app_on_disconnect(param); } void scheduler(void){ /*for (unsigned int i = 0; i < string_len; i++) { dataToSend[i] = j*string_len+i; }*/ struct custs1_val_ntf_ind_req* req = KE_MSG_ALLOC_DYN(CUSTS1_VAL_NTF_REQ, prf_get_task_from_id(TASK_ID_CUSTS1), TASK_APP, custs1_val_ntf_ind_req, string_len); req->conidx = 0; req->notification = true; req->handle = SVC1_IDX_ADC_VAL_1_VAL; req->length = string_len; memcpy(req->value, dataToSend, string_len); ke_msg_send(req); app_easy_timer(10, scheduler); //j++; }

Would you have any idea or advices on how to achieve a higher transmission rate?

提前谢谢!

1 month ago

PM_Dialog

Hi MathieuB,

Please checkout theDA14585-DA14531 Dynamic DLE and L2CAP Packet size OptimizationSW Example. It demonstrates how to request DLE and utilize larger packets to enhance throughput and provides throughput too. You can use the DLE (Data Length Extension) to improve the throughput.

You can also take a look at the DSPS Example of the SDK where transfer rate is up to 580kpbs for the DA14585 /DA14531 !

//www.xmece.com/products/dialog-serial-port-service-dsps#tab-field_tab_content_resources

In section 11 inUM-B-088: DA145x User Manual for Dialog Serial Port Serviceyou will find the DSPS measurements.

Thanks, PM_Dialog