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

Fast connecting to a bonded device

Hello all,

I have a BLE central application based on nRF Connect SDK V1.6.1 and a BLE peripheral application based on nRF5 SDK 17.1.0. The peripheral wakes up on interrupt and starts advertising. The central scans all the time for the peripheral and connects to it as soon as it's possible. The two devices use Coded PHY and are bonded with Just Works and LESC.

It is very important that the peripheral can notify the central as soon as possible with its data. I would like to minimize the connection establishment time so I already set the connection intervals to the lowest value of 7.5ms but the time the security exchange needs is still higher than I would like.

Is it normal that the security exchange process between two bonded devices takes around ~50ms?
Can this time be reduced further?

Best regards,
David

Parents
  • Hi David,

    Just connecting and encrypting an already bonded link should be fast. Can you make a sniffer trace showing the packet exchange on air? Do you call bt_conn_set_security() immediately after the connection was established?

  • Hi Einar,

    thanks for your reply.

    Can you make a sniffer trace showing the packet exchange on air?

    I wasn't aware that the sniffer is able to capture Coded PHY. The last time I check it wasn't supported. I will capture a sniffer trace.

    Do you call bt_conn_set_security() immediately after the connection was established?

    I would say it's immediately. I call it in the callback function that is registered with bt_conn_cb_register().

    Best regards,
    David

Reply
  • Hi Einar,

    thanks for your reply.

    Can you make a sniffer trace showing the packet exchange on air?

    I wasn't aware that the sniffer is able to capture Coded PHY. The last time I check it wasn't supported. I will capture a sniffer trace.

    Do you call bt_conn_set_security() immediately after the connection was established?

    I would say it's immediately. I call it in the callback function that is registered with bt_conn_cb_register().

    Best regards,
    David

Children
No Data
Related