How to recognize the use of a 'WrongPasskey' ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to recognize the use of a 'WrongPasskey' ?

1,669件の閲覧回数
nava_daniele93
Contributor II

Good Afternoon,

I'm building a BLE application based on HW FRDM-KW36Z.

I want to detect with certainty the event of a disconnection caused by the use of a wrong passkey. 

I has been able to detect the following event:

pConnectionEvent->eventType = gConnEvtPairingComplete_c

pConnectionEvent->eventData.pairingCompleteEvent.pairingCompleteData.failReason == gSmPairingErrorConfirmValueFailed_c

This, apparently, is caused by the failure of the procedure of pin check.

This seems to be compliant with what i find in the BLE Core Specs 5.0. 

Can this event be generated by another cause?

Dan

ラベル(1)
3 返答(返信)

1,587件の閲覧回数
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

I'm not sure what you are trying to do, if the passkey you enter does not match it should not be able to perform a bonding. 

You can check the Wireless UART examples where the bonding and pairing it's being used.

Do you have a sniffer log of what you are referring to ?

Regards,

Estephania

1,587件の閲覧回数
nava_daniele93
Contributor II

Hi,

My setup is composed by a master KeyboardOnly and a slave DisplayOnly.

The application works correctly: if a wrong passkey is used, the connection is not performed. Following, i receive a Disconnect Event, with Cause: Connection terminated by remote user.

My issue is that I want to be sure that this disconnection event is caused by a wrong passkey.

I was able to recognize is the following event:

pConnectionEvent->eventType = gConnEvtPairingComplete_c

pConnectionEvent->eventData.pairingCompleteEvent.pairingCompleteData.failReason == gSmPairingErrorConfirmValueFailed_c

That i receive when a wrong passkey is used. 

0 件の賞賛
返信

1,587件の閲覧回数
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

So , just to confirm, did you solve your issue ?

Regards,

Estephania

0 件の賞賛
返信