<?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>Change Connection Parameters on the Fly</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10127/change-connection-parameters-on-the-fly</link><description>I&amp;#39;d like to be able to change the connection interval from my central device on the fly after a BLE connection has been established between it and the peripheral. What&amp;#39;s the proper way to go about doing this? Is it possible without dropping the connection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Nov 2015 06:48:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10127/change-connection-parameters-on-the-fly" /><item><title>RE: Change Connection Parameters on the Fly</title><link>https://devzone.nordicsemi.com/thread/37566?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2015 06:48:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e41f2d0-f997-4b41-806a-2da41f00151f</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Sorry, I tested from the nRF51 side, but looking at the Android API I guess you could do this with &lt;a href="https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html#requestConnectionPriority%28int%29"&gt;request connection priority&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change Connection Parameters on the Fly</title><link>https://devzone.nordicsemi.com/thread/37565?ContentTypeID=1</link><pubDate>Fri, 20 Nov 2015 15:01:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbab7a0a-869a-455f-b1fe-7afcdb5b9db3</guid><dc:creator>danbujak</dc:creator><description>&lt;p&gt;What mechanism did you use to send the connection parameter update request? You&amp;#39;re able to make this request from the android side?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change Connection Parameters on the Fly</title><link>https://devzone.nordicsemi.com/thread/37563?ContentTypeID=1</link><pubDate>Fri, 20 Nov 2015 08:36:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4e77b2e-a3a8-4d43-8106-931e8f08c1a9</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Just did a test where I send aconnection parameter update request every 30th second. As far as I can see this works just fine. The test was done on:&lt;br /&gt;
1.Nexus 6 running Android 6.0&lt;br /&gt;
2.Samsung galaxy S4 with Android 5.0.1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change Connection Parameters on the Fly</title><link>https://devzone.nordicsemi.com/thread/37564?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2015 10:27:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:244e9c1b-cf6a-46ca-a1a4-e2090931b6ab</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Jut found this - might be worthy of note:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/question/18916/nrf8001-and-changetimingrequest-30-second-delay/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change Connection Parameters on the Fly</title><link>https://devzone.nordicsemi.com/thread/37560?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2015 19:22:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:214d188c-8c6f-43cc-b8c3-8806719934c2</guid><dc:creator>danbujak</dc:creator><description>&lt;p&gt;Thanks for the suggestion run_ar but the problem is we need to send very small amounts of data and quite infrequently but the response time needs to be fairly quick for the user experience. Ideally this would really need to be an android solution, so if what you&amp;#39;re saying is true then that would be great. However, I also fear it may be wishful thinking :P&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change Connection Parameters on the Fly</title><link>https://devzone.nordicsemi.com/thread/37559?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2015 19:19:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14fd9c53-b892-44f1-b78d-892074882b35</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;awneil: Yes, change timing is similar for the nRF8001, in ble-sdk-arduino the command is lib_aci_change_timing or lib_aci_change_timing_GAP_PPCP (to use the preprogrammed connection parameters).&lt;/p&gt;
&lt;p&gt;danbujak: One possibility could be to still use slave latency and have a characteristic that tells the slave that you want to transfer data. Then the slave can stay awake (by sending dummy data or something) to receive the data you want to send it. Not sure for how long periods you need to send data. But it is a possible workaround if the restriction is there in Android. However I will check with our Android expert if it is possible to change the connection interval more often (I think it is in the newer versions, but it could be just wishful thinking...)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change Connection Parameters on the Fly</title><link>https://devzone.nordicsemi.com/thread/37562?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2015 15:19:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:090498dd-6b47-476d-9d4b-e4fa88d4442b</guid><dc:creator>danbujak</dc:creator><description>&lt;p&gt;The problem is that we need low latency from the master to the slave, and low power consumption on the slave.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change Connection Parameters on the Fly</title><link>https://devzone.nordicsemi.com/thread/37561?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2015 06:35:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6689568-c5ef-4b4b-9eb6-c212f93dc02b</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;One option could be to use slave latency, this way you can have low latency from the slave to the master when needed, but you can have low power consumption on the slave when you don&amp;#39;t need the fast connection interval. The master will still have to send a packet every connection event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change Connection Parameters on the Fly</title><link>https://devzone.nordicsemi.com/thread/37558?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2015 19:33:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2279d7eb-1deb-49e8-bf7e-d090344d33ca</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;Be careful,  I believe on Android, you are only allowed one Connection Parameter update per connection (Not sure if this has changed with the new OS).   All subsequent Connection Parameter Update requests from the peripheral will be ignored by the phone.&lt;/p&gt;
&lt;p&gt;-DC&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change Connection Parameters on the Fly</title><link>https://devzone.nordicsemi.com/thread/37557?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2015 16:50:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dc69a70-1402-4736-8bb8-a68ec112dba6</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Same question for &lt;strong&gt;nRF8001&lt;/strong&gt;!&lt;/p&gt;
&lt;p&gt;Is it similarly just a case of issuing a ChangeTimingRequest ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change Connection Parameters on the Fly</title><link>https://devzone.nordicsemi.com/thread/37556?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2015 16:18:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0084102d-9bbb-4350-acfa-32c051b15e85</guid><dc:creator>danbujak</dc:creator><description>&lt;p&gt;Thanks, I just amended the question to include use case 2 where the central is an android device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change Connection Parameters on the Fly</title><link>https://devzone.nordicsemi.com/thread/37555?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2015 16:15:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef8d1f92-2570-4ab0-a930-95923f593009</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;Sure it is. Just &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.0.0/s120/html/a00703.html#gaf89b434841998ab384e0612dca9e12f8"&gt;sd_ble_gap_conn_param_update&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>