In the existing BLE stack, the unit of the scan period is 1.28s. Is there a way to modify this period to be a smaller value?
BR,
Shuyang
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
In the existing BLE stack, the unit of the scan period is 1.28s. Is there a way to modify this period to be a smaller value?
BR,
Shuyang
Hi Shuyang,
Could you clarify what you mean by scan period? Could you show me where the term is mentioned and in what context? Are you referring to the time spent scanning on both the primary and secondary advertising channels as mentioned in the BLUETOOTH CORE SPECIFICATION Version 5.3 | Vol 4, Part E Page 2484 in the section shown below:
Best Regards,
Jan
Hi Jan,
By scan period I mean the first parameter of GapScan_enable:
The purpose is to perform a periodic scan at a higher frequency than the 1.28 sec limit.
By a second look, it seems this can be achieved by setting the scan duration to 0x00 and enable/disable the scan manually?
BR,
Shuyang
Hi Shuyang,
Got it. My apologies, I thought you were referring to the scanning parameters instead of the GapScan_enable period. You approach sounds good. Setting period and duration to 0, will cause the device to scanning continuously. In this state, you can disable scanning whenever your application requires by calling GapScan_disable().
Best Regards,
Jan