<?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>MIN_CONN_INTERVAL MAX_CONN_INTERVAL SLAVE_LATENCY CONN_SUP_TIMEOUT parameters values for Android and iOS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20056/min_conn_interval-max_conn_interval-slave_latency-conn_sup_timeout-parameters-values-for-android-and-ios</link><description>MIN_CONN_INTERVAL 
 MAX_CONN_INTERVAL 
 SLAVE_LATENCY 
 CONN_SUP_TIMEOUT 
 Hey guys,
I want use my device with Android as well as iOS, but i am facing some issues for data sending over BLE... I am getting errors like 0x3401, 0x3004... 
 Anyone can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Aug 2017 09:17:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20056/min_conn_interval-max_conn_interval-slave_latency-conn_sup_timeout-parameters-values-for-android-and-ios" /><item><title>RE: MIN_CONN_INTERVAL MAX_CONN_INTERVAL SLAVE_LATENCY CONN_SUP_TIMEOUT parameters values for Android and iOS</title><link>https://devzone.nordicsemi.com/thread/78060?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2017 09:17:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d67d0496-dfab-487e-8418-4fec524bfe7e</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;I only took a brief look, but it looks fine to me. Thank you for sharing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MIN_CONN_INTERVAL MAX_CONN_INTERVAL SLAVE_LATENCY CONN_SUP_TIMEOUT parameters values for Android and iOS</title><link>https://devzone.nordicsemi.com/thread/78062?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 08:19:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fb00b74-2a88-45f7-afe8-33f403d192ff</guid><dc:creator>Sergio A. Martinez</dc:creator><description>&lt;p&gt;Just updated again from the specs. The calculation now is a bit more complicated and I am not working on BLE now, I hope it looks alright.&lt;/p&gt;
&lt;p&gt;I copied the excerpt from the documentation so next revisions have something to look at in case there is a change on the specs again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MIN_CONN_INTERVAL MAX_CONN_INTERVAL SLAVE_LATENCY CONN_SUP_TIMEOUT parameters values for Android and iOS</title><link>https://devzone.nordicsemi.com/thread/78061?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 07:46:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4671b8a2-988a-41cc-a2f6-0a52f84dca1c</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Looks like the guidelines was updated... Maybe add a sheet for the new parameters? For the old parameters I thought max slave latency was 4? (Maybe not, haven&amp;#39;t tested it...)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MIN_CONN_INTERVAL MAX_CONN_INTERVAL SLAVE_LATENCY CONN_SUP_TIMEOUT parameters values for Android and iOS</title><link>https://devzone.nordicsemi.com/thread/78059?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 10:49:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df29907e-e9e9-458b-9856-eff7a5d7e85b</guid><dc:creator>Sergio A. Martinez</dc:creator><description>&lt;p&gt;Wrote a little google Sheet to perform this calculation and check if your values are correct for iOS.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.google.com/spreadsheets/d/1uOebp5u8fzdiRhz1w7zY6jxE1IqiF0TxMMZDIs1yhNk/edit?usp=sharing"&gt;docs.google.com/.../edit&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you want to change and try different values, make a copy and edit it.&lt;/p&gt;
&lt;p&gt;And if you see any problem, please tell me :). I am using that to calculate my own values.&lt;/p&gt;
&lt;p&gt;Sergio&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MIN_CONN_INTERVAL MAX_CONN_INTERVAL SLAVE_LATENCY CONN_SUP_TIMEOUT parameters values for Android and iOS</title><link>https://devzone.nordicsemi.com/thread/78058?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2017 15:46:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40e3614c-f0c8-495c-8b6a-46bb9c0ea58f</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;You will probably get an interval closer to max, so slower than 50ms, If that is ok for your usecase, I don&amp;#39;t see why it wouldn&amp;#39;t work with iOS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MIN_CONN_INTERVAL MAX_CONN_INTERVAL SLAVE_LATENCY CONN_SUP_TIMEOUT parameters values for Android and iOS</title><link>https://devzone.nordicsemi.com/thread/78056?ContentTypeID=1</link><pubDate>Sat, 04 Mar 2017 05:37:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88b1e713-a8f4-4aa9-9acf-946d67e77f5c</guid><dc:creator>BHAGYESH</dc:creator><description>&lt;p&gt;I have set min 45 and max 70, for 1-Packet per 50ms. What you think is it work properly wih iOS, It&amp;#39;s working fine with Android&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MIN_CONN_INTERVAL MAX_CONN_INTERVAL SLAVE_LATENCY CONN_SUP_TIMEOUT parameters values for Android and iOS</title><link>https://devzone.nordicsemi.com/thread/78057?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2017 09:34:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:080d1e11-703b-4612-a9a6-e9eac4ecf948</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;I guess you could set max to 50, but you should make sure you have medium to high bandwidth, so you are able to send multiple packets in one connection event in case a packet is lost in the previous event. Note that the interval is decided by the master, the peripheral can only request to change the intervals and choose to disconnet if it doesn&amp;#39;t work with the given interval. Because of the way the protocol I don&amp;#39;t think you can rely on sending a packet exactly every 50th ms. Lets say you want to send sensor data; in this case I would enable radio notifications so I can check the sensor value just prior to the connection event so i know the data is fresh. But even in this case some packets will have errors, so a retransmitt every now and then is expected. So in some connection events you might notreceive anything, while in the next you&amp;#39;ll receive two values.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MIN_CONN_INTERVAL MAX_CONN_INTERVAL SLAVE_LATENCY CONN_SUP_TIMEOUT parameters values for Android and iOS</title><link>https://devzone.nordicsemi.com/thread/78055?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 17:42:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0e274a1-a97d-4569-ae2e-9600da685c33</guid><dc:creator>BHAGYESH</dc:creator><description>&lt;p&gt;but my i am sending 1 packet in 50ms then it&amp;#39;s working min 20 and max 40???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MIN_CONN_INTERVAL MAX_CONN_INTERVAL SLAVE_LATENCY CONN_SUP_TIMEOUT parameters values for Android and iOS</title><link>https://devzone.nordicsemi.com/thread/78054?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 14:13:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:419c2e2e-68d7-4393-8d1f-de3fc2a0d5fe</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Probably not, as that won&amp;#39;t be accepted by iOS. Min = 20 and max = 40 should work. It migth be possible to get faster intervals as well, e.g. by using min = 12.5 and max = 22.5. But it might not be accepted by the master, which in case you will have to retry using more relaxed parameters.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MIN_CONN_INTERVAL MAX_CONN_INTERVAL SLAVE_LATENCY CONN_SUP_TIMEOUT parameters values for Android and iOS</title><link>https://devzone.nordicsemi.com/thread/78053?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 13:16:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8a3004a-bc7d-4eb1-b568-67d40cfd70f0</guid><dc:creator>BHAGYESH</dc:creator><description>&lt;p&gt;Should i set min as a 7.5 and max as a 35?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MIN_CONN_INTERVAL MAX_CONN_INTERVAL SLAVE_LATENCY CONN_SUP_TIMEOUT parameters values for Android and iOS</title><link>https://devzone.nordicsemi.com/thread/78052?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 12:06:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44e40544-4507-4921-bb72-4c18e0e4e55f</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;For iOS I would recommend following apples bluetooth asseory design guidelines. But if your maximum datarate is 1 packet/50 ms  I guess that should could be your maximum. Then use maybe 30 as min. The default connection interval for iOS is usually within this range. For Android it can vary a bit. But Android would normally accept the range.&lt;/p&gt;
&lt;p&gt;0x3004 = BLE_ERROR_NO_TX_PACKETS. So you have to wait until a buffer is freed. The number of buffers available depends on your softdevice throughput settings.&lt;/p&gt;
&lt;p&gt;0x3401= BLE_ERROR_GATTS_SYS_ATTR_MISSING. System attributes missing, use sd_ble_gatts_sys_attr_set to set them to a known value.&lt;/p&gt;
&lt;p&gt;Look at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v3.0.0/group___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html?cp=2_3_0_1_1_2_4_2_4#ga313fe43c2e93267da668572e885945db"&gt;documentation for sd_ble_gatts_hvx&lt;/a&gt; for details on how to use this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>