<?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 Extension &amp;amp; BT CTLR on NRF53</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85365/data-length-extension-bt-ctlr-on-nrf53</link><description>Hi all, 
 
 Background: -NRF5340 -NRF SDK 1.9 -Zephyr 2.7.99 My objective is to send via Bluetooth data of 244 Bytes every 10 ms per notify . For the tests, I use the dongle Nrf52840 and the application NRF BLE v3.0.0. Starting from the Zephyr and NRF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Mar 2022 11:10:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85365/data-length-extension-bt-ctlr-on-nrf53" /><item><title>RE: Data Length Extension &amp; BT CTLR on NRF53</title><link>https://devzone.nordicsemi.com/thread/356544?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2022 11:10:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:092b3211-a059-40ae-9d35-58b17985b44b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Hichem,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From the logs I can see that the central support 251 bytes datalength but the slave was responding with only 27 bytes.&amp;nbsp;&lt;br /&gt;I suspect that the &lt;span&gt;hci_rpmsg&amp;nbsp;&lt;/span&gt;was not compiled with the updated value of the datalength.&amp;nbsp;&lt;br /&gt;I would suggest to try compile the hci_rpmsg separately (with 251 bytes datalength configuration in the prj.conf) and flash it separately into the netcore.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please make sure you erased the netcore before the test. If you use nrfjprog you would need to use&amp;nbsp;&amp;quot;--coprocessor CP_NETWORK&amp;quot;&lt;/p&gt;
&lt;p&gt;I would suggest to test with our throughput sample in the SDK and capture a sniffer trace to see if Datalength is updated correctly.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I also attached my own data throughput sample that based on the peripheral_uart sample. You can simply test the throughput using a phone or any central. Just need to&amp;nbsp;enable notification CCCD to start the test.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the log you can see something like this:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/607x258/__key/communityserver-discussions-components-files/4/0272.pastedimage1646058369723v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0486.peripheral_5F00_uart_5F00_throughput.zip"&gt;devzone.nordicsemi.com/.../0486.peripheral_5F00_uart_5F00_throughput.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data Length Extension &amp; BT CTLR on NRF53</title><link>https://devzone.nordicsemi.com/thread/356377?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 15:40:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4558adcb-3352-466b-bdb0-89ad9eae4782</guid><dc:creator>HichMenta</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I send you the traces with the two configurations. &lt;br /&gt;It is the NRF53 which answers or sends 27 Bytes in parameter of LL_REQ.&lt;br /&gt;I think that there is a problem of configuration between the CPU NET and the CPU APP.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/data_5F00_length_5F00_with_5F00_AUTO_5F00_DATA_5F00_LEN_5F00_UPDATE.pcapng"&gt;devzone.nordicsemi.com/.../data_5F00_length_5F00_with_5F00_AUTO_5F00_DATA_5F00_LEN_5F00_UPDATE.pcapng&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/data_5F00_length_5F00_without_5F00_AUTO_5F00_DATA_5F00_LEN_5F00_UPDATE.pcapng"&gt;devzone.nordicsemi.com/.../data_5F00_length_5F00_without_5F00_AUTO_5F00_DATA_5F00_LEN_5F00_UPDATE.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data Length Extension &amp; BT CTLR on NRF53</title><link>https://devzone.nordicsemi.com/thread/356266?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 11:33:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04307ffa-7981-4ba1-bae9-575de8560ea9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Hichem,&amp;nbsp;&lt;br /&gt;Please capture a &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;sniffer trace&lt;/a&gt;, we would need to see which side of the connection set it to 27.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There could be a chance that the nRF52840 doesn&amp;#39;t accept the long data length.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please capture the trace in both cases with&amp;nbsp;CONFIG_BT_AUTO_DATA_LEN_UPDATE=y and&amp;nbsp;CONFIG_BT_AUTO_DATA_LEN_UPDATE=n.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data Length Extension &amp; BT CTLR on NRF53</title><link>https://devzone.nordicsemi.com/thread/356265?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 11:25:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8081656a-2f3b-49be-8c10-68f7974fa140</guid><dc:creator>HichMenta</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I was able to compile the project following your directions. I added the hci_rpmsg.conf in the child_image folder to set up the BT_CTLR.&lt;br /&gt;&lt;br /&gt;However, with the NRF BLE application when trying to change the data length to 251 Bytes it stays locked at 27 Bytes. I tried on the peripheral device side to change the data length value by executing the function bt_conn_le_data_len_update in the connected callback. The data length is blocked at 27 Bytes. &lt;br /&gt;As a reminder, I use the Nrf52840 dongle.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Hichem &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3771.prj.conf"&gt;devzone.nordicsemi.com/.../3771.prj.conf&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hci_5F00_rpmsg.conf"&gt;devzone.nordicsemi.com/.../hci_5F00_rpmsg.conf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data Length Extension &amp; BT CTLR on NRF53</title><link>https://devzone.nordicsemi.com/thread/356033?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2022 12:34:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a437008-341f-4af8-946f-5888d73cbea3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Hichem,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please be aware that when you compile a BLE application for nRF53 there are 2 applications compiled, one for the app core and one for the net core. Have a look &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#multi-image-builds"&gt;here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s the hci_rpmsg application is built for the netcore. This contains the BLE controller stack.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The configuration you made in the prj.conf will not affect the hci_rpmsg image. If you want to configure the netcore/controller to support longer data length you would need to create a&amp;nbsp;hci_rpmsg.conf file and put it in child_image folder.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please have a look at the hci_rpmsg.conf file inside&amp;nbsp;\nrf\samples\bluetooth\throughput\child_image&lt;/p&gt;
&lt;p&gt;Make sure you&amp;nbsp;do a pristine build after you add the file and re-flash the net core.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>