Hi,
I am using the SPS Host example code for scanning.
Can you help me understand the interval settings in "static const struct scan_configuration user_scan_conf".
What I am looking for is that the Device needs to scan for BLE Beacon devices for 100ms in every 2 seconds interval.
我怎么设置呢.
Device:
Hi Vivek,
During scanning the device will open up its receiver on the three advertising channels sequentially, so the scan_window is how long the receiver will stay open and listen for advertising packets in a specific channel, the scan interval is the period of the scanning in a specific channel. There is no way to synchronize the advertising events with the scanning that a device will perform in order to get all the advertising events that a peripheral device will emmit. Just keep the scan window and interval values low in order to be sure that the device will scan all the channels in a specific period of time. More info regarding the scanning procedure can be found in the BLE specification and more details about the scan command can be found in the RW-BLE-GAP-IS, search for the GAPM_START_SCAN_CMD.
Thanks MT_dialog