<?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>Trouble with directed advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20156/trouble-with-directed-advertising</link><description>Hello, I&amp;#39;ve been trying to get directed advertising and auto-connection working on an NRF51822 peripheral. 
 I&amp;#39;m using SDK V11.0 with SD130 v2.0.1 
 This is the scenario I&amp;#39;d like to get working: 
 
 Start normal (fast) advertising. 
 Pair &amp;amp; bond</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Mar 2017 09:15:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20156/trouble-with-directed-advertising" /><item><title>RE: Trouble with directed advertising</title><link>https://devzone.nordicsemi.com/thread/78489?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2017 09:15:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3512e06a-921e-4365-9214-7ad212ab8dad</guid><dc:creator>dingari</dc:creator><description>&lt;p&gt;So, this is resolved. Thank you for your help Kristin.&lt;/p&gt;
&lt;p&gt;To sum up:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Central OS&amp;#39;s do not necessarily auto-connect to peripherals advertising in directed mode.&lt;/li&gt;
&lt;li&gt;An exception is a peripheral implementing an HID keyboard or mouse, since the OS treats these devices differently.&lt;/li&gt;
&lt;li&gt;Similar behavior for non-HID peripherals needs to be coded in the application itself.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble with directed advertising</title><link>https://devzone.nordicsemi.com/thread/78492?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2017 08:12:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b615f8ff-a326-43fd-b573-2eeebd90b45a</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Yes, that is almost correct: A whitelist does only limit from whom peripheral will accept a connect request. A whitelist can be used independently of the advertising type.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble with directed advertising</title><link>https://devzone.nordicsemi.com/thread/78491?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 13:42:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbc9344d-bb4a-407b-b4df-0cb116d18248</guid><dc:creator>dingari</dc:creator><description>&lt;p&gt;Ok, that&amp;#39;s what I was starting to think. So the real difference between directed advertising and advertising with a whitelist is:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Directed: Advertise only to one specific peer and allow only that peer to send a connection request.&lt;/li&gt;
&lt;li&gt;Whitelist: Advertise to at least one specific peer. (Anyone is allowed to send a connection request though?)&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble with directed advertising</title><link>https://devzone.nordicsemi.com/thread/78498?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 12:04:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00269e7b-8753-4abb-bf61-2db09780926d</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;When using directed advertising, it is only the device specified in the directed advertising packet that is allowed to send a connect request to the advertiser.&lt;/p&gt;
&lt;p&gt;If your device is not a HID device, I would think that you have to write own software for controlling/maintaining the link with your device. That is how it is for Windows, Android, and iOS as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble with directed advertising</title><link>https://devzone.nordicsemi.com/thread/78497?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 11:15:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcaa7cf2-f7d1-483a-8b66-8a39816e988e</guid><dc:creator>dingari</dc:creator><description>&lt;p&gt;Ok, I&amp;#39;ve now tried adding the HID service to my application configured as a keyboard and voilá, it auto-connects. It doesn&amp;#39;t seem to have anything to do with directed advertising, since the connection isn&amp;#39;t established until the peripheral enters fast advertising. So, what exactly are we doing directed advertising for?&lt;/p&gt;
&lt;p&gt;But my peripheral is neither a keyboard or mouse. Is there no way of getting this behavior otherwise?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble with directed advertising</title><link>https://devzone.nordicsemi.com/thread/78496?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 10:35:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c522dab-55a2-4ba1-8668-eeff1637ccf2</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I would think that the behavior you are seeing is related to the HID service. In Windows, Android, iOS(?), devices with HID functionality is handled by the OS itself. So therefore, it would not be strange if Linux does the same.&lt;/p&gt;
&lt;p&gt;Perhaps it is not enough for a a device to only have the HID appearance, perhaps it also needs the related services?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble with directed advertising</title><link>https://devzone.nordicsemi.com/thread/78495?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 10:07:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc046037-7b31-4726-8702-a0ce598e8f54</guid><dc:creator>dingari</dc:creator><description>&lt;p&gt;I&amp;#39;ve just now tried flashing the ble_app_hids_keyboard example to another peripheral device I have handy. It shows the same behavior as my Logitech mouse (connects automatically). I&amp;#39;m going to look through the code in the example and see if I&amp;#39;m missing anything. But could it be because it is an HID, and my peripheral does not register as an HID? Is the central treating them differently?&lt;/p&gt;
&lt;p&gt;Edit: I tried setting my peripheral&amp;#39;s GAP appearance to both Generic HID and HID Keyboard but it is not auto-connecting. So I guess it&amp;#39;s not that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble with directed advertising</title><link>https://devzone.nordicsemi.com/thread/78494?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 09:39:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47c91494-0f0d-46f6-890d-d9136f518176</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;What is the peripheral application you are using? Could you try to use one of the HID examples in the SDK, ble_app_hids_keyaboard or ble_app_hids_mouse? Does that change anything?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble with directed advertising</title><link>https://devzone.nordicsemi.com/thread/78493?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 09:17:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d5a2b6b-4962-421a-9b58-ebb278319fc3</guid><dc:creator>dingari</dc:creator><description>&lt;p&gt;Hi Kristin, When I&amp;#39;m using my Logitech mouse, I don&amp;#39;t specifically need to be scanning on the Linux central, it just connects. But I just tried this with my peripheral: Connect &amp;amp; bond -&amp;gt; restart peripheral -&amp;gt; open scanning dialog on Linux central, but no connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble with directed advertising</title><link>https://devzone.nordicsemi.com/thread/78490?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2017 12:41:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd3db2e8-f3d1-4242-b42e-051a12bcacae</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;When your device starts to advertise directed advertising, could you double check that the Linux central is scanning?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>