<?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>Sporadic disconnects with reason 8 but good RSSI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108694/sporadic-disconnects-with-reason-8-but-good-rssi</link><description>Hi, 
 
 I&amp;#39;m having some problems with sporadic disconnects with reason 8 (timeout) although the RSSI values are in a good range. The disconnects are very rare, I would say maybe every 1-2 hours; if there is more interference, then maybe more. 
 As peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Mar 2024 07:49:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108694/sporadic-disconnects-with-reason-8-but-good-rssi" /><item><title>RE: Sporadic disconnects with reason 8 but good RSSI</title><link>https://devzone.nordicsemi.com/thread/475007?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2024 07:49:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7b5f6df-2b66-4c05-810e-8545c8fba1dd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thank you for the update and the interesting findings. Initially I expected an 8 second timeout to be sufficient. But with your long connection interval,&amp;nbsp;you only had to miss 4 events.&lt;/p&gt;
&lt;p&gt;Whether using a large timeout has any drawbacks depends on the application.&amp;nbsp; A delay of 20 seconds to detect a lost connection is often not ideal if is for a user facing application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sporadic disconnects with reason 8 but good RSSI</title><link>https://devzone.nordicsemi.com/thread/474992?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2024 07:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26e9f02d-a1c3-47b9-b1cb-2f26fb75b117</guid><dc:creator>Phobios</dc:creator><description>&lt;p&gt;Sry for the late reply, I had finally some time to test some more. I&amp;#39;m using&amp;nbsp;&lt;span&gt;CONFIG_BT_CTLR_TX_PWR_PLUS_8&lt;/span&gt;&lt;span&gt;=y on both sides, Peripheral and Central.&lt;br /&gt;For the power cost; since my connection interval is so long (2s with latency) there is really not much difference between 1M and S8, from what I&amp;#39;ve measured.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ve done tests with 1M, I see a little improvement but the disconnects are not gone.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I also tried different connection parameters with success. After setting&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Interval: 200ms&lt;/li&gt;
&lt;li&gt;Latency: 9 (means every 2 seconds the sensor must awake and send)&lt;/li&gt;
&lt;li&gt;Timeout 20 seconds&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The disconnects are gone.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So for me it looks like, sometimes it misses all connection intervals up to the 8 seconds and the timeout kicks in. If I increase the timeout, then the devices have more chances to get one interval right.&lt;/p&gt;
&lt;p&gt;Is there any downside to such a big timeout? I&amp;#39;m sending only sporadic messages, so I don&amp;#39;t have much data throughput.&amp;nbsp;&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: Sporadic disconnects with reason 8 but good RSSI</title><link>https://devzone.nordicsemi.com/thread/471299?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 12:59:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f705ac46-1760-46df-a815-ffa9927fe96b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Just to make sure, are both the peripheral and central transmitting at +8 dBm? This is necessary to really increase the link budget. Also, I&amp;#39;m curious if you have done comparisons between coded and 1M in your environment? There is a significant power cost associated with using the CODED PHY since the radio needs to stay on 4 times longer to transmit/receive the same amount of data.&lt;/p&gt;
[quote user="Phobios"]Do you think changing to 1M PHY will help me with the interference, and the range extension IC (but only on the Central) will help me getting longer range?&amp;nbsp;[/quote]
&lt;p&gt;I think you need to use the FEM on both sides to improve the link budget. If you have a choice between increasing the power output or using CODED PHY, you should typically see the biggest improvement by increasing the power. Note that ETSI does not permit more than 10 dBm for BLE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sporadic disconnects with reason 8 but good RSSI</title><link>https://devzone.nordicsemi.com/thread/471289?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 12:40:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21547922-9455-4957-95be-94c24f62e8c9</guid><dc:creator>Phobios</dc:creator><description>&lt;p&gt;I&amp;#39;ve already increased to 8dBm - but as you said (and the RSSI value shows) - I think in that special environment, the problem is more the interference than the range limits.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also thought about using Nordic range extension IC, but only on the central device (since the sensor is battery powered, I don&amp;#39;t want to loose more capacity). According to the datasheet is increases the receiving sensitivity as well, not only transmitting power.&lt;/p&gt;
&lt;p&gt;Do you think changing to 1M PHY will help me with the interference, and the range extension IC (but only on the Central) will help me getting longer range?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sporadic disconnects with reason 8 but good RSSI</title><link>https://devzone.nordicsemi.com/thread/471223?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 09:11:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f65f66b-7119-49c9-9839-5d0a68bebd48</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;s8 will generally extend the range, but it may perform worse in noisy environments.&lt;/p&gt;
&lt;p&gt;You can try to disable slave latency to see if it helps improve the robustness of your link.&amp;nbsp;&lt;/p&gt;
[quote user="Phobios"]If I have to switch back to 1M PHY&amp;nbsp;then the range is limited.[/quote]
&lt;p&gt;Is the RADIO configured to transmit with 0 dBm (default), or have you increased it to +8 dBm?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sporadic disconnects with reason 8 but good RSSI</title><link>https://devzone.nordicsemi.com/thread/471102?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 16:10:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c98a86d-ec6c-4b43-9977-968fdddd9c21</guid><dc:creator>Phobios</dc:creator><description>&lt;p&gt;Ok, thanks for the hint with the clock drift, that makes sense.&lt;/p&gt;
&lt;p&gt;To the encoding: I thought S8 increases the range and robustness because it is coded and adds error correction? That&amp;#39;s the reason I&amp;#39;m choosing this, because I want to cover a long distance. If I have to switch back to 1M PHY&amp;nbsp;then the range is limited.&lt;br /&gt;&lt;br /&gt;Can I play with the connection parameter or are there any other options I can try?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sporadic disconnects with reason 8 but good RSSI</title><link>https://devzone.nordicsemi.com/thread/470983?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 11:23:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:500e08b8-3f0d-47eb-bfb9-67fb3210a397</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thank you for the clarification. I assume the uptime counter is only reset after a reboot, not upon disconnection. This suggests that the connection timeout isn&amp;#39;t due to an unexpected reset, at least. The fact that this issue doesn&amp;#39;t occur when the devices are placed closer together indicates that it&amp;#39;s likely not related to exessive clock drift either.&lt;/p&gt;
&lt;p&gt;The s8 encoding is more susceptible to interference from other devices operating on the same frequency bands, as the packets require a longer airtime.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sporadic disconnects with reason 8 but good RSSI</title><link>https://devzone.nordicsemi.com/thread/470941?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 08:27:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9771c7e7-baa6-4c5e-9bdb-44422adbd348</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;Well, in the end, it could boil down to some unavoidable disconnects due to the environment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sporadic disconnects with reason 8 but good RSSI</title><link>https://devzone.nordicsemi.com/thread/470940?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 08:23:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1856a58-ad7f-4897-878f-0b6bbb14e899</guid><dc:creator>Phobios</dc:creator><description>&lt;p&gt;It was reported by the central. I think I can rule out the reset, because I&amp;#39;m&amp;nbsp;sending&amp;nbsp;a status package with the uptime every minute; and the uptime never resets. But I sure will try it with the parameter.&lt;br /&gt;Also if I change the environment e.g. put the sensor closer to the central, there are no more disconnects.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sporadic disconnects with reason 8 but good RSSI</title><link>https://devzone.nordicsemi.com/thread/470932?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 07:53:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6abc62a5-7f2f-40a9-bcdb-aa05cec64c30</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I&amp;#39;d also suggest building the central and peripheral project with the CONFIG_RESET_ON_FATAL_ERROR set to &amp;#39;n&amp;#39;, if you haven&amp;#39;t already done so. This will help catch any crashes. A reset triggered by the fault handler could explain the connection timeout. By the way, was the connection timeout reported by the central or the peripheral?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sporadic disconnects with reason 8 but good RSSI</title><link>https://devzone.nordicsemi.com/thread/470930?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 07:46:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79b4da2f-5d03-4ba9-a904-d06a2ffd389d</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;Could you then replace the peripheral? Divide and Conquer! ;-) If you are able to rule out half of the system, searching becomes easier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sporadic disconnects with reason 8 but good RSSI</title><link>https://devzone.nordicsemi.com/thread/470927?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 07:41:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99cf7367-85f6-452f-abc3-98d01be6f902</guid><dc:creator>Phobios</dc:creator><description>&lt;p&gt;I&amp;#39;m currently trying to set up the sniffer and will provide some logs as soon as I have entered the sniffer world (never used it before).&amp;nbsp;I think replacing the central is not a good idea, because it changes the environment; i&amp;#39;m using an external antenna. What I can do is to program the central example and connect to the sensor and log the disconnects there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sporadic disconnects with reason 8 but good RSSI</title><link>https://devzone.nordicsemi.com/thread/470924?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 07:35:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c86c3839-14d8-4fa7-b465-0ee34633ea9a</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;Are you able to use a sniffer, to at least see at which side, the connection is going to be lost? Could you replace the central with something else, to rule out this part of the communication?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>