This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

connection time out problem

Hello, I am working on s130 softdevice(SDK 6.1.0.0 and nRf51822 &nRf51 DK). I have one peripheral and two centrals. but the data from peripheral should be read from only one central at a time. After getting advertisement from peripheral both centrals will send a connection request. but peripheral will get connected to only one. For the second central which did not receive any response from peripheral should time out after some time. Whether there is any event which will be triggered if a connection request fails?? i saw one of the time out reason as BLE_GAP_TIMEOUT_SRC_CONN. But it is not working. Why i am not getting timeout. i am using one application timer in my program. the connection parameters that i am using is: static const ble_gap_conn_params_t connection_param = { (uint16_t)MSEC_TO_UNITS(7.5, UNIT_1_25_MS), // Minimum connection (uint16_t)MSEC_TO_UNITS(30, UNIT_1_25_MS), // Maximum connection 0, // Slave latency (uint16_t)MSEC_TO_UNITS(4000, UNIT_10_MS) // Supervision time-out };

What is the way to know whether connection request is timed out?? my program is not taking any events after it has called sd_ble_gap_connect() as though it got stuck. what will be the reason for this? any help is appreciated.

Thanks in advance.

Related