<?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>Common disconnects using ble_app_interactive</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38330/common-disconnects-using-ble_app_interactive</link><description>Hello, 
 I am attempting to test slew of Rigado BMD-350 module BLE radios (uses nRF52832) using a Rigado BMD-301 series Eval Kit to act as the central. The BMD-350 device is running the stock firmware from Rigado, BMDware v3.2.1. 
 Currently, I&amp;#39;m simply</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Sep 2018 09:09:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38330/common-disconnects-using-ble_app_interactive" /><item><title>RE: Common disconnects using ble_app_interactive</title><link>https://devzone.nordicsemi.com/thread/148360?ContentTypeID=1</link><pubDate>Wed, 12 Sep 2018 09:09:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e08aa655-5cef-4d3f-943b-3bd7acb0c5e6</guid><dc:creator>Sigurd</dc:creator><description>[quote userid="72698" url="~/f/nordic-q-a/38330/common-disconnects-using-ble_app_interactive/148265"]I did have to go look it up (i&amp;#39;m not modifying the stock Rigado code yet), but the peripheral device is apparently running S132 v3.1.0[/quote]
&lt;p&gt;Looking &lt;a href="https://github.com/rigado/firmware/blob/master/bmdware/nrf5_sdk/components/softdevice/s132/doc/s132_nrf52_3.0.0_readme.txt"&gt;here&lt;/a&gt;, it could be S132 v3.0.0? Could you check the FWID of the SoftDevice to confirm this?&lt;/p&gt;
&lt;p&gt;If you use nrfjprog to read 0x0000300C, it will give you the FWID:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --memrd 0x0000300C&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you get FFFF008C, it&amp;#39;s S132 v.3.0.0, if you get&amp;nbsp;FFFF0091 it&amp;#39;s S132 v3.1.0&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="72698" url="~/f/nordic-q-a/38330/common-disconnects-using-ble_app_interactive/148265"]Perhaps the version difference could be an issue?[/quote]
&lt;p&gt;Since increasing the LFXO ppm for the BLE central resolves this issue, a hardware issue is more&amp;nbsp;likely.&amp;nbsp;&lt;/p&gt;
[quote userid="72698" url="~/f/nordic-q-a/38330/common-disconnects-using-ble_app_interactive/148265"]CENTRAL: Disconnected, handle: 0, reason: 0x8[/quote]
&lt;p&gt;Do you get the same disconnect reason at the BLE&amp;nbsp;peripheral ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Common disconnects using ble_app_interactive</title><link>https://devzone.nordicsemi.com/thread/148265?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 15:35:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de42931d-e54d-45b4-81ea-482ad7ff5a49</guid><dc:creator>Lincoln</dc:creator><description>&lt;p&gt;The soft device on the BMD-301-EVAL running as peripheral is the latest S132 v6.1.0.&amp;nbsp; In this I am running of the LFXO, NOT the RC oscillator.&amp;nbsp; This is equivalent PCA10040 (the 832-DK)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I did have to go look it up (i&amp;#39;m not modifying the stock Rigado code yet), but the peripheral device is apparently running S132 v3.1.0:&lt;/p&gt;
&lt;p&gt;Perhaps the version difference could be an issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Common disconnects using ble_app_interactive</title><link>https://devzone.nordicsemi.com/thread/148149?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 08:48:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40f109eb-856a-4dce-a0ff-f3ecd9ff9856</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What SoftDevice version are you running on the peripheral and central?&lt;/p&gt;
&lt;p&gt;Are both&amp;nbsp;&lt;span&gt;p&lt;/span&gt;&lt;span&gt;eripheral&amp;nbsp;and central using the&amp;nbsp;RC oscillator?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Note that starting from&amp;nbsp;s132_nrf52_5.0.0-2.alpha, the application need to set the&amp;nbsp;accuracy/ppm of the&amp;nbsp;RC oscillator itself. From the&amp;nbsp;s132_nrf52_5.0.0-2.alpha release notes:&lt;/span&gt;&lt;/p&gt;
&lt;blockquote style="background-color:#f2f2f2;border:1px solid #666;padding:5px;"&gt;The RC oscillator accuracy can now be set to any of the defined NRF_CLOCK_LF_ACCURACY values, and there is no default anymore. In other words, the nrf_clock_lf_cfg_t::accuracy parameter now has the same functionality when used with the RCOSC clock source as with the XTAL clock source&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Common disconnects using ble_app_interactive</title><link>https://devzone.nordicsemi.com/thread/148099?ContentTypeID=1</link><pubDate>Mon, 10 Sep 2018 20:29:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:669825ac-a05f-440f-bd34-e7caba402720</guid><dc:creator>Lincoln</dc:creator><description>&lt;p&gt;Ah actually, according to the BMDware source, it appears the internal RC oscillator is used by default.&amp;nbsp; &lt;a href="https://github.com/rigado/firmware/blob/master/bmdware/nrf5x/firmware/main.c#L232"&gt;See here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Considering this, do my periodic disconnects still not make sense?&amp;nbsp; I&amp;#39;m not attempting to run this in any difficult environment (high/low temperatures), so I can&amp;#39;t imagine that both of these configurations wouldn&amp;#39;t be good enough.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Common disconnects using ble_app_interactive</title><link>https://devzone.nordicsemi.com/thread/148094?ContentTypeID=1</link><pubDate>Mon, 10 Sep 2018 19:07:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82376674-e0e6-435a-80e4-a7d1b0e7e2a5</guid><dc:creator>Lincoln</dc:creator><description>&lt;p&gt;Thank you &lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt;!&amp;nbsp; I&amp;#39;m using a Rigado BMD-300-EVAL board which, with respect to the crystals, match the Nordic DK design. (PCA10040, I assume they&amp;#39;re talking about.&amp;nbsp; That&amp;#39;s the SDK build I&amp;#39;m using anyways).&amp;nbsp; It has a +/- 20ppm LFXO,&amp;nbsp;&lt;span&gt;ABS07-32.768KHZ-7-T, with a 7pF Cl.&amp;nbsp; See here:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://rigado.zendesk.com/hc/en-us/articles/223408667-How-does-the-Rigado-BMD-300-Series-Evaluation-Kit-differ-from-the-Nordic-nRF52-DK-"&gt;https://rigado.zendesk.com/hc/en-us/articles/223408667-How-does-the-Rigado-BMD-300-Series-Evaluation-Kit-differ-from-the-Nordic-nRF52-DK-&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;At this point, I think it means the device I&amp;#39;m testing maybe has an non-optimal setting?&amp;nbsp; It is a stock BMD-350, running BMDware 3.2.1.&amp;nbsp; I&amp;#39;ll go poke Rigado a little more...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Common disconnects using ble_app_interactive</title><link>https://devzone.nordicsemi.com/thread/148070?ContentTypeID=1</link><pubDate>Mon, 10 Sep 2018 14:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13bd5ace-ff76-4863-bd68-922aea121661</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Disconnect reason 8 is the same as &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.1.0%2Fgroup___b_l_e___h_c_i___s_t_a_t_u_s___c_o_d_e_s.html&amp;amp;cp=2_3_1_1_0_2_0_0_4&amp;amp;anchor=ga1bb212e3f0e4f2ef6bd02afa644b92fb"&gt;BLE_HCI_CONNECTION_TIMEOUT&lt;/a&gt;, and this can happen when the clock source is not configured correctly.&amp;nbsp;If you do not have a LF crystal, you will need to use the LF RC oscillator and set the ppm and calibration interval accordingly. &amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="Lincoln"]do both soft devices have to be configured to the least accurate module for the&amp;nbsp;NRF_SDH_CLOCK_LF_ACCURACY?[/quote]
&lt;p&gt;No. When you configure the SoftDevice, you always set it according to the clock source and clock accuracy you have on your own device, you do not care about the accuracy of the device you are connecting to. The SoftDevice / BLE protocol handles this. (When the devices connect to each other, they exchange their clock accuracy, and this is taken into account when they calculate when to turn on the radio to send/receive data.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Common disconnects using ble_app_interactive</title><link>https://devzone.nordicsemi.com/thread/147890?ContentTypeID=1</link><pubDate>Sat, 08 Sep 2018 20:48:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d34045a-4934-45f6-b2e7-bb0e5d474c70</guid><dc:creator>Lincoln</dc:creator><description>&lt;p&gt;I&amp;#39;ve been looking into this and I found this link regarding the NRF_SDH_CLOCK_LF_ACCURACY parameter:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29786/ble_hci_connection_timeout-and-nrf_clock_lf_xtal_accuracy_xx_ppm"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/29786/ble_hci_connection_timeout-and-nrf_clock_lf_xtal_accuracy_xx_ppm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Sure enough, if I update this parameter from +/- 20 ppm to +/- 250 ppm, I stop seeing the Disconnected events.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If the LF external crystal on the test module (BMD-350, which according to datasheet&amp;nbsp;FreqTOL_LFXO_BLEmax = +/- 250 ppm), do both soft devices have to be configured to the least accurate module for the&amp;nbsp;NRF_SDH_CLOCK_LF_ACCURACY?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>