<?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>52840 Bluetooth packet sending Indicates that the length of the packet sending data is much smaller than the actual length to be sent.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111239/52840-bluetooth-packet-sending-indicates-that-the-length-of-the-packet-sending-data-is-much-smaller-than-the-actual-length-to-be-sent</link><description>Now using 52840(S140_nrf52_7.2.0 protocol stack, SDK:17.1.0) Bluetooth packet sending found that the packet sending data length is far less than the actual length to be sent, I do not know the reason. 
 
 
 On the left is the dongle packet capture, and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 May 2024 11:48:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111239/52840-bluetooth-packet-sending-indicates-that-the-length-of-the-packet-sending-data-is-much-smaller-than-the-actual-length-to-be-sent" /><item><title>RE: 52840 Bluetooth packet sending Indicates that the length of the packet sending data is much smaller than the actual length to be sent.</title><link>https://devzone.nordicsemi.com/thread/484661?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 11:48:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8516c8c0-a743-47ec-9ae2-5de40931440b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you show the code where you send the data so that I can see how you send and the length? Also, can you upload the sniffer trace and not just the screenshot so that we can inspect more packets?&lt;/p&gt;
&lt;p&gt;Without knowing more, I have some thoughts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What is the ATT MTU and GAP data length config in your sdk_config.h ? For long noticiations, the ATT MTU needs to be long enough, so try setting&amp;nbsp;NRF_SDH_BLE_GATT_MAX_MTU_SIZE to 247 in your sdk_config.h. To avoid fragmentation (and get better efficiency), you can also use GAP data length externsion by setting&amp;nbsp;NRF_SDH_BLE_GAP_DATA_LENGTH to 251. Lower numbers are also possible.&lt;/li&gt;
&lt;li&gt;Do you see that only the first part of the data is received by the peer? If so, there is likely an SW issue where you don&amp;#39;t send everyting.&lt;/li&gt;
&lt;li&gt;Or does this just look strange in the sniffer trace? If so, is there fragmentation going on (it does not look like it, but it would be easier to see with the full trace file).&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>