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

Passkey pairing timeout (nrf52)

Hello, I am using the NFR52 DK (s132) in peripheral mode. I have implemented a pairing mode based on a static passkey. However, the available time to enter the key in the smartphone is too short (around 5 seconds) because the NFR52 DK closes the connection. Does anybody know the parameter to increment this pairing timeout?

Thanks, Fran.

  • Hi,

    On the SoftDevice level, the pairing timeout is actually 30 seconds from the last PDU, so it's likely something else. Either in your code, any SDK module you are using or with the peer. What disconnect reason are you seeing, and what is your peer? Are you able to sniff the communication between the devices?

  • @Fran: Please provide a sniffer trace, and provide some log information on the nRF5. 5 seconds timeout doesn't make sense.

  • I have detected that the connection is lost due to a reset when I try to pair the peers.

  • By default, APP_ERROR_CHECK() resets the chip, so if you change the handler to print the error over UART - or just attach a debugger - you should see why it reset.