2025-10-22 9:58 PM
Greetings,
Looking at PM0271, there seems to be an API call aci_gap_start_gen_disc_proc. However, I don't see this in the Cube firmware package anywhere in the headers and I haven't found it in sample code as yet.
We would like to configure the STM32WB55 for dual role BLE, Central and Peripheral. The Peripheral works. When we enable the Central role and then send the scan_enable command, the wireless stack doesn't accept the request. So, we figure it might be helpful to see an example.
What examples are available that demonstrate BLE scanning on the STM32WB55? I checked the AT_Client/Server.
BTW, It's pretty difficult to search through samples as the IDE tends to bog down then crash.
Cheers
Solved! Go to Solution.
2025-10-23 10:15 AM
I have a little more data on this issue.
What is happening is that the BLE stack is claiming that these HCI commands are unsupported. I am using the 'full' BLE stack.
HCI_LE_SetScan_Parameters
HCI_LE_SetScan_Enable
HCI_LE_Set_Extended_Scan_Parameters
HCI_LE_Set_Extended_Scan_Enable
HCI_Read_Local_Supported_Commands
The last one is unexpected.
The AN5270 doesn't list the 'full' stack among the firmware that is documented as having specific commands. Section 2.1:
In Table 1 "Y" means that the corresponding command applies to the dedicated Bluetooth® Low Energy (BLE) stack variant, namely LO / BO / PO / BF / LB, respectively, for Link layer only / Beacon only / Peripheral only / Basic feature / Link layer only basic.
Is there another place for documentation on the supported HCI commands per stack? Is there another set of commands we should be used to enable scanning?
2025-10-22 10:11 PM
FWIW, the call I'd like to make is hci_le_set_scan_enable. So, an example with this would be most helpful.
2025-10-23 10:15 AM
I have a little more data on this issue.
What is happening is that the BLE stack is claiming that these HCI commands are unsupported. I am using the 'full' BLE stack.
HCI_LE_SetScan_Parameters
HCI_LE_SetScan_Enable
HCI_LE_Set_Extended_Scan_Parameters
HCI_LE_Set_Extended_Scan_Enable
HCI_Read_Local_Supported_Commands
The last one is unexpected.
The AN5270 doesn't list the 'full' stack among the firmware that is documented as having specific commands. Section 2.1:
In Table 1 "Y" means that the corresponding command applies to the dedicated Bluetooth® Low Energy (BLE) stack variant, namely LO / BO / PO / BF / LB, respectively, for Link layer only / Beacon only / Peripheral only / Basic feature / Link layer only basic.
Is there another place for documentation on the supported HCI commands per stack? Is there another set of commands we should be used to enable scanning?