2025-06-14 2:35 AM
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
2025-06-16 3:07 AM - edited 2025-06-16 6:04 AM
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.
2025-06-16 5:22 AM
Unfortunately,
I don't see any handling of HCI_LE_SCAN_REQUEST_RECEIVED_EVENT in the p2pClient sample...
2025-06-16 6:04 AM
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.
2025-06-16 6:09 AM
Ok,
how to enable this event?