<?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>Maximum posibble connection Interval</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96866/maximum-posibble-connection-interval</link><description>Hello, 
 I&amp;#39;m using the nRF52832 product, nRF5_SDK_15.3.0_59ac345, and the android S21 mobile phone as a back-end system. I&amp;#39;m working on ble_app_bps, ble_app_gls, and ble_app_hrs applications. I have 2 different category questions. The first one is : </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Feb 2023 14:36:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96866/maximum-posibble-connection-interval" /><item><title>RE: Maximum posibble connection Interval</title><link>https://devzone.nordicsemi.com/thread/410940?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 14:36:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab48b8c9-f05b-4cae-8470-45dc95406473</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;As a peripheral device you typically have&amp;nbsp;gap_params_init() and&amp;nbsp;conn_params_init() somewhere during init.&lt;/p&gt;
&lt;p&gt;The conn_params_init() will try to update the connection parameters to fullfill the paramters you defined in&amp;nbsp;&lt;span&gt;gap_params_init().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So, if you want to fullfill the following:&lt;/span&gt;&lt;/p&gt;
[quote user=""]Interval Max * (Slave Latency + 1) ≤ 2 seconds[/quote]
&lt;p&gt;Then you can for instance&amp;nbsp;try to set either of these:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;MIN_CONN_INTERVAL=MAX_CONN_INTERVAL=2seconds and&amp;nbsp;SLAVE_LATENCY=0&lt;br /&gt;MIN_CONN_INTERVAL=MAX_CONN_INTERVAL=1seconds and&amp;nbsp;SLAVE_LATENCY=1&lt;br /&gt;MIN_CONN_INTERVAL=MAX_CONN_INTERVAL=0.5seconds and&amp;nbsp;SLAVE_LATENCY=3&lt;br /&gt;...&lt;/span&gt;&lt;/p&gt;
[quote user=""]is there the same document for android you are aware of? (I couldn&amp;#39;t find myself)[/quote]
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Not that I am aware of either, but the apple guidelines seems to work for anyone.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]Then my first question is how to select the connection parameters to reach the 4s connection interval.[/quote]
&lt;p&gt;That is not possible if you want to fullfill the apple guidelines, but if you don&amp;#39;t care about those, then it would be something like:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;MIN_CONN_INTERVAL=MAX_CONN_INTERVAL=4seconds and&amp;nbsp;SLAVE_LATENCY=0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]Is it possible to send empty packets for 10 minutes?[/quote]
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;From a BLE specification point of view that is possible yes, whether the peer device (e.g. phone) allow this without disconnecting is a different question (I don&amp;#39;t know). It could be that a phone disconnect if it&amp;#39;s inactivity for x number of minutes.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>