My UWP(Universal windows platform) app in Windows 10, Windows 10 tablet as master bluetooth, nrf52840(nRF5_SDK_15.3.0_59ac345) module as slave device.The PIN static-passkey is set for the device. UWP app custom pairing slave device(\Windows-universal-samples-master\Samples\DeviceEnumerationAndPairing), Here is pairing event handler(PairingRequestedHandler), This function gets some parameter information from slave bluetooth module, such as args.PairingKind.Now the problem is that the getting information(args.PairingKind) from the device is default value "ConfirmOnly", I want to change this value to "providepin" or "providepasswordcredential".Please tell me which configuration parameters in which file need to be modified in the module SDK(nRF5_SDK_15.3.0_59ac345) ?I hope you understand what I'm saying. Thanks.
Didn't I describe the problem clearly? Who can reply?
I haven't got a technical response yet
Sorry for the delayed response. I think your description is clear enough. On the nRF side, have you defined SEC_PARAM_IO_CAPABILITIES as BLE_GAP_IO_CAPS_DISPLAY_ONLY, and did you configure the static passkey with the sd_ble_opt_set() function?
// Setting a static passkey
err_code = sd_ble_opt_set(BLE_GAP_OPT_PASSKEY, &opt);
yes, I have defined SEC_PARAM_IO_CAPABILITIES as BLE_GAP_IO_CAPS_DISPLAY_ONLY, and configured the static passkey with the sd_ble_opt_set() function.
oh, should I defined SEC_PARAM_IO_CAPABILITIES as BLE_GAP_IO_CAPS_KEYBOARD_ONLY or BLE_GAP_IO_CAPS_KEYBOARD_DISPLAY to get UWP "providepin" option ?
You should set it to "BLE_GAP_IO_CAPS_DISPLAY_ONLY when using static passkey. Have you tried to see if the passkey pairing works with an iOS or Android phone?
yes, the passkey pairing works with Android phone by providing an input PIN dialog box, but didnot in win10 UWP. The UWP app cannot register PairingRequestedHandler, for the nrf52840 device do not support "providepin" option.