<?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>bond connection questions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4663/bond-connection-questions</link><description>Hi, 
 Some questions in example ble_app_hids_keyboard/main.c 
 
 
 Why set the adv_params.timeout to zero in BLE_DIRECT_ADV (Line 779) ?
That will cause no BLE_GAP_EVT_TIMEOUT event come, right? 
 
 
 If no BLE_GAP_EVT_TIMEOUT event come, which</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Dec 2014 13:04:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4663/bond-connection-questions" /><item><title>RE: bond connection questions</title><link>https://devzone.nordicsemi.com/thread/16553?ContentTypeID=1</link><pubDate>Thu, 11 Dec 2014 13:04:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb15ffd9-fa5c-4b55-bdca-aaea4d769a37</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It is a bit confusing. In the &lt;code&gt;BLE_DIRECTED_ADV&lt;/code&gt; state the device will be put in &amp;quot;Directed Connectable Mode&amp;quot; (see &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0676.Core_5F00_v4.1.pdf"&gt;Bluetooth Core Specification 4.1&lt;/a&gt;, Volume 3, Part C, Section 9.3.3.&lt;/p&gt;
&lt;p&gt;Last sentence: &amp;quot;The Host shall configure the Controller to send directed connectable advertising
events.&amp;quot;&lt;/p&gt;
&lt;p&gt;In Volume 6, Part B, Section 4.4.2 (Table 4.1) you can see that ADV_DIRECT_IND should be used for connectable directed events.&lt;/p&gt;
&lt;p&gt;The connectable directed event type is explained in Volume 6, Part B, Section 4.4.2.4. The SoftDevice uses &amp;quot;High Duty Cycle Directed Advertising&amp;quot;. This shall not last more than 1.28 seconds.&lt;/p&gt;
&lt;p&gt;This 1.28 seconds limit is enforced by the SoftDevice, it seems it just ignores the set timeout value.&lt;/p&gt;
&lt;p&gt;So, after 1.28 seconds you will get &lt;code&gt;BLE_GAP_EVT_TIMEOUT&lt;/code&gt;, &lt;code&gt;m_direct_adv_cnt&lt;/code&gt; will be decreased and so on.&lt;/p&gt;
&lt;p&gt;Regarding your issue with iOS8 and Android, could you add this as a new question? Please try to provide some more information. &lt;a href="https://devzone.nordicsemi.com/blogs/7/how-should-i-ask-my-question/"&gt;This&lt;/a&gt; may be helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>