2024-11-03 6:44 PM - edited 2024-11-03 6:48 PM
Hello,
Based on p2p_client, I want to create an observer program where the device scans the broadcaster/ beacon
I set the scan parameters first, then I enable scan
and an error occurs
i used wireless stack = stm32wb5x_BLE_Stack_full_fw.bin
----------------------------------------------------------------------------------
Error: Set scan parameters failed (Status = 0x01)
----------------------------------------------------------------------------------
Is the way I did it not right?
If the community has an example of a pure ble observer/ scanner program without connecting to another device, can you give it to me?
I have attached my program code below
Thank you for cooperation.
Regards
2024-11-20 9:52 AM
Hello @Aboyh
Unfortunately, there is not any official observer example.
For the error message that you are receiving. It is normal since to be able to use the HCI_LE_SET_SCAN_PARAMETERS command, you have to upload the stm32wb5x_BLE_Stack_full_extended_fw.bin since the stm32wb5x_BLE_Stack_full_fw.bin does not support the HCI_LE_SET_SCAN_PARAMETERS command.
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-04-05 9:26 AM
Request for Assistance in Creating a BLE Frame Scanning Program on STM32L475IOT 1A
Hello everyone,
I would like to ask for your help regarding a project I am currently working on. My goal is to create an observation program that allows scanning BLE frames broadcasted by beacons or transmitters, without establishing a connection with another device. For this, I am using an STM32L475IOT 1A microcontroller.
I am looking for examples or guides on how to:
Configure the BLE scanning mode, without establishing a connection with another device.
Efficiently scan the BLE frames broadcasted by beacons.
Retrieve and process the data from the scanned frames.
I would greatly appreciate it if anyone could share their experience or provide resources or examples that could help me implement this feature.
Thank you in advance for your time and any assistance you can provide.
Best regards,