Hi,
i have used the latest BLE stack(CC2640R2_sdk_2_20_00_49) and tried to scan exteneded advertisement by using 2Mbps.
for this testing, i have modified a snippet code like below on a peripheral side and i have used the default firmware on central side.
but central devcie couldn't scan a exteneded advertisement yet all.
plese find the attached air sniffer log for more info.
#define GAPADV_PARAMS_AE_2MBPS_CONN { \
.eventProps = GAP_ADV_PROP_CONNECTABLE, \
.primIntMin = 160, \
.primIntMax = 160, \
.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 = GAP_ADV_TX_POWER_NO_PREFERENCE, \
.primPhy = GAP_ADV_PRIM_PHY_1_MBPS, \
.secPhy = GAP_ADV_SEC_PHY_2_MBPS, \
.sid = 0 \
}
GapAdv_params_t advParam2M = GAPADV_PARAMS_AE_2MBPS_CONN;
// Create Advertisement set #1 and assign handle
status = GapAdv_create(&SimplePeripheral_advCallback, &advParam2M,
&advHandle2MBPS);
SIMPLEPERIPHERAL_ASSERT(status == SUCCESS);
// Load advertising data for set #1 that is statically allocated by the app
status = GapAdv_loadByHandle(advHandle2MBPS, GAP_ADV_DATA_TYPE_ADV,
sizeof(adverDataSub), adverDataSub);
SIMPLEPERIPHERAL_ASSERT(status == SUCCESS);
// Load scan response data for set #1 that is statically allocated by the app
status = GapAdv_loadByHandle(advHandle2MBPS, GAP_ADV_DATA_TYPE_SCAN_RSP,
sizeof(scanRspData), scanRspData);
SIMPLEPERIPHERAL_ASSERT(status == SUCCESS);
// Set event mask for set #1
status = GapAdv_setEventMask(advHandle2MBPS,
GAP_ADV_EVT_MASK_START_AFTER_ENABLE |
GAP_ADV_EVT_MASK_END_AFTER_DISABLE |
GAP_ADV_EVT_MASK_SET_TERMINATED);
// Enable legacy advertising for set #1
status = GapAdv_enable(advHandle2MBPS, GAP_ADV_ENABLE_OPTIONS_USE_MAX , 0);
SIMPLEPERIPHERAL_ASSERT(status == SUCCESS);