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

Is there any way to shorten service_discover () and char_discover () response time?

I use a S120 central to test a multi link connection. \Nordic\nrf51822\Board\nrf6310\s120\experimental\ble_app_multilink_central when the connection is established , the central does a service discovery and then does a characteristics discovery . My question now is the discovery process spend too much time . Is there any way to shorten service_discover () and char_discover () response time?

[b]thanks & regards, Alibobo.zeng[/b]

Parents
  • Hi,

    Connection parameters requested have an impact on how fast packets can be exchanged between master and slave.

    In this case Master is doing GATT discovery procedures and should request connection parameters based on how quickly it wishes the procedure to be completed. In the example, CONN_MNGR_MIN_CONNECTION_INTERVAL and CONN_MNGR_MAX_CONNECTION_INTERVAL in conn_mngr_cnfg.h determine connection parameters requested by Master.

    Note that CONN_MNGR_MIN_CONNECTION_INTERVAL is already set to lowest possible value of 7.5 ms. Therefore try CONN_MNGR_MAX_CONNECTION_INTERVAL making more aggressive, may be 15ms or lower.

    Hope this helps!

    Regards, Krishna

    PS: Note that making connection parameters has implications on battery life.

Reply
  • Hi,

    Connection parameters requested have an impact on how fast packets can be exchanged between master and slave.

    In this case Master is doing GATT discovery procedures and should request connection parameters based on how quickly it wishes the procedure to be completed. In the example, CONN_MNGR_MIN_CONNECTION_INTERVAL and CONN_MNGR_MAX_CONNECTION_INTERVAL in conn_mngr_cnfg.h determine connection parameters requested by Master.

    Note that CONN_MNGR_MIN_CONNECTION_INTERVAL is already set to lowest possible value of 7.5 ms. Therefore try CONN_MNGR_MAX_CONNECTION_INTERVAL making more aggressive, may be 15ms or lower.

    Hope this helps!

    Regards, Krishna

    PS: Note that making connection parameters has implications on battery life.

Children
Related