How to calculate advertising interval please?

Dear Support

I am developing a central application, scan and send out scanned packets via UART to host MCU, where I am thinking of calculate the advertising interval by simply comparing arriving time difference between two advertising packets.  But I found that the result I obtained are quite different with the nRF Connect App shows, and changes a lot, I have a question to ask:

- Is it possible to get advertising interval after UART transmission? there must some time lost between sending and receiving, will the time lost affect the result?

Thank you!

Ping

Parents
  • Hi, Kenneth

    Thanks for reminder, I changed scan interval and window, and the scanned interval seems to be reasonable now. I set scan interval and window same, so it always scans. Not sure this is the only way to get interval roughly right?  and I wonder what kind of scan interval and scan window it uses in nRF Connect App.

    Regards!

    Ping

  • PingISTL said:
    I set scan interval and window same, so it always scans. Not sure this is the only way to get interval roughly right?

    You will be scanning continously now, so unless there is interference or collisions you have the highest possible chance of getting all advertisment packets.

    PingISTL said:
    and I wonder what kind of scan interval and scan window it uses in nRF Connect App.

    Don't know.

    Kenneth

Reply
  • PingISTL said:
    I set scan interval and window same, so it always scans. Not sure this is the only way to get interval roughly right?

    You will be scanning continously now, so unless there is interference or collisions you have the highest possible chance of getting all advertisment packets.

    PingISTL said:
    and I wonder what kind of scan interval and scan window it uses in nRF Connect App.

    Don't know.

    Kenneth

Children
Related