您好,
uINT32_t密钥= 0;//密钥"0万"
UINT8_t pairMode = GAPBOND_Pair_MODE_Initiate;
UINT8_t MITM =真;
UINT8_t ioCap = GAPBOND_IO_CAP_DISPLAY_ONY;
UINT8_t绑定=真;
GAPBondMgr_SetParameter(GAPBOND_DEFAULT_Passcode,sizeof(UINT32_t),
密钥(&P));
GAPBondMgr_SetParameter (GAPBOND_Pair_mode,sizeof(uint8_t),&pairMode);
GAPBondMgr_SetParameter (GAPBOND_MITM_protection,sizeof(uint8_t),&MItm);
GAPBondMgr_SetParameter (GAPBOND_IO_Capabilities,sizeof(uint8_t),&ioCap);
GAPBondMgr_SetParameter (GAPBOND_Bonding_enabled,sizeof (uint8_t),&Bonding);
这是BLE堆栈2.2 中的simpleBleperipheral示例代码。1并刷新到cc2.264万 EM中,并通过iphone 6S NRF App.连接中央设备,询问配对确认密钥。输入密钥后,配对将成功。
但在堆栈CC2640R2 1.00 .00.22 中具有相同配置的相同simpleBleperipheral,并闪存至CC2640R2芯片组并通过同一中央设备连接。
但它没有通知用户输入配对密钥,绑定失败。
请提供您的反馈。
我们是否缺少任何配置?
谢谢。
-Thangaraj