<?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>BLE RX error Unexpected L2CAP continuation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118624/ble-rx-error-unexpected-l2cap-continuation</link><description>My Nordic device (nRF52833, using SDK 2.1.2) is a peripheral. I need to periodically transfer to it large amount of data from central device over connectable Nordic UART Service. I perform this data transfer in batches of 16 packets, 128 bytes each (due</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Feb 2025 20:32:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118624/ble-rx-error-unexpected-l2cap-continuation" /><item><title>RE: BLE RX error Unexpected L2CAP continuation</title><link>https://devzone.nordicsemi.com/thread/522303?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 20:32:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd19884b-ae71-45be-b137-4f10ad843e99</guid><dc:creator>Alex_S@Aperia</dc:creator><description>&lt;p&gt;Perfect, thank you very much !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE RX error Unexpected L2CAP continuation</title><link>https://devzone.nordicsemi.com/thread/522301?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 20:24:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5feda29a-8702-4fa9-8e94-dc11d237a591</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would say it&amp;#39;s common that a central execute a DLE update shortly after connection is established. If the peripheral then is configured to support higher DLE, then it will be updated to the new value. I believe 251 is the maximum:&lt;br /&gt;&lt;span&gt;CONFIG_BT_CTLR_DATA_LENGTH_MAX&lt;/span&gt;&lt;span&gt;=251&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It&amp;#39;s also possible to initiate this update from the peripheral side, but I have seen that some centrals are not handling that very well, so I suggest to let the central handle this. If you still want to try it, then the kconfig is:&lt;br /&gt;CONFIG_BT_AUTO_DATA_LEN_UPDATE=y&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE RX error Unexpected L2CAP continuation</title><link>https://devzone.nordicsemi.com/thread/522254?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 15:08:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f3ccbd3-589d-4efa-8703-be708709b2eb</guid><dc:creator>Alex_S@Aperia</dc:creator><description>&lt;p&gt;I understand that, I didn&amp;#39;t mean to ask for help with my central/transmitter stack.&lt;br /&gt;What I meant is to ask - if I change DLE value on peripheral (Nordic)&amp;nbsp; side - is the value expected to be negotiated and accepted by central ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE RX error Unexpected L2CAP continuation</title><link>https://devzone.nordicsemi.com/thread/522210?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 13:46:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16e70c81-0b69-4ceb-a9c2-df6cdceea14e</guid><dc:creator>Kenneth</dc:creator><description>[quote user="Alex_S@Aperia"]It is not Nordic/Zephyr device, uses Cordio BLE stack where all the values are hardcoded.[/quote]
&lt;p&gt;I don&amp;#39;t see any way we can help you there no.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE RX error Unexpected L2CAP continuation</title><link>https://devzone.nordicsemi.com/thread/521825?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 22:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68188d87-cfe9-4838-879a-fbd582450f5f</guid><dc:creator>Alex_S@Aperia</dc:creator><description>&lt;p&gt;In my case data transfer is mostly unidirectional, and the the issue manifests itself is on the receiver (Nordic peripheral), so if fragmentation does happen, it is caused by transmitter (central device, Maxim MCU)&lt;br /&gt;I&amp;#39;m not sure if DLE is negotiated, like ATT MTU or I have to find a way to explicitly configure it on the transmitter/central. It is not Nordic/Zephyr device, uses Cordio BLE stack where all the values are hardcoded.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE RX error Unexpected L2CAP continuation</title><link>https://devzone.nordicsemi.com/thread/521824?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 22:17:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b103aebd-7f86-4746-be8f-ca336f9de195</guid><dc:creator>Alex_S@Aperia</dc:creator><description>&lt;p&gt;Thank you, this is very helpful, I&amp;#39;ll try to play with DLE&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE RX error Unexpected L2CAP continuation</title><link>https://devzone.nordicsemi.com/thread/521821?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 21:58:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6390e269-2c7e-45f6-845f-4f69f1e054ed</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;ATT MTU and DLE is not the same thing, you can read more about it here:&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;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So you should also increase DLE &amp;gt; ATT MTU, else all packets will be sent very inefficient due to fragmentation on air (and possible also why something is triggering your issue).&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE RX error Unexpected L2CAP continuation</title><link>https://devzone.nordicsemi.com/thread/521818?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 21:37:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bf4309b-af7f-44b3-91df-d6c508ec5b37</guid><dc:creator>Alex_S@Aperia</dc:creator><description>&lt;p&gt;I actually send packets much larger than 27, &lt;br /&gt;My negotiated MTU is 247&lt;br /&gt;&lt;br /&gt;Snippet of log from peripheral (Nordic) side&lt;br /&gt;&lt;br /&gt;(&lt;pre class="ui-code" data-mode="text"&gt;13:24:08.219) Starting advertising for 20 seconds, 10 seconds ahead of rendez-vous #11
(13:24:20.490) Connected with MTU(20)
(13:24:20.490) MTU exchange pending
(13:24:20.731) MTU exchange successful
(13:24:20.731) Current MTU: 247
(13:24:25.660) Cmd: Request Challenge Code [30] recevied..!&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Below is a snippet form my prj.conf&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;# NUS service
CONFIG_BT_NUS=y
#CONFIG_BT_L2CAP_TX_MTU=75
CONFIG_BT_L2CAP_TX_MTU=300
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_GATT_DM=y
CONFIG_BT_MAX_CONN=2
#CONFIG_BT_BUF_ACL_RX_SIZE=79
CONFIG_BT_BUF_ACL_RX_SIZE=300
CONFIG_BT_BUF_ACL_TX_SIZE=300
#CONFIG_BT_CTLR_DATA_LENGTH_MAX=270&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I did try to increase&amp;nbsp; BT_CTLR_DATA_LENGTH_MAX, it didn&amp;#39;t seem to have an affect on negotiated MTU value, so I ;eft it at default (which apparently is 27&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE RX error Unexpected L2CAP continuation</title><link>https://devzone.nordicsemi.com/thread/521817?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 21:27:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbaf98dd-e70b-484a-b551-3e42b0f32605</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It surprise me that you have&amp;nbsp;&lt;span&gt;CONFIG_BT_CTLR_DATA_LENGTH_MAX&lt;/span&gt;&lt;span&gt;=27, since that will severely limit the throughput and increase fragmentation.&amp;nbsp;Is there any reason why you have kept it as 27? Or maybe you just weren&amp;#39;t aware of it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE RX error Unexpected L2CAP continuation</title><link>https://devzone.nordicsemi.com/thread/521792?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 16:19:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51bf87f9-bd98-405e-bcf0-9925467f67a7</guid><dc:creator>Alex_S@Aperia</dc:creator><description>&lt;p&gt;Uploaded compressed .config as zip file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE RX error Unexpected L2CAP continuation</title><link>https://devzone.nordicsemi.com/thread/521789?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 16:12:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dddcd896-4274-46ef-87f4-abb023335873</guid><dc:creator>Alex_S@Aperia</dc:creator><description>&lt;p&gt;Yeah, DevZone website keeps rejecting .config file, not sure why&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE RX error Unexpected L2CAP continuation</title><link>https://devzone.nordicsemi.com/thread/521764?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 15:01:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:175eaa8a-e493-4b74-aee4-ac62420d6e8b</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;For some reason the .config was not attached, but you can place it in a zip files with the sniffer trace. I think it will be difficult to understand what is failing without the sniffer file in any case. If it only fails with a specific central device, it could be somewhat related to how data is fragmented on-air, though I am&amp;nbsp;not aware of any issue.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE RX error Unexpected L2CAP continuation</title><link>https://devzone.nordicsemi.com/thread/521612?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 17:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dce268ea-e95d-4483-a11e-06684c7b493f</guid><dc:creator>Alex_S@Aperia</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;br /&gt;&lt;br /&gt;The problem is hard to reproduce so it might be a bit problematic to capture it on sniffer, but I&amp;#39;ll try, I do have nRF sniffer (nRF52840 DVK).&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&amp;gt; Btw, does this happen with specific central devices?&lt;/span&gt;&lt;br /&gt;Now that you mentioned it... &lt;br /&gt;I do have several kinds of devices acting as central (all impplementing same file transfer protocol)&lt;br /&gt;- Custom board based on Analog Devices Maxim 32690 MCU&lt;br /&gt;- Mobil phones (all kinds)&lt;br /&gt;- Seed Studio Xiao BLE device nrf52840 based&lt;br /&gt;So far, I was able to reproduce the problem with Maxim board only, but that could be because it is the most used...&lt;br /&gt;&lt;br /&gt;Attaching .config&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE RX error Unexpected L2CAP continuation</title><link>https://devzone.nordicsemi.com/thread/521495?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 09:46:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e85cba3-0f5a-4bbc-ab91-84c63ab323e3</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Interesting, I can&amp;#39;t find any obvious reason for this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you able to provide an on-air sniffer log of when this situation occurs? You can just do a abrupt soft reset when the issue occurs, so it may be easier to know exactly where it occurred. You can for instance use the nRF sniffer for BLE and send us the .pcapng file from Wireshark if possible.&lt;/p&gt;
&lt;p&gt;Btw, does this happen with specific central devices? Can you send us the .config from the build folder also?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>