How to know when scanner and advertiser starts?

Greetings,

Are there any possible ways to know when the scanner and advertiser start?

We are now testing our system using NRF52840 DK. In our system, a master needs to advertise, scan, and send/receive data packets via notification services simultaneously. We read the following article and noticed that the connection event skips couldn't be avoided even if the parameters such as connection interval, scan interval, and so on are set to recommended values.

What we would like to know then is the rate of the skipped connection events and when they will occur. For this reason, we would like to output the log which let us know the timing of advertising and scanning. How can we do this?

Parents
  • Hello,

    You can set the scan window and scan interval to short periods (e.g. both to 5 ms), this will usually schedule the scanning between connection/advertising events, and will cause the least amount of effect on the active links. 

    But there is no way for the application to know exactly if scanning or advertisement is occurring. You can use the radio notification event that knows if some radio event is happening. There is a limitation as you would only measure the length of the radio notification event to know which type of event (radio) that occurred. So, it may not be feasible idea for you. If you are interested in the radio notification event, can look at ble_radio_notification module in nRF5 SDK.

    Thanks.

    Best Regards,

    Kazi Afroza Sultana

Reply
  • Hello,

    You can set the scan window and scan interval to short periods (e.g. both to 5 ms), this will usually schedule the scanning between connection/advertising events, and will cause the least amount of effect on the active links. 

    But there is no way for the application to know exactly if scanning or advertisement is occurring. You can use the radio notification event that knows if some radio event is happening. There is a limitation as you would only measure the length of the radio notification event to know which type of event (radio) that occurred. So, it may not be feasible idea for you. If you are interested in the radio notification event, can look at ble_radio_notification module in nRF5 SDK.

    Thanks.

    Best Regards,

    Kazi Afroza Sultana

Children
Related