<?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>Data length update not correct.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113387/data-length-update-not-correct</link><description>Hello DevZone, 
 
 I am using a nRF52840 with sdk 17.0.2 with Windows 10 
 I am trying to setup a connection to my Windows PC but I noticed data fragmentation and a queue buildup. 
 I changed the data length and MTU in the sdk config, data length to 251</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Jul 2024 12:06:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113387/data-length-update-not-correct" /><item><title>RE: Data length update not correct.</title><link>https://devzone.nordicsemi.com/thread/496408?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 12:06:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b06ab841-52fb-4e03-b2fb-2af6974cd416</guid><dc:creator>T IJ</dc:creator><description>&lt;p&gt;Thank you for the example, I will investigate this and come back to this ticket when I have some more information&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data length update not correct.</title><link>https://devzone.nordicsemi.com/thread/496155?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 08:59:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:819078e8-aee8-498e-b7e7-efbb0dbc6e9a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;In the nRF5 SDK, the best way to transfer big chunks of data is to split it into 244. The object transfer service example might be useful for reference:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fble_sdk_app_ots.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fble_sdk_app_ots.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data length update not correct.</title><link>https://devzone.nordicsemi.com/thread/495984?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2024 11:10:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39d421cf-4f9d-4039-a82d-d292a04c7be3</guid><dc:creator>T IJ</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/capture-0.pcapng"&gt;devzone.nordicsemi.com/.../capture-0.pcapng&lt;/a&gt;&lt;br /&gt;I have a capture done with the negotiation, maybe you can get more information from this.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I will try to set the MTU to 247, the problem is that we probably want to send more data than the 244 bytes possible.&lt;br /&gt;Could this be an issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data length update not correct.</title><link>https://devzone.nordicsemi.com/thread/495926?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2024 06:29:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5592f6f5-931d-4f2e-ba2d-f71ae2deb78c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Most devices don&amp;#39;t accept Attribute data sizes larger than 244 I&amp;#39;m afraid, so setting the NRF_SDH_BLE_GATT_MAX_MTU_SIZE&amp;nbsp;to 247 will make room for the 3 byte ATT header and also allow you to send the 244 bytes of attribute data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Depending on the BLE stack on your PC, it could also be the case that it only supports up to 27 bytes of attribute data. What data length negotiation issues are you seeing exactly?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data length update not correct.</title><link>https://devzone.nordicsemi.com/thread/495647?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 13:25:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec737f6a-1fc6-4d81-9b47-b5b1b4a254e7</guid><dc:creator>T IJ</dc:creator><description>&lt;p&gt;I am not using extended advertising and my connection interval is set to 10ms.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not interested in fine tuning the throughput, I already have done this using two development kits.&lt;/p&gt;
&lt;p&gt;The problem I&amp;#39;m facing is that I want to have the same connection between my Windows PC instead of using a development kit I get issues with negotiating the data length.&lt;br /&gt;&lt;br /&gt;In the SDK config I have&amp;nbsp;#define NRF_SDH_BLE_GAP_DATA_LENGTH 251 and&amp;nbsp;#define NRF_SDH_BLE_GATT_MAX_MTU_SIZE 500&lt;br /&gt;&lt;br /&gt;This works perfectly when communicating between two development kits since they both accept the data length&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;and&amp;nbsp;&lt;/strong&gt;the time to send/receive but not when I connect the same board to my PC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data length update not correct.</title><link>https://devzone.nordicsemi.com/thread/495638?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 12:57:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af3c2b11-12ad-4038-ad78-d0f945e6deb4</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;If you want to maximize throughput I&amp;#39;d recommend checking out the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_att_mtu.html"&gt;ATT_MTU throughput example project here&lt;/a&gt; as reference at the least, as I assume you might have missed a step towards the extended data size, but I&amp;#39;m not able to see it right now. Are you using extended advertising for example, and what is the connection interval set to in your application?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>