2025-02-19 03:49 AM
Hello,
In my project, the initial Bluetooth scanning time (I am using STM32WB5MMG) takes around 10 seconds due to the GAP discovery procedure. Is there a way to reduce it to 5 seconds or less? I have tried adjusting the scan interval and scan window values, but they don't seem to make a difference—the scanning duration remains 10 seconds. Even if I need to manually terminate the scanning midway, I would like to know how to achieve a shorter scan time.
Thanks
2025-02-19 04:32 AM
Hello @SaiGaneshCS
As you can find on the AN5270, the scanning procedure is terminated when either the upper layers
issue the command ACI_GAP_TERMINATE_GAP_PROC with the procedure code set to 0x01 (if you are discovering using the ACI_GAP_START_LIMITED_DISCOVERY_PROC. Or 0x02 if using the ACI_GAP_START_GENERAL_DISCOVERY_PROC), or when a timeout happens (value fixed at 10.24 s). More details can be found on the chapters 2.4.22 and 2.4.23 of the AN5270.
I've already answered this question in November. Please avoid duplication next time.
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.