<?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>nrf51822 random disconnection problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39098/nrf51822-random-disconnection-problem</link><description>Hi to all, 
 i am developing a device with nrf51822 soc. i am using nrf51822 custom board, my board is https://pl.aliexpress.com/item/2V-3-3V-NRF51822-Bluetooth-4-0-Wireless-Module-For-iBeacon-Base-Station-Intelligent-Control-System/32824004498.html </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Oct 2018 13:03:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39098/nrf51822-random-disconnection-problem" /><item><title>RE: nrf51822 random disconnection problem</title><link>https://devzone.nordicsemi.com/thread/151248?ContentTypeID=1</link><pubDate>Tue, 02 Oct 2018 13:03:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8145a1c-7b91-4840-b696-cbb6f7ee1093</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Disconnect reason 0x08 is Connection timeout (BLE_HCI_CONNECTION_TIMEOUT), which is caused by a connection supervision timeout. The main reasons are typically:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Device goes out of range or a lot of noise.&lt;/li&gt;
&lt;li&gt;Optimistic connection parameters (too short connection supervision timeout relative to the connection interval) so that only a few packet drops will lead to disconnect.&lt;/li&gt;
&lt;li&gt;Clock drift between the peers.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can experiment to see if clock drift is the issue by setting a higher&amp;nbsp;xtal_accuracy (for instance&amp;nbsp;NRF_CLOCK_LF_XTAL_ACCURACY_250_PPM). This will increase the listening windows to give more margin. If the disconnects become less frequent with this setting, then you are on to something.&lt;/p&gt;
&lt;p&gt;The typical reason for the 32 kHz crystal to be off is improper value of the load capacitors. Which 32 kHz crystal do you use, and what is the value of your load caps?&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>