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

Not bonding when cancelling key menu input

Hi,

I have my device based on the nRF52840 and it is working fine but we are focusing some issues given by our users.

When our device is connected to a smartphone, the smartphone asks for a key to stablish bonding:

- If the key is correctly inserted, connection is correctly stablished.

- If the entered key is wrong, the smartphone asks again for the key after a few seconds.

- But if we push 'cancel' when we are asked to enter the key, then it is impossible to pair/bond with the device. When we are at this situation, if the smartphone is reseted, then it is possible to pair again. Otherwise, it is then impossible to connect with this device. And we have tried either with our application and with nRF Connect: it is always the same.

So, do you know how to deal with this scenario?

Best regards,

Dani

Parents
  • Hi Kenneth,

     Please find attached log file created by WireShark tool with sniffer: I had my device (adverstes during 6 seconds, stops 3 seconds, then advertises during 6 seconds,...) advertising and at time point 68.775 I connected my smartphone to it. The Smartphone has been asked to enter a passkey, but I have selected 'cancel' in the pop-up that appears to introduce the passkey: this is a way of operation that can happen. Being in this situation, it is impossible to connect to this device unless I reset the Smartphone....Android_pairing_cancelling_key_entry.pcapng

    Hope it helps.

    Dani

  • Hi Dani,

    Can you try to remove the following from main() or other places they may be called?

    //pm_handler_on_pm_evt() // comment out if used
    //pm_handler_secure_on_connection() // comment out if used
    //pm_handler_secure_on_error() // comment out if used

    If it still doesn't work I would need a new sniffer trace.

    Best regards,
    Kenneth

Reply Children
No Data
Related