<?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>Receiving Scan Response Packet</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18165/receiving-scan-response-packet</link><description>Hi All! 
 I&amp;#39;m working a few weeks now with the NRF52 DK and having loads of fun! 
 Today I tried to make a central/scanner that scans for packages from a broadcaster. To make the broadcaster I followed the tutorial provided by Nordic ( devzone.nordicsemi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Dec 2016 01:27:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18165/receiving-scan-response-packet" /><item><title>RE: Receiving Scan Response Packet</title><link>https://devzone.nordicsemi.com/thread/70127?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 01:27:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e07b39f-98b2-41d1-9492-f40a3f8048b7</guid><dc:creator>cherrycherry1</dc:creator><description>&lt;p&gt;Hi! Thanks, it&amp;#39;s working now.&lt;/p&gt;
&lt;p&gt;I checked if the packet was from a device that I was interested in. However, I did this on name, which is not there anymore in a Scan Response Packet. So just:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;case BLE_GAP_EVT_ADV_REPORT:
{   
       print_adv_data(&amp;amp;p_gap_evt-&amp;gt;params.adv_report);
}break;// BLE_GAP_ADV_REPORT
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;works fine. I&amp;#39;m working on filtering now, but that&amp;#39;s another question (whitelisting on advertisements etc).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving Scan Response Packet</title><link>https://devzone.nordicsemi.com/thread/70129?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2016 12:51:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05478d11-ac43-4496-9487-0874bd0c3a0a</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;To add to this: BLE_GAP_EVT_ADV_REPORT is used for both advertisements and scan responses. There is a flag in the event structure stating if it was a a scan response or not. For this to happen, the active field in scam_params must be set (you&amp;#39;ve done this) and the advertiser must have scan response data to respond with. The advertiser must also be advertising in a mode where scan requests are allowed (ADV_IND or ADV_SCAN_IND, not ADV_DIRECT_IND or ADV_NONCONN_IND). If it has filter policies enabled for scan requests, the scanners identity must be in the advertisers whitelist as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving Scan Response Packet</title><link>https://devzone.nordicsemi.com/thread/70128?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2016 09:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a69a42b9-020f-4ec1-902f-a643b0e2aa8f</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;When initiating advertising, ble_advertising_init(..) --&amp;gt; ble_adv_data_set(..) --&amp;gt; sd_ble_gap_adv_data_set(..), both advertising data and scan response data can be set. When a central/scanner sends a scan request, the advertising device will automatically reply with a scan response containing  the scan response data provided when initiating the advertising.&lt;/p&gt;
&lt;p&gt;The purpose of the event BLE_GAP_EVT_SCAN_REQ_REPORT is to tell the application that a scanner sent a scan response and that this device replied with the scan response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>