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.

Device discovery doesn't report devices

Other Parts Discussed in Thread: CC2541

I have set the GAPCENTRALROLE_MAX_SCAN_RES parameter to 0 but instead of reporting all the device advertisements, as expected, I am not receiving any reports.

Is there a known bug or work around for this? I am using version 1.4.0

  • Hi Daniel,

    I'm not sure what you mean here. The default value is 0, so you should not have to set it at all. For the issue that you don't get any advertisement report, are you sure that you;

    1. Have advertisers (verify by sniffer maybe)
    2. Have advertisers with correct format, as function simpleBLEFindSvcUuid will filter if DEFAULT_DEV_DISC_BY_SVC_UUID is set to TRUE

    Best Regards

    Joakim

  • Joakim Lindh

    1. I definitely have advertisers. If set to 10 I get advertisements and a scan with a desktop yields devices.

    2. DEFAULT_DEV_DISC_BY_SVC_UUID is set TRUE but the code using that define has been commented. This application was started with Simple BLE Central.

    -Dan

  • Hi,

    I can confirm Dan´s problem. When the GAPCENTRALROLE_MAX_SCAN_RES is set to 0 then no GAP_DEVICE_INFO_EVENTS are being fired. With the default setting of 8 for GAPCENTRALROLE_MAX_SCAN_RES, BLE devices are found and the GAP_DEVICE_INFO_EVENTS are being fired as expected.

    I tried several values for GAPCENTRALROLE_MAX_SCAN_RES (including 0 , of course) and the maximum I found working is 20. Now 20 devices is a value that could very easily be reached within 10 seconds in typical environments ! I definitely need a solution that can handle more than 20 Peripheral devices.

    Reducing the Scan time is not an option since the Peripherals in the application typically advertise at intervals of several seconds because of energy consumption reasons.

    So this is a really serious problem !

    btw. I am working with Stack Version 1.4 and cc2541.

    Any help or comments are highly appreciated.

    Thank you,
    Gregor