connection interval set

i am working on power measurement of ble. i want to change ble connection interval in nrf blinky code say to 100ms, 200ms, 1000ms. how to achieve this and

what is the use of Conn supervision timeout as in blinky code 4secs timeout was  given but afet i what is the use of 4secs as even then my device is able to read the service characteristic data

Parents
  • You can find there is a ble_conn_params_init() in your application. This module will handle the connection parameters, for instance you can set a MIN_CONN_INTERVAL and MAX_CONN_INTERVAL, and this module will then try to update the connection to use these parameters shortly after connection is established.

    The CONN_SUP_TIMEOUT is typically set to a relative large value (e.g. several seconds), since it defines the time that should be considered link is lost when there have been no communication. To reduce current consumption you should make sure to set SLAVE_LATENCY to for instance 5-10, this will allow the BLE peripheral to skip connection intervals if there is no out-going data pending.

    Kenneth 


  • #define MIN_CONN_INTERVAL MSEC_TO_UNITS(7.5, UNIT_1_25_MS) /**< Minimum acceptable connection interval (0.5 seconds). */
    #define MAX_CONN_INTERVAL MSEC_TO_UNITS(100, UNIT_1_25_MS) /**< Maximum acceptable connection interval (1 second). */

    how to make it as 100ms or 1000ms Connection interval.

    CONN_SUP_TIMEOUT i set to 4secs what is its effect i am not getting

Reply

  • #define MIN_CONN_INTERVAL MSEC_TO_UNITS(7.5, UNIT_1_25_MS) /**< Minimum acceptable connection interval (0.5 seconds). */
    #define MAX_CONN_INTERVAL MSEC_TO_UNITS(100, UNIT_1_25_MS) /**< Maximum acceptable connection interval (1 second). */

    how to make it as 100ms or 1000ms Connection interval.

    CONN_SUP_TIMEOUT i set to 4secs what is its effect i am not getting

Children
Related