<?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>Disable scan response</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20796/disable-scan-response</link><description>I would like to reduce current consumption on my beacon and I wonder if it is possible to disable sending scan response. I know that it is not a huge difference in a single advertising event, but when you have short advertising period it makes difference</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Apr 2017 12:19:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20796/disable-scan-response" /><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81223?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2017 12:19:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d76edac-c165-4934-9b21-e8fa26d7b9c4</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Sorry, my bad; not sure what I was thinking.  Please try to just set the flag to: BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED (0x04). Note that some phones might not support a peripheral that doesn&amp;#39;t send a scan response, even if it is just an empty reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81210?ContentTypeID=1</link><pubDate>Mon, 10 Apr 2017 13:51:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25511b57-73c8-4733-bcd5-bfd921f5a568</guid><dc:creator>Al Bundy</dc:creator><description>&lt;p&gt;&amp;#39;You can use the the whitelist in limited discoverable mode.&amp;#39; Well if I set BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE instead of BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE I still get error 0x3201. According to one of yours earlier comments it means &amp;#39;Use of Whitelist not permitted with discoverable advertising.&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81222?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 15:06:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78e7adaa-0f9e-4f60-a6b6-b3ecadfbebab</guid><dc:creator>Al Bundy</dc:creator><description>&lt;p&gt;Mobile phone, or to be more precise multiple mobile phones. I still want all mobile phones to be able to connect to my beacon but do not want to sent SCAN RESPONSES. Is it possible with limited discoverable mode? I want to use whitelist for scan requests with one random address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81220?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 14:23:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f27f4c5-8d3b-4e40-b9eb-19da77cbdbc1</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;You can use the the whitelist in limited discoverable mode. But what peer devices do you have?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81219?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 13:54:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b7e8532-f74c-42b2-b986-65e628b0ca1e</guid><dc:creator>Al Bundy</dc:creator><description>&lt;p&gt;Can I disable SCAN RESPONSE in limited discoverable mode or there is no SCAN REQUEST at all in this mode?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81221?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 12:40:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f271d382-d58e-4a00-ad16-f598d3de8bfa</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;It&amp;#39;s a core spec limitation: &amp;quot;The Host shall set the advertising filter policy to ‘process scan and
connection requests from all devices’.&amp;quot;&lt;br /&gt;
Note: You could use limited discoverable mode and just restart advertising when it times out.&lt;/p&gt;
&lt;p&gt;I finally figured out why we still send a scan response even with 0 data length. Apparently it&amp;#39;s common that the scanner will ignore advertisers that don&amp;#39;t respond to scan requests, so your device wouldn&amp;#39;t be discoverable at all. A bit inconvenient, but it is what it is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81214?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2017 15:58:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e29ec456-4cfb-40c2-9a45-4ad329e23873</guid><dc:creator>Al Bundy</dc:creator><description>&lt;p&gt;So it is not possible to filter SCAN REQUEST and accept  BLE connections from any other devices? These 2 things seems to be totally independent&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81213?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2017 14:27:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae3e9240-edf5-491b-a9cb-2fcfc32d7efc</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Yes, it means: Use of Whitelist not permitted with discoverable advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81218?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2017 13:14:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b14447f6-596e-4dfd-95af-6c3f93523e52</guid><dc:creator>Al Bundy</dc:creator><description>&lt;p&gt;In EDIT I have shown how I want to achieve my goal, unfortunately ad_ble_gap_adv_start returns 0x3201.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81217?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2017 12:38:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f3408f6-287c-4a1b-b7ed-1ee2e6e5bccb</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;To use the whitelist advertisement feature just provide a static  address and configure the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v4.0.2/group___b_l_e___g_a_p___a_d_v___f_i_l_t_e_r___p_o_l_i_c_i_e_s.html"&gt;filter policy&lt;/a&gt; correctly (ble_gap_adv_params_t::fp)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81208?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 13:00:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f6a64f4-9ead-46ba-8d3c-13b3f01df770</guid><dc:creator>Al Bundy</dc:creator><description>&lt;p&gt;Last time I have tried to implement it I have end up with failure. I sniffed SCAN RESPONSEs anyway. I am going to try again, can you also try it? It is not so time consuming.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81211?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 12:43:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5b31f65-2ae6-4c8e-986e-e4f9b9d21830</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;From what I read yes. What do you see on RF sniffer?;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81209?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 12:31:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1cf9aff-a5ba-4f02-bd75-cb79331b43c2</guid><dc:creator>Al Bundy</dc:creator><description>&lt;p&gt;Yes it will, but using whitelist should result in sending no SCAN_RSP at all?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81212?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 11:22:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:404089ba-617b-4ee5-a403-30be5fa442e9</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;But this will still send SCAN_RSP just with zero PDU lenght, won&amp;#39;t it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81207?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 11:00:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f115667-2458-4161-b49e-665d3ba6baff</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;If you don&amp;#39;t want to send scan responses at all you can set p_sr_data og srdlen to 0 when calling sd_ble_gap_adv_data_set.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81216?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 10:17:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aba39097-caba-487a-a16e-56c28b250b2a</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;In that case yes, this GAP API flag should bring you what you want (sending SCAN_RSP only to SCAN_REQ from given MAC address). Have you already tested it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81215?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 09:51:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f24bef9b-675e-4e5b-ba5d-a3f7595dcd8c</guid><dc:creator>Al Bundy</dc:creator><description>&lt;p&gt;I do not want to avoid Rx window, I want to avoid sending scan response packet. I thought that when I use filter for scan request with random address then my beacon will send scan response packet only to that one specific address. Now my beacon sends scan response to every device that issue scan request. Am I wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable scan response</title><link>https://devzone.nordicsemi.com/thread/81206?ContentTypeID=1</link><pubDate>Sat, 25 Mar 2017 16:05:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10a68039-9c4c-4b3f-8dfd-5f0c86bcdf1b</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You probably want to avoid Rx window after each Advertisement Tx packet, providing random address to the whitelist won&amp;#39;t help you (Soft Device will still be listening). In that case you must use &lt;code&gt;BLE_GAP_ADV_TYPE_ADV_NONCONN_IND&lt;/code&gt; (see &lt;a href="https://devzone.nordicsemi.com/question/79326/ble_gap_adv_type_adv_nonconn_ind-modenot-scan-response-data/?answer=79405#post-id-79405"&gt;this answer&lt;/a&gt; for more) but it has some side effects:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Soft Device won&amp;#39;t allow you to set lower adv. interval then 100ms (in-line with BT SIG Core specification).&lt;/li&gt;
&lt;li&gt;Soft Device won&amp;#39;t listen for connection (again in-line with BT SIG Core).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you don&amp;#39;t like this variant, then you would need other BLE stack then Nordic Soft Device (and probably customize it as it might be enforcing these BT SIG rules as well).&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>