GATT CONN TERMINATE LOCAL HOST occurs when bonding with Android

Hello.

I am developing using nrf52832 (S132 v7.0.1, SDK v17.0.0).

Since I want to bond with Android, I have created a central code that summarizes the functions that I think are necessary by referring to various sample sources.
On Android, a pairing request is displayed, but when I press connect, it becomes GATT CONN TERMINATE LOCAL HOST and I cannot bond.
Does anyone know how to deal with it?

I can't use nRF Sniffer because I don't have two boards.

Best regards.

Parents
  • Hi

    What kind of error do you see when trying to bond with your Android peripheral. Can you show me a screenshot of how you've set up the Android advertiser?

    Please also note that, by default the ble_app_uart_c example project does not support bonding, so it makes sense that you won't be able to bond an Android device to it. If you try using the ble_app_hrs_c example where SEC_PARAM_BOND is set to 1, and bonding is implemented, that should work better.

    Best regards,

    Simon

Reply
  • Hi

    What kind of error do you see when trying to bond with your Android peripheral. Can you show me a screenshot of how you've set up the Android advertiser?

    Please also note that, by default the ble_app_uart_c example project does not support bonding, so it makes sense that you won't be able to bond an Android device to it. If you try using the ble_app_hrs_c example where SEC_PARAM_BOND is set to 1, and bonding is implemented, that should work better.

    Best regards,

    Simon

Children
Related