<?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>Scan request callback</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/656/scan-request-callback</link><description>Hi, 
 I&amp;#39;m wondering if there&amp;#39;s any way to check if a peripheral device was actively scanned? I can easily set my own scan response data but is there any message generated when this data is requested by or sent to the host? I&amp;#39;m using SoftDevice S110 in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Jun 2015 19:17:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/656/scan-request-callback" /><item><title>RE: Scan request callback</title><link>https://devzone.nordicsemi.com/thread/3334?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2015 19:17:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92530435-d397-4f37-8292-39b02d74bfc3</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;Here is sample code that I confirmed works today.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = sd_ble_enable(&amp;amp;ble_enable_params);
APP_ERROR_CHECK(err_code);  
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;#ifdef SCAN_REQUEST_NOTIFICATION
const ble_opt_t scan_req_opt={ .gap_opt = { .scan_req_report = { .enable=1} } };
sd_ble_opt_set(BLE_GAP_OPT_SCAN_REQ_REPORT, &amp;amp;scan_req_opt);
#endif&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan request callback</title><link>https://devzone.nordicsemi.com/thread/3333?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2015 19:02:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69ba42b5-f78b-43c3-a9d9-e39d39cb556d</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;The ble_opt_t argument appears to be passed to SD through sd_ble_opt_set.  The sd_ble_enable fn only accepts ble_enable_params_t which only has gatts_enable_params.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan request callback</title><link>https://devzone.nordicsemi.com/thread/3332?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2015 19:25:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbee7a48-e052-46ec-8ad3-7aa00ccb8084</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;In the latest version of S110,  S110 v8.0.0, you can set the application to receive an event upon scan requests, this is stated in the release notes:&amp;quot; The main features of this release are the ability to set the size of the GATT Server Attribute Table when initializing the BLE stack, the possibilityfor the application to be notified when the SoftDevice receives scan requests, and the ability to disable RF channels for advertising.&amp;quot;&lt;/p&gt;
&lt;p&gt;Setting the firmware to receive scan requests should be done in the ble_opt_t argument in sd_ble_enable(..): ble_opt_t -&amp;gt; ble_gap_opt_t -&amp;gt;ble_gap_opt_scan_req_report_t.&lt;/p&gt;
&lt;p&gt;After setting the scan request option, the scan request are notified with the event BLE_GAP_EVT_SCAN_REQ_REPORT.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan request callback</title><link>https://devzone.nordicsemi.com/thread/3331?ContentTypeID=1</link><pubDate>Tue, 22 Jul 2014 11:11:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c1bfc7f-89c7-4ef9-bc3f-ea97ded5d801</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;Thank you. It works for me, of course.
-c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan request callback</title><link>https://devzone.nordicsemi.com/thread/3330?ContentTypeID=1</link><pubDate>Tue, 22 Jul 2014 11:07:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28e446ab-52ec-4436-957d-d74f1b7f6e6c</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;Will definitely give it a try after 2 weeks, We will come back to working on that project after that. Would that work for you ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan request callback</title><link>https://devzone.nordicsemi.com/thread/3329?ContentTypeID=1</link><pubDate>Tue, 22 Jul 2014 10:19:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36f0403d-7955-471f-915c-bb8fa25847f9</guid><dc:creator>cocoa</dc:creator><description>&lt;p&gt;Hi Star Destroyer,
do you think will be a gcc makefile for this project other than Keil uVision ?
Thank you.&lt;/p&gt;
&lt;p&gt;-c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan request callback</title><link>https://devzone.nordicsemi.com/thread/3328?ContentTypeID=1</link><pubDate>Tue, 22 Jul 2014 09:53:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7156ff99-41e6-44c2-a831-d0b331a76aee</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;It is possible for the advertiser to get the scan responses by implementing an Advertiser on top of the time slot API. An example for &lt;a href="http://nordicsemiconductor.github.io/nRF51-multi-role-conn-observer-advertiser/"&gt;this is available here&lt;/a&gt;. This provides the information about the scan requests i.e. address of the scanner, RSSI and the number of packets that passed CRC and the number of packets that failed CRC.&lt;/p&gt;
&lt;p&gt;This example also provides a simple to use HCI interface for the Advertiser.&lt;/p&gt;
&lt;p&gt;Uses S110 v7.0 Softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan request callback</title><link>https://devzone.nordicsemi.com/thread/3327?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2013 11:31:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eb106a3-9792-4a19-874d-e7cbdd26be56</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I&amp;#39;m wondering if there&amp;#39;s any way to check if a peripheral device was actively scanned? I can easily set my own scan response data but is there any message generated when this data is requested by or sent to the host? I&amp;#39;m using SoftDevice S110 in version 5.2.1.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;No, sorry, there is no way for the application to know. The Bluetooth specification does not lay out a clear way to do this and it is currently not part of the SoftDevice.&lt;/p&gt;
&lt;p&gt;All you can do is check the radio notifications for radio activity.&lt;/p&gt;
&lt;p&gt;Carles&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>