Hi,
I'm using nRF52832 on SDK V12.2. I add the connection params in the conn_params_init:
static void conn_params_init(void){
uint32_t err_code;
ble_conn_params_init_t cp_init;
ble_gap_conn_params_t gap_conn_params;
memset(&gap_conn_params, 0, sizeof(gap_conn_params));
gap_conn_params.min_conn_interval = MIN_CONN_INTERVAL;
gap_conn_params.max_conn_interval = MAX_CONN_INTERVAL;
gap_conn_params.slave_latency = SLAVE_LATENCY;
gap_conn_params.conn_sup_timeout = CONN_SUP_TIMEOUT;
memset(&cp_init, 0, sizeof(cp_init));
cp_init.p_conn_params = &gap_conn_params;
cp_init.first_conn_params_update_delay = FIRST_CONN_PARAMS_UPDATE_DELAY;
cp_init.next_conn_params_update_delay = NEXT_CONN_PARAMS_UPDATE_DELAY;
cp_init.max_conn_params_update_count = MAX_CONN_PARAMS_UPDATE_COUNT;
cp_init.start_on_notify_cccd_handle = BLE_GATT_HANDLE_INVALID;
cp_init.disconnect_on_fail = false;
cp_init.evt_handler = on_conn_params_evt;
cp_init.error_handler = conn_params_error_handler;
err_code = ble_conn_params_init(&cp_init);
APP_ERROR_CHECK(err_code);}
After the device has been connected for a long time, no BLE_GAP_EVT_CONN_PARAM_UPDATE event generates. ble_conn_params_on_ble_evt function has been called in the ble_evt_dispatch. Is there any other things need to do?