Tool/software: TI-RTOS
When I used the 2640R2 Bluetooth central role to scan the advertising of mobile phones, I encountered the problem that it was difficult to scan the advertising of mobile phones. Specific tests are as follows:
1. The version of the protocol stack used is the central role of simplelink_cc2640r2_sdk_2_20_00_49
2. Set the DEFAULT_MAX_SCAN_RES parameter to 30, but also adjust to 50
3. SCAN params as follow:
DEFAULT_SCAN_DURATION=500
DEFAULT_SCAN_WIND =79
DEFAULT_SCAN_INT=80
4. When Android advertising, the advertising interval is about 130 ms; when Apple advertising, the advertising interval is about 35 ms for the front ground and 185 ms for the back ground.
When using the above parameters, it works normally, but the output of scanning results is too slow, 500 ms output once.
When DEFAULT_SCAN_DURATION is less than the advertising interval of the mobile phone (e.g. using 100ms), the advertising of the mobile phone can not be scanned at all.
When DEFAULT_SCAN_DURATION is much larger than the cell phone interval (e.g. 300ms), it is easier to scan the advertising of the cell phone.
adjust the parameters of DEFAULT_SCAN_WIND and DEFAULT_SCAN_INT did not improve this problem.
How should I set it up so that the central can quickly scan the advertising of the mobile phone?