⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
Vivek
Offline
Last seen:2 years 4 months ago
加入:2017-07-08 07:11
Scanning Interval

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:
MT_dialog
Offline
Last seen:2 months 3 days ago
工作人员
加入:2015-06-08 11:34
Hi Vivek,

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