Hi @amarksjc ,
Hope you are doing well!
There are several ways to optimize the BLE connection time:
- Minimize advertising and connection intervals.
- Optimize scan window/interval balances on the central.
- Use privacy mode only when required. Disabling it saves time when not needed.
- Disable features not required like 2M PHY, coded PHY, extended advertising, etc.
And for time statistics, you can add timestamps to the code. Also, employing a sniffer to capture packets would be helpful. This link has the installation and usage of NXP protocol analyzer, hopefully it will help you.
Best regards,
Gavin