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

Can't send more than 20 bytes? UART example will restart?

Hi,

I'm using two nrf52 dev kits and the ble_app_uart & ble_app_uart_c examples to test a BLE link that would ideally be able to hit a 1Mbps throughput. I am, however, very much not there yet! I'm still trying to familiarize myself with BLE and all the knobs I can turn.

So far I know that I can increase the MTU size up to 247 bytes and reduce the connection intervals to their minimum setting 7.5 ms to increase throughput. This is great! Buuut when playing with these examples I'm only able to send 20 bytes at a time. If I try to send more than 20 bytes from the central, it seems to restart based off the messages below:

If I try to send say 25 bytes from the peripheral, only the first 20 bytes get sent.

I saw in other posts that I'd need to give the stack some more memory but I am new to this and don't exactly know where the stack size is set. So any advice would be greatly appreciated.  

Thanks,

Ryan

Related