<?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>[S120] Send scan request to particular peripherals</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12240/s120-send-scan-request-to-particular-peripherals</link><description>Using, 
 
 
 IAR EWARM 7.20 
 
 
 PCA10001 V 2.0.0 (Changed the MCU to QFAAH00 Revision 3) 
 
 
 SDK 10.0 
 
 
 SoftDevice S120 2.1 
 
 
 Example: Multi-link Example (examples\ble_central\ble_app_multilink_peripheral) 
 
 
 /*******</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Mar 2016 09:37:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12240/s120-send-scan-request-to-particular-peripherals" /><item><title>RE: [S120] Send scan request to particular peripherals</title><link>https://devzone.nordicsemi.com/thread/46312?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 09:37:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75373581-2d2f-4c4f-a2ad-6d395c6b4489</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I have updated my answer to answer your questions. I was a little wrong is shouldn&amp;#39;t be any problem to use  encryption. The device manager stores by default the IRK for each device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [S120] Send scan request to particular peripherals</title><link>https://devzone.nordicsemi.com/thread/46311?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2016 14:52:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a02e3d29-e471-4592-a98a-d3f481cbfbb7</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;This time, suppose peripherals X,Y, and Z&amp;#39;s addresses are set to &lt;code&gt;FF:EE:DD:CC:BB:AA&lt;/code&gt; and they use only NUS.&lt;/p&gt;
&lt;ol start="0"&gt;
&lt;li&gt;
&lt;p&gt;Is selective scanning meaning passive scanning? Also, I should set my central device to do selective scanning, do I?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I&amp;#39;m not getting the meaning of &lt;code&gt;not using encryption&lt;/code&gt;. Since the peripherals only use NUS,&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;after pairing, both central and connected peripherals are not using encryption, are they?&lt;/p&gt;
&lt;p&gt;Is this something about pairing and bonding?&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;When adding device at the whitelist, I thought the IRK of the peripheral was required.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I thought only bonded peripherals were added.&lt;/p&gt;
&lt;p&gt;When pairing, does the central calls device manager related handlers to add it to the whitelist?&lt;/p&gt;
&lt;p&gt;I might have known some completely incorrect. So feel free to point out the wrong ideas I have, please.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [S120] Send scan request to particular peripherals</title><link>https://devzone.nordicsemi.com/thread/46310?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2016 13:34:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1731ac2-8d32-4ddf-ab47-60e0824ed317</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;In order to not send a scan request to any peripheral, you have to use the selective scanning option  in &lt;code&gt;m_scan_param&lt;/code&gt;. When setting selective scanning, the scanner needs a whitelist of device addresses towards which it should transmit scan requests.&lt;/p&gt;
&lt;p&gt;I guess the ideal option for you would be to use selective scanning based on UUIDs, but unfortunately, that is not an option.&lt;/p&gt;
&lt;p&gt;One way to &amp;quot;get around&amp;quot; adding multiple devices to the whitelist is to set the address in all the peripheral devices to the same address. And then, add that address to the whitelist. You can set the address of the peripheral devices using &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s130.api.v1.0.0%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=2_7_2_1_1_2_1_4_1&amp;amp;anchor=gaaf0deb48ed35d1e6ede6222dd72fe12c"&gt;sd_ble_gap_address_set(..)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 02.03.16&lt;/strong&gt;: &lt;a href="https://devzone.nordicsemi.com/blogs/782/bluetooth-smart-and-the-nordics-softdevices-part-1/"&gt;This&lt;/a&gt; tutorial in the section &amp;quot;Setting up and start advertising with our Softdevice --&amp;gt; Example code&amp;quot; shows how to add a device address to a whitelist for advertising. However, the way to add a device to a whitlist for scanning is exactly the same.&lt;/p&gt;
&lt;p&gt;I have attached a scanning example that shows how to add a device to a whitelist, and then perform active selective scanning: &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_hrs_5F00_c_5F00_filter_5F00_active_5F00_scanning.zip"&gt;ble_app_hrs_c_filter_active_scanning.zip&lt;/a&gt;  The example is a modifed version of ble_app_hrs_c, and was made with SDK 11.0.0-2.alpha. The example should be placed in the following folder: ..\nRF5_SDK_11.0.0-2.alpha_bc3f6a0\examples\ble_central&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;0)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Active scanning:&lt;/strong&gt; Scanning device sends scan requests to advertisers of type &amp;quot;connectable unidirected&amp;quot; or &amp;quot;scannable unidirected (non-connectable device)&amp;quot; based on a potentially set filter policy .&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Selective scanning:&lt;/strong&gt; Selective scanning is filtered scanning based on a whitelist.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Active selective scanning:&lt;/strong&gt; Active scanning scanning based on a filter policy (whitelist).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1)&lt;/strong&gt; Yes, if you plan to implement bonding in your application when connecting to a pheripheral and multiple peripheral devices have the same address, the bond information cannot be stored based on both the device address and the IRK. That is the default setting in the device manager.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2)&lt;/strong&gt; You can add devices to the scan whitelist manually. For scanning there is no need for an IRK. When bonding, the device stores the encryption information using the devices manager. When pairing, the encryption information is not stored upon a disconnection. Bonding with devices doesn&amp;#39;t automatically enables a whitelist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>