6 Replies Latest reply on Nov 14, 2019 1:10 PM by NazarP_56

    CY_BLE_EVT_GAP_AUTH_FAILED with reason 0x24



      I'm trying to do LE Secure connection with PSOC6 and pairing is currently failing at the DHKey check. Cysmart reports:

      [13:47:00:636] : 'Initiate Pairing' request sent

      [13:47:00:636] : 'Command Status' event received

      [13:47:00:636] :     Status: BLE_STATUS_OK

      [13:47:00:651] : 'Negotiated pairing parameters' event received

      [13:47:00:651] :     State: Pairing negotiated

      [13:47:00:651] :     Security Level: 0x03

      [13:47:00:651] :     Encryption Key Size: 16

      [13:47:00:651] :     Bonding: 0x01

      [13:47:00:651] :     Pairing properties: NONE

      [13:47:01:931] : 'Authentication Error Notification' event received

      [13:47:01:931] :     Status: AUTH_ERROR_DHKEY_CHECK_FAILED

      Error: gpm.M1118: Authentication failed. DHKey check value received from peer device does not match with the calculated value


      On the device, I get:

      CY_BLE_EVT_GAP_DEVICE_CONNECTED: 0, 7(8.75 ms), 0, a

      CYBLE_EVT_AUTH_REQ: security=0x3, bonding=0x1, ekeySize=0x10, err=0x0

      CY_BLE_EVT_GAP_SMP_NEGOTIATED_AUTH_INFO: security=0x3, bonding=0x1, ekeySize=0x10, err=0x0



      However, 0x24 doesn't look like a valid value of cy_en_ble_gap_auth_failed_reason_t. Where can I find out what this error code means and how to fix it?