Other Parts Discussed in Thread: CC2745R10-Q1
器件型号: CC2745R10-Q1
我使用 CC2745R10-Q1 电路板作为中央器件。 电路板持续扫描并连接外设 10 秒、然后断开连接;20 秒后、再次连接 10 秒 此周期必须连续发生、但我们可以观察到、在 2 或 3 小时(时间不确定)后、它会停止生成广播报告、因此无法连接到 外设。
在以下情况下不会输入:
用例 BLEAPPUTIL_ADV_REPORT:
{
ScanStopIndicationFlag = 0;
Swaraj++;
for (int i = 0;i < 6;i++)
{
scanBuff[i]= scanMsg->pBuf->pAdvReport.addr[i];
}
IF ((scanBuff[5]== 0x28 && scanBuff[4]== 0x3C && scanBuff[3]== 0xCC && scanBuff[2]== 0xE3 && scanBuff[1]== 0xA3 && scanBuff[0]== 0xB9)
{
BLEApp Util_Connect ConnParams_t centralConnParams =
{
.peerAddrType = scanMsg->pBuf->pAdvReport.addrType、
phys = init_PHY_1M、
.timeout = 3000
};
//复制选定的地址
memcpy (centralConnParams.pPeerAddress、scanBuff、B_ADDR_LEN);
//复制选定的地址
BLEAppUtil_CONNECT (¢ralConnParams);
}
//必须释放缓冲区
BLEAppUtil_FREE(scanMsg->pBuf);
memset (scanBuff、0、sizeof (scanBuff));
休息;
}



