<?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>Detecting Central device sending scan request</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2558/detecting-central-device-sending-scan-request</link><description>Is it possible on the nRF51822 to surface an every from the Soft Device whenever a client attempt a scan (is it SCAN_REQ?) 
 This is for an iBeacon implementation where I want to know when a client device (mobile phone) has actually done a scan of the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Mar 2015 19:26:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2558/detecting-central-device-sending-scan-request" /><item><title>RE: Detecting Central device sending scan request</title><link>https://devzone.nordicsemi.com/thread/10180?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2015 19:26:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20e7c8f3-c553-4df9-a3a3-555c970c4e67</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: Detecting Central device sending scan request</title><link>https://devzone.nordicsemi.com/thread/10177?ContentTypeID=1</link><pubDate>Mon, 02 Jun 2014 10:14:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62cf8325-270c-46b0-9c59-c9a51b57609d</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;I think this would be pretty reliable, the one thing to keep in mind is that you could have up until 3 scan responses as it is advertising on 3 different channels. It takes about 8us for each byte, and it transmit/receive about 6 byte + adv data/ scan response data for each packet, + 150 us between the adv_data and scan request and between scan req and scan response&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Detecting Central device sending scan request</title><link>https://devzone.nordicsemi.com/thread/10179?ContentTypeID=1</link><pubDate>Thu, 29 May 2014 08:01:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6947856-df69-489f-a2a2-a3f295989861</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Hi Pal,&lt;/p&gt;
&lt;p&gt;That sounds like an interesting idea... would it be reliable? Has anyone done something like this before...?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Detecting Central device sending scan request</title><link>https://devzone.nordicsemi.com/thread/10178?ContentTypeID=1</link><pubDate>Mon, 19 May 2014 13:50:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daabfc18-8bb7-4df0-91f9-5d4aac3214e4</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;The alternative would be use the Radio peripheral on the nRF51 to implement the advertising and the handling of the scan request. This means you do not have to use the softdevice. This should be fairly simple to implement but unfortunately no source code is available for this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Detecting Central device sending scan request</title><link>https://devzone.nordicsemi.com/thread/10176?ContentTypeID=1</link><pubDate>Mon, 19 May 2014 09:15:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ceab0558-336c-4c81-bc89-40b4ff611a52</guid><dc:creator>P&amp;#229;l H&amp;#229;land</dc:creator><description>&lt;p&gt;Hi Chris,&lt;/p&gt;
&lt;p&gt;The stack does not notify the application if it have received a scan request.&lt;/p&gt;
&lt;p&gt;One way of detecting this is to use the radio notification API.
&lt;a href="https://devzone.nordicsemi.com/documentation/nrf51/5.2.0/html/a01296.html#ga15378609daca09588e620b64555fc2e8"&gt;devzone.nordicsemi.com/.../a01296.html&lt;/a&gt;
&lt;a href="https://devzone.nordicsemi.com/documentation/nrf51/5.2.0/html/a01294.html#ga456d5bd7eb8192fa3a0828646994587d"&gt;devzone.nordicsemi.com/.../a01294.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;By starting a timer when you receive the first notification, and timing it until  you receive the end notification, you can see if there is an addition of time spent in the advertising.&lt;/p&gt;
&lt;p&gt;BR
Pål&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>