cancel
Showing results for 
Search instead for 
Did you mean: 

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

Nemonas
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Remy ISSALYS
ST Employee

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

View solution in original post

3 REPLIES 3
Remy ISSALYS
ST Employee

Hello,

Can you give more information about what you to do?

Best Regards

Nemonas
Associate II

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

Remy ISSALYS
ST Employee

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