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

Reducing the characteristic discovery time for peripheral device

We have a nrf52840 in peripheral mode and with with custom services characteristics added. we want to reduce the over all connection time when we try to connect with central device.

can you suggest us some suggestions to reduce the connection time  ? ( we can see at our end connection time nearly taking 1sec)

Thanks,

Srikanth R V

Parents
  • Hi Karl,

    our's is a open connection peripheral  any central device can connect. 

    Its looks like discovery of services and characteristics is taking more time.  

    Is there any way to configure peripheral device to achieve better discovery time from central.

    Thanks,

    Srikanth R V

  • Hello again,

    Srikanth said:
    our's is a open connection peripheral  any central device can connect.

    Thank you for clarifying.

    Srikanth said:

    Its looks like discovery of services and characteristics is taking more time.  

    Is there any way to configure peripheral device to achieve better discovery time from central.

    If it is the discovery of services and characteristics that is taking a long time, and not establishing the connection, then there are some other things you can do to speed this up.
    For example, you can make sure to use the 2 Mbps PHY and change the connection interval to 7.5 ms (the shortest possible) until service discovery is done. This will consume more power, but it will also make the exchanges between your devices happen a lot faster.

    Are you familiar with the nRF Sniffer tool? It is a powerful tool to wield when developing with BLE since it lets you monitor the on-air BLE traffic. Could you use this tool to capture a trace of the connection process that you think is taking too long, so we may take a look at what is happening on the air?
    Make sure to select your advertising device in the "Device select" dropdown menu. This will make the sniffer follow into the connections that this peripheral makes.

    Best regards,
    Karl

Reply
  • Hello again,

    Srikanth said:
    our's is a open connection peripheral  any central device can connect.

    Thank you for clarifying.

    Srikanth said:

    Its looks like discovery of services and characteristics is taking more time.  

    Is there any way to configure peripheral device to achieve better discovery time from central.

    If it is the discovery of services and characteristics that is taking a long time, and not establishing the connection, then there are some other things you can do to speed this up.
    For example, you can make sure to use the 2 Mbps PHY and change the connection interval to 7.5 ms (the shortest possible) until service discovery is done. This will consume more power, but it will also make the exchanges between your devices happen a lot faster.

    Are you familiar with the nRF Sniffer tool? It is a powerful tool to wield when developing with BLE since it lets you monitor the on-air BLE traffic. Could you use this tool to capture a trace of the connection process that you think is taking too long, so we may take a look at what is happening on the air?
    Make sure to select your advertising device in the "Device select" dropdown menu. This will make the sniffer follow into the connections that this peripheral makes.

    Best regards,
    Karl

Children
No Data
Related