This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

What happens if central sends too much data

Hi,

In our use case we act as a peripheral and a phone is connected. We transmit lots of data using a protocol on top of the Nordic UART Service. All data is sent using notification from the peripheral and write command from the central for maximum throughput and we keep track of the remaining TX buffers on both sides to avoid dropping packets.

But sometimes the processing of incoming data takes some time... Does the softdevice have any handling of when the incoming write commands happen faster than the app can read them? Is it different if we use the scheduler or not?

Regards

  • Hi Jimmie

    As long as you stop processing the events from the SoftDevice the SoftDevice will stop acking new packets, and the data communication will be delayed. 

    The easiest way to do this when using the standard SoftDevice handler is to run an interrupt at priority 2 or 3, which will delay the SoftDevice event handler until the interrupt is completed. 

    Best regards
    Torbjørn

Related