How to set limited inqury access code when inquiring BR/EDR devices.

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

cross mob
HyJe_4673431
Level 1
Level 1
5 sign-ins First reply posted First question asked

Hello,

I want to search BR/EDR devices which use limited inquiry access code.

It seems like that setting 'mode' paramter in wiced_bt_dev_inq_parms_t to BTM_LIMITED_INQUIRY when calling wiced_bt_start_inquiry function is releated to inqury access code but I cannot find how to set limited inquiry access code.

I'm using CYW20719B2 and BT SDK v3.1.0.

 

Thanks,

Eric Jeon

0 Likes
2 Replies
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi @HyJe_4673431 

Can you please clarify the requirement? Are you looking for an example on how to use BTM_LIMITED_INQUIRY  mode? If then , below is an example usage: 

wiced_bt_dev_inq_parms_t params;

:

:
wiced_bt_set_inquiry_mode (BTM_INQ_RESULT_EXTENDED);


params.mode = BTM_LIMITED_INQUIRY  ;
params.duration = xx; // depends on your application
:

result = wiced_bt_start_inquiry( &params, &hci_control_inquiry_result_cback );
WICED_BT_TRACE( "inquiry started:%d\n", result );

 

Regards,

Anjana

0 Likes

Hi Anjana,

 

Thank you for your reply and example code snippet.

I want to set inquiry access code when doing limited inquiry.

As you know, IAC LAP can be 0x9E8B00 ~ 0x9E8B3F.

 

Regards,

Eric

0 Likes