Other Parts Discussed in Thread: SYSCONFIG,
Hi Support,
I am facing issues in receiving data on BLE 5.0 while other device is sending beacon ( broadcasting data), I can able to receive 6 out of 10 broadcast. I have tried to change Min Max time at broadcaster and changed scan window and interval at observer side but it does not help me to achieve 100 % communication rate.
Does some help or doc available that guide me to do correct setting of parameter for proper communication in beacon ( broadcast mode)
I am using multirole sample application for testing. below is my setting for Adv parameters.
GapAdv_params_t advParams1 = {
.eventProps = GAP_ADV_PROP_CONNECTABLE,// | GAP_ADV_PROP_LEGACY | GAP_ADV_PROP_SCANNABLE,
.primIntMin = 160,//240,
.primIntMax = 176,//280,
.primChanMap = GAP_ADV_CHAN_ALL,
.peerAddrType = PEER_ADDRTYPE_PUBLIC_OR_PUBLIC_ID,
.peerAddr = { 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa },
.filterPolicy = GAP_ADV_WL_POLICY_ANY_REQ,
.txPower = 16,//GAP_ADV_TX_POWER_NO_PREFERENCE,
.primPhy = GAP_ADV_PRIM_PHY_1_MBPS,//GAP_ADV_PRIM_PHY_1_MBPS,
.secPhy = GAP_ADV_SEC_PHY_CODED_S8,//GAP_ADV_SEC_PHY_CODED_S8,
.sid = 0
};
below is my scan code
#define SCAN_PARAM_DFLT_INTERVAL 560 //800
/// Default scan window (in 625 us ticks)
#define SCAN_PARAM_DFLT_WINDOW 528 //800
void multi_role_enableScan( void )
{
uint8_t temp8;
// Setup scanning
// Register callback to process Scanner events
GapScan_registerCb(multi_role_scanCB, NULL);
// Set Scanner Event Mask
GapScan_setEventMask(GAP_EVT_SCAN_ENABLED | GAP_EVT_SCAN_DISABLED |
GAP_EVT_ADV_REPORT);
// Set Scan PHY parameters
GapScan_setPhyParams(DEFAULT_SCAN_PHY| SCAN_PRIM_PHY_CODED, SCAN_TYPE_PASSIVE,
SCAN_PARAM_DFLT_INTERVAL, SCAN_PARAM_DFLT_WINDOW);
temp8 = SCAN_FLT_DUP_ENABLE;
GapScan_setParam(SCAN_PARAM_FLT_DUP, &temp8);
}