<?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>Bluetooth transmission blocking issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124493/bluetooth-transmission-blocking-issue</link><description>Previously, when our NRF5340 was transmitting at a 3ms interval, we encountered issues where the transmission speed failed to meet requirements, with data packets being discontinuous or, in other words, experiencing packet loss. Typically, dozens of packets</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Sep 2025 12:17:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124493/bluetooth-transmission-blocking-issue" /><item><title>RE: Bluetooth transmission blocking issue</title><link>https://devzone.nordicsemi.com/thread/549560?ContentTypeID=1</link><pubDate>Tue, 23 Sep 2025 12:17:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:800a18b2-2643-4133-a785-b381902b1ac3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If packets are 27 bytes, data length length extension is not used for some reason. If the peer does not trigger it, you can do it with a call to&amp;nbsp;bt_conn_le_data_len_update().&lt;/p&gt;
&lt;p&gt;Some questions to understand more:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Can you share the actual sniffer trace (not just a screenshot) so we can see the packet exchange to understand more about the paramters that is used and why?&lt;/li&gt;
&lt;li&gt;Regarding configs, can you share the files and prefrably also the generated .config so we see the configuration parmaters actually used in the build?&lt;/li&gt;
&lt;li&gt;What is the peer device you are testing with? (this also need to be configured for and supprot the desiered parameters).&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth transmission blocking issue</title><link>https://devzone.nordicsemi.com/thread/549479?ContentTypeID=1</link><pubDate>Tue, 23 Sep 2025 01:35:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b72e8b36-79b3-43ca-b503-f38d0a51e150</guid><dc:creator>HHJ</dc:creator><description>&lt;p&gt;Thanks bro&lt;/p&gt;
&lt;div class="auto-hide-last-sibling-br paragraph-pP9ZLC paragraph-element br-paragraph-space"&gt;I&amp;#39;ll show you the configurations related to connection intervals, data length extension, and sending multiple packets in one transmission interval via images. As a matter of fact, we&amp;#39;ve been using the 2M PHY all along.&lt;/div&gt;
&lt;div class="auto-hide-last-sibling-br paragraph-pP9ZLC paragraph-element br-paragraph-space"&gt;Fortunately, we&amp;#39;ve discovered a more interesting issue than the RX_BUFFERS problem. When capturing data packets with the nRF sniffer, we noticed that the data packet is split into smaller ones (27 bytes per packet) for transmission. This causes the entire transmission process to take 4ms, while our transmission timing is set to 3ms, ultimately resulting in a stack overflow on the transmitting end.&lt;/div&gt;
&lt;div class="auto-hide-last-sibling-br paragraph-pP9ZLC paragraph-element br-paragraph-space"&gt;How can we increase the single transmission size, and which configuration allows us to send a 242-byte data packet in one go?&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1758590959536v2.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1758590988171v3.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1758591077940v5.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1758591109558v6.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1758591241980v7.png" alt=" " /&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth transmission blocking issue</title><link>https://devzone.nordicsemi.com/thread/549450?ContentTypeID=1</link><pubDate>Mon, 22 Sep 2025 13:17:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:274f75e9-cb2d-4dd9-8dd7-2920ab9aca11</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see form the log that you get a lot of -12 errors, which is -ENOMEM. And the rest of the log also indicate that you are attmepting to notify faster than what is actually transmitted.&lt;/p&gt;
&lt;p&gt;What is the connection parameters of the link? I am mostly interested in connection interval, but also of course that you have data length extension with long enough packets and the event length. As you have a new chunk of data every 3 ms that means you need to transmitt multiple packets per connection event event. It may also sense to use longer ocnnection events in this case to reduce overhead (though this means you will likely loose more data after a packet loss at retransmissions always happen on the next connection event).&lt;/p&gt;
&lt;p&gt;To be honest, you are pushing the limits of what is possible with a 1 Mbps BLE link as 242 bytes per 3 ms is about&amp;nbsp;645, so this will requiere well thought out parameters and it &lt;em&gt;will&lt;/em&gt; be prone to&amp;nbsp;data loss whenever there is packet loss. If you have not allready, you should consider using 2 Mbps PHY for this reason.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth transmission blocking issue</title><link>https://devzone.nordicsemi.com/thread/549378?ContentTypeID=1</link><pubDate>Mon, 22 Sep 2025 03:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc9e9598-b5be-4e83-9f1c-3ac3ba5ce74c</guid><dc:creator>HHJ</dc:creator><description>&lt;p&gt;Thanks bro&lt;/p&gt;
&lt;div class="auto-hide-last-sibling-br paragraph-JOTKXA paragraph-element br-paragraph-space"&gt;We have refined our configuration based on the one you provided, but this appears to have had no effect. I suspect the issue lies with the buffer configuration&amp;mdash;specifically, the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;RX_buffers&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;setup remains inadequate.&lt;/div&gt;
&lt;div class="auto-hide-last-sibling-br paragraph-JOTKXA paragraph-element br-paragraph-space"&gt;I transmitted 242 bytes of dummy data at 3ms intervals. For details on packet loss and error return value checks, I will share this with you via images. Notably:&lt;/div&gt;
&lt;ul class="auto-hide-last-sibling-br"&gt;
&lt;li&gt;&lt;strong&gt;64 serves as the packet header&lt;/strong&gt;;&lt;/li&gt;
&lt;li&gt;The byte immediately following is the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;packet sequence number&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;(consecutive sequence numbers indicate no packet loss);&lt;/li&gt;
&lt;li&gt;The remaining data in each packet is identical.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="auto-hide-last-sibling-br paragraph-JOTKXA paragraph-element br-paragraph-space"&gt;Previously, we saw substantial improvements by adjusting the value of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;CONFIG_BT_CTLR_RX_BUFFERS&lt;/strong&gt;. We therefore hypothesize that resolving the current issue still requires focusing on the buffer. This is particularly evident when reflashing: typically, the first 10-13 packets arrive consecutively, but losses occur thereafter.&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1758512799429v1.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1758512827503v2.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1758513202157v3.png" alt=" " /&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth transmission blocking issue</title><link>https://devzone.nordicsemi.com/thread/549318?ContentTypeID=1</link><pubDate>Fri, 19 Sep 2025 12:52:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:585eed26-b87c-4e42-a473-90ee1f09021d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you elaborate more about your system? You write 3ms, what exactly happens at this interval? (I ask as the minimum connection interval in Bluetooth is 7.5 ms). Also, when you write packets is lost, what do you mean by that? Is it lost on air (if so it would be retransmitted, and a sniffer trace would also be useful. Or could it be that buffers are full, and you are attempting to send data (perhaps as a notification) and that fails? If so, do you check return values so that you would know that it failed?&lt;/p&gt;
&lt;p&gt;Regarding adjusting buffers, you can refer to the &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/85ce826ee13e2106ea4e7812089064ba07db0e9a/samples/bluetooth/throughput/prj.conf"&gt;pro.conf&lt;/a&gt; from the Throughput sample for the app core and the also &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/2fea66a8ed292619015c915dad437bf7f2d74f18/samples/bluetooth/throughput/sysbuild/ipc_radio/prj.conf"&gt;this one&lt;/a&gt; for the net core.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>