2025-07-28 10:15 AM - edited 2025-07-29 6:49 AM
ST ,
I am working on getting the scan request event ob the full stack.
After looking at these posts :
https://community.st.com/t5/stm32-mcus-wireless/ble-how-can-i-get-a-scan-request-event/td-p/221485
https://community.st.com/t5/stm32-mcus-wireless/ble-how-can-i-get-a-scan-request-event/td-p/221485
It looks bleak.
Option 1: AN5270
The enable event : ACI_HAL_SET_EVENT_MASK
The event message: ACI HAL events
Both seems not to be enabled ( no "Y" on any of LO, BO , BF etc... ) . What does it mean ? Will they work on full stack ?
Option2 : AN6142/AN5270
The enable event : HCI_LE_SET_EVENT ( I guess puting : • 0x0000000000040000: LE scan request received event will do the trick?)
The event message:: HCI_LE_SCAN_REQUEST_RECEIVED_EVENT is enabled only for LO ? will it work on full stack bin?
2025-07-29 12:30 AM
Update
I found another unanswered thread : https://community.st.com/t5/stm32-mcus-wireless/aci-hal-set-event-mask-and-aci-hal-scan-req-report-vsevt-code/td-p/812836.
That got me to the WIKI :
hci_le_scan_request_received_event | Indicate that a SCAN_REQ PDU or an AUX_SCAN_REQ PDU has been received by the advertiser | BLE_p2pClient_Ext |
Not quite sure,
Q:
1. But does it mean event available on Client side only?
From AN5270 it looks like this event is for Server side ( what I am interested in :(
HCI_LE_SCAN_REQUEST_RECEIVED_EVENT
Description
This event indicates that a SCAN_REQ PDU or an AUX_SCAN_REQ PDU has been received by the advertiser.
The request contains a device address from a scanner allowed by the advertising filter policy. The advertising set
is identified by Advertising_Handle. See Bluetooth spec. v.5.2 [Vol 4, Part E, 7.7.65.19].
2. What does _Ext? must be scanning/advertising in extended only ?
2025-07-29 6:40 AM
Update:
Like in this thread:
https://community.st.com/t5/interface-and-connectivity-ics/how-to-receive-call-to-either-hci-le-scan-request-received-event/td-p/709317
ACI_HAL_SET_EVENT_MASK : does not work in ble full stack. I get an error that command does not exist.
HCI_LE_SET_EVENT : This command does not fail , default does not have 0x40000 enabled (scan_req_report) , so I added it. but its not catching the event.
(Q: should it fail if I configure an event that does not exist in stack ????? )
HCI_SET_EVENT : that has already the LE_META events enabled as default, and don't think anything else there can help.
STM32WB repo : no luck couldn't find a single project using the events :HCI_LE_SCAN_REQUEST_RECEIVED_SUBEVT_CODE
ACI_HAL_SCAN_REQ_REPORT_VSEVT_CODE
2025-07-29 6:43 AM - edited 2025-07-29 7:00 AM
This thread , says aci_hal_set_mask() works.
https://community.st.com/t5/interface-and-connectivity-ics/why-scan-req-event-is-not-sent/td-p/401895
.Any clue what stack is he using for: "I am using BlueNRG-2 chip with DTM firmware. It is connected to host processor STM32 by SPI." ????