<?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 params on nRF53</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83737/ble-params-on-nrf53</link><description>Hi, 
 Based on peripheral uart sample code on nRFConnect SDK 1.8, I&amp;#39;m developing a custom BLE application under nRF5340 using VSCODE though nrfConnect extension. 
 In order to accelerate the data throughput, I&amp;#39;m trying to change the maximum throughput</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Jan 2022 16:33:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83737/ble-params-on-nrf53" /><item><title>RE: BLE params on nRF53</title><link>https://devzone.nordicsemi.com/thread/348783?ContentTypeID=1</link><pubDate>Thu, 20 Jan 2022 16:33:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e28170a6-e8f7-4237-a0bc-cfab547fe111</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Mehdi,&lt;br /&gt;&lt;br /&gt;1. A standard data length of radio packets in Bluetooth Low Energy is 27 bytes. It means that&amp;nbsp;CONFIG_BT_CTLR_DATA_LENGTH_MAX is set to 27 bytes. You need to have a proper configuration in the child_image folder which would replace default one. You could try using the following options:&lt;br /&gt;CONFIG_BT_BUF_ACL_TX_SIZE=251&amp;nbsp; &amp;nbsp;//&lt;em&gt;Maximum supported ACL size for outgoing data&lt;/em&gt;&lt;br /&gt;CONFIG_BT_CTLR_DATA_LENGTH_MAX=251&amp;nbsp; &amp;nbsp;//&lt;em&gt;Maximum data length supported&lt;/em&gt;&lt;br /&gt;CONFIG_BT_BUF_ACL_RX_SIZE=251&amp;nbsp; &amp;nbsp; //&lt;em&gt;Maximum supported ACL size for incoming data&lt;br /&gt;&lt;/em&gt;&lt;span&gt;CONFIG_BT_MAX_CONN&lt;/span&gt;&lt;span&gt;=2&amp;nbsp; &amp;nbsp; //&lt;em&gt;Maximum number of simultaneous connections&lt;/em&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;There are two ways to handle setting of both parameters. One is to disable bt_conn_le_data_len_update function. In this case, Bluetooth stack would handle that on your behalf. The second way is to repeat procedure of requesting the length.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;2. nrf\samples\bluetooth\throughput\prj.conf defines needed options for the throughput example. hci_rpmsg.conf defined in child_image folder contains additional configuration options.&lt;br /&gt;&lt;br /&gt;3. Devices agree on MTU value through the negotiation. process.&lt;br /&gt;&lt;br /&gt;4. Similar to&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v7.3.0%2Fgroup___b_l_e___g_a_p___e_v_e_n_t___l_e_n_g_t_h.html"&gt;gat event length&lt;/a&gt;, you should&amp;nbsp;consider using CONFIG_SDC_MAX_CONN_EVENT_LEN_DEFAULT (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK_dev/doc/PR-4004/kconfig/CONFIG_SDC_MAX_CONN_EVENT_LEN_DEFAULT.html"&gt;default max connection event length&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE params on nRF53</title><link>https://devzone.nordicsemi.com/thread/348556?ContentTypeID=1</link><pubDate>Wed, 19 Jan 2022 14:57:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddeee982-cb1a-4092-9256-424085d762ae</guid><dc:creator>Mehdi</dc:creator><description>&lt;p&gt;Hi Dejans,&lt;/p&gt;
&lt;p&gt;I want first to thank you for your reply.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&amp;nbsp;Thank you, I&amp;#39;m running the throughput test as a peripheral, and once connected to the&amp;nbsp;mobile&amp;nbsp; I used&amp;nbsp;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;bt_conn_le_data_len_update to update data length, It works with the TX params but the RX data length is maintained to 27 bytes. Knowing that through&amp;nbsp;bt_conn_le_data_len_update&amp;nbsp;it&amp;#39;s possible to set only the TX params(max length and timeout), is there any way to set both RX and TX params?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Based on the throughput example,&amp;nbsp; CONFIG_BT_L2CAP_TX_MTU symbol which I think is related to the BLE MTU is set under the configuration file of the application core,&amp;nbsp;is there any other symbol related to the MTU that should be set to the network configuration file ?&lt;/li&gt;
&lt;li&gt;Following the link, the&amp;nbsp;&lt;span&gt;bt_gatt_exchange_mtu&amp;nbsp;function could only trigger a request to exchange MTU, but I don&amp;#39;t see how can I set my preferred MTU.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Is there any way to exchange GAP event length like nRF52 using the softdevice S132?&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Mehdi.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE params on nRF53</title><link>https://devzone.nordicsemi.com/thread/348321?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 14:35:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:890cd6d1-1f4a-4e98-9a25-4d4272b7e3d3</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Mehdi,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;1. For nRF5340-DK, the additional configuration options for the network core such as&amp;nbsp;&lt;span&gt;CONFIG_BT_CTLR_DATA_LENGTH_MAX are taken from the &amp;quot;child_image&amp;quot; directory.&amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; Please have a look at&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html#ug-multi-image-variables"&gt;multi-image-builds&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#configuration-of-the-child-image"&gt;configuration of the child image&lt;/a&gt;.&lt;br /&gt;&amp;nbsp; &amp;nbsp;There is an example of the configuration file inside change_image folder in&amp;nbsp;nrf\samples\bluetooth\throughput\child_image\hci_rpmsg.conf.&lt;br /&gt;2. Yes, these parameters are related to the bluetooth controller and they should be associated with the network core&lt;br /&gt;3. Menuconfig is the place where you set your MTU value. However, you can change this on runtime by using&amp;nbsp;bt_gatt_exchange_mtu function. You can read more on the developer page&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/zephyr/reference/bluetooth/gatt.html#c.bt_gatt_exchange_mtu"&gt;exchange MTU&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>