Part Number: CC2340R5
Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hi,
We are using the CC2340R5 EVK for our development. We have used the Basic BLE project as and have configured it for central role.
When we set a longer scan duration, we notice that the advertisement reports are not being generated for each scan interval.
For example, Scan interval is set to 1000ms, scan window is 500ms, scan period is 0 and scan duration is set to max(65535).
Using a power monitor tool we see that every 1 seconds(scan interval) the device wakes up for 500ms but we do not get the "BLEAPPUTIL_ADV_REPORT", The adv report event is received only for the first time.
I have subscribed for the event as shown below:
// Events handlers struct, contains the handlers and event masks
// of the application central role module
BLEAppUtil_EventHandler_t centralScanHandler =
{
.handlerType = BLEAPPUTIL_GAP_SCAN_TYPE,
.pEventHandler = Central_ScanEventHandler,
.eventMask = BLEAPPUTIL_SCAN_ENABLED |
BLEAPPUTIL_SCAN_DISABLED|
BLEAPPUTIL_SCAN_WND_ENDED|
BLEAPPUTIL_ADV_REPORT
};
in "Central_ScanEventHandler" we have added the BLEAPPUTIL_ADV_REPORT to the switch case as well.
Further more, we notice that the advertisement reports are only generated after restarting the scanning process.
For example, Scan interval is set to 990ms, scan window is 500ms, scan period is 0 and scan duration is set to 1000.
in the above case, after 1 second has elapsed we get a scan disabled event. After receiving the scan disabled event if we start the scan again by calling "BLEAppUtil_scanStart" we see the advertising report. In this case it is visible because the scanning has been restarted.
We wish to have a longer scan duration and receiving advertisement reports for each scan window.
Can you kindly help us resolve this?

