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

Long pairing time with secure connection

I'm using the nrf52810 with S112 in peripheral mode. Using the example blinky firmware and mobile app works perfectly with my Android and iPhone. However when I add in passkey pairing with LESC it takes over 30 seconds after the passkey entry on my phone to finish connection and able to communicate in the blinky app. What can I do to improve this time? I use micro-ecc because I don't have flash space for the alternative. Thanks

Parents
  • Hi dtran, 

    I would suggest to capture a sniffer trace so we can inspect that caused the 30 seconds delay. 

    The sequence chart for the LESC process is described here

    We need to look into how you calculate the DHKey . Do you use peer manager ? Have you called nrf_ble_lesc_request_handler() in the main loop (usually inside idle_state_handle() ) . The DH key calculation should be done in main context. 

Reply
  • Hi dtran, 

    I would suggest to capture a sniffer trace so we can inspect that caused the 30 seconds delay. 

    The sequence chart for the LESC process is described here

    We need to look into how you calculate the DHKey . Do you use peer manager ? Have you called nrf_ble_lesc_request_handler() in the main loop (usually inside idle_state_handle() ) . The DH key calculation should be done in main context. 

Children
Related