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

Advertising Interval - nRF Connect

Hello !

I was wondering How the interval connection was calculated in the Android application nRF Connect ?

Do you use a special/ hided function ?

I tried to get it on my own, but my scan seems really slow and I can't get the advertising intervals of my peripheral.

I used an advertising interval of 100ms in my test but the delay between my ScanResults in my Android application are sometimes around 2 seconds !

I got the low latency setting activated. I don't see how I can get all the advertising frames sent by my device (100ms) to guess the advertising interval.

Thanks !

Best regards

Parents
  • Hi,

    By default, nRF Connect uses Low Latency and no report Delay (0) settings. This gives as fast results as possible. For platforms lower than Android 5 we recommend Android Scanner Compat Library, available on jcenter/Maven.

    To calculate/estimate the adv interval we use a home made algorithm that averages intervals, but takes under consideration that you might have missed a packet or more, and that you might have picked on different channels, so the real interval might be different. But we only base on the timestamp of received packed, no hidden method.

    Br,

    Aleksander

Reply
  • Hi,

    By default, nRF Connect uses Low Latency and no report Delay (0) settings. This gives as fast results as possible. For platforms lower than Android 5 we recommend Android Scanner Compat Library, available on jcenter/Maven.

    To calculate/estimate the adv interval we use a home made algorithm that averages intervals, but takes under consideration that you might have missed a packet or more, and that you might have picked on different channels, so the real interval might be different. But we only base on the timestamp of received packed, no hidden method.

    Br,

    Aleksander

Children
No Data
Related