CYW20706 BLE cerntral scan data

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

cross mob
adam
Level 4
Level 4
5 solutions authored 25 replies posted 50 sign-ins

Hi,

I am using CYW20706 in LE_Hello_Seneor project, 

When 20706 in Central role and start scaning.

I only get advertisement data, but no any scan respone data.

Is there any config I need to set or API to get the scan response data?

thanks,

0 Likes
1 Solution
adam
Level 4
Level 4
5 solutions authored 25 replies posted 50 sign-ins

I found it.

in bt_cfg.ble_scan_cfg.scan_mode, I need to set BTM_BLE_SCAN_MODE_ACTIVE to get scan response

View solution in original post

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

Hello @adam 

LE_Hello_Seneor project is a Peripheral project. Have you included start scan API in the existing example project ? 

or are you using Hello_client project ? Can you please confirm? 

Check if the info in below thread helps or not: 

https://community.infineon.com/t5/Studio-Bluetooth/CYW20719-How-to-send-receive-Scan-Response-packet...

Thanks,

Anjana

0 Likes

Hi @AnjanaM_61 ,

I am using LE_Hello_sensor correctly. I include scan API in this project.

In wiced_bt_ble_scan_result_cback_t *p_scan_result_cback, I only get advertisement data, so I am curious about where is scan response.

thanks.

0 Likes
lock attach
Attachments are accessible only for community members.

I directly print the data what I scan, only see advertisement data.

adv type 0x06 -> advertisement data

adv type 0x09 -> scan response 

0 Likes
adam
Level 4
Level 4
5 solutions authored 25 replies posted 50 sign-ins

I found it.

in bt_cfg.ble_scan_cfg.scan_mode, I need to set BTM_BLE_SCAN_MODE_ACTIVE to get scan response

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

Hello @adam 

Thanks for sharing your test results. 

Yes you are correct. For getting scan response data, Central device should do active scanning. 

Regards,
Anjana

0 Likes