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

Proximity profile on nRF51822 with iOS app. Failed to connect.

I've just flashed the softdevice 5.2.1 and BLE Proximity sample app to my nRF51822. I presume any previous bond state on the device should have been wiped by doing this.

If I now start the nRF Proximity iOS app and try to connect to the device, I get the following error:

Failed to connect The app couldn't connect to Nordic_Prox This usually indicates a previous bond. Go to the settings and clear it before you try again.

Which settings does this error refer to? If I go to the Bluetooth settings in iOS, the device is either not listed at all, or is flickering between two states (not connected and pairing, I think).

Parents
  • I haven't figured out how I'm able to get the device into this state, but my dev kit now flickers between two states on an interval of about a second:

    1. LEDs 0 and 6 on, all others off. Bluetooth settings on iOS device show "Not connected"
    2. LEDs 1 and 5 on, all others off. Bluetooth settings on iOS device show "Connected"

    You cannot forget the device from the iOS Bluetooth settings in this state, because you can't click on it. However, you can use the nRF Proximity app to pair with the device and it will settle into the second state. From there, you can use the trash can button in the app to forget the device and it will go back to advertising, correctly.

    How does the device get into this state? How do I avoid that in my own iOS app code?

Reply
  • I haven't figured out how I'm able to get the device into this state, but my dev kit now flickers between two states on an interval of about a second:

    1. LEDs 0 and 6 on, all others off. Bluetooth settings on iOS device show "Not connected"
    2. LEDs 1 and 5 on, all others off. Bluetooth settings on iOS device show "Connected"

    You cannot forget the device from the iOS Bluetooth settings in this state, because you can't click on it. However, you can use the nRF Proximity app to pair with the device and it will settle into the second state. From there, you can use the trash can button in the app to forget the device and it will go back to advertising, correctly.

    How does the device get into this state? How do I avoid that in my own iOS app code?

Children
No Data
Related