BLE bond question

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
886件の閲覧回数
darkblue
Contributor I

Hi Tech Support

I tried BLE bond function in frdmkw36_wireless_examples_bluetooth_ancs_c_freertos. The sdk version is 2.2.10. When I bond device successfully (Got the gConnEvtPairingComplete_c within connection callback and pConnectionEvent->eventData.pairingCompleteEvent.pairingSuccessful is TRUE) . But when I disconnect the device then I can't connect it again except I got BLE_HCI_CONN_FAILED_TO_BE_ESTABLISHED error. Please help, Thx 

ラベル(1)
0 件の賞賛
返信
1 解決策
850件の閲覧回数
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

Does the following picture correspond to your setup?

EduardoZamora_0-1700166703000.png

Can you provide more details about the application you are using on your central device? Is this application based on any of the BLE demo applications from the KW38 SDK? If so, which one?

Regards,
Eduardo.

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
876件の閲覧回数
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @darkblue

Have you modified the base source code of ancs_c demo application? Could you confirm if the same behavior is observed using a clean version (with no modifications) of this demo?

I tested the application using the demo app with no modifications and the reconnection was successful, this was my setup:

  • Device: iPhone 12 Pro Max
  • iOS version: 17.1.1
  • KW36 SDK version: 2.2.10

EduardoZamora_0-1700084912295.png

Regards,
Eduardo.

 

0 件の賞賛
返信
866件の閲覧回数
darkblue
Contributor I

Hello @EduardoZamora 

I modified ancs_c a little bit, but didn't touch the BLE bond communication codes I guess.  The first time for bonding is correct, see to below pic.  But when I disconnect and make central to scan the ancs_device again. It just can't find the device . BTW my central is frdmkw38 bluetooth and the version of kw38 SDK is 2.6.212. even though I make kw38 search in the whitelist.

 

 

1.png

0 件の賞賛
返信
851件の閲覧回数
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

Does the following picture correspond to your setup?

EduardoZamora_0-1700166703000.png

Can you provide more details about the application you are using on your central device? Is this application based on any of the BLE demo applications from the KW38 SDK? If so, which one?

Regards,
Eduardo.

0 件の賞賛
返信
749件の閲覧回数
darkblue
Contributor I

@EduardoZamora 

I think there is something wrong with nvm flash configuration in this sdk. Anyway, I removed all banks and it works now.

0 件の賞賛
返信