This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE Multilink Fast Connect Scanning

What's the fastest scanning settings for connecting to anywhere from 1 to 20 peripherals at a time? My peripherals are all advertising at 211.25ms. I won't be sending any commands to the peripherals until all of the connections are up and running. I read the Scheduling section of the softdevice spec so implemented the scanner timing, as shown in the picture, where the scan interval equals the connection interval and I dynamically calculate the scan window based on the number of active connections but I was wondering if this is necessary. Since I am not intending on transmitting data until I am finished scanning would it be better for me to just make the scan window equal the scan interval and let the softdevice handle the scheduling?

 

I have my connection interval set to 200ms, my gap event length is 7.5ms, and scan interval set to 200ms, and the scan window calculated based on the calculation:

//Calculate the scan window based on the number of connections already made. Each connection requires 7.5ms and we substract 1.25ms for overhead
m_scan_params.window = m_scan_params.interval - (ble_conn_state_central_conn_count() * 12) - 2;

Parents Reply Children
No Data
Related