<?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>Random BLE Disconnects / NRF52832 stops responding to Central</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77658/random-ble-disconnects-nrf52832-stops-responding-to-central</link><description>We are currently experiencing a strange BLE Disconnect issue that I haven&amp;#39;t been manage to sort out for a long time now. 
 We have a device that acts as a peripheral that is connected to an app over BLE. The connection will be established normally, and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Feb 2023 09:35:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77658/random-ble-disconnects-nrf52832-stops-responding-to-central" /><item><title>RE: Random BLE Disconnects / NRF52832 stops responding to Central</title><link>https://devzone.nordicsemi.com/thread/410828?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 09:35:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1f18c41-a839-47d7-bf18-00513ba43947</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Madhuru,&amp;nbsp;&lt;br /&gt;Please create a new ticket for your issue. Please try using &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le"&gt;the sniffer&lt;/a&gt; to get more insight of the connection and send us the trace so we can analyze.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects / NRF52832 stops responding to Central</title><link>https://devzone.nordicsemi.com/thread/410781?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 05:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85df9737-29f6-4bda-bb2e-aaabe5f0983e</guid><dc:creator>madhurubharath</dc:creator><description>&lt;p&gt;&amp;nbsp;i&amp;nbsp; am facing same problem&amp;nbsp; after connecting its disconnecting automatically from central device ,i tried&amp;nbsp; simple example the thing i noticed is its disconnecting&amp;nbsp; even with simple example but after 1-2 min its disconnecting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects / NRF52832 stops responding to Central</title><link>https://devzone.nordicsemi.com/thread/321377?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 13:34:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f49d92ed-fa8b-4f8b-b5a4-312ccbc3d9fb</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please do the test and let us know the result.&amp;nbsp;&lt;br /&gt;From what I can tell from the log and from the disconnected reason, it suggesting that there could be RF noise or bad radio performance or out of sync oscillator would cause the issue.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects / NRF52832 stops responding to Central</title><link>https://devzone.nordicsemi.com/thread/321155?ContentTypeID=1</link><pubDate>Wed, 21 Jul 2021 13:49:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc6daa13-8049-4bc3-b75b-eb50e56cdfce</guid><dc:creator>nikolozka</dc:creator><description>&lt;p&gt;We&amp;#39;re using various phones as centrals. As I mentioned earlier, the issue has been quite hard to replicate under test conditions so we&amp;#39;re relying on production devices in the field for data collection. a couple of our customers have our internall test app that logs all the data that we make available over BLE.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So central devices that the issue is confirmed to have happened on is a mid-range Samsung Galaxy (not 100% sure on the model), Iphone12, Iphone X, Iphone 11. Most Iphones are running some version of iOS 14 generally up to date. It seems like it is independant of the central though. There is no particular pattern to which central is better at triggering this.&lt;/p&gt;
&lt;p&gt;1. Thanks for the ble_app_hrs example suggestion, this would be an interesting test that would rule out other bits of our FW malfunctioning. I might also try stripping out our code to leave only bluetooth related bits. But if the issue persists with ble_app_hrs example I&amp;#39;m assuming this would indicate a hardware / sync issue right?&lt;/p&gt;
&lt;p&gt;2. testing on the DK is a bit problematic as we rely on a lot of peripherals in our FW so it would be an extremely stripped down version of our FW, which I suppose would crash only if there is something misconfigured about our connection parameters for instance.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it is indeed a sync issue, would it be possible to improve this?&lt;/p&gt;
&lt;p&gt;We are using internal RC with CTIV=16 TEMP_CTIV=2 &amp;amp; Accuracy=500ppm. would tweaking these parameters yield some improvements?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects / NRF52832 stops responding to Central</title><link>https://devzone.nordicsemi.com/thread/321147?ContentTypeID=1</link><pubDate>Wed, 21 Jul 2021 13:27:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1186e2db-539f-4bb1-b0b5-e70ba0550ceb</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Niko,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Disconnection reason 0x08 would suggest that it could be an issue with the oscillator or the radio hardware. What I can think of is that the peripheral gradually goes out of sync or the radio hardware doesn&amp;#39;t work as it should.&lt;/p&gt;
&lt;p&gt;What you can do to test is:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. Try testing a very simple application on the same board. ble_app_hrs for example and let it run and check if disconnection happens or not.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. Try testing your firmware on a nRF52DK , to verify if it&amp;#39;s an hardware issue or not.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Which central device are you using ? Have you tried to test the board with different central for comparison ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects / NRF52832 stops responding to Central</title><link>https://devzone.nordicsemi.com/thread/320993?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 19:47:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3267c489-7015-431f-8c64-cf04945b66e2</guid><dc:creator>nikolozka</dc:creator><description>&lt;p&gt;Trying to keep this discussion alive. The disconnect reason is reported as 0x8 (Timeout) &amp;amp; the sd doesn&amp;#39;t assert. The device doesn&amp;#39;t do a softreset either&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve verified that the sd_assert will cause a softreset and is being caught in general by doing the following to force an assert:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;_disable_irq()
nrf_delay_ms(1000)
_enable_irq&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;(The softdevice will assert because of timing issues)&lt;/p&gt;
&lt;p&gt;As i&amp;#39;m keeping the reset reason &amp;amp; the error_code &amp;amp; line where the error occured when APP_ERROR_CHECK catches something I&amp;#39;m fairly confident that a reset doesn&amp;#39;t occur.&lt;/p&gt;
&lt;p&gt;would it be possible for the SD to die without issuing a call to&amp;nbsp;app_error_fault_handler() &amp;lt;- this is the handler that nrf_sdh.c has defined in the nrf_sdh_enable_request call, and I have this weak error_handler redefined in main.c&lt;/p&gt;
&lt;p&gt;I understand your advice to try debugging this, but it&amp;#39;s not really helpfull. as I&amp;#39;ve tried debugging this from every angle i can imagine.&lt;/p&gt;
&lt;p&gt;Please suggest some additional strategy for debugging this issue.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s extremely frustrating&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects / NRF52832 stops responding to Central</title><link>https://devzone.nordicsemi.com/thread/320971?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 15:07:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67bb48c2-a45d-4bc9-a38d-ba28b9080bf4</guid><dc:creator>nikolozka</dc:creator><description>&lt;p&gt;That&amp;#39;s what I&amp;#39;ve been trying to do for 4 months already ;(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects / NRF52832 stops responding to Central</title><link>https://devzone.nordicsemi.com/thread/320970?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 15:02:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73e03c97-04dd-444e-aa5d-e853aa2ef95e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;No, in any case calling that shouldn&amp;#39;t cause a disconnection. It&amp;#39;s pretty common when testing throughput that we simply put an infinite loop of&amp;nbsp;sd_ble_gatts_hvx() calls in the main loop. Please try to debug.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects / NRF52832 stops responding to Central</title><link>https://devzone.nordicsemi.com/thread/320960?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 14:44:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a60ae432-8fa1-46d5-abd2-1cdec7e071f5</guid><dc:creator>nikolozka</dc:creator><description>&lt;p&gt;Thanks for clarifying that NRF_ERROR_RESOURCES is not critical return from sd_ble_gatt_hvx(). I will add exceptions to my error handling to ignore this.&lt;/p&gt;
&lt;p&gt;After repeating the test overqueueing notifications indeed doesn&amp;#39;t lead to the previously observed disconnects.&lt;br /&gt;&lt;br /&gt;Is there another error that&amp;nbsp;&lt;span&gt;sd_ble_gatt_hvx() can return that is critical and would lead to problems if not handled appropriately? if It&amp;#39;s not clear from my comment threads the return value of&amp;nbsp;sd_ble_gatt_hvx() was previously completely ignored.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects / NRF52832 stops responding to Central</title><link>https://devzone.nordicsemi.com/thread/320953?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 14:24:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1e7c3f7-4002-4e12-bc35-6e74a5c70317</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;Please try to debug and check if it reset or it disconnect.&amp;nbsp;&lt;br /&gt;If it reset please check the assert log.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it disconnect please check the disconnect reason.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects / NRF52832 stops responding to Central</title><link>https://devzone.nordicsemi.com/thread/320944?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 14:14:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e63dbf0-c617-4bab-8d72-5ec03501735f</guid><dc:creator>nikolozka</dc:creator><description>&lt;p&gt;I managed to recreate the observed behavior by queueing notifications in a 5msec timer. The sniffer trace was exactly the same, the peripheral would stop responding for n=slave_latency amount of packets after which the connection was destroyed without an assertion / softreset.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects / NRF52832 stops responding to Central</title><link>https://devzone.nordicsemi.com/thread/320942?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 14:08:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eae4e4bc-1e61-41aa-90a7-8235a9f9bddf</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nikolozka,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think over queueing the notification can cause such issue. The softdevice will just ignore (return&amp;nbsp;&lt;span&gt;NRF_ERROR_RESOURCES) then the queue is full.&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;From the sniffer trace it didn&amp;#39;t suggest that the softdevice was under much stress.&amp;nbsp;&lt;br /&gt;I can see that the Slave sometimes stopped responding for a few packets, I assume it&amp;#39;s the Slave Latency setting you chose ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you tried to debug the peripheral and check does it has any assertion&amp;nbsp; ? Or check what&amp;#39;s the disconnection reason is when it disconnected (BLE_GAP_EVT_DISCONNECTED) ? I suspect that it got assertion and reset for some reason.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you tried to test the same application on a nRF52 DK ? (so that we can rule out any issue with the hardware) ?&lt;br /&gt;&lt;br /&gt;Modifying&amp;nbsp;BLE_GATTS_HVN_TX_QUEUE_SIZE_DEFAULT, wont make it transfer more data. You can try to increase&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH but by default it&amp;#39;s 320 and should cover the entire connection interval that you have.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects / NRF52832 stops responding to Central</title><link>https://devzone.nordicsemi.com/thread/320881?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 12:08:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:284692c5-f0a7-453e-b690-d43af4d5a88f</guid><dc:creator>nikolozka</dc:creator><description>&lt;p&gt;While writing this post the following has occured to me,&amp;nbsp;&lt;/p&gt;
[quote userid="95197" url="~/f/nordic-q-a/77658/random-ble-disconnects-nrf52832-stops-responding-to-central"]The firmware isn&amp;#39;t going through a softreset when this issue occurs as we have a custom app_error check that log&amp;#39;s errors to ram (unless SD asserts silently somewhere)[/quote]
&lt;p&gt;I tried to go over the entire codebase (which I have inheritted in this somewhat broken state) to find if there were any instances of SoftDevice calls where the return values were not handled properly, And indeed, I deiscovered that there were. Namely all the returns from&amp;nbsp; &lt;strong&gt;sd_ble_gatts_hvx() &lt;/strong&gt;were being ignored.&lt;br /&gt;&lt;br /&gt;After adding the relevant APP_ERROR_CHECK calls the firmware promptly started dying with error code 19 (NRF_ERROR_RESOURCES). Having done a bit of investigating the issue seems to be that the TX queue of the SD fills up (in particular under not so ideal RSSI conditions). My theory is that attempts to retransmit data that didn&amp;#39;t get ACK&amp;#39;d prevent further updates on the characteristics.&lt;/p&gt;
&lt;p&gt;My investigations have pointed me in the direction of two variables:&amp;nbsp;&lt;a class="el" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.1/structble__gatts__conn__cfg__t.html#ae2a1156d8b06a6ccc70696f2372226cc"&gt;ble_gatts_conn_cfg_t::hvn_tx_queue_size&lt;/a&gt;&amp;nbsp;which is the effective TX queue size &amp;amp;&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH which seems to be that value that SD looks at when internally configuring the aforementioned queue size.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have the following follow-up questions:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;what is the correct way of querying the hvn_tx_queue_size parameter? I qould expect there to be something along the lines of ble_gatts_conn_cfg_get but I couldn&amp;#39;t find anything like that. My next attempt was to use sd_ble_opt_get() but I haven&amp;#39;t managed to find the magical combination of arguments to get it to work. There is a method for checking queue utilization described in the documentation for&amp;nbsp;&lt;strong&gt;sd_ble_gatts_hvx():&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="color:#000080;"&gt;Store initial queue element count in a variable.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:#000080;"&gt;Decrement the variable, which stores the currently available queue element count, by one when a call to this function returns&amp;nbsp;&lt;a class="el" style="color:#000080;" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group__nrf__error.html#ga7e6367efeaac363d8cf024940b4ec123"&gt;NRF_SUCCESS&lt;/a&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:#000080;"&gt;Increment the variable, which stores the current available queue element count, by the count variable in&amp;nbsp;&lt;a class="el" style="color:#000080;" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_t_t_s___e_n_u_m_e_r_a_t_i_o_n_s.html#ggae537647902af1b05c1e32f12d6b401c7afab96bfa9918017082235f7664919f9d"&gt;BLE_GATTS_EVT_HVN_TX_COMPLETE&lt;/a&gt;&amp;nbsp;event.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;It&amp;#39;s not very transparent how the queue size is set so i&amp;#39;m not sure what value to use for initial queue element count.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;The second question is if there is a way to mitigate this problem using the&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH define? our system seems to be working just fine under 95% of conditions with our current value of 12 (corresponds to 15msec of on air time as far as i understand). how do I account for the other 5% of conditions where the queue is getting overloaded? or better yet how do i calculate the optimal value for this parameter.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;FYI under the heaviest load we are transmitting about 1122bytes of data (including the preamble and all the overhead and characteristics being split into 2 etc...) with our current connection params of 60msec max_conn_interval and 15msec&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH this should be well within the bandwidth. we&amp;#39;re using 1M PHY and if i understand the connection parameters correctly this should correspond to 15/60 = 1/4 of max theoretical data rate = 250kBit/sec = 31.25KBytes. if my calculations are collect we&amp;#39;re using 3-4% of the theoretically available bandwidth but we still encounter problems...&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;each of our characteristics would have to be retransmitted on avarage maybe &amp;gt;25 times for the SD to start becoming overwhelmed&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;&lt;span&gt;I&amp;#39;d appreciate any suggestions as well as any corrections to my calculations...&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects / NRF52832 stops responding to Central</title><link>https://devzone.nordicsemi.com/thread/320773?ContentTypeID=1</link><pubDate>Mon, 19 Jul 2021 16:05:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a54205ab-b174-4816-aba4-4d0b4634f543</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Oh .. and that&amp;#39;s the SDK magic definition in use? I play safe ..&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NRFX_CLOCK_CONFIG_LF_SRC         0
#define CLOCK_CONFIG_LF_SRC              0
#define NRF_SDH_CLOCK_LF_SRC             0&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects / NRF52832 stops responding to Central</title><link>https://devzone.nordicsemi.com/thread/320768?ContentTypeID=1</link><pubDate>Mon, 19 Jul 2021 15:39:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fdf0051-dd80-418d-bc69-636bcde26409</guid><dc:creator>nikolozka</dc:creator><description>&lt;p&gt;Thanks for the suggestion, however I&amp;#39;m using the Internal oscilator:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;NRF_SDH_CLOCK_LF_SRC 0 (NRF_CLOCK_LF_SRC_RC)&lt;/li&gt;
&lt;li&gt;NRF_SDH_CLOCK_LF_RC_CTIV 16&lt;/li&gt;
&lt;li&gt;NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2&lt;/li&gt;
&lt;li&gt;NRF_SDH_CLOCK_LF_ACCURACY 1 (500_PPM)&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;in other words its as relaxed as possible&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random BLE Disconnects / NRF52832 stops responding to Central</title><link>https://devzone.nordicsemi.com/thread/320765?ContentTypeID=1</link><pubDate>Mon, 19 Jul 2021 15:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4384a7c-cee2-49d3-93cf-f4abd6b26dbc</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Long shot, but 20ppm is optimistic for some 32kHz crystals when coupled with load cap tolerance, board assembly (dirt, grease, paste) and local pressure/temperature/humidity and even lorry/truck- or earthquake-inspired vibrations. Given that BLE timing relies on this setting, perhaps try and relax it (double it) to see if that changes anything.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_ACCURACY  - External clock accuracy used in the LL to compute timing.
 
// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_ACCURACY_250_PPM 
// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_ACCURACY_500_PPM 
// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_ACCURACY_150_PPM 
// &amp;lt;3=&amp;gt; NRF_CLOCK_LF_ACCURACY_100_PPM 
// &amp;lt;4=&amp;gt; NRF_CLOCK_LF_ACCURACY_75_PPM 
// &amp;lt;5=&amp;gt; NRF_CLOCK_LF_ACCURACY_50_PPM 
// &amp;lt;6=&amp;gt; NRF_CLOCK_LF_ACCURACY_30_PPM 
// &amp;lt;7=&amp;gt; NRF_CLOCK_LF_ACCURACY_20_PPM 
// &amp;lt;8=&amp;gt; NRF_CLOCK_LF_ACCURACY_10_PPM 
// &amp;lt;9=&amp;gt; NRF_CLOCK_LF_ACCURACY_5_PPM 
// &amp;lt;10=&amp;gt; NRF_CLOCK_LF_ACCURACY_2_PPM 
// &amp;lt;11=&amp;gt; NRF_CLOCK_LF_ACCURACY_1_PPM 

#ifndef NRF_SDH_CLOCK_LF_ACCURACY
#define NRF_SDH_CLOCK_LF_ACCURACY 7
#endif
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>