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

Parameters relating to service discovery

I have a problem where a central device (iPad) has to connect to a peripheral (running nrf51822, s110) as quickly as possible, receive data and disconnect again.

Right now the connection is fairly quick but the delay between the connection (BLE_GAP_EVT_CONNECTED) and when the central subscribes to the service running on the peripheral (detected via BLE_GATTS_EVT_WRITE) is too long. I'm told by the app developer that there's nothing that can be changed in the app to speed this up. Are there any parameters on the peripheral side that can be tuned to hasten the service discovery and/or subscription?

Parents
  • Hi there,

    There are 3 things you can do to speed things up:

    1. Bond. If your devices are bonded (on a first connection) then you won't need to do service discovery again anymore, and you will be able to cache the attribute handles on the smartphone app so that you can directly go for the data as soon as you connect

    2. Change the connection parameters on the smartphone side. When you create a connection to a peripheral, you are typically allowed to set the connection parameters. The lower the connection interval, the quicker data will be transferred.

    3. Request a connection parameter update from the peripheral as soon as the connection is established. This is the same as 2) but initiated from the peripheral. Do this only if 2) is not possible.

    Ideally 1) should be used, or a combination of 1) and 2).

    Carles

  • Hi ,

    I am trying to open the above link but it saying Not found..Can you please share it once again.

Reply Children
No Data
Related