what is mean the bonding status of pairing event?

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

cross mob
hyhw_4628441
Level 2
Level 2
50 sign-ins 10 questions asked 25 sign-ins

hi,

 

i have found the bonding status of pairing event is changed when device is connecting.

i want to know what is bonding status. it is different with "wiced_result_t"

where the mean of bonding status is in?

i want to know bonding status value it have same with structure as below.

 

typedef struct {
    uint8_t *bd_addr; /**< peer address */
    wiced_bt_transport_t transport; /**< BT_TRANSPORT_BR_EDR or BT_TRANSPORT_LE */
    wiced_bt_dev_pairing_info_t pairing_complete_info; /**< Transport dependent pairing complete infomation */
    wiced_result_t bonding_status; /**< current status of bonding process to notify app of completion status of storing keys */
} wiced_bt_dev_pairing_cplt_t;

 

 

thanks.

0 Likes
5 Replies
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

Hi @hyhw_4628441 ,

If the Bonding status shows Success means both the devices have finished bonding. You can find the wiced_result_t values in /mtb_shared/wiced_btsdk/dev-kit/baselib/<chip>/<btsdk_version>/include/wiced_result.h

 

0 Likes

it is different with value in wiced_result.h

i have found the log as below.

 

Pairing Complete status:0 addr:98 2c bc 08 08 8a , trasport:1, bonding_status:0xdfa0

 

it triggered on BTM_PAIRING_COMPLETE_EVT, bonding status is not matched with value in wiced_result.h

 

please help me.

0 Likes

Which BTSDK version are you using?

There is no bonding_status info generated in BTSDK2.9.

Following is the structure-

/** Pairing complete notification (BTM_PAIRING_COMPLETE_EVT event data type) */
typedef struct
{
uint8_t *bd_addr; /**< peer address */
wiced_bt_transport_t transport; /**< BT_TRANSPORT_BR_EDR or BT_TRANSPORT_LE */
wiced_bt_dev_pairing_info_t pairing_complete_info; /**< Transport dependent pairing complete infomation */
wiced_result_t unused;
} wiced_bt_dev_pairing_cplt_t;

 

0 Likes

My sdk version is 6.2

The bonding_status is same with unused of wiced_bt_dev_pairing_cplt_t. it just different name.

0 Likes

So I believe you are using WICED Studio 6.2. Is it chip CYW20706? 

I can see bonding_status in wiced_bt_dev.h, but the data type is wiced_result_t only. bonding_status is just the name which is bit confusing.

I would suggest you to use latest BTSDK version with ModusToolbox.

0 Likes