P2P reduce time between CONNECTED and NOTIFICATION ENABLED
Hello,
In a Client(Router)/Server configuration with two STM32WB55 I would like to accelerate the transmission of data at starting of the server.
The server address is know in advance and stored in the client then in the HCI_LE_ADVERTISING_REPORT_SUBEVT_CODE client event I added aci_gap_terminate_gap_proc(GAP_GENERAL_DISCOVERY_PROC); which works well.
It connects immediately!
But between the Connection and the NOTIFICATION ENABLED, it takes 10 seconds, see the log:
15:35:57.717> ==>> aci_gap_set_discoverable - Success
15:35:57.717> ==>> Success: Start Fast Advertising
15:35:58.009>
15:35:58.009> >>== HCI_LE_CONNECTION_COMPLETE_SUBEVT_CODE - Connection handle: 0x801
15:35:58.009> - Connection established with Central: @:00:80:e1:26:61:13
15:35:58.009> - Connection Interval: ms
15:35:58.009> - Connection latency: 0
15:35:58.009> - Supervision Timeout: 2100 ms
15:36:08.785>
15:36:08.785> -- P2P APPLICATION SERVER : NOTIFICATION ENABLED
This post below suggests a solution, but important thing for me, the server will be disconnected from the power supply when it is not used. Then the handle is not rusable in my opinion.
It means that it needs a little more than 10 seconds to send the first data and it is possible for the final application (until 4-5 seconds is acceptable)
I'm not sure that I can accelerate the discovery service! Does anyone have an idea?
Thank you,
Pierre