Tool/software:
Hi,
I'm connecting CC2340R5 central device to CC2340R5 peripheral device. In central device after scanning device will connect to dedicated peripheral device. Where sometimes link establishment and link termination is occurring in central device. But link establishment will not occurs in peripheral device. When checking the reason of the link termination in central device we are getting #define LL_STATUS_ERROR_CONN_FAILED_TO_BE_ESTABLISHED 0x3E // Connection Failed To Be Established.
When I tried to modify the Connection Interval Min and Connection Interval Max , scanning is not occurring. Here is the scanning parameters.
void scanStartCB()
{
UART2_write(uart, "\nscanStartCB", 12, 0);
bStatus_t status;
const BLEAppUtil_ScanStart_t centralScanStartParams =
{
/*! Zero for continuously scanning */
.scanPeriod = 1, /* Units of 1.28sec */
/*! Scan Duration shall be greater than to scan interval,*/
/*! Zero continuously scanning. */
.scanDuration = 100, /* Units of 10ms */
/*! If non-zero, the list of advertising reports will be */
/*! generated and come with @ref GAP_EVT_SCAN_DISABLED. */
.maxNumReport = APP_MAX_NUM_OF_ADV_REPORTS
};
}
}
I have tried modifying the connection parameters on both central and peripheral device and can you suggest connection parameters to update.
May I know why this condition occurs and how we can overcome this issue.
Thanks,
Vignesh.