This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2540: Changing the passkey in BTool (GAP_BondComplete: Failed Invalid Event ID)

Part Number: CC2540


Hello everyone,

We are using BTool in order to analyse the connection between two SmartRF05 boards. We set one as the HostTestAppAll and the other one as a Peripheral. Then we make the Host one scan the peripheral using BTool and we start the connection. After sending the pairing request, if we use the default password, which is 000000, a LTK is generated and the connection is encrypted. However, if we use a passkey which is not the default one, for example 123456, nothing is generated and the connection does not get encrypted (Shown in the picture below), and if we press the encrypt link button we receive the error GAP_BondComplete: Failed Invalid Event ID.

Why is the passkey 000000 the only one that is valid to encrypt the link?

When we set the passkey as 123456 the LTK Data field is empty

 

 

When we use the default passkey the LTK is generated but it doesn't match with the LTK that we capture with the dongle.

 

We think that we should be able to apply this security option as the smartRF DK has keyboard and display capability as we can see in the wireshark capture.