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

change connection interval

Hi,every one!

As far as i konw, the original connection interval that ios sets is about 50ms, that is a little too fast for me, so i want to change the connection interval after connection.

and my code is(i do it after connection):

memset(&gap_conn_params2, 0, sizeof(mynewparams));	
mynewparams.min_conn_interval = MIN_CONN_INTERVAL;
mynewparams.max_conn_interval = MAX_CONN_INTERVAL;
mynewparams.slave_latency     = SLAVE_LATENCY;
mynewparams.conn_sup_timeout  = CONN_SUP_TIMEOUT;
ble_conn_params_change_conn_params(&mynewparams);

and then i found out the following problems: 1.if MIN_CONN_INTERVAL > 50ms, the connection will disconnect automatically 2.if MIN_CONN_INTERVAL < 50ms, seems the connection interval does not change becaues the current comsumption does not change

so how to explain this?

to make it right, are there something also should be done on smart phone or just modify the device is enough?

thank you for your wachting!

Parents Reply
  • Hi,  to What value should we adapt CONN_SUP_TIMEOUT ? We caught a probem that when we update MIN_CONN_INTERVAL before transmit data to 25ms, for instead of 1s default value. It costs 30s to take effect. In fact, the connection had finished 8-12 times record transmission.  So how can we let the 'ble_conn_params_change_conn_params' or 'sd_ble_gap_param_update'  method take effect immediately?

Children
No Data
Related