Reducing BLE scan time in STM32WBMMG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-11-11 2:24 AM - last edited on 2024-11-11 3:04 AM by Andrew Neil
Hello,
In my project, the initial Bluetooth scanning time(I am using STM32WB5MMG) takes 10 seconds (gap discovery procedure). Is it possible to reduce this to 5 seconds or less? Although I have adjusted the scan interval and scan window values, they don't seem to have any impact, and the scanning still takes 10 seconds. Can anyone please help?
Thanks in advance.
- Labels:
-
STM32CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-11-12 12:14 AM
Hello @SaiGaneshCS and welcome to the ST Community.
The GAP procedure will scan during 10.24s. This scan duration is a (recommended) requirement from the BLE specification. (It cannot be changed (Hard coded in Host stack)). You may implement your own timeout (early than 10.24s) and use the aci_gap_terminate_gap_proc command with GAP_procedure parameter set to 2 (GAP_GENERAL_DISCOVERY_PROC). This will stop the ongoing scan without any special side effect.
Take a look at this post for more details.
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.
