- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have two CYW20719 boards set up to be peers and exchange data using advertisements and scan response packets. Both are running the same code. They are set on active scanning, and when I scan, I can receive the advertisement packets, but I never receive any scan response packets from the other device. Whats needs to be done to send and receive scan response packets correctly?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the response.
As it turned out, I was correctly setting the response data. The problem was that I was not using the correct advertising settings on the 'peripheral' device. It is necessary to start advertisements with the BTM_BLE_ADVERT_UNDIRECTED_HIGH setting (maybe low as well).
Nicholas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Nicholas,
From the peripheral side, you can set the scan response packet by the API wiced_bt_ble_set_raw_scan_response_data (refer description in wiced_bt_ble.h ) .
On the Central side, there will be a call back function passed to wiced_bt_ble_scan (of type wiced_bt_ble_scan_result_cback_t).
In the wiced_bt_ble_scan_result_cback_t , the structure parameter ble_evt_type of wiced_bt_ble_scan_results_t will be BTM_BLE_EVT_SCAN_RSP for scan response data. And print the corresponding data received in the call back.
Thanks & Regards,
Anjana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the response.
As it turned out, I was correctly setting the response data. The problem was that I was not using the correct advertising settings on the 'peripheral' device. It is necessary to start advertisements with the BTM_BLE_ADVERT_UNDIRECTED_HIGH setting (maybe low as well).
Nicholas