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

Forced disconnections when i try to send 50 bytes per second on UART example

Hi everyone,

Explaning my project: an external device transmit via UART to nordik nrf52840DK device with UART peripheal firmware, this is connected to another nrf52840DK via BLE with UART central firmware.

So the peripheal is only working as bridge.

It simply works when i send less than 10 bytes per second, but when I increase the amount of data to more than 30bytes per second i get disconnexions of my peripheal when passed 20-40 seconds. 

I tink that it could be an overload of the UART or an overload of BLE, here my conn_params:

Here the error of disconnection: Disconnected: <log_strdup alloc failed> (reason 8)

Really the objective of the project is send 50-100 bytes every 100msec.

What point i need to check or reconfigure to achieve it??


Thank you,

regards.

Parents Reply
  • Okay, i debug it and the peripheal is rebooting unexpectedly on random times, don't have a patron fixed, maybe peripheal have sended 20 messages or maybe 2 before of reboot. When i send an array of data of 5 bytes to peripheal UART every second this reboot isn't happend, with more of 20 bytes start to reboot. I think the issue is due to UART data flow.

    Perhaps you did not properly handle full buffers, and that lead to a APP_ERROR_CHECK being hit

    Where and what i can do??

    Thank you, regards.

Children
Related