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

Proximity connection unstable with Android App

Hi All,

We tried to modify the Android source core of nRFTools for our Proximity application . And we used some nRF52832 and nRF52840 as the proximity device.

1) We connected devices ( proximity an Android phone). The connection seems unstable such as will disconnect sometime.

2) We modified the connect parameter on the Android side such as shouldAutoConnect() to true. The connection seems more stable, but it will also disconnect and re-connect sometime.

Best Regards,

Dragon

Parents
  • Hi, 

    1. What Softdevice version are you using?
    2. What phone are you using and what OS does it run?
    3. Can you provide some sniffer traces? You can use a development kit and our sniffer solution if you don't have professional equipment.
    4. Could you provide the logs on both sides?
    5. What is the disconnected reason in the debug log? You could add the code in the case BSP_EVENT_DISCONNECT. 
              case BLE_GAP_EVT_DISCONNECTED:
                  NRF_LOG_INFO("Disconnected, reason %d.",
                                p_ble_evt->evt.gap_evt.params.disconnected.reason);
                  m_conn_handle = BLE_CONN_HANDLE_INVALID;
                  break;

    -Amanda H.

  • hi Amanda H.

    Thanks for your reply!

    1) For the nrf52832.  We are using the example from  nRF5_sdk_16.0.0_98a08e2 , the Softdevice should be s132_nrf52_7.0.1.

    2) The Phone is sony xperia xz premium (sony GB142) and android 9 .

    3 and 4 we will try later.

    5.) the Log show reason is 8.

    Dragon Lai

Reply Children
Related