After which callback should communication begin?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

After which connection callback should central begin communication by sending write-request?

After connUP callback, encryption callback, or bond callback?

We thought it was after bond.  But with our newest board, there most times there is no bond callback.

Central does connUP command ("blecm_CreateConnection"),

then central gets connUP callback,
then encryption callback,

but usually no bond callback.

Yet, communication can proceed.

0 Likes
1 Solution
VictorZ_46
Employee
Employee
5 comments on blog 25 sign-ins 250 likes received

Bonding supposed to be once in a lifetime event.  At that time "bond" is created and both sides of connection save keys.  For further connections link is encrypted without bonding.  The interesting part is that first time around you will see encryption following by bonding.  So I guess when you receive the "encrypted" callback you can check if device is bonded and if so start communicating.

View solution in original post

0 Likes
1 Reply
VictorZ_46
Employee
Employee
5 comments on blog 25 sign-ins 250 likes received

Bonding supposed to be once in a lifetime event.  At that time "bond" is created and both sides of connection save keys.  For further connections link is encrypted without bonding.  The interesting part is that first time around you will see encryption following by bonding.  So I guess when you receive the "encrypted" callback you can check if device is bonded and if so start communicating.

0 Likes