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

How to transfer huge data over ble?

Hi,

I currently need to stream 1000 data samples over BLE, each data sample is 14 bit value, hence i'll be using a short integer but i'm confused as to how to send it over BLE,

i have looked and read many comments with similar query but all of the seem a tad confusing. I am fairly new to BLE so would appreciate any help or suggestions that you can provide.

As i understand we'll have to divide the 1000 samples into small chunks and send it but i'm not quite sure what that process entails.

I am using a nrf52832 board with sdk 16 on segger embedded studio.

Thanks  :)

Parents Reply
  • Hi  balomuller, thank you  for your reply. One more doubt i have, this is the code what you were referring to if i'm not wrong?

    memset(&hvx_params, 0, sizeof(hvx_params));

    hvx_len = len;
    hvx_data[0] = DFU_OP_RESPONSE_CODE;
    hvx_data[1] = (uint8_t)op_code;
    hvx_data[2] = (uint8_t)rsp_code;

    Here the MAX_CTRL_POINT_RESP_PARAM_LEN macro is set to 3, what is the max number that we can provide??

    is it 20??

Children
Related