1

I want to develop an Android BLE Peripheral (GATT Server) which works as a virtual Heart Rate Monitor. My major requirement is, Any Android/iOS Central application connecting with this Android BLE Peripheral, should perform secure PIN based bonding (Android Peripheral Application should generate a PIN & Android/iOS Central app must enter that PIN to connect). How do i implement this on Android Peripheral side?

  • Does this answer your question: https://stackoverflow.com/questions/40653579/android-ble-peripheral-with-pin-pairing/42760006 – Michael Kotzjan Feb 04 '21 at 12:20
  • @M.Kotzjan No, Question is similiar, but answer is not available – Chintan Prajapati Feb 04 '21 at 12:23
  • What exactly is your question then? As the other answer said you need to pair the devices which happens if your central tries to read a protected characteristic. You need to work with https://developer.android.com/reference/android/bluetooth/BluetoothGattServer to create an android peripheral – Michael Kotzjan Feb 04 '21 at 12:28
  • Threre are multiple authentication stratergy like PAIRING_VARIANT_PIN = "The user will be prompted to enter a pin or an app will enter a pin for user", PAIRING_VARIANT_PASSKEY_CONFIRMATION = "The user will be prompted to confirm the passkey displayed on the screen or an app will confirm the passkey for the user", etc. But i want to enforce "PAIRING_VARIANT_PIN" from Peripheral side – Chintan Prajapati Feb 04 '21 at 13:01
  • I'll delete my answer since it is incorrect. You might get another answer that way – Michael Kotzjan Feb 05 '21 at 05:47

0 Answers0