What values ​​can I use in the bt_conn_le_param_update() method, what is the range of values ​​for each parameter?

Today I tried to use the bt_conn_le_param_update() method to update the connection parameters, using the following values.

interval_min = 3000

interval_max = 3000

latency = 20

timeout = 10000

to try to get the connection interval of 3s, 20 events in the latency and a supervision time of 10s, but I got an error -22.

I would like to know what are the limits of these parameters with Nordic or defined by SIG.

How many values ​​can I set?

Thanks

  • Hi Higo, 
    The unit for interval_min , interval_max is 1.25ms and unit for timeout is 10ms (see \zephyr\include\zephyr\bluetooth\conn.h)

    The timeout (in ms) should be higher than the internal max*latency to avoid the connection being disconnected due to latency. 

    Also, it's a good practice that you should have at least 6 connection intervals before connection timeout (in case there is interference, packet drop). 

    Please try 

    interval_min = 2400 (3s)

    interval_max = 2400 (3s)

    latency = 0

    timeout = 1800 

     

Related