<?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>Packet loss due to interference in ble.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90205/packet-loss-due-to-interference-in-ble</link><description>Board: nRF52810 
 SoftDevice: s112 
 SDK version: 17.0.2 
 I&amp;#39;ve developed a BLE application where nRF52810 as peripheral and nRF52833 as central. The peripheral continuously sends data to the central and mostly operated in a very close range. While testing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Jul 2022 13:20:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90205/packet-loss-due-to-interference-in-ble" /><item><title>RE: Packet loss due to interference in ble.</title><link>https://devzone.nordicsemi.com/thread/378730?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2022 13:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3aae030-6a42-490d-887b-1192e94e459f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;If you look at the peripheral BLE examples you can find that most of them use gatt_init(), which will upon connection exchange max MTU sizes, you can get the result of the max supported MTU size by looking at the callback handler: gatt_evt_handler() and the events NRF_BLE_GATT_EVT_ATT_MTU_UPDATED (max attribute size) and NRF_BLE_GATT_EVT_DATA_LENGTH_UPDATED (max on air size, a long attribute may be split across several of these). Example of implementation is shown in this reply:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30759/ble5---make-payload-size-200-bytes---the-right-way/121695"&gt;RE: BLE5 - Make payload size 200 bytes - the right way&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Typically you want the data sent to be as close as possible to the max data length (NRF_BLE_GATT_EVT_DATA_LENGTH_UPDATED) for most efficient transfers.&lt;/p&gt;
&lt;p&gt;In a perfect world with no packet loss having a slow connection interval can give the highest throughput, but considering we don&amp;#39;t live in a perfect world I would claim you should have a fast connection interval, this will reduce the max peak throughput, but allow stable throughput.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Packet loss due to interference in ble.</title><link>https://devzone.nordicsemi.com/thread/378726?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2022 13:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6de55275-219d-4704-9344-6c908e1b0047</guid><dc:creator>Nabeel Ar</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;From&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51082/can-t-enable-dle"&gt;this&lt;/a&gt;&amp;nbsp;post I came to know to enable DLE I have to increase the NRF_SDH_BLE_GAP_DATA_LENGTH&amp;nbsp; value, but&amp;nbsp;&lt;/span&gt;&lt;span&gt;My&amp;nbsp;NRF_SDH_BLE_GAP_DATA_LENGTH&amp;nbsp; value is already in 251. Does the DLE is enabled already?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I saw the following paragraph in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/throughput-and-long-range-demo"&gt;this&lt;/a&gt;&amp;nbsp;blog. This suggests keeping the connection interval less in the time of interference. But to achieve higher throughput it suggests having a higher connection interval. What to follow??&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;A higher connection interval will give higher throughput if this option is enabled. This is different compared to older Nordic BLE devices and stacks, where you wanted the connection interval to be as short as possible for maximum throughput. One drawback here is that if there is a lot of interference and packets start getting lost. If a packet is lost, the device needs to wait for the next connection event before sending more packets (after resending the lost packet). The wait time can be anywhere from close to zero to the length of the connection interval. In other words, a long connection interval will improve the throughput when the link quality is good, but could reduce the throughput when there is a lot of interference or when the distance between the devices is large.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If this&amp;nbsp;NRF_SDH_BLE_GAP_DATA_LENGTH&amp;nbsp; value&amp;nbsp;doesn&amp;#39;t determine the DLE, Then how can I enable it?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Packet loss due to interference in ble.</title><link>https://devzone.nordicsemi.com/thread/378518?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 11:11:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de02dc62-9539-44d6-9d7e-b3077dd9dc81</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;There is a nice blogpost here that describe how to improve throughput:&lt;br /&gt;&lt;a href="https://novelbits.io/bluetooth-5-speed-maximum-throughput/"&gt;https://novelbits.io/bluetooth-5-speed-maximum-throughput/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Have in mind that S112 does not support Data Length Extension (DLE), which means the maximum packet that can be sent on-air is only 23bytes, this will decrease the throughput a lot. I recommend to consider the S113 that support up to 244bytes of data in each packet.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Packet loss due to interference in ble.</title><link>https://devzone.nordicsemi.com/thread/378509?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 10:13:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c96a16a7-d287-49d3-84ac-50499c272c09</guid><dc:creator>Nabeel Ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/90205/packet-loss-due-to-interference-in-ble/378504"]What throughput do you have here?[/quote]
&lt;p&gt;I assume&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH is the factor that determines throughput, It is set to 6.&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/90205/packet-loss-due-to-interference-in-ble/378504"]What latency requirements?[/quote]
&lt;p&gt;The data is sent continuously and every piece of data is crucial. So the Latency is set to 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Packet loss due to interference in ble.</title><link>https://devzone.nordicsemi.com/thread/378504?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 09:50:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98b8dab6-b3bc-4d80-bcc0-f5761bedc267</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I don&amp;#39;t really see that will help no. What throughput do you have here? What latency requirements?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Packet loss due to interference in ble.</title><link>https://devzone.nordicsemi.com/thread/378344?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 14:06:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ad388b0-0662-467f-8780-d5558804f334</guid><dc:creator>Nabeel Ar</dc:creator><description>&lt;p&gt;Can I change the application from BLE to RF proprietary? Will it help to avoid interference?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Packet loss due to interference in ble.</title><link>https://devzone.nordicsemi.com/thread/378314?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 12:53:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:950beace-06ad-47f7-b0b4-207c978be0c4</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I would say no, but you can double check with the module manufacturer that you have placed the module according to their recommendations.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Packet loss due to interference in ble.</title><link>https://devzone.nordicsemi.com/thread/378294?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 12:19:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd037b2a-313e-4fc7-bf8d-7f00e30ed2c1</guid><dc:creator>Nabeel Ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="2111" url="~/f/nordic-q-a/90205/packet-loss-due-to-interference-in-ble/378085"]So you need to improve the link budget by optimizing the design (e.g. make sure the antenna is properly tuned to 50ohm in the final product casing [/quote]
&lt;p&gt;I&amp;#39;m already using 3rd party module with an antenna designed with the configuration mentioned above. Can anything be done on the firmware side to overcome the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Packet loss due to interference in ble.</title><link>https://devzone.nordicsemi.com/thread/378085?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 12:11:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bb64e38-ec74-4bc0-8ddf-94e367f55bee</guid><dc:creator>Kenneth</dc:creator><description>[quote user="Nabeell"]Does Channel Hopping has to do anything to make it efficient? Will QoS or Adaptive channel hopping help me to overcome the problem??[/quote]
&lt;p&gt;No, this is simply a matter of link budget and signal level of the interference. So you need to improve the link budget by optimizing the design (e.g. make sure the antenna is properly tuned to 50ohm in the final product casing and tune the output power to 4dBm, adding a PA on the front-end will help (e.g. n21540)). Other than that it&amp;#39;s very little one can do).&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Packet loss due to interference in ble.</title><link>https://devzone.nordicsemi.com/thread/377983?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 06:02:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7340bc0a-e040-4def-826d-af17df14810f</guid><dc:creator>Nabeel Ar</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m already using maximum tx power (4 dBm) and the tolerance is 500ppm. The connection interval is 7.5ms (min) and 15 ms (max), which I think is a shorter connection interval. Though I&amp;#39;m getting data loss due to interference.&lt;/p&gt;
&lt;p&gt;Does Channel Hopping has to do anything to make it efficient? Will QoS or Adaptive channel hopping help me to overcome the problem??&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Packet loss due to interference in ble.</title><link>https://devzone.nordicsemi.com/thread/377847?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2022 11:55:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c80eb8de-4ec0-4acb-9167-82e20b68ab16</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Make sure to use maximum output power, and make sure you have got help to tune the antenna for optimal performance, a poorly tuned antenna will reduce the effective output power radiated. If you are using the internal LFCLK (internal RF 32kHz), then make sure you have set the tolerance to 500ppm and that the LFCLK callibrate the RC oscillator. This should ensure that you have a good design with good output power and that the peripheral&amp;nbsp;tolerate timing drift between the two peers.&lt;/p&gt;
&lt;p&gt;You can also consider to use shorter connection interval, this will allow more time to send data.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>