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

Why BLE disconnection occurs while sending large data?

Hi,

I am testing with ble_app_uart code for handling UART data. If the data is more the device is getting disconnected from the central device. I am thinking that, BLE device is getting reset when the data is more. I thought that due to excess of data there won't be a reset so I can implement logic for sending data only when device is connected. But from the observation I came to know that excess data tends to reset the nordic(nRF52 board). So data handling with the help of buffer also is not helpful in sending the data. Because buffer is cleared when the board is getting reset.

I want a solution to handle this problem, it should prevent the board reset by handling data. or after ble disconnection also data should be present in the buffer so that I can send the data without any loss.

I was keep on trying to fix this but I couldn't found the solution.

Please suggest me to do this...

Parents Reply
  • Hi Mani

    The problem seems to be that you some times have a very high rate of UART activity, followed by periods of less activity.
    The only way I can see to properly solve this issue is to have a huge UART buffer on the transmitter side (that would be the RX buffer of the UART, since you are receiving over the UART and transmitting over the radio).
    Could you try to set the UART RX buffer to something like 16000 bytes and see if it solves the issue?
    The nRF52832 has 64kB of RAM in total, and most of that should be available to the application, so you might try to go all the way up to 32kB of RAM for the UART.

    Best regards

Children
No Data
Related