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

Android application development

Hi,

We are developing an android application using nRF51422 to connect the BLE device, discovering characteristics and sending commands to the device. Here we are facing following difficulties.

1. Sometimes the nordic board is refusing to connect with the android phone.

2.  While testing with the application board is getting disconnected most often.

3. Sometimes the device gets reset and causing disconnection.

So we are looking for solutions for connection stability.

Thank you.

Parents Reply
  • In the log report7.pcapng, we see the master/phone sends an LL_TERMINATE_IND packet. It’s not clear from the log why the master terminates the connection. If you use nRF-Connect for mobile app, the log there might reveal more information about why the phone disconnected.

    In report13.pcapng, it seems like the slave suddenly stopped responding. This could happen if e.g. the device lost power, or if there was an assert in the code. You will likely need to do some debugging to find the root cause here. If you enable logging in the code, then nrf_log outputted over UART or Segger RTT, could provide you with some clues about what happened.

Children
Related