<?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>in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74604/in-connect-sdk-v1-5-0-nrf-samples-bluetooth-peripheral_uart-data-number-is-limited-20-bytes-more-than-20bytes-ble-will-part-data-in-two-or-more-packs-to-send-or-receive</link><description>in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive .how can i chang to data number to more bytes. for example , i want to send 200</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 May 2021 08:44:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74604/in-connect-sdk-v1-5-0-nrf-samples-bluetooth-peripheral_uart-data-number-is-limited-20-bytes-more-than-20bytes-ble-will-part-data-in-two-or-more-packs-to-send-or-receive" /><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/311357?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 08:44:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fcf3bc5-8658-4bf8-b714-f61325e6f8db</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please make a separate thread for this question, as it is unrelated to&amp;nbsp;your original question in this thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/311201?ContentTypeID=1</link><pubDate>Mon, 24 May 2021 02:53:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8406489d-bf0c-40f3-bae5-8e947ddcdec0</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/eith"&gt;Einar Thorsrud&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;thank you&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;in my project, I use SPI inerface (4 pin(pin must can been changed)) communicated with a 4G TF card, this card must mount in Zephyr filesystem ,&amp;nbsp; in connect SDK\ v1.5.0\zephyr\samples\subsys\fs\fat_fs , this sample can get some advice . I can use SPI read and write TF card how can i mount this card in zephyr filesystem and use file API fuctinon , would I should re-edit some read/write&amp;nbsp;API fountion of Zephyr filesystem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/309378?ContentTypeID=1</link><pubDate>Wed, 12 May 2021 07:32:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf0c30a8-45d8-457e-bfbc-04b92fd80c11</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Good to hear it works. yes, the code you deleted is only needed to initiate the data length (DLE) update procedure from the nRF. As long as you have done the correct adjustments in prj.conf files it will be supported by the BLE stack, so the peer can initiate DLE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/309368?ContentTypeID=1</link><pubDate>Wed, 12 May 2021 06:39:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:296f0cc7-899d-48bf-9d0c-2a27fa590a15</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;Einar Thorsrud:&lt;/p&gt;
&lt;p&gt;thank you very much!!!&lt;/p&gt;
&lt;p&gt;today i delete code below:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;struct bt_conn_le_data_len_param data_len_param;&lt;br /&gt;data_len_param.tx_max_len = 80; // byte&lt;br /&gt;&amp;nbsp;data_len_param.tx_max_time = 3750; // us&lt;br /&gt;err = bt_conn_le_data_len_update(current_conn, &amp;amp;data_len_param);&lt;/p&gt;
&lt;p&gt;also can increase ble send data number .maybe only change two or one prj.conf&amp;nbsp;, using&amp;nbsp; app that connected with nrf5340dk through ble .in app there is a configuration of MTU on menu or dialoge&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/309353?ContentTypeID=1</link><pubDate>Wed, 12 May 2021 01:53:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:134dc52a-658b-4ae1-9716-ece19a3267ea</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;&amp;nbsp; &amp;nbsp;I can know some skill ,the app connected with &lt;span&gt;nrf5340dk&lt;/span&gt; through BLE&amp;nbsp; must cooperate .&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0361.jpg" /&gt;,in the imagine top -right ,there are 3 dots ranged in&amp;nbsp;&lt;span&gt;vertical ，touch&amp;nbsp; these 3 dots can pop an input editor dialoge , you can change MTU from 23 to 517 , input 251 (the largest size of ble can send a pack) can change MTU to maxium value,touch OK button ,then ble MTU of the connected nrf5340dk also update with this value(this situation will come into truth with the correct code in nrf5340dk)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/309239?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 12:31:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2fae3aa-fb87-4611-a30d-531fb1984861</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;&amp;nbsp;when I send data from sscom&amp;#39;s send editor&amp;nbsp; more than 20 bytes ,the debugging segger embedded studio pop information below:&lt;/p&gt;
&lt;p&gt;[00:01:23.371,826]&amp;nbsp; bt_att: No ATT channel for MTU 43&lt;br /&gt;[00:01:23.371,856] bt_gatt: No buffer available to send notification&lt;br /&gt;[00:01:23.371,856] peripheral_uart: Failed to send data over BLE connection&lt;br /&gt;[00:01:37.619,506]&amp;nbsp; bt_att: No ATT channel for MTU 48&lt;br /&gt;[00:01:37.619,537] bt_gatt: No buffer available to send notification&lt;br /&gt;[00:01:37.619,537]&amp;nbsp; peripheral_uart: Failed to send data over BLE connection&lt;br /&gt;[00:01:37.910,400] bt_att: No ATT channel for MTU 48&lt;br /&gt;[00:01:37.910,400]&amp;nbsp; bt_gatt: No buffer available to send notification&lt;br /&gt;[00:01:37.910,430]&amp;nbsp; peripheral_uart: Failed to send data over BLE connection&lt;br /&gt;[00:01:38.141,235]&amp;nbsp; bt_att: No ATT channel for MTU 48&lt;br /&gt;[00:01:38.141,235]&amp;nbsp; bt_gatt: No buffer available to send notification&lt;br /&gt;[00:01:38.141,265]&amp;nbsp; peripheral_uart: Failed to send data over BLE connection&lt;br /&gt;[00:01:38.332,031]&amp;nbsp; bt_att: No ATT channel for MTU 48&lt;br /&gt;[00:01:38.332,061] bt_gatt: No buffer available to send notification&lt;br /&gt;[00:01:38.332,061] peripheral_uart: Failed to send data over BLE connection&lt;br /&gt;[00:01:38.532,836]&amp;nbsp; bt_att: No ATT channel for MTU 48&lt;br /&gt;[00:01:38.532,867]&amp;nbsp; bt_gatt: No buffer available to send notification&lt;br /&gt;[00:01:38.532,867] peripheral_uart: Failed to send data over BLE connection&lt;br /&gt;[00:01:38.723,632] bt_att: No ATT channel for MTU 48&lt;br /&gt;[00:01:38.723,632]&amp;nbsp; bt_gatt: No buffer available to send notification&lt;br /&gt;[00:01:38.723,663] peripheral_uart: Failed to send data over BLE connection&lt;br /&gt;[00:01:38.994,506]&amp;nbsp; bt_att: No ATT channel for MTU 48&lt;br /&gt;[00:01:38.994,506]&amp;nbsp; bt_gatt: No buffer available to send notification&lt;br /&gt;[00:01:38.994,537]&amp;nbsp; peripheral_uart: Failed to send data over BLE connection&lt;br /&gt;[00:01:39.195,312]&amp;nbsp; bt_att: No ATT channel for MTU 48&lt;br /&gt;[00:01:39.195,343] bt_gatt: No buffer available to send notification&lt;br /&gt;[00:01:39.195,343]&amp;nbsp; peripheral_uart: Failed to send data over BLE connection&lt;br /&gt;[00:01:39.376,098]&amp;nbsp; bt_att: No ATT channel for MTU 48&lt;br /&gt;[00:01:39.376,129] bperipheral_uart: Failed to send data over BLE connection&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/309234?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 12:23:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c294343-22a1-4086-99fa-de2f1d0c9ddf</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0602.jpg" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8816.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/309229?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 12:14:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74754ad0-f8ce-427d-8418-121851185ff2</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;when debug go there&amp;nbsp;are informatipn below:&lt;/p&gt;
&lt;p&gt;[00:00:00.028,442]&amp;nbsp; bt_hci_core: ECC HCI commands not available&lt;/p&gt;
&lt;p&gt;[00:00:00.028,472]&amp;nbsp; bt_hci_core: No ID address. App must call settings_load()&lt;/p&gt;
&lt;p&gt;[00:00:00.028,472]&amp;nbsp; peripheral_uart: Bluetooth initialized&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/309224?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 12:04:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f30e53b3-4b4f-4eec-aca2-b6d9a4363bc3</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;thank&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/eith"&gt;Einar Thorsrud&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;I changed example as you had told to me . i build solution.use git_cmd,erase cpu net&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_4F5C555E2A62FE562800_19_2900_.png" /&gt;,in main.c change&amp;nbsp;#define UART_BUF_SIZE&amp;nbsp;20 into&amp;nbsp;&lt;span&gt;#define UART_BUF_SIZE&amp;nbsp;7&lt;/span&gt;&lt;span&gt;0&amp;nbsp;,in&amp;nbsp;uart_cb()&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;case UART_RX_RDY:&lt;/p&gt;
&lt;p&gt;......&lt;br /&gt; if (buf-&amp;gt;len == 40) {&lt;br /&gt;......&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;build/debug ,go ,from ble of board ,the largest bytes is still 20&amp;nbsp; that can be send to APP.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;do&amp;nbsp;&lt;span&gt;zephyr\samples\bluetooth\hci_rpmsg\prj.conf have&lt;/span&gt;&amp;nbsp;no&amp;nbsp; effect to cpu_net core of example peripheral_uart ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i program the&amp;nbsp;&lt;span&gt;cpu_net core of example peripheral_uart&amp;nbsp; with&amp;nbsp;\nrf\samples\bluetooth\peripheral_uart\build_nrf5340dk_nrf5340_cpuappns\hci_rpmsg\zephyr\&amp;nbsp;merged_CPUNET.hex .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;program can run well&amp;nbsp; and connect with app and not reset.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/309177?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 10:01:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d78bf6b-b4cb-46a7-91a5-c62fa2e9357e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You have some issues in your code, and I suspect you did not configure the stack on the network core. The following quick and dirty changes to the peripheral_uart sample does what you want and I tested to verify that the data length is updated to 80 upon establishing the connection:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6710.main.c.diff"&gt;devzone.nordicsemi.com/.../6710.main.c.diff&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_uart_5F00_prj.conf.diff"&gt;devzone.nordicsemi.com/.../peripheral_5F00_uart_5F00_prj.conf.diff&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is update for the network core by changing zephyr\samples\bluetooth\hci_rpmsg\prj.conf (note that I also reduced&amp;nbsp;CONFIG_BT_MAX_CONN in order to make this fit in RAM):&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hci_5F00_rpmsg_5F00_prj.conf.diff"&gt;devzone.nordicsemi.com/.../hci_5F00_rpmsg_5F00_prj.conf.diff&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/309156?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 09:04:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fdaae58-16f9-4deb-9cc5-5096d6a385d1</guid><dc:creator>zhouhaifang</dc:creator><description>[quote userid="103127" url="~/f/nordic-q-a/74604/in-connect-sdk-v1-5-0-nrf-samples-bluetooth-peripheral_uart-data-number-is-limited-20-bytes-more-than-20bytes-ble-will-part-data-in-two-or-more-packs-to-send-or-receive/309146#309146"]on[/quote]
&lt;p&gt;no&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/309146?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 08:41:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9a99f14-da84-4d78-92cd-8ec1243a45e1</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/eith"&gt;Einar Thorsrud&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;thank you&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;I konw you ar very busy ,could you take some time to test peripheral_uart in NCS v1.5.0 with a nrf5340_dk kit ,increase the number of ble that could send to a connected APP in a phone . in this nordic community ,few people know the answer。could you spend some time to reprogram the peripheral_uart example . could you accept my mailbox and mail with me?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/309132?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 07:58:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04a43ebb-81d8-4010-b66b-44348059e825</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;in prj.conf ,I add below:&lt;/p&gt;
&lt;p&gt;CONFIG_BT_USER_DATA_LEN_UPDATE=y&lt;br /&gt;CONFIG_BT_CTLR_TX_BUFFER_SIZE=251&lt;br /&gt;CONFIG_BT_CTLR_DATA_LENGTH_MAX=251&lt;br /&gt;CONFIG_BT_L2CAP_TX_MTU=247&lt;br /&gt;CONFIG_BT_L2CAP_RX_MTU=247&lt;br /&gt;CONFIG_BT_MAX_CONN=2&lt;/p&gt;
&lt;p&gt;in main.c , bt_callback function&amp;nbsp; connect ,I add below:&lt;/p&gt;
&lt;p&gt;static void connected(struct bt_conn *conn, uint8_t err)&lt;br /&gt;{&lt;br /&gt; ......&lt;/p&gt;
&lt;p&gt;current_conn = bt_conn_ref(conn);&lt;br /&gt; err2 = bt_conn_le_data_len_update(current_conn, 80); &lt;br /&gt; if (err2) &lt;br /&gt; printk( &amp;quot;LE data length update failed: %d&amp;quot;, err2);&lt;br /&gt; &lt;br /&gt;......&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;all other not changed,but build\debug\go ,the board always reset,can not run,&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_4F5C555E2A62FE562800_18_2900_.png" /&gt;,ble app cannot connect board ,is there other place need to be modified in program,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/309113?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 07:11:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d969d50e-510f-4e69-a195-4a7dc4a9aec2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can call&amp;nbsp;bt_conn_le_data_len_update() after a connection has been established. As you are using the nrf/samples/bluetooth/peripheral_uart sample there is allready a callback function called connected(). Here you get a handle to the current connection -&amp;nbsp;current_conn. Once you have that you can call&amp;nbsp;bt_conn_le_data_len_update(). Please refer to&amp;nbsp;nrf\samples\bluetooth\throughput\src\main.c for an example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/309024?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 14:19:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b53c8595-390f-4bb0-b9fa-cdaf08a8d7c7</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;&lt;span&gt;thank &amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/eith"&gt;Einar Thorsrud&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;I do not know where to insert the function bt_conn_le_data_len_update() ? insert this function in bt_enable() of main.c or in a place of function void main(void)&amp;nbsp; of main.c&amp;nbsp; or other&amp;nbsp; place of flle belonged to this project ?&amp;nbsp; &amp;nbsp; it is initiated by the peer , peer is a&amp;nbsp;app in phone that will connect NRF5340_DK through ble?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/308975?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 12:43:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36614596-85f6-40fc-8d79-e6609b7a8a2c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you start the data length update procedure by calling bt_conn_le_data_len_update()? Or is it initiated by the peer? If not, then&amp;nbsp; this is expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/308951?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 11:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53672a6f-c2fd-45af-b203-d69e98c2f1e4</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;h1 class="name"&gt;example peripheral_uart in nrf connect SDK v1.5.0 , i use nrf5340_DK test this example with a bluetooth APP in a phone ,the largest bytes of nrf5340_dk kit can send to app is 20 a time, how can i increase data number ?&lt;/h1&gt;
&lt;div class="content"&gt;
&lt;p&gt;in prj.conf, i&amp;nbsp; add below:&lt;/p&gt;
&lt;p&gt;CONFIG_BT_USER_DATA_LEN_UPDATE=y&lt;br /&gt;CONFIG_BT_CTLR_TX_BUFFER_SIZE=251&lt;br /&gt;CONFIG_BT_CTLR_DATA_LENGTH_MAX=251&lt;/p&gt;
&lt;p&gt;in att_internal.h , change # define&amp;nbsp; BT_ATT_DEFAULT_LE_MTU&amp;nbsp; 23&amp;nbsp; &amp;nbsp;into&amp;nbsp;&amp;nbsp;&lt;span&gt;# define&amp;nbsp; BT_ATT_DEFAULT_LE_MTU&amp;nbsp; 43&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;in gap.h ,&amp;nbsp;change # define&amp;nbsp; BT_GAP_DATA_LEN_DEFAULT&amp;nbsp; 0x1b&amp;nbsp; &amp;nbsp;into # define&amp;nbsp; BT_GAP_DATA_LEN_DEFAULT&amp;nbsp;&amp;nbsp;0x2e&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;in main.c , chang function&amp;nbsp;uart_cb( ) {.......&lt;/p&gt;
&lt;p&gt;case UART_RX_RDY:&lt;br /&gt; ......;&lt;br /&gt; if (buf-&amp;gt;len == 30) {...... }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;i only change above ，anther have the same as original example .&lt;/p&gt;
&lt;p&gt;&amp;nbsp;build/debug go ,have no result ,the largest number of ble of nrf5340-dk can send to app of phone is still 20 bytes&amp;nbsp; ,not 30 bytes&amp;nbsp; 。is there any other code&amp;nbsp;&amp;nbsp;to be modified in this example?&amp;nbsp;someone said that&amp;nbsp; nrf connect SDK v1.5.0 need to be updated&amp;nbsp; to ble5.0 version ,&amp;nbsp;&lt;span&gt;&amp;nbsp;ble4.0 version can not send more than 20 bytes through ble a time&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/308925?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 10:21:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e76bc8ed-b3e6-45ab-ab17-32450545f934</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="zhouhaifang"]you had said these two threads have no effect to program[/quote]
&lt;p&gt;No, that is not what I meant. What I mean is that this is part of the implementation of the BLE stack and not something you are mint to modify.&amp;nbsp;&lt;/p&gt;
[quote user="zhouhaifang"]can these two threads be deleted?[/quote]
&lt;p&gt;No.&lt;/p&gt;
[quote user="zhouhaifang"]what&amp;#39;s difference bluetooth host layer thread and APP thread?[/quote]
&lt;p&gt;There is no fundamental difference, a thread is a thread. But you if you are using the Bluetooth stack, then you do not normally need to think much about how it is implemented. So in a nutshell tx_thread_data() and&amp;nbsp;ble_write_thread_id() as internal details you do not normally need to think about.&lt;/p&gt;
[quote user="zhouhaifang"]in file main.c ,the code&amp;nbsp; K_THREAD_DEFINE(ble_write_thread_id, STACKSIZE, ble_write_thread, NULL, NULL,&lt;br /&gt; NULL, PRIORITY, 0, 0); creat &lt;span&gt;ble_write_thread ,but I search whole entire solution ,the word &amp;quot;ble_write_thread_id &amp;quot; has referrenced in only one place&amp;nbsp;&amp;nbsp;&amp;nbsp;,how the program know word&amp;nbsp;ble_write_thread_id ?&lt;/span&gt;[/quote]
&lt;p&gt;All threads need a name/ID as that is a requirement of the Zephyr thread API. However, in this case this is a thread that is crated once and runs forever, so there is no need to refer to it from anywhere else. Therefor, you will not see ble_write_thread_id used anywhere.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/308817?ContentTypeID=1</link><pubDate>Sat, 08 May 2021 01:31:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a9992ac-f655-458e-9f26-a5db280702b2</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;in example peripheral_uart of NRF Connect SDK1.5.0 , in main(),the bt_enble() creats two bluetooth threads,a TX thread and a RX thread,you had said these two threads have no effect to program,can these two threads be deleted?what&amp;#39;s difference bluetooth host layer thread and APP thread?&amp;nbsp; in file main.c ,the code&amp;nbsp; K_THREAD_DEFINE(ble_write_thread_id, STACKSIZE, ble_write_thread, NULL, NULL,&lt;br /&gt; NULL, PRIORITY, 0, 0); creat &lt;span&gt;ble_write_thread ,but I search whole entire solution ,the word &amp;quot;ble_write_thread_id &amp;quot; has referrenced in only one place&amp;nbsp;&amp;nbsp;&amp;nbsp;,how the program know word&amp;nbsp;ble_write_thread_id ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/308689?ContentTypeID=1</link><pubDate>Fri, 07 May 2021 09:48:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff8a5156-ba10-4117-8f09-7a5bdebd7ff1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The first code snippet is from the implementation of&amp;nbsp;bt_enable(), which is in the host layer of the BT stack. So these are not something you normally need to think of at all as it is internal to the stack.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;ble_write_thread() on the other hand is a thread implemented in the sample app that uses the BT API, and in an eternal loop pops incoming UART data from a queue and sends it over BLE NUS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/308631?ContentTypeID=1</link><pubDate>Fri, 07 May 2021 02:05:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18b9338f-151e-4a5b-afd4-7b5916ff072f</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;&lt;span&gt;in example&amp;nbsp;&lt;/span&gt;&lt;span&gt;peripheral_uart ,in function main() use&amp;nbsp;err = bt_enable(NULL) creat two thread:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;/* TX thread */ &lt;br /&gt; k_thread_create(&amp;amp;tx_thread_data, tx_thread_stack,&lt;br /&gt; K_KERNEL_STACK_SIZEOF(tx_thread_stack),&lt;br /&gt; hci_tx_thread, NULL, NULL, NULL,&lt;br /&gt; K_PRIO_COOP(CONFIG_BT_HCI_TX_PRIO),&lt;br /&gt; 0, K_NO_WAIT); &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;/* RX thread */&lt;br /&gt; k_thread_create(&amp;amp;rx_thread_data, rx_thread_stack,&lt;br /&gt; K_KERNEL_STACK_SIZEOF(rx_thread_stack),&lt;br /&gt; (k_thread_entry_t)hci_rx_thread, NULL, NULL, NULL,&lt;br /&gt; K_PRIO_COOP(CONFIG_BT_RX_PRIO),&lt;br /&gt; 0, K_NO_WAIT);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but in the file main.c , example use&amp;nbsp; below&amp;nbsp;code&amp;nbsp;to creat anther bluetooth TX thread and anther blue RX callback function :&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;void ble_write_thread(void)&lt;br /&gt;{&lt;br /&gt; /* Don&amp;#39;t go any further until BLE is initialized */&lt;br /&gt; k_sem_take(&amp;amp;ble_init_ok, K_FOREVER);&lt;/p&gt;
&lt;p&gt;for (;;) {&lt;br /&gt; /* Wait indefinitely for data to be sent over bluetooth */&lt;br /&gt; &lt;br /&gt; struct uart_data_t *buf = k_fifo_get(&amp;amp;fifo_uart_rx_data,&lt;br /&gt; K_FOREVER);&lt;/p&gt;
&lt;p&gt;if (bt_nus_send(NULL, buf-&amp;gt;data, buf-&amp;gt;len)) {&lt;br /&gt; LOG_WRN(&amp;quot;Failed to send data over BLE connection&amp;quot;);&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;k_free(buf);&lt;br /&gt; &lt;br /&gt; }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;K_THREAD_DEFINE(ble_write_thread_id, STACKSIZE, ble_write_thread, NULL, NULL,&lt;br /&gt; NULL, PRIORITY, 0, 0);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;static void bt_receive_cb(struct bt_conn *conn, const uint8_t *const data,&lt;br /&gt; uint16_t len)&lt;br /&gt;{&lt;br /&gt; int err;&lt;br /&gt; char addr[BT_ADDR_LE_STR_LEN] = {0};&lt;/p&gt;
&lt;p&gt;bt_addr_le_to_str(bt_conn_get_dst(conn), addr, ARRAY_SIZE(addr));&lt;/p&gt;
&lt;p&gt;LOG_INF(&amp;quot;Received data from: %s&amp;quot;, log_strdup(addr));&lt;/p&gt;
&lt;p&gt;for (uint16_t pos = 0; pos != len;) {&lt;br /&gt; struct uart_data_t *tx = k_malloc(sizeof(*tx));&lt;/p&gt;
&lt;p&gt;if (!tx) {&lt;br /&gt; LOG_WRN(&amp;quot;Not able to allocate UART send data buffer&amp;quot;);&lt;br /&gt; printk(&amp;quot;Not able to allocate UART send data buffer&amp;quot;);&lt;br /&gt; return;&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;/* Keep the last byte of TX buffer for potential LF char. */&lt;br /&gt; size_t tx_data_size = sizeof(tx-&amp;gt;data) - 1;&lt;/p&gt;
&lt;p&gt;if ((len - pos) &amp;gt; tx_data_size) {&lt;br /&gt; tx-&amp;gt;len = tx_data_size;&lt;br /&gt; } else {&lt;br /&gt; tx-&amp;gt;len = (len - pos);&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;memcpy(tx-&amp;gt;data, &amp;amp;data[pos], tx-&amp;gt;len);&lt;/p&gt;
&lt;p&gt;pos += tx-&amp;gt;len;&lt;/p&gt;
&lt;p&gt;/* Append the LF character when the CR character triggered&lt;br /&gt; * transmission from the peer.&lt;br /&gt; */&lt;br /&gt; &lt;br /&gt; if ((pos == len) &amp;amp;&amp;amp; (data[len - 1] == &amp;#39;\r&amp;#39;)) {&lt;br /&gt; tx-&amp;gt;data[tx-&amp;gt;len] = &amp;#39;\n&amp;#39;;&lt;br /&gt; tx-&amp;gt;len++;&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;err = uart_tx(uart, tx-&amp;gt;data, tx-&amp;gt;len, SYS_FOREVER_MS);&lt;br /&gt; if (err) {&lt;br /&gt; k_fifo_put(&amp;amp;fifo_uart_tx_data, tx);&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;}&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;WHAT&amp;#39;S RELATIONSHIP BETWEEN&amp;nbsp; thread/function created by FUNCTION bt_enable() and file main.c ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/308508?ContentTypeID=1</link><pubDate>Thu, 06 May 2021 10:31:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff2bc439-6835-43f8-9121-cacbc9b5333a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The example is intended for two DKs yes, but you can refer to the example to see how you can support data length update (DLE).&amp;nbsp;You can see relevant configurations in the prj.conf. Specifically you should add:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_USER_DATA_LEN_UPDATE=y
CONFIG_BT_CTLR_TX_BUFFER_SIZE=251
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you want to start the DLE procedure from the nRF you call&amp;nbsp;&lt;code&gt;bt_conn_le_data_len_update()&lt;/code&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/308449?ContentTypeID=1</link><pubDate>Thu, 06 May 2021 07:01:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb3a5943-4f76-42b7-b8e2-623945554485</guid><dc:creator>zhouhaifang</dc:creator><description>&lt;p&gt;thank Einar Thorsrud ,in example throughput&amp;nbsp; need&amp;nbsp;&amp;quot;&lt;/p&gt;
&lt;h3&gt;&lt;a class="toc-backref" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/throughput/README.html#id7"&gt;Testing&lt;/a&gt;&lt;a class="headerlink" title="Permalink to this headline" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/throughput/README.html#testing"&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;After programming the sample to both kits, test it by performing the following steps:&lt;/p&gt;
&lt;p&gt;&amp;quot;,now i have only one nrf5340dk board ,the test is a bluetooth APP in a phone with nrf5340dk , i cannot flash APP ,the APP GAP payload is more than 200 BYTES ,how can i send more than 20 bytes in a bluetooth packet to APP in example&amp;nbsp;&lt;span&gt;peripheral_uart&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in \connect SDK\v1.5.0\nrf\samples\bluetooth\peripheral_uart,data number is limited 20 bytes, more than 20bytes BLE will part data in two or more packs to send or receive</title><link>https://devzone.nordicsemi.com/thread/307669?ContentTypeID=1</link><pubDate>Fri, 30 Apr 2021 12:45:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1376b42-0354-40b9-9ab2-37b07f62b615</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;20 byte is the maximum payload you get per packet without using DLE (GAP payload is 23 byte, and 3 byte GATT header leaving 20 byte data). To send longer packets you need to use data length extension. To support that you need to set&amp;nbsp;CONFIG_BT_USER_DATA_LEN_UPDATE=y in your prj.conf and use&amp;nbsp;bt_conn_le_data_len_update() to initiate the DLE procedure. You can see an example of this sin the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/throughput/README.html"&gt;Bluetooth: Throughput sample&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>