We are adding social distance feature to our existing product. We are facing performance issue. The device has one peripheral role and one observer role. I have set scanning interval to 100ms and scanning window to 50ms. Advertising interval set to 25ms. The situation is that, we are testing the scanning performance by resetting the device every time.
We scan to only our intended device.
3 out of 5 times, the device is able to scan the intended device well. say 5 to 10 scanning occurrence of the intended device happened in every second.
but 2 out of 5 times, the scanning performance is not so good. It means, it is not able to scan the intended device well enough. the number of scanning occurrence of the intended device in these times are one or zero for every second. If we reset the intended device in this situation, then the number of scanning occurrence of the intended device is increased.
Even if we place the devices very close (5cm) to each other, the scanning performance result is same.
How we can improve the scanning performance all the times.
What is the best scanning interval, scanning window and advertising interval when the device is used to act in both advertiser and observer role.
Spec details used: nRF52832, SDK 15.2.0, S132 6.1.1