<?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>A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116662/a-ble-disconnection-issue-occurred-randomly-after-the-device-had-been-functioning-without-any-problems-for-many-hours</link><description>Hi everyone, 
 
 We have devices using the BLE module (nRF52) deployed in clinics for testing. They have been functioning without issues until recently when we noticed occasional BLE disconnections. The following image shows data from one of the affected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Nov 2024 00:40:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116662/a-ble-disconnection-issue-occurred-randomly-after-the-device-had-been-functioning-without-any-problems-for-many-hours" /><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/512469?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2024 00:40:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6db37f05-7ca9-4a68-b104-623439c83711</guid><dc:creator>Tai</dc:creator><description>[quote userid="65515" url="~/f/nordic-q-a/116662/a-ble-disconnection-issue-occurred-randomly-after-the-device-had-been-functioning-without-any-problems-for-many-hours/512459"]Worth trying much bigger and less frequent packets, methinks[/quote]
&lt;p&gt;Will definitely try this! I read some articles about this. Seems it could help improve BLE stability:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Frequent transmissions increase the likelihood of packet collisions in environments with many BLE devices or RF interference (e.g., Wi-Fi, microwave ovens).&lt;/li&gt;
&lt;li&gt;Reducing the frequency of transmissions can lower the risk of collisions and reduce retransmissions, improving stability.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/512461?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2024 00:05:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a4849cc-9473-4463-9ed5-e2c557458fef</guid><dc:creator>Tai</dc:creator><description>&lt;p&gt;Oh interesting. Can you elaborate more on the Edit2 you just mentioned? From my understanding, due to the limit of receiving data from the tablet, it only can receive data from one device at a time while another one is buffering its data and then sending several packets to the tablet.&lt;/p&gt;
&lt;p&gt;It seems you have another explanation of the above image in my previous reply. It&amp;#39;s more about retransmitting data packets?&lt;/p&gt;
&lt;p&gt;Edit: the BLE disconnect mostly happens at the device with 100 Hz sampling rate (10mSec). This device has 48 bytes/packet being transmitted to the tablet. Since you brought up the RSSI, although 4mSec device sends data more frequently, if it has a poor RSSI, will 10mSec device take over to transmit the data to the tablet?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/512459?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2024 23:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:705062b6-e35d-4f0a-9e3d-d831f5866332</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;250Hz sounds suspiciously like ECG or similar; in a similar application I send 5 packets per second with 50 24-bit samples in each packet. The packets are bigger, of course, but the overall traffic is reduced. 5Hz display refresh rate allows smooth display scrolling of the waveforms. May not help, of course.&lt;/p&gt;
&lt;p&gt;Edit: By this I mean fewer packets per second means less blocking/waiting time for each device&lt;/p&gt;
&lt;p&gt;Edit2: I see there are in fact two RSSI; this means the 4mSec may be retransmitting frequently enough to hold off the 10mSec where the 4mSec has poor RSSI and the 10mSec RSSI is good, as perhaps in the original trace above. Worth trying much bigger and less frequent packets, methinks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/512458?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2024 23:32:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d82bc6c-d5a2-4650-b52a-486998cf3337</guid><dc:creator>Tai</dc:creator><description>&lt;p&gt;Totally agree with the ATT payload explanation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For the device sending 48 bytes/packet, I set the&amp;nbsp;NRF_SDH_BLE_GAP_DATA_LENGTH of 58 while another one sending 10 bytes/packet, I set the&amp;nbsp;NRF_SDH_BLE_GAP_DATA_LENGTH of 27. I think these values satisfied the requirement such that the MTU won&amp;#39;t span multiple packets, causing the low throughput due to increasing the overhead.&lt;/p&gt;
[quote userid="72867" url="~/f/nordic-q-a/116662/a-ble-disconnection-issue-occurred-randomly-after-the-device-had-been-functioning-without-any-problems-for-many-hours/512440"]Say if it is receiving data from Device 01, while Device 02 keeps transmitting data to the phone app. Device 02&amp;#39;s data will be queued on the air and arrived at the phone app as several ble packets as opposed to individual ble packet.[/quote]
&lt;p&gt;In my app, data collection from both devices works as follows: the app listens for notifications from each device and uses a switch-case structure to handle the data accordingly when a notification is received. Since the two devices have different sampling rates&amp;mdash;100 Hz for one device and 250 Hz for the other&amp;mdash;the app receives notifications from each device at different intervals, corresponding to their respective sampling rates.&lt;/p&gt;
&lt;p&gt;The following is what I captured from the app to illustrate what I mentioned above.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:336px;max-width:280px;" height="336" src="https://devzone.nordicsemi.com/resized-image/__size/560x672/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_11_2D00_27-at-3.45.44_2F20_PM.png" width="280" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/512446?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2024 19:44:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee2efbfe-4021-4af7-a4ee-aff4aed07b2f</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Several BLE packets? Something not right there; are you not requesting increased data length? Some older tablets might restrict MTU to 23 byte packets. Lots of posts on this here, some notes:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;i&amp;gt; The SoftDevice handler will configure the stack with these parameters when calling @ref nrf_sdh_ble_default_cfg_set.
// &amp;lt;i&amp;gt; Other libraries might depend on these values; keep them up-to-date even if you are not explicitely calling @ref nrf_sdh_ble_default_cfg_set.
//==========================================================
// &amp;lt;o&amp;gt; NRF_SDH_BLE_GAP_DATA_LENGTH   &amp;lt;27-251&amp;gt; 


// &amp;lt;i&amp;gt; Requested BLE GAP data length to be negotiated.

#ifndef NRF_SDH_BLE_GAP_DATA_LENGTH
#define NRF_SDH_BLE_GAP_DATA_LENGTH 251
#endif
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;ATT Payload up to 244 bytes 251-4=247 247-3=244&lt;/em&gt;&lt;br /&gt;&lt;em&gt;ATT MTU Determines the max amount of data that can be handled by the transmitter and receiver and which they can hold in their buffers.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;The MTU value affects the amount of overhead data (specifically the ATT header which is 3 bytes). The minimum ATT MTU allowed is 27 bytes. This allows a max of 20 bytes of ATT payload (3 bytes are used for the ATT header, and 4 bytes for the L2CAP header).&lt;/em&gt;&lt;br /&gt;&lt;em&gt;There is no limit per the spec on how high the MTU value can be, but the specific stack in use may have its own limitations. For example, if you enable DLE then you can transfer up to 251 4 = 247 bytes (after deducting the L2CAP Header size). After taking into account the ATT header (3 bytes), we are left with 244 bytes for the actual ATT payload data. If the MTU is at least 247 bytes then the MTU will fit into one single packet. If the MTU is greater than 247 bytes, then the MTU will span multiple packets causing the throughput to go down (because of the packet overhead and timing in between the packets).&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/512440?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2024 17:55:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bc5e4a1-873c-49bc-9db6-fe405a1eb465</guid><dc:creator>Tai</dc:creator><description>&lt;p&gt;Thank you so much for following up on this,&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/hmolesworth"&gt;hmolesworth&lt;/a&gt;!. The following describes ble packets from each device being sent to the tablet&amp;#39;s application. The device 01 is worn on the patient&amp;#39;s foot.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="264" src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0702.pastedimage1708630299897v1.png" width="499" /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve read several posts regarding multiple peripheral devices sending data to the central device. However, they used another nRF52 device serving as a central device instead of the phone app. For connection parameters selection, I was able to config that for 2 peripheral devices as the following. On the phone app, seems it automatically negotiated and assigned the set of parameters by itself.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// DEVICE 01
#define MIN_CONN_INTERVAL MSEC_TO_UNITS(7.5, UNIT_1_25_MS) /**&amp;lt; Minimum acceptable connection interval (0.1 seconds). */
#define MAX_CONN_INTERVAL MSEC_TO_UNITS(15, UNIT_1_25_MS) /**&amp;lt; Maximum acceptable connection interval (0.2 second). */
#define SLAVE_LATENCY 0                                    /**&amp;lt; Slave latency. */
#define CONN_SUP_TIMEOUT MSEC_TO_UNITS(4000, UNIT_10_MS)   /**&amp;lt; Connection supervisory timeout (4 seconds). */

// DEVICE 02

#define MIN_CONN_INTERVAL MSEC_TO_UNITS(15, UNIT_1_25_MS) /**&amp;lt; Minimum acceptable connection interval (0.1 seconds). */
#define MAX_CONN_INTERVAL MSEC_TO_UNITS(30, UNIT_1_25_MS) /**&amp;lt; Maximum acceptable connection interval (0.2 second). */
#define SLAVE_LATENCY 0                                    /**&amp;lt; Slave latency. */
#define CONN_SUP_TIMEOUT MSEC_TO_UNITS(4000, UNIT_10_MS)   /**&amp;lt; Connection supervisory timeout (4 seconds). */&lt;/pre&gt;&lt;/p&gt;
[quote userid="65515" url="~/f/nordic-q-a/116662/a-ble-disconnection-issue-occurred-randomly-after-the-device-had-been-functioning-without-any-problems-for-many-hours/512414"] What would be the worst-case delay in stream update that could be tolerated?[/quote]
&lt;p&gt;Regarding the way I configure 2 devices to send data to the phone app, whenever data is available on each device, it notifies the phone app and sends data right away. The main limitation of the phone app when receiving data from 2 devices is that it only handles data from a device at a time. Say if it is receiving data from Device 01, while Device 02 keeps transmitting data to the phone app. Device 02&amp;#39;s data will be queued on the air and arrived at the phone app as several ble packets as opposed to individual ble packet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;Edit:&lt;/span&gt; Fortunately, although we notice this limitation, we&amp;#39;re able to retain most data without any packet loss happening in both devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/512414?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2024 15:06:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:902426a2-8e21-4e46-8c83-19386369ff6f</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Moving back to main thread so easier to track replies. What are the sizes of the two device BLE packets sent to the tablet, and how often are they sent? What would be the worst-case delay in stream update that could be tolerated? These effectively dictate optimum settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/512255?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2024 05:26:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05159bac-a833-4b11-81f1-b7194e678be3</guid><dc:creator>Tai</dc:creator><description>&lt;p&gt;This is my mistake&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f605.svg" title="Sweat smile"&gt;&amp;#x1f605;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/512248?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2024 03:01:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef7ef1a3-3603-4248-bc5e-9c3d58b6403b</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Good news; the original tag says nRF52832&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/512228?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 22:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbb9def1-3fb9-4129-9b6a-fd230e11f20f</guid><dc:creator>Tai</dc:creator><description>&lt;p&gt;I&amp;#39;m using nRF52833 actually which can be boosted to +8dBm.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/512227?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 22:50:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ce42f85-9b14-46c4-9140-fd9e861fbd59</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;+8dB? That&amp;#39;s a bug; setting +8dB doesn&amp;#39;t work on the nRF52832, which only has a max of +4dB. Setting +8 actually sets a -ve dB value, look at the pulse currents:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;   // 11.35mA NRF_RADIO-&amp;gt;TXPOWER = 0x08
   // 23.17mA NRF_RADIO-&amp;gt;TXPOWER = 0x04
   // 17.25mA NRF_RADIO-&amp;gt;TXPOWER = 0x00&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Just changing to +4dB alone might fix your disconnect issue :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/512225?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 22:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f109840c-851b-482c-acb5-0d329d5c6e33</guid><dc:creator>Tai</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define MIN_CONN_INTERVAL MSEC_TO_UNITS(7.5, UNIT_1_25_MS) /**&amp;lt; Minimum acceptable connection interval (0.1 seconds). */
#define MAX_CONN_INTERVAL MSEC_TO_UNITS(15, UNIT_1_25_MS) /**&amp;lt; Maximum acceptable connection interval (0.2 second). */
#define SLAVE_LATENCY 0                                    /**&amp;lt; Slave latency. */
#define CONN_SUP_TIMEOUT MSEC_TO_UNITS(4000, UNIT_10_MS)   /**&amp;lt; Connection supervisory timeout (4 seconds). */
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please take a look at it above.&lt;/p&gt;
&lt;p&gt;I guess I didn&amp;#39;t mention that the tablet is actually connecting two BLE devices using the same BLE module. However, the most of BLE disconnection happens in the device worn on the foot.&lt;/p&gt;
&lt;p&gt;The second set for the second BLE device is listed the following&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define MIN_CONN_INTERVAL               MSEC_TO_UNITS(15, UNIT_1_25_MS)             /**&amp;lt; Minimum acceptable connection interval (20 ms), Connection interval uses 1.25 ms units. */
#define MAX_CONN_INTERVAL               MSEC_TO_UNITS(30, UNIT_1_25_MS)             /**&amp;lt; Maximum acceptable connection interval (75 ms), Connection interval uses 1.25 ms units. */
#define SLAVE_LATENCY                   0                                           /**&amp;lt; Slave latency. */
#define CONN_SUP_TIMEOUT                MSEC_TO_UNITS(4000, UNIT_10_MS) &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if having 2 devices, it could potentially increase the possibility of having BLE instability.&lt;/p&gt;
&lt;p&gt;Edit: I also boosted the TX power up to +8dBm by using sd_ble_gap_tx_power_set()&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    ret_code_t err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_advertising.adv_handle, TX_POWER_LEVEL);
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/512223?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 21:59:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b625dfa6-cd4f-4b73-91bc-4e2519567a08</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;I wouldn&amp;#39;t bother, just boost to max Tx +4dB. What are these set to? They will affect the reliability.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Connection interval: Determines how often the Central queries data from the Peripheral.
//   Peripheral may request an update between between minimum 7.5 ms and maximum 4 sec
// Slave latency: A Non-zero slave latency allows the Peripheral to not answer when the
//   Central asks for data up to the slave latency number of times. However if the Peripheral
//   has data to send it can send data at any time. This enables a peripheral to stay sleeping
//   for a longer time, if it doesn&amp;#39;t have data to send, but still send data fast if needed
// Connection Supervision Timeout: Determines the timeout from the last data exchange untill
//   a link is considered lost. A Central will not start trying to reconnect before the timeout
//   has passed, so a short timeout is preferred for devices often going out of range

    gap_conn_params.min_conn_interval = MIN_CONN_INTERVAL;
    gap_conn_params.max_conn_interval = MAX_CONN_INTERVAL;
    gap_conn_params.slave_latency     = SLAVE_LATENCY;
    gap_conn_params.conn_sup_timeout  = CONN_SUP_TIMEOUT;
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/512220?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 21:38:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c224f1c5-3a11-4afe-ae87-37420b7a28bd</guid><dc:creator>Tai</dc:creator><description>&lt;p&gt;Unfortunately, I&amp;#39;m using iPad Pro right now to test, but it doesn&amp;#39;t equip Code PHY.&lt;/p&gt;
&lt;p&gt;Thanks a lot for giving me insightful thoughts for this issue, &lt;a href="https://devzone.nordicsemi.com/members/hmolesworth"&gt;hmolesworth&lt;/a&gt;&amp;nbsp;!&lt;/p&gt;
&lt;p&gt;My last thought of avoiding the BLE disconnection is to boost the TX power using PL/LNA. Not sure if it&amp;#39;d be an overkill approach. Moreover, it requires a major update on our device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img height="254" src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7563.Screenshot-from-2023_2D00_02_2D00_10-09_2D00_24_2D00_42.png" width="511" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/512215?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 20:04:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66dd3289-b2d6-4e5a-b598-56034f4e9468</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Coded PHY is more resilient than 1M or 2M PHY, but of course the on-air packet time increases. Forward Error Correction (FEC) with coded PHY helps with that. Regarding location and orientation, it has to be tested to get the optimum result as all antennas have directional variations; some orientations will rely on reflections (multipath) from walls, floor and ceiling. Any covering degrades performance, but not by much; worse case is usually adjacent humans blocking the direct line-of-sight; worth testing that with different device orientations.&lt;/p&gt;
&lt;p&gt;Load capacitance is slightly arguable, given board capacitance is distributed and hard to quantify. Pin capacitance adds directly to the two individual load capacitors:&lt;/p&gt;
&lt;p&gt;CL = (CaCb)/(Ca+Cb) + Cstray where Ca=Cb=9pF+Cpin=12pF and Cstray (not pins) say 1 or 2pF&amp;nbsp;= net CL of 7 or 8pF&lt;br /&gt;Yes that could be improved, but no I would argue it doesn&amp;#39;t matter that much. Too large a value slows down the crystal, too small speeds up (pulls) but by very little. The actual frequency is more affected by temperature; on the covered foot will be higher temperature than in free air and this may compensate for the load capacitance, best to accurately measure a long time interval derived from the 32kHz crystal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/512207?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2024 17:21:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c99e582c-3c2d-4444-b5eb-03753424204e</guid><dc:creator>Tai</dc:creator><description>&lt;p&gt;Thanks for the suggestion! I forgot to mention about the settings. Blankets and surgical drapes are also used,&amp;nbsp;covering entire patient and the BLE device. However, I don&amp;#39;t think it would affect the BLE signal. Please give your thoughts!&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using the BLE module with chip antennas as well. Regarding the data streaming, it&amp;#39;s real-time with no lag. The following picture is a closer look of the device worn on the foot. The device&amp;#39;s antenna is placed on the left side of the device. Any suggestions for the tablet location in this case would greatly appreciate.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:116px;max-width:391px;" alt=" " height="116" src="https://devzone.nordicsemi.com/resized-image/__size/782x232/__key/communityserver-discussions-components-files/4/pastedimage1732577447139v1.png" width="391" /&gt;&lt;/p&gt;
&lt;p&gt;I read some posts you shared which I noticed that changing to 1M PHY could mitigate the BLE disconnection. In our case, since the distance between the tablet and the device is very short. Any thoughts if this change would help?&lt;/p&gt;
&lt;p&gt;Last thing, by looking at those posts, I checked again&amp;nbsp;our schematic and found that our Xtal capacitors (C3, C4) doesn&amp;#39;t seem correct.&lt;/p&gt;
&lt;p&gt;Please correct me if I calculated this correctly or not.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The load capacitance (Cload) for our crystal is 9pF&lt;/li&gt;
&lt;li&gt;The input pin capacitance (Cpin) for the BLE chip (nRF52833) is 3pF.&lt;/li&gt;
&lt;li&gt;I&amp;#39;d pick the PCB capacitance (Cpcb) of 1pF.&lt;/li&gt;
&lt;li&gt;C3 = C4 = 2*Cload - Cpin - Cpcb = 18 - 3 - 1 = 14pF&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Will this affect the crystal stability, potentially posing the BLE disconnection issue?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:144px;max-width:384px;" alt=" " height="144" src="https://devzone.nordicsemi.com/resized-image/__size/768x288/__key/communityserver-discussions-components-files/4/pastedimage1732641260880v1.png" width="384" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/511992?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2024 20:07:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f89413e7-2f66-4c19-a71e-62bea8ca26b3</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;With that setup good quality antennas should work well, but for example a low-cost nRF52840 Dongle would not work well as that printed circuit antenna is not effective with personnel in close proximity. I prefer chip antennas. Here are a couple of discussions on maintaining connection stability; a lot depends on whether the streaming has to be live with no lag or you can accept some delay in updating (say) a scrolling live display. Also some tablets are better than others, and there are differences in what parameter ranges are allowed.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/67254/effect-of-connection-interval-on-connection-stability/275242"&gt;effect-of-connection-interval-on-connection-stability&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/blogs/1078/throughput-and-long-range-demo/"&gt;throughput-and-long-range-demo&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/66424/ble-connection-stability"&gt;ble-connection-stability&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are lots on the devzone, these just happen to be a couple of links I have to hand&lt;/p&gt;
&lt;p&gt;Edit: Orientation of the foot antenna matters; you might consider specifying a solid angle of best performance for the position of the tablet, or change the foot antenna alignment if that position happens to be inconvenient.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/511986?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2024 18:54:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8622dd94-ad3d-444b-8a35-3c4951484ced</guid><dc:creator>Tai</dc:creator><description>&lt;p&gt;The following is the setting I have. A patient on the bed which is around 2.5 feet from the floor. Our device is worn in the patient&amp;#39;s foot. The tablet location is a subject of change, meaning it can be held by someone or put on a table. Some people walked between the device and the tablet. Some other equipment was also in the room as well.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:175px;max-width:463px;" height="175" src="https://devzone.nordicsemi.com/resized-image/__size/926x350/__key/communityserver-discussions-components-files/4/pastedimage1732560190675v1.png" width="463" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/511984?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2024 18:18:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:220e7464-0460-46ee-9006-387af8ee7104</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Maybe post the settings you have; these can be tweaked to reduce disconnection likelihood by delaying as long as possible a disconnect due to loss of signal. Other options are coded PHY or increased Tx power, but the issue may also be with the tablet. Changing orientation or raising height of either device or tablet or both can help, a lot depends on multipath signals so room size and wall coatings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/511979?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2024 17:47:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1139104-2123-4373-a0de-2ea344d36267</guid><dc:creator>Tai</dc:creator><description>&lt;p&gt;Thanks for your suggestion,&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/aryan"&gt;Susheel Nuguru&lt;/a&gt;&amp;nbsp;! We&amp;#39;ll ask the module maker and try to test with the DK. Will keep you posted.&lt;/p&gt;
&lt;p&gt;Similar question asked &lt;a href="https://devzone.nordicsemi.com/members/hmolesworth"&gt;hmolesworth&lt;/a&gt;&amp;nbsp;above, any suggestions to prevent the BLE device from being&amp;nbsp;disrupted by human body or other sources of interference? Any help would greatly appreciate!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/511977?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2024 17:43:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a4f6842-3e9c-444b-b0e0-c049e6db5a56</guid><dc:creator>Tai</dc:creator><description>&lt;p&gt;Thanks for the reply,&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/hmolesworth"&gt;hmolesworth&lt;/a&gt;&amp;nbsp;! We&amp;#39;re using the latest SDK 17.1.0.&lt;/p&gt;
&lt;p&gt;Since deploying it in the clinics, people being around the device might be inevitable.&amp;nbsp;Moreover, some other equipment that have interference might be introduced in the room as well.&amp;nbsp;In this situation, it&amp;#39;d be great if you can suggest any solutions to protect the device from being disrupted by human body or other sources of interference! Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/511869?ContentTypeID=1</link><pubDate>Mon, 25 Nov 2024 11:04:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffdfb9ae-916e-44f8-a396-f1cd6a125fae</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It is a bit hard for us to say anything with the signal characteristics of the traffic outside the SoC as the module makers normally have different packaging on top and different antenna options to use. Please try to ask the module makers on this first unless you can show us that this issue is from the nRF chip and not the packaging or external components issue from the module.&lt;/p&gt;
&lt;p&gt;Try running your app on the DK and see if you see the same. If not, then it is mostly module issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A BLE disconnection issue occurred randomly after the device had been functioning without any problems for many hours</title><link>https://devzone.nordicsemi.com/thread/511757?ContentTypeID=1</link><pubDate>Sat, 23 Nov 2024 01:49:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54483ef4-1cf5-47d7-be99-e8241456eca1</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;We had a similar issue with a disconnect due to RSSI when the sensor was supposed to be next to a tablet/gateway and it turned out to be a large body of water placed in close proximity to the tablet ie someone picked the tablet up and turned away from the sensor to better read the data and the human body blocked the 2.4GHz signal pretty well. 2nd case looks odd though unless a local microwave got switched on .. SDK or nRFConnect?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>