10 Replies Latest reply on May 31, 2019 3:11 AM by shdhc_2578096

    Unauthenticated pairing issue

    shdhc_2578096

      Hi,

       

      I am setting BLE device as a GAP peripheral and trying to pair with Cysmart app.

      Pairing is not working.

      security setting are : mode 1 | unauthenticated pairing with encryption.

      I/O Capabilities  - none

      bonding requirement -Bonding

      Encryption key size - 7 bytes.

       

      call back generating following event -

      case CYBLE_EVT_STACK_ON: CyBle_GappStartAdvertisement(CYBLE_ADVERTISING_FAST);

      case CYBLE_EVT_GAPP_ADVERTISEMENT_START_STOP:

       

      following event are generating when start pairing process from cysmart app :

      case CYBLE_EVT_GATT_CONNECT_IND:

      case CYBLE_EVT_GAP_DEVICE_CONNECTED:

      case CYBLE_EVT_GAP_SMP_NEGOTIATED_AUTH_INFO:

      case CYBLE_EVT_GAP_AUTH_REQ: res = CyBle_GappAuthReqReply(cyBle_connHandle.bdHandle, &cyBle_authInfo);   - error - CYBLE_ERROR_INVALID_OPERATION

      case CYBLE_EVT_GAP_AUTH_FAILED:  error - CYBLE_GAP_AUTH_ERROR_LINK_DISCONNECTED ;

      case CYBLE_EVT_GATT_DISCONNECT_IND;

       

      why CyBle_GappAuthReqReply() is invalid operation?