Scanning for periodic advertisers

Hi,

I'm trying to modify the Nordic sample apps included in the ESL Getting Started kit so that the tags first scan for Access Points (APs) so that they can connect to the AP with the strongest RSSI in the event that there are multiple APs in range.

To do this, I'm integrating sections of code from the 'periodic_sync_conn' Zephyr sample.  I have the scanning working (in that it can see BLE advertisers) but it is failing to detect my AP.  I have a suspicion that the problem is to do with the scan parameters.  My AP is using a periodic advertising interval of ~1 second.  I've tried setting the scan interval and the window to > 1 second to ensure that there will be at least one advertisement in a scan window but the tag is just not seeing the AP at all.  What should I set the scan interval and window to if I want to detect the AP and detect that the advertising is periodic?

(I have confirmed that the AP has started periodic advertising as I initially thought that it might not start periodic advertising until it had synchronised at least one tag.  I've also added CONFIG_BT_EXT_ADV=y to the tag's prj.conf file).

Thanks

Scott

Parents Reply Children
No Data
Related