This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2652R: GapScan sending bleNoResource

Part Number: CC2652R
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

static void Gap_ScanInit(){
uint8_t temp8;
uint16_t temp16;
bStatus_t status = FAILURE;
// Register callback to process Scanner events
status = GapScan_registerCb(Gap_ScanCallback, NULL);

// Set Scanner Event Mask
status = GapScan_setEventMask(GAP_EVT_SCAN_ENABLED | GAP_EVT_SCAN_DISABLED |
GAP_EVT_ADV_REPORT);

// Set Scan PHY parameters
status = GapScan_setPhyParams(DEFAULT_SCAN_PHY, DEFAULT_SCAN_TYPE,
DEFAULT_SCAN_INTERVAL, DEFAULT_SCAN_WINDOW);

// Set Advertising report fields to keep
temp16 = ADV_RPT_FIELDS;
status = GapScan_setParam(SCAN_PARAM_RPT_FIELDS, &temp16);
// Set Scanning Primary PHY
temp8 = DEFAULT_SCAN_PHY;
status = GapScan_setParam(SCAN_PARAM_PRIM_PHYS, &temp8);
// Set LL Duplicate Filter
temp8 = SCANNER_DUPLICATE_FILTER;
status = GapScan_setParam(SCAN_PARAM_FLT_DUP, &temp8);

/* get the advertisements that are only non Connectable and extended advertising
with Complete pdu rather than no breaks in the data of Extended advertising.*/
temp16 = SCAN_FLT_PDU_NONCONNECTABLE_ONLY | SCAN_FLT_PDU_EXTENDED_ONLY |SCAN_FLT_PDU_COMPLETE_ONLY;
status = GapScan_setParam(SCAN_PARAM_FLT_PDU_TYPE, &temp16);
status = GapScan_enable((1300/1280),DEFAULT_SCAN_DURATION,0);
volatile int a= 0;
a++;
}

the above the gapScanInit function were i set the Scanning parameters as

Where Every GapScan function return the bleNoResource Error I don't know why Even i limited connection to 1,
and also when i set gapsScan_enable with period 1300 i get continuous scan enable and disable events And Scanning also working fine
but when i set it to 1000 i'm not able to get any enable or disable events and scanning not working
sdk 6.10

  • Hello Pavan,

    Thanks for reaching out. May I ask if you are using and out of the box example from the SDK and which one is it? Are you using the SysConfig values to configure the observer configurations or are the values being redefined somewhere else before being pass to Gap_ScanInit()? Please make sure that the values are properly set, for instance that the scan interval is longer than the duration (from your parameters this seems to be right if you are using the SysConfig ones you showed). Could you please share with me the status result of status = GapScan_enable((1300/1280),DEFAULT_SCAN_DURATION,0); vs status = GapScan_enable((1000/1280),DEFAULT_SCAN_DURATION,0);?

    BR,


    David.

  • used the multiRole Scanning part of code and copied to my dmm project which contains both zigbee and ble. only using sysconfig values.status returned is 21(0x15) i went through some parth of code it seems bleNoResource error

  • Hello Pavan,

    Thanks for the reply. Could you please confirm if this issue happens also using the out of the box example without additional zigbee files/functionalities? I would like to understand if the issue is reproducible with our examples so that we can have a better reference to debug it if needed.

    BR,

    David.

  • I have tested the multi_role example in ble it's work fine Every function return success. 
    I think an issue with the dmm 


    The image above is the dmm property in syscnfg , I think issue with it , is there any example with zigbee and ble (peripheral + observer) in dmm so That i can update my code.? 

  • Hello Pavan,

    Understood. I will share this with a Zigbee expert to help us here with some insight. Please bear with us.

    BR,

    David.

  • Hello Pavan,

    If you have not already, we have a good DMM guide within the SDK TI DMM User's Guide.

    We have a similar e2e (this one with Thread + dmm instead of ZigBee) and the answer is that currently we do not have any available official examples, so the best process is to reference our SLAs/SDK on the integration:

    https://e2e.ti.com/f/1/t/1322357/

    Thanks,
    Alex F