CN / EN
CN / EN

提问

获得支持

您的项目私密技术问题如需获得一对一支持,请点击下方联系我们。

GR5525配对返回状态码0x65 GR5525

已解决

187***564

2024-04-17 14:13

在蓝牙连接的过程中,返回0x65的状态码,我这边在SDK里查不到对应的描述,想问下0x65是什么状态

0收藏

0赞成

最佳答案

zhongchengzhi

汇顶员工
2024-04-17 15:25

您好,这个错误码减去BLE_SEC_ERR_OFFSET(0x60)就是ble_sec_enc_ind_t对应的错误码

/**@brief SEC pair result.  */
typedef enum
{
    ENC_SUCCESS                     = 0x00, /**< Encrypt success. */
    ENC_FAIL_PASSKEY_ENTRY_FAIL     = 0x01, /**< The user input of passkey failed, for example, the user cancelled the operation. */
    ENC_FAIL_OOB_NOT_AVAILBL        = 0x02, /**< The OOB data is not available. */
    ENC_FAIL_AUTH_REQ               = 0x03, /**< The pairing procedure cannot be performed as authentication requirements cannot be met 
                                                 due to IO incapability of one or both devices. */                                                                                
    ENC_FAIL_CONFIRM_VAL_FAIL       = 0x04, /**< The confirm value does not match the calculated compare value. */
    ENC_FAIL_PAIRING_NOT_SUPPORT    = 0x05, /**< Pairing is not supported by the device. */
    ENC_FAIL_ENCRPT_KEY_SIZE        = 0x06, /**< The resultant encryption key size is insufficient for the security requirements of this device. */
    ENC_FAIL_COMMAND_NOT_SUPPORT    = 0x07, /**< The SMP command received is not supported on this device. */
    ENC_FAIL_UNSPECIFIED            = 0x08, /**< Pairing failed due to an unspecified reason. */
    ENC_FAIL_REPEAT_ATTEMPT         = 0x09, /**< Pairing or authentication procedure is disallowed because too little time has elapsed 
                                                 since last pairing request or security request. */
    ENC_FAIL_INVALID_PARAM          = 0x0A, /**< The Invalid Parameters error code indicates that the command length is invalid 
                                                 or that a parameter is outside of the specified range. */
    ENC_FAIL_DHKEY_CHECK_FAIL       = 0x0B, /**< Indicate to the remote device that the DHKey Check value received doesn't  match the one calculated 
                                                 by the local device. */
    ENC_FAIL_NUM_CMP_FAIL           = 0x0C, /**< Indicate that the confirm values in the numeric comparison protocol do not match. */
    ENC_FAIL_BR_EDR_IN_PROGRESS     = 0x0D, /**< Indicate that the pairing over the LE transport failed due to 
                                                 a Pairing Request sent over the BR/EDR transport in process. */
    ENC_FAIL_KEY_DRIV_GEN_NOT_ALLOW = 0x0E, /**< Indicate that the BR/EDR Link Key generated on the BR/EDR transport 
                                                 cannot be used to derive and distribute keys for the LE transport. */
    ENC_FAIL_LTK_MISSING = 0x0F,            /**< Indicate the LTK of peer devices missing. */
} ble_sec_enc_ind_t;


1条评论

0赞成

0收藏

您的评论

登录后可回答问题,请 注册

我们时刻倾听您的声音
联系销售

扫描关注公众号

打开微信,使用“扫一扫”即可关注