<?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>BLE disconnection with xiaomi</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58230/ble-disconnection-with-xiaomi</link><description>Hi, 
 
 I have an application on NRF52840. I&amp;#39;m able to connect successfully to mobile devices, with min connection interval of 7.5 and max of 30. 
 
 However, when I try to connect to a xiaomi mobile, connection is lost after about a minute. 
 
 Is there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Feb 2020 08:59:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58230/ble-disconnection-with-xiaomi" /><item><title>RE: BLE disconnection with xiaomi</title><link>https://devzone.nordicsemi.com/thread/236169?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 08:59:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96e3c8a8-b102-452f-a12a-1a1f98f9e48a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I suggest that you read data every ~10 seconds and check if the problem persists. An on-air sniffer log would likely pin-point the issue directly:&lt;br /&gt;&lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE/"&gt;https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnection with xiaomi</title><link>https://devzone.nordicsemi.com/thread/236155?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 08:28:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60f6005b-99df-4335-9da8-13e009b9a307</guid><dc:creator>Roei</dc:creator><description>&lt;p&gt;I tried to connect my NRF device to a mobile using NRF connect. I don&amp;#39;t know exactly how frequently the data is sent. Can it be related?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnection with xiaomi</title><link>https://devzone.nordicsemi.com/thread/236047?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 15:57:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41fb0099-14e8-47a3-8cf7-ea96ee006ba9</guid><dc:creator>Kenneth</dc:creator><description>[quote user="Roei"]If I choose not to disconnect, isn&amp;#39;t that problematic to stay connected with problems?[/quote]
&lt;p&gt;The &amp;quot;problem&amp;quot; may be longer latency, if that is critical you can of course disconnect, but then no data is sent. It&amp;#39;s up to you really.&amp;nbsp;&lt;/p&gt;
[quote user="Roei"]I tried to increase the max connection interval but it didn&amp;#39;t help.[/quote]
&lt;p&gt;This means that the problem is not related to connection interval.&lt;/p&gt;
&lt;p&gt;How frequently are you sending data from the peripheral to the phone in this case before disconnect?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnection with xiaomi</title><link>https://devzone.nordicsemi.com/thread/236033?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 15:11:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1aafeed-2454-4e75-95fb-20c2d1bafd57</guid><dc:creator>Roei</dc:creator><description>&lt;p&gt;I tried to increase the max connection interval but it didn&amp;#39;t help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I choose not to disconnect, isn&amp;#39;t that problematic to stay connected with problems?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnection with xiaomi</title><link>https://devzone.nordicsemi.com/thread/236024?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 14:57:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aefe119-2fba-4f92-9e38-514c3f303745</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I assume based on your description that you have tested that if you increase the max connection interval then it stays connected?&lt;/p&gt;
&lt;p&gt;If is the case, then you may solve your problem by either increase max connection interval, or choose to not disconnect:&lt;/p&gt;
&lt;p&gt;In conn_params_init() make sure that:&lt;br /&gt;cp_init.disconnect_on_fail = false;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>