This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to update the MIN_CONN_INTERVAL & Max_CONN_INTERVAL run time?

Hi,

I need to update the Min and Max connection parameters run time. Is it possible to do so? Also can i update the Min and Max connection parameters through an iOS app for my peripheral device. Is it possible?

Parents
  • Hi SumitS,

    Could you let me know more on what you want to do with Min and Max connection parameter ? Note that there are 2 places we use Min and Max connection parameters in the GAP Peripheral Preferred Connection Parameters (sd_ble_gap_ppcp_set) and when we request connection parameter update from peripheral (sd_ble_gap_conn_param_update).

    If you want to send the parameters via iOS app, you may need to create your own proprietary service and characteristic for the purpose.

  • Hi SumitS,

    Yes, you can request a connection parameter update in runtime. Please have a look at this API: sd_ble_gap_conn_param_update(). With this command you can request the central to update the connection parameter. Note that it's only a request, the central can accept it or refuse it. Don't try to get the minimum and maximum connection interval to too low, most of the central will reject if the connection interval requested is lower than ~20/30ms.

Reply
  • Hi SumitS,

    Yes, you can request a connection parameter update in runtime. Please have a look at this API: sd_ble_gap_conn_param_update(). With this command you can request the central to update the connection parameter. Note that it's only a request, the central can accept it or refuse it. Don't try to get the minimum and maximum connection interval to too low, most of the central will reject if the connection interval requested is lower than ~20/30ms.

Children
No Data
Related