<?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>l2cap packet fragment</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46497/l2cap-packet-fragment</link><description>Hi, 
 I have been testing l2cap. Why is it fragmented by softdevice.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 May 2019 06:35:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46497/l2cap-packet-fragment" /><item><title>RE: l2cap packet fragment</title><link>https://devzone.nordicsemi.com/thread/187624?ContentTypeID=1</link><pubDate>Fri, 17 May 2019 06:35:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8ff23da-281c-48ee-affd-62634b1ebcd7</guid><dc:creator>chiba</dc:creator><description>&lt;p&gt;Thank you for copying&lt;br /&gt;&lt;br /&gt;I was also investigating.&lt;br /&gt;All I feel is that the context of tx_func () affects it.&lt;br /&gt;Calling tx_func () in the BLE_L2CAP_EVT_CH_TX handler reduces the likelihood of fragmentation.&lt;br /&gt;Conversely, calling tx_func () in a timer handler increases the possibility of fragmentation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: l2cap packet fragment</title><link>https://devzone.nordicsemi.com/thread/187514?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 11:26:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65a86a47-d394-429c-a8e1-e8c7a869cfad</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;I was able to reproduce this. Seems like this is how the link layer packets are buffered in the softdevice. If the buffer size is not a multiple of the link layer packet, the last packet going into the buffer will be split in order to optimize the buffer usage. Unfortunately I don&amp;#39;t think there&amp;#39;s much to do about this, it&amp;#39;s not really violating the BLE spec. You can try to set the data payload to 122 bytes. At least when I tested it seemed like the packets did not split. Anyways, event though the packets split, they are still sent during the same connection interval, so it shouldn&amp;#39;t really make any difference to the total throughput.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: l2cap packet fragment</title><link>https://devzone.nordicsemi.com/thread/183621?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 05:09:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab46e1af-6a56-4a62-ae63-8bc0e37be9ff</guid><dc:creator>chiba</dc:creator><description>&lt;p&gt;Hi Stian,&lt;/p&gt;
&lt;p&gt;thnkyou your reply.&lt;/p&gt;
&lt;p&gt;The L2CAP MTU and MTS are 247.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/5226.fragment2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Previous packet is not fragmented.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x240/__key/communityserver-discussions-components-files/4/3755.fragment1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please attach the captured data of wireshark, so please have a look.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1234.l2cap_5F00_fragment.pcapng"&gt;devzone.nordicsemi.com/.../1234.l2cap_5F00_fragment.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: l2cap packet fragment</title><link>https://devzone.nordicsemi.com/thread/183459?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2019 12:42:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d357806f-653e-4a10-afc0-5414f8728473</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;If the payload is bigger than the LE data packet length (minus L2CAP header) the payload will be split over more than one packet. The data length is negotiated between the peripheral and central device, so this is implementation specific.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>