cancel
Showing results for 
Search instead for 
Did you mean: 

aci_hal_set_event_mask and ACI_HAL_SCAN_REQ_REPORT_VSEVT_CODE

msemegen
Associate III

There are already a few threads discussing this topic, but none of them have an answer.

How can one force the STM32WB35 to send an event upon receiving a scan request? The documentation (rather vaguely) states that this can be achieved by setting the appropriate mask (0x1u) when calling the aci_hal_set_event_mask function (as far as I remember, there is no mention anywhere that this function is available only in BLE_Stack_full_extended_fw.bin).

Even though the function executes successfully (returns 0), during scanning (with NRFConnect) I do not receive any information from the stack indicating that someone has read the data from the scan response.

In SVCCTL_App_Notification, I am handling HCI_VENDOR_SPECIFIC_DEBUG_EVT_CODE, and within that, I handle ACI_HAL_SCAN_REQ_REPORT_VSEVT_CODE. 

Best,
msemegen

4 REPLIES 4
STTwo-32
ST Employee

Hello @msemegen 

To force the STM32WB35 to send an event upon receiving a scan request, you can utilize the HCI_LE_SCAN_REQUEST_RECEIVED_EVENT. This event indicates that a SCAN_REQ PDU or an AUX_SCAN_REQ PDU has been received by the advertiser. More details are available on this Wiki.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Unfortunately,
I don't see any handling of HCI_LE_SCAN_REQUEST_RECEIVED_EVENT in the p2pClient sample...

Sorry for this mistake. But to send an event upon receiving a scan request, you can use the HCI_LE_SCAN_REQUEST_RECEIVED_EVENT is the event that you should enabled to do that.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

msemegen
Associate III

Ok,

how to enable this event?