Skip to main content
Nemonas
Associate
Oct 5, 2022 1:39 AM UTC
Solved

[STM32WB55] Interrupts or functions that iBeacon-Server can check for every ad cycle

Interrupts or functions that iBeacon-Server can check for every ad cycle

This topic has been closed for replies.
Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
Oct 19, 2022 9:03 AM UTC

Hello,

To know the number of advertisements from the moment the advertisement started, you can use ACI_HAL_SET_RADIO_ACTIVITY_MASK command with parameter 0x0002 (Advertising) to filter the event reported to application through ACI_HAL_END_OF_RADIO_ACTIVITY_EVENT. So, with this configuration only advertising activity will be reported to the application through ACI_HAL_END_OF_RADIO_ACTIVITY_EVENT, each time you received this event, you can increment your counter. You can look STM32WB_BLE_Wireless_Interface.html documentation for more information about event and command and you can look BLE_P2PServer example, to see how to use ACI_HAL_SET_RADIO_ACTIVITY_MASK command and how to manage ACI_HAL_END_OF_RADIO_ACTIVITY_VSEVT_CODE event.

Best Regards

3 replies

Remy ISSALYS
ST Technical Moderator
Oct 11, 2022 9:29 AM UTC

Hello,

Can you give more information about what you to do?

Best Regards

Nemonas
NemonasAuthor
Associate
Oct 12, 2022 11:04 PM UTC

I want to know the number of advertisements from the moment the advertisement started

Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
Oct 19, 2022 9:03 AM UTC

Hello,

To know the number of advertisements from the moment the advertisement started, you can use ACI_HAL_SET_RADIO_ACTIVITY_MASK command with parameter 0x0002 (Advertising) to filter the event reported to application through ACI_HAL_END_OF_RADIO_ACTIVITY_EVENT. So, with this configuration only advertising activity will be reported to the application through ACI_HAL_END_OF_RADIO_ACTIVITY_EVENT, each time you received this event, you can increment your counter. You can look STM32WB_BLE_Wireless_Interface.html documentation for more information about event and command and you can look BLE_P2PServer example, to see how to use ACI_HAL_SET_RADIO_ACTIVITY_MASK command and how to manage ACI_HAL_END_OF_RADIO_ACTIVITY_VSEVT_CODE event.

Best Regards