Part Number: CC2745R10-Q1
I am using the CC2745R10-Q1 board as the Central. The board continuously scans and connects to the peripheral for 10 sec., then disconnects; after 20 sec, it connects again for 10 sec. This cycle must happen continuously, but we observe that after 2 or 3 hrs (time is not sure), it stops generating an advertisement report, so it is unable to connect to the peripheral.
It is not entered in the case below:
case 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))
{
BLEAppUtil_ConnectParams_t centralConnParams =
{
.peerAddrType = scanMsg->pBuf->pAdvReport.addrType,
.phys = INIT_PHY_1M,
.timeout = 3000
};
//Copy the selected address
memcpy(centralConnParams.pPeerAddress, scanBuff, B_ADDR_LEN);
// Copy the selected address
BLEAppUtil_connect(¢ralConnParams);
}
// MUST FREE THE BUFFER
BLEAppUtil_free(scanMsg->pBuf);
memset(scanBuff, 0, sizeof(scanBuff));
break;
}



