<?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>nRF52840 - DLE update issue.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80093/nrf52840---dle-update-issue</link><description>Hi, 
 We are facing some issues with the DLE update. 
 The given table shows that the softdevice set data length and time. 
 
 
 
 Event Length (ms) 
 ATT MTU (bytes) 
 Data Length (bytes) 
 Tx and Rx Time (us) 
 
 
 2.5 
 60 
 64 
 737 
 
 
 2.5 
 70</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Jan 2022 14:32:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80093/nrf52840---dle-update-issue" /><item><title>RE: nRF52840 - DLE update issue.</title><link>https://devzone.nordicsemi.com/thread/350006?ContentTypeID=1</link><pubDate>Thu, 27 Jan 2022 14:32:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fc75039-e96f-4dc9-951b-489b86937c37</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. I am not able to make this add up. Can you share sniffer traces and the relevant parts of the firmware (show configurations like&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH and&amp;nbsp;NRF_SDH_BLE_GATT_MAX_MTU_SIZE and any code you have for doing data length updates etc)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 - DLE update issue.</title><link>https://devzone.nordicsemi.com/thread/349825?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 16:28:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc831157-ed7c-4b95-b4ff-f31112ff33ec</guid><dc:creator>Srinivasan C</dc:creator><description>&lt;p&gt;So when 3 connections are established, we disable Scan and advertising both ( the adv is disabled when we connect as a slave to another device and Scan is disabled after 2 connections as Master is made ).&amp;nbsp; &amp;nbsp;We do not write to the Flash at all.&lt;/p&gt;
&lt;p&gt;when only 1 or no connections have been made as a master, the scan is still active.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As the number of connections increase ( to a max of 3 ), the MTU that work without packet drop decreases.&amp;nbsp; This is what we are trying to understand.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 - DLE update issue.</title><link>https://devzone.nordicsemi.com/thread/349799?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 14:37:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:088b5bb4-d54a-42bd-bae8-1baa32270992</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I am also not getting this to add up. Can you explain more details about your configuration and use case? While having 3 current connections, do you still scan or try to establish another connection? Or do you write to flash, or do anything else that affects SoftDevice scheduling (see &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/multilink_scheduling/priorities_and_events_intro.html"&gt;scheduling priorities table&lt;/a&gt;)? Please elaborate.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 - DLE update issue.</title><link>https://devzone.nordicsemi.com/thread/349551?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 13:32:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b90020b2-2397-4e29-978f-744798b44f31</guid><dc:creator>Srinivasan C</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks for the quick response.&amp;nbsp; Still the issue is not clear though.&amp;nbsp; We have choosen 20ms as the Connection Interval with&amp;nbsp; EL of 5ms and Scan interval of 3.75ms.&amp;nbsp; We let any node connect to 3 other nodes at the max&amp;nbsp; ( 1 as a slave and 2 as a master ).&amp;nbsp; So the CI interval is enough for this ( 3 * 5 + 3.75 = 18.75ms )&lt;/p&gt;
&lt;p&gt;Now, for a choosen MTU, Say 200,&amp;nbsp; we see that when a node is connected to 2 other nodes ( mesh size is 3), there is no loss of packets,&amp;nbsp; but when the node is connected to 3 others ( mesh size ids 4 ) , then we see loss of packets ( loss of packet means that the packet was not xmitted ).&lt;/p&gt;
&lt;p&gt;This shouldnt happen as there is sufficient time in each EL / CI for each of the connection to send out the set MTU length.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Obviously we are missing / not understanding some subtle point. Any help in this will be helpful&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 - DLE update issue.</title><link>https://devzone.nordicsemi.com/thread/349528?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 12:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dd3b1cc-0c4b-4cc0-95dd-eb5c244181d6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I assume when you write packet loss here it is not that the packets are lost on air, but that they cannot be sent within the event as there is no time, and so the scheduler will not do it and you will have to wait for the next event? (if so, you could see this as a increased latency for instance, but not as packet loss).&lt;/p&gt;
[quote user="AKV"]1. Why is that packet loss happening when we increase the MTU with given EL?[/quote]
&lt;p&gt;With longer packets (higher MTU), the packet takes more time on air, so you will eventually not be able to fit the same amount of packets in the same event if the event length is not increased accordingly.&lt;/p&gt;
[quote user="AKV"]2. What is the maximum MTU we can set with the Even length 3.75ms and 5ms without any packet loss?[/quote]
&lt;p&gt;You need to fit everything within this time limit, including overhead described in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/80093/nrf52840---dle-update-issue"&gt;this earlier post&lt;/a&gt; in this thread, which can change with different stack versions. If you need to squeeze in as much as possible in short event lengths then I suggest you do this by experimentation. You should probably leave 1 byte for margin, and remember that if you do it this tight, you may need to adjust this with future SDK updates.&lt;/p&gt;
[quote user="AKV"]3.&amp;nbsp;Why is it dependent on the number of connections (Each node has its own EL time anyway)?[/quote]
&lt;p&gt;For the central this should not be a problem as long as you have time to fitt all the connections with the specified event length and also have time for scanning. Is the mesh size row what describes the number of connections? If so, then with higher numbers you will not have time for it all (e.g. if I am reading this correctly then you have for instance 4 times 5 ms event lengths in 20 ms connection interval, which should also include 3.125 scan&amp;nbsp; window&amp;nbsp; - assuming you do scanning also here).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 - DLE update issue.</title><link>https://devzone.nordicsemi.com/thread/349512?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 11:58:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e42130fa-0ac6-4435-8dce-129000a0fdfc</guid><dc:creator>AKV</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;We are developing a mesh network. Our requirement is the one device can connect to three other devices.&amp;nbsp;&lt;span&gt;Using one connection as a peripheral and up to two connections as a central&amp;nbsp;for mesh connections.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So we have to check what is the maximum MTU we can set with given Event length.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The maximum possible MTU is 152 bytes with the connection&amp;nbsp;Event length 3.75ms when&amp;nbsp;the DLE set by Softdevice&amp;nbsp;(DLE result 156/1362,&amp;nbsp; The DLE setting table have already attached above).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We have observed that when we increase the MTU the packet loss happening (Application packet size is MTU-3 and sending the packet in every 30ms).&lt;/p&gt;
&lt;p&gt;The below table you can see that packet loss is happening when we increase the MTU and total mesh connections.&lt;/p&gt;
&lt;table dir="ltr" border="1" cellpadding="0" cellspacing="0" height="346" width="578"&gt;&lt;colgroup&gt;&lt;col width="100" /&gt;&lt;col width="100" /&gt;&lt;col width="100" /&gt;&lt;col width="100" /&gt;&lt;col width="100" /&gt;&lt;col width="100" /&gt;&lt;col width="100" /&gt;&lt;/colgroup&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Mesh Size&lt;/td&gt;
&lt;td&gt;Event Length (ms)&lt;/td&gt;
&lt;td&gt;Connection Interval&lt;br /&gt; (mS)&lt;/td&gt;
&lt;td&gt;Scan Window &lt;br /&gt;(mS)&lt;/td&gt;
&lt;td&gt;ATT MTU (bytes)&lt;/td&gt;
&lt;td&gt;Tx and Rx Time (us)&lt;/td&gt;
&lt;td&gt;Packet Loss&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;3.75&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;126&lt;/td&gt;
&lt;td&gt;1362&lt;/td&gt;
&lt;td&gt;NO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;3.75&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;130&lt;/td&gt;
&lt;td&gt;1362&lt;/td&gt;
&lt;td&gt;NO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;3.75&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;152&lt;/td&gt;
&lt;td&gt;1362&lt;/td&gt;
&lt;td&gt;YES&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;3.75&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;126&lt;/td&gt;
&lt;td&gt;1362&lt;/td&gt;
&lt;td&gt;NO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;3.75&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;130&lt;/td&gt;
&lt;td&gt;1362&lt;/td&gt;
&lt;td&gt;NO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;3.75&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;152&lt;/td&gt;
&lt;td&gt;1362&lt;/td&gt;
&lt;td&gt;YES&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;3.75&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;126&lt;/td&gt;
&lt;td&gt;1362&lt;/td&gt;
&lt;td&gt;NO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;3.75&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;130&lt;/td&gt;
&lt;td&gt;1362&lt;/td&gt;
&lt;td&gt;YES&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;3.75&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;152&lt;/td&gt;
&lt;td&gt;1362&lt;/td&gt;
&lt;td&gt;YES&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;180&lt;/td&gt;
&lt;td&gt;1987&lt;/td&gt;
&lt;td&gt;NO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;td&gt;1987&lt;/td&gt;
&lt;td&gt;NO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;220&lt;/td&gt;
&lt;td&gt;1987&lt;/td&gt;
&lt;td&gt;YES&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;180&lt;/td&gt;
&lt;td&gt;1987&lt;/td&gt;
&lt;td&gt;NO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;td&gt;1987&lt;/td&gt;
&lt;td&gt;NO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;220&lt;/td&gt;
&lt;td&gt;1987&lt;/td&gt;
&lt;td&gt;YES&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;180&lt;/td&gt;
&lt;td&gt;1987&lt;/td&gt;
&lt;td&gt;NO&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;td&gt;1987&lt;/td&gt;
&lt;td&gt;YES&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;3.125&lt;/td&gt;
&lt;td&gt;220&lt;/td&gt;
&lt;td&gt;1987&lt;/td&gt;
&lt;td&gt;YES&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;1. Why is that packet loss happening when we increase the MTU with given EL?&lt;/p&gt;
&lt;p&gt;2. What is the maximum MTU we can set with the Even length 3.75ms and 5ms without any packet loss?&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp;Why is it dependent on the number of connections (Each node has its own EL time anyway)?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 - DLE update issue.</title><link>https://devzone.nordicsemi.com/thread/332247?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 07:46:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a98da1a1-8347-4d34-8792-4032d6a1a1dc</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The numbers are currently a bit smaller with nRF Connect SDK. These numbers are caused by implementation details though, and can change at any time with new releases so you should not rely on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 - DLE update issue.</title><link>https://devzone.nordicsemi.com/thread/332183?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 15:01:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e884dfc7-9bb8-4ea9-b5ba-233d643f5625</guid><dc:creator>Srinivasan C</dc:creator><description>&lt;p&gt;Thanks for the clarification. Will the situation be any different if we switch to nRF Connect ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 - DLE update issue.</title><link>https://devzone.nordicsemi.com/thread/332126?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 11:43:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e4980c5-2dd8-4376-abd7-f68ed1419246</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is expected. Before the connection event starts, the SoftDevice reserves 183 us for configuring the radio. After the the last packet has been received,&amp;nbsp;it&amp;nbsp; reserve 350 us for post processing. In addition comes 200 us for scheduling. This adds up to the numbers you have seen. Also note that the SoftDevice will not start a new packet pair if there is not enough available time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 - DLE update issue.</title><link>https://devzone.nordicsemi.com/thread/331927?ContentTypeID=1</link><pubDate>Thu, 30 Sep 2021 12:42:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04c56ce1-c7d8-47f4-881f-c1c1b4074207</guid><dc:creator>Srinivasan C</dc:creator><description>&lt;p&gt;Hi Einar, thanks for the links .&lt;/p&gt;
&lt;p&gt;Still have a question on the relation between the Event Length&amp;nbsp; and the Tx / Rx Timing.&amp;nbsp; If we have an Event length of 2.5ms&lt;/p&gt;
&lt;p&gt;the Tx and Rx lengths can be 1.1ms each&amp;nbsp; ( removign the 150uS CIFS ).&amp;nbsp; This should have corresponded to about 137 bytes.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But we are seeing about 78 bytes only.&amp;nbsp; &amp;nbsp; This seems to suggest a time about 750usec being used up for other activities ( this seems to fit when we tried with 3.75ms Event length ).&amp;nbsp; Where does this extra 750us come from ? Is this the radio prepare time ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 - DLE update issue.</title><link>https://devzone.nordicsemi.com/thread/331775?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 15:32:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fc385cb-a60c-4c5b-b8f6-ae65a05c2ee7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SoftDevice will need to fit all connections and scanning, see &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/multilink_scheduling/extend_connection_event.html"&gt;Connection timing with Connection Event Length Extension&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;By the way, do you use the SoftDevice handler module in the SDK? If so it calls&amp;nbsp;sd_ble_cfg_set() with the event&amp;nbsp;length from&amp;nbsp;NRF_SDH_BLE_GAP_EVENT_LENGTH in sdk_config.h.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>