<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to get the scan response data in nrf52832 while scanning nearby BLE devices?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66668/how-to-get-the-scan-response-data-in-nrf52832-while-scanning-nearby-ble-devices</link><description>Hi, 
 I am using NR52832 with nRF5_SDK_15.3.0_59ac345 . 
 I want to scan nearby mobile BLE devices and get its data from its advertising data and also its scan response data. 
 I am able to scan nearby devices, also able to get information like its mac</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Oct 2020 13:54:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66668/how-to-get-the-scan-response-data-in-nrf52832-while-scanning-nearby-ble-devices" /><item><title>RE: How to get the scan response data in nrf52832 while scanning nearby BLE devices?</title><link>https://devzone.nordicsemi.com/thread/273009?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 13:54:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7dd6c9e-0f60-4bfe-97ff-c2f64aaa5629</guid><dc:creator>VIJAY</dc:creator><description>&lt;p&gt;Thanks. Now I am getting scan response data. Thanks. I haven&amp;#39;t printed a log other than the advertising response.that&amp;#39;s why I am not getting a response. But now it&amp;#39;s all done. Getting all scan response.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Thanks Kenneth.&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the scan response data in nrf52832 while scanning nearby BLE devices?</title><link>https://devzone.nordicsemi.com/thread/273007?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 13:51:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c3e62ef-6efb-4330-9ed9-4a47a3f0baf9</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Are you sure that the peer have scan response data?&lt;/p&gt;
&lt;p&gt;Maybe an nRF sniffer log of the actual on-air data could help for comparison.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the scan response data in nrf52832 while scanning nearby BLE devices?</title><link>https://devzone.nordicsemi.com/thread/272897?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 08:53:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1621680-6b55-4f74-b08d-b59b4e9c3292</guid><dc:creator>VIJAY</dc:creator><description>[quote userid="2111" url="~/f/nordic-q-a/66668/how-to-get-the-scan-response-data-in-nrf52832-while-scanning-nearby-ble-devices/272894#272894"]&lt;p&gt;if(p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.type.scan_response == 0)&lt;br /&gt;//This is an advertisement packet&lt;/p&gt;
&lt;p&gt;if(p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.type.scan_response == 1)&lt;br /&gt;//This is an scan response packe&lt;/p&gt;[/quote]
&lt;p&gt;Thanks for your reply. I have tried this structure. in both case I received&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.type.scan_response = 0&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the scan response data in nrf52832 while scanning nearby BLE devices?</title><link>https://devzone.nordicsemi.com/thread/272894?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 08:47:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eccc2f0-97e2-4acf-9f4b-e40a05bc3acf</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.type.scan_response will tell whether the received advertisement report is a scan response or not. So you typically will receive two BLE_GAP_EVT_ADV_REPORT if there is a scan response available, e.g.:&lt;/p&gt;
&lt;p&gt;if(p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.type.scan_response == 0)&lt;br /&gt;//This is an advertisement packet&lt;/p&gt;
&lt;p&gt;if(p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.type.scan_response == 1)&lt;br /&gt;//This is an scan response packet&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>