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

Pair Device with Legacy Connection OOB preshared key, using Android NRF connect

Hi,

I am working on NRF52832-based board, with SDK 15.2.

My BLE device is protected with Legacy Connection OOB preshared key.

I would like to use Android NRF Connect app to pair with my device, filling my OOB key.

I can be in pairing mode and fill my key in NRF Connect Desktop, but not with NRF Connect app.

I don't find any button to do that. There is only a button to bond, so I have added the bonding mode in my application, but I haven't succeeded to bond also.

DO you know how I can pair with my security parameters ? If I can do it only through bonding mode, can you help me resolve my problem ?

I have already checked these others subjects, but they haven't succeeded too :

https://devzone.nordicsemi.com/f/nordic-q-a/47932/oob-works-with-mcp-but-fails-with-nrf-connect

https://devzone.nordicsemi.com/f/nordic-q-a/60196/how-to-enter-oob-key-in-nrf-connect-app

https://devzone.nordicsemi.com/f/nordic-q-a/43338/android-pairing-without-bonding---nrf-connect/172332#172332

Thanks

Parents
  • Hi

    The Android app should provide a prompt for entering the passkey/OOB key after pressing the "Bond" button in the app, but for some reason that doesn't seem to happen in this case. Our Android expert will be back in office next week so we might have to wait for them to get back to get to the bottom of this.

    In the meantime, can you try connecting and pairing in the standard Bluetooth settings on the phone in order to see if you get prompted with a passkey window that way? You can also try to set SEC_PARAM_BOND =1 in your security parameters to enable bonding and see if that makes a difference (this is somewhat of a shot in the dark though).

    It would also be great if you could export and upload the full log from Android, and if possible, take a sniffer trace so we can get a more detailed look at what exactly is going on in the connection.

    Best regards,

    Simon

  • In the meantime, can you try connecting and pairing in the standard Bluetooth settings on the phone in order to see if you get prompted with a passkey window that way? You can also try to set SEC_PARAM_BOND =1 in your security parameters to enable bonding and see if that makes a difference (this is somewhat of a shot in the dark though).

    I am not sure to understand what you mean by "standard Bluetooth settings on the phone"... Do you mean trying to connect to my device without using NRF Connect ?

    Also, when i carried out these tests, the Bonding mode was enabled, so i had these parameters : 

    sec_param.bond = true;
    sec_param.kdist_own.enc = 1;
    sec_param.kdist_own.id = 1;
    sec_param.kdist_peer.enc = 1;
    sec_param.kdist_peer.id = 1;

    It would also be great if you could export and upload the full log from Android, and if possible, take a sniffer trace so we can get a more detailed look at what exactly is going on in the connection.

    Where can I finf the full log ? About the sniffer, for now i don't have one.

Reply
  • In the meantime, can you try connecting and pairing in the standard Bluetooth settings on the phone in order to see if you get prompted with a passkey window that way? You can also try to set SEC_PARAM_BOND =1 in your security parameters to enable bonding and see if that makes a difference (this is somewhat of a shot in the dark though).

    I am not sure to understand what you mean by "standard Bluetooth settings on the phone"... Do you mean trying to connect to my device without using NRF Connect ?

    Also, when i carried out these tests, the Bonding mode was enabled, so i had these parameters : 

    sec_param.bond = true;
    sec_param.kdist_own.enc = 1;
    sec_param.kdist_own.id = 1;
    sec_param.kdist_peer.enc = 1;
    sec_param.kdist_peer.id = 1;

    It would also be great if you could export and upload the full log from Android, and if possible, take a sniffer trace so we can get a more detailed look at what exactly is going on in the connection.

    Where can I finf the full log ? About the sniffer, for now i don't have one.

Children
No Data
Related