Skip to main content
msemegen
Associate III
June 14, 2025
Question

aci_hal_set_event_mask and ACI_HAL_SCAN_REQ_REPORT_VSEVT_CODE

  • June 14, 2025
  • 2 replies
  • 498 views

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

2 replies

STTwo-32
Technical Moderator
June 16, 2025

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

msemegen
msemegenAuthor
Associate III
June 16, 2025

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

STTwo-32
Technical Moderator
June 16, 2025

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

msemegen
msemegenAuthor
Associate III
June 16, 2025

Ok,

how to enable this event?