Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

uart module stop working while connecting.

Hi guys,

I am developing a device which uses nrf51822 and using SDK 11. My application is connecting to other device continuously and exchange information by UART 10400 baud rate. The data transfer time is about 33 ms and I use timer to repeat the process by 500 ms. This process is start when the power is ON and stop when power is OFF. While this process is going, I want to connect to device by using smart phone and send some information as well as to receive information.

I always can connect to the phone; however, after connection, in several times, the uart module is not working anymore, in the uart lines, the signals is still there. The nrf51822 still be able to send and receive uart signals in the uart lines however, uart module is not receive any byte.It only return 

APP_UART_TX_EMPT

but not return

APP_UART_DATA_READY

anymore.

Otherwise, in some good times, once the connection established and uart was still working, everything still fine while connection status. I still able to sent and received data from nrf51822.

And this is only happened after connection or bond. I still very new in this so I don't know what is the conditions for connection as well as bond? I wonder if there is any special conditions for connection and bond which interrupts this process? And what should I do in this situation.

P.s: In my application I also use Peer Manage, Scheduler, UART_FIFO and FDS.

Parents Reply Children
No Data
Related