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

Ble_app_uart stuck during the high speed uart transmission

Hi All

Now I am testing the example code \examples\ble_peripheral\ble_app_uart with Nordic nRF Connect app on smart phone. i do a limit change in function uart_event_handle, it shows  as below 

 

the code will upload 0x31 & 0x32 when it receive any message from uart.

i do the test like below:

i keep to send message to the evaluation board by UART.

in the very beginning, i set the time interval as 100ms and there is no any issue.  the  nRF Connect app can receive the message.

but after i change time interval to 10ms, the nRF Connect app only can receive two or three message from evaluation board then it will disconnect.

after i debugging the code it will show as below:

  

My question is  why the example is stuck when i change the UART sending time interval into 10ms

Parents
  • Hi,

    Are you using application_timer or nrf_delay ? Because i have problem using application_timer it will stuck and data transmisson is not complete. If I am using nrf_delay there is no problem. I sent about 244bytes  50ms x 20 times.  The receiving data is not in order. Or you can check the source code of mine doing.

    https://github.com/zawawimanja/UART_RX_TX_nRF52840

Reply
  • Hi,

    Are you using application_timer or nrf_delay ? Because i have problem using application_timer it will stuck and data transmisson is not complete. If I am using nrf_delay there is no problem. I sent about 244bytes  50ms x 20 times.  The receiving data is not in order. Or you can check the source code of mine doing.

    https://github.com/zawawimanja/UART_RX_TX_nRF52840

Children
No Data