<?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>Advertisement interval Vs Connection interval</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17104/advertisement-interval-vs-connection-interval</link><description>Is it possible to have a fast advertisement interval (for connecting and bonding/pairing) for example: 40msec; at the same time, have a slow connection interval (after connection has established) - for example 1 second?
This is because in my project</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Oct 2016 06:59:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17104/advertisement-interval-vs-connection-interval" /><item><title>RE: Advertisement interval Vs Connection interval</title><link>https://devzone.nordicsemi.com/thread/65617?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2016 06:59:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:258d5f08-26f8-4d7d-aee4-2469f294de56</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Correct: advertising stops once connected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement interval Vs Connection interval</title><link>https://devzone.nordicsemi.com/thread/65621?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2016 06:54:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e40e50a9-8a2a-4819-a574-7f58245dee8f</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;As far as Bluetooth is concerned, you can vary the advertising interval however &amp;amp; whenever you like (within the spec limits)&lt;/p&gt;
&lt;p&gt;But if you have structured your software design with just a single, global &amp;quot;APP_ADV_INTERVAL&amp;quot; - then that&amp;#39;s something you&amp;#39;ll need to rethink!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement interval Vs Connection interval</title><link>https://devzone.nordicsemi.com/thread/65616?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 23:47:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e60a579-800f-41a9-a739-b90f4d4b4340</guid><dc:creator>AmiguelS</dc:creator><description>&lt;p&gt;If I&amp;#39;m not mistaken, the device stops advertising once it connects. If the device becomes disconnected, you have to run the advertising start procedure. If you use a variable as said above, you can change the interval at will, and the change will become effective wonce you start advertising again. I&amp;#39;m not 100% sure on this matter, so please correct me if I&amp;#39;m wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement interval Vs Connection interval</title><link>https://devzone.nordicsemi.com/thread/65615?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 22:12:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ca705cd-19a7-4bea-b52e-7729cd6359fb</guid><dc:creator>nordicdev</dc:creator><description>&lt;p&gt;Hi Amiguel, THanks for the reply. Is it possible to change advertisement interval on the fly(while the connection is still on and not disconnected)? THanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement interval Vs Connection interval</title><link>https://devzone.nordicsemi.com/thread/65614?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 17:10:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30aea4a5-6656-42cf-9a90-c5dca76ae70f</guid><dc:creator>AmiguelS</dc:creator><description>&lt;p&gt;As anweil pointed out, Advertising Interval and Connection Interval are independent from each other.&lt;/p&gt;
&lt;p&gt;If you want to force a connection to have a certain Connection Interval (CI), you should set &lt;code&gt;MIN_CONN_INTERVAL&lt;/code&gt; and &lt;code&gt;MAX_CONN_INTERVAL&lt;/code&gt; to the same value. But beware that not all devices support every CI. Some more information &lt;a href="https://devzone.nordicsemi.com/question/3440/how-do-i-calculate-throughput-for-a-ble-link/"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;As to your other question (re-connect), yes, you may choose a different Advertising Interval for each situation. In your code, there should something like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_gap_adv_params_t advertising_parameters;
....
advertising_parameters.interval = APP_ADV_INTERVAL;
....
sd_ble_gap_adv_start(&amp;amp;advertising_parameters);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In that piece of code &lt;code&gt;ADVERTISING_INTERVAL&lt;/code&gt; is a &lt;code&gt;#define&lt;/code&gt;, which makes it constant. This is similar to what is provided on the Nordic examples. However, you may instead use a variable, and set it for the value that you wish, depending on the situation, using&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;advertising_parameters.interval = my_adv_interval;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement interval Vs Connection interval</title><link>https://devzone.nordicsemi.com/thread/65619?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 15:21:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c9610ec-06da-4780-87f3-84bf480d62c3</guid><dc:creator>nordicdev</dc:creator><description>&lt;p&gt;Hi Awneil, consider the situation phone and nRF51 have already been connected and bonded before. Then, the phone and app have been disconnected(for example, phone has gone out of range of the nRF51 Bluetooth range). Now, will the nRF51 be using advertisement packets (using advertisement interval) to make itself available on the Bluetooth network so that the app can find it and reconnect to it, or, is there any re-connection advertisement interval to do so? I am asking this because, for reconnection (example: phone has gone out of the nRF51 Bluetooth range, and when the phone comes back into the range, my nRF51 would have already started a sensitive algorithm, which needs minimal softdevice&amp;#39;s cpu block time), I need the re-connection advertisement interval to be as slow as 1 second or more.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement interval Vs Connection interval</title><link>https://devzone.nordicsemi.com/thread/65620?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 15:08:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e60d8f3-4ea1-4b22-8bcc-fbcb63e99e0a</guid><dc:creator>nordicdev</dc:creator><description>&lt;p&gt;Hi Awneil, Thanks for the reply. Is advertisement interval in APP_ADV_INTERVAL and connection interval in MIN_CONN_INTERVAL and MAX_CONN_INTERVAL?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement interval Vs Connection interval</title><link>https://devzone.nordicsemi.com/thread/65618?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 10:12:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8772d85d-e735-4d5c-ab79-07d7754a80f6</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Yes - the Advertising Interval &amp;amp; Connection Interval are entirely independent.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>