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

Sending multiple data packets continuously on UART service

Hello,

I am testing the ble_peripheral example of ble_app_uart (SDK 12, soft device 130), this has been asked at a lot of places that the MTU is limited to 20. But then I implemented my own code snippet to send data into fragments. these are posts I was following:

devzone.nordicsemi.com/.../

devzone.nordicsemi.com/.../

I included the BLE_EVT_TX_COMPLETE in on_ble_evt(), but it never hits there, and If I try to send larger size stream, my module resets.

I want to know:

  1. Are there any other alternatives to send bytes greater than 20 on BLE UART interface, and can you give me hints on how to go about it?

Since I am new to this NRF51 SDK, I am yet to figure out following things:

  1. How to get the error number from APP_ERROR_CHECK
  2. How to set breakpoints and debug, without a heavy IDE, (I am using atom for development and compiling with the cross- compiler)

So if you want me to debug specific error codes, kindly help me out with a simple debug method. currently I am using printf which also prints on UART, but I dont feel it is reliable to bebug the issues in BLE UART with logging on UART.

Kindly help out asap

Related