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

Proximity application is not working in android smart phone

Hi, How can i test the proximity application with the use of nexus4 smart phone and nrf51822 evaluation board? We already tested the ios proximity application which are all working fine. When we try to test the android application we are facing lot of problem's. For ios we have three application's to test 1.nRF Toolbox, 2. nRF Utility, 3. nRF proximity, but for android 4.3 we have only one application nRF Toolbox, that is also not working. It gives error like, error on connection state change and error on discovering sevices. Is there any other proximity application we can get with the source code?

Regards, Balaji.

Parents
  • Hi Balaji,

    If you have a Nexus 4 or Nexus 7 device, it's most likely the issue with the GATT Server. If the server exist , the phone will not be able to reconnect after link loss. We don't know what caused the issue, it's pretty much similar to the issue we got before with bonding/pairing. The phone didn't send any connection request after link loss even when the device is advertising in range.

    Hopefully a new update on Android would help.

Reply
  • Hi Balaji,

    If you have a Nexus 4 or Nexus 7 device, it's most likely the issue with the GATT Server. If the server exist , the phone will not be able to reconnect after link loss. We don't know what caused the issue, it's pretty much similar to the issue we got before with bonding/pairing. The phone didn't send any connection request after link loss even when the device is advertising in range.

    Hopefully a new update on Android would help.

Children
  • I tried to avoid pairing after modifying the device code by changing the security requirements (BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM to BLE_GAP_CONN_SEC_MODE_SET_OPEN)it was working fine(no pairing) and tested the proximity application . Then i paired the device manually from the Bluetooth settings, again tested the proximity application. Now even i unpair the device manually from the nexus 4, it starts pairing automatically when the device comes in the range. How to stop auto pairing, after i unpair the device manually? cannot able understand what is happening. I just need to avoid pairing always.

  • @Balaji: Did you make sure you didn't have any other app running when testing ? An app with autoConnect flag set on will try to reconnect if the link is lost.

    My test on Nexus 7 Android 4.4.2 did not show the same behaviour. The device wasn't not connected automatically even it's in the paired list.

Related