KW36 IPhone BLE pairing failure

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KW36 IPhone BLE pairing failure

跳至解决方案
3,812 次查看
Melton
Contributor III

Dear Sir,

       I have a problem with the KW36 and need help,When I call Gap_SendSlaveSecurityRequest this API inside BleApp_ConnectionCallback function,When I use my iPhone to connect repeatedly,There is a small probability that there will be an error on the iPhone and the connection will be lost NoLtk,However, after viewing the bin file, the bonding information in the NVM is not lost 。I want to know,Whether this API(Gap_SendSlaveSecurityRequest) is reasonable to call here?And why is there such a small probability of NoLtk on iphones and Android doesn't have this problem。

Melton_0-1710300994724.pngMelton_0-1710300994724.png

 

 

标签 (1)
0 项奖励
回复
1 解答
3,703 次查看
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

This particular situation is completely on the iPhone side, and not related to KW36.

 

The best way to solve this would be to find a way to delete the bonding information on the iPhone.

 

Regards,

Ricardo

在原帖中查看解决方案

5 回复数
3,794 次查看
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Hope you are doing well. Could you please clarify what SDK version are you using?

 

What SDK example are you using as a base? What modifications did you made?

 

What are you trying to achieve?

 

Regards,

Ricardo

0 项奖励
回复
3,785 次查看
Melton
Contributor III

SDK Version : 2.2.12

SDK Example: frdmkw36_wireless_examples_bluetooth_w_uart_freertos

SDK Modify: wireless_uart.c->BleApp_ConnectionCallback->gConnEvtConnected_c

add  (void)Gap_SendSlaveSecurityRequest(peerDeviceId, &gPairingParameters);

Problem spot: If you do not add this api, When the KW36 deletes the pairing information, the phone retains the pairing information,The phone will not initiate a pairing popup request,Android phones don't seem to go wrong with additions like this,

however, the iPhone will have a small probability of not pop-up window.I want to know how this problem is solved,and I want to know the correct way to use this API.

Think you,best regard! @Ricardo_Zamora 

 

0 项奖励
回复
3,746 次查看
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Have you tried just enabling the gAppUsePairing_d and gAppUseBonding_d?

 

The Gap_SendSlaveSecurityRequest is already used in the BleConnManager_GapPeripheralEvent.

 

Regards,

Ricardo

0 项奖励
回复
3,718 次查看
Melton
Contributor III

Thank you sir,

  I've already enabled the gAppUsePairing_d and gAppUseBonding_d.

  I known the Gap_SendSlaveSecurityRequest is already used in the BleConnManager_GapPeripheralEvent.

  However, after KW36 is successfully paired with the mobile phone once, the pairing information of either party is deleted, and the pairing is performed again. At this time, the pairing fails, because the other party does not know that the other party has lost the pairing information, so it needs to call this api again in the connection event, which seems to be feasible for Android phones.  But it doesn't seem to work on iphone, I would like to ask your advice. @Ricardo_Zamora 

0 项奖励
回复
3,704 次查看
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

This particular situation is completely on the iPhone side, and not related to KW36.

 

The best way to solve this would be to find a way to delete the bonding information on the iPhone.

 

Regards,

Ricardo