

Keywe lost bluetooth pairing code#
If the responding device’s calculated Mconfirm value does not match the received Mconfirm value from the initiating device then the pairing process will be aborted and the responding device will send the Pairing Failed command with reason code “Confirm Value Failed.”.The responding device verifies the Mconfirm value by repeating the calculation the initiating device performed using the Mrand value received. When the initiating device receives Sconfirm it transmits Mrand to the responding device. When the responding device receives Mconfirm it transmits Sconfirm to the initiating device. When Mconfirm and Sconfirm are ready, the initiating device transmits Mconfirm to the responding device. Mrand for Mconfirm or Srand for Sconfirm calculation.The detail for this function can be found here: Bluetooth Core Spec V4.2, Vol.3, Part H, Section 2.2.3.įor c1 function, the input parameters include:

Mconfirm and Sconfirm is 128-bit confirm value which can be calculated using the confirm value generation function c1. When the TK value is ready, the initiating and responding device generate a 128-bit random number: Mrand for the initiating device, Srand for the responding device.
