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

Not able to send large number of samples over BLE

Hi,

I have an ADC which is interfaced with the nrf52.

The samples from the ADC are collected every 2ms (500Hz sampling rate). I store these samples, and when the number of samples stored equals to 100, I need to send it over BLE.

I have this system working for 25samples, however when I increase the count, no transmission occurs. (No samples seem to be received)

Each sample value is around 9 bytes.

Can anyone help me with this issue.

Parents Reply Children
  • My particular application requires a process where it is interfaced with the ADC. I have a constraint that I cannot send the data simultaneously while sensing, which requires me to store it and then send.

    So overall, it works such that I sense the data, then send and again sense. This process repeats. I need to send a burst of data.

    I am using  ble_nus_data_send to send the data array

    I tried to change the BLE_GATT_ATT_MTU_DEFAULT, but am not able to get it to send greater than 25samples at a time

  • 29samples * 9bytes = 261bytes which is actually a decent large packet. 

    shr217 said:
    but am not able to get it to send greater than 25samples at a time

    This sentence doesn't make sense, there must be some kind of error code somewhere (you may be ignoring it if you are not checking return err_codes).

Related