Skip to main content
Nemonas
Associate
October 5, 2022
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
October 19, 2022

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
October 11, 2022

Hello,

Can you give more information about what you to do?

Best Regards

Nemonas
NemonasAuthor
Associate
October 12, 2022

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

Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
October 19, 2022

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