hi ken:
I use Nrf52832(S132) to act as central and peripheral at the same time, which like the project ...\nRF52_SDK_0.9.0_0c82e3e\examples\ble_central_and_peripheral\experimental\ble_app_hrs_rscs_relay.
As a central alone, it works well. But when I try to connect nrf52 with the lightblue app in iphone, I can connect it but after a while, the link breaks down. The lightblue app shows as below. Sometimes it work can connect the nrf52 successfully....When I try the ble_app_hrs_rscs_relay app, I mostly can connect with iphone successfully, but sometimes it also occurs that problem.
Through the sniffer, I find that the peripheral terminates the connection with an LL_TERMINATE_IND link layer control message. As below:
In my project, I shut the timer, so it will not call the update_timeout_handler() function in ble_conn_params.c,and I have confirmed with the debugger that neither of the calls to sd_ble_gap_disconnect() [in update_timeout_handler/ble_conn_params.c or on_conn_params_evt/main.c] are being called.
What' s more, when I comment the scan_start() or the service_init(), nrf52 will connect with iphone successfully.
I am very confused with this problem, thanks a lot.
best regards!