<?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>[Client - Server Bluetooth]</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112640/client---server-bluetooth</link><description>Hello, 
 I am programming BLE with the nRF52840-DK. [Toolchain Manager: v1.3.0, IDE: Visual Studio Code (VSCode), SDK: ncs v2.6.0 ] 
 I am planning to set up the system as shown in the diagram below. 
 
 
 To explain briefly, the data obtained from the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Jul 2024 07:41:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112640/client---server-bluetooth" /><item><title>RE: [Client - Server Bluetooth]</title><link>https://devzone.nordicsemi.com/thread/491984?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 07:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa612e5b-8fb0-422d-8c26-237682d4f9f6</guid><dc:creator>seongmincho</dc:creator><description>&lt;div class="flex-shrink-0 flex flex-col relative items-end"&gt;
&lt;div&gt;
&lt;div class="pt-0.5 juice:pt-0"&gt;
&lt;div class="gizmo-bot-avatar flex h-6 w-6 items-center justify-center overflow-hidden rounded-full juice:h-8 juice:w-8"&gt;
&lt;div class="relative p-1 rounded-sm flex items-center justify-center bg-token-main-surface-primary text-token-text-primary h-8 w-8"&gt;I found tickets (&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/87296/ble-data-length-extension-usage-and-example/365263"&gt;BLE Data Length Extension Usage and Example&lt;/a&gt; and&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/84487/ble-uart-nus-altering-mtu-and-faster-interval"&gt;BLE UART (NUS), altering MTU and faster interval&lt;/a&gt;) related to my issue!&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Client - Server Bluetooth]</title><link>https://devzone.nordicsemi.com/thread/491941?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 01:15:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac83093f-defc-49a6-825a-10534237a711</guid><dc:creator>seongmincho</dc:creator><description>&lt;p&gt;thank you for your response!&lt;br /&gt;&lt;br /&gt;but,&amp;nbsp;Hmm, I think you might be misunderstanding because of the diagram. (The commands in the diagram are not related to Bluetooth settings.)&lt;br /&gt;What I want is not to modify the values in real-time, but to know how to change these values while programming.&lt;/p&gt;
&lt;div class="flex flex-grow flex-col max-w-full"&gt;
&lt;div dir="auto" data-message-author-role="assistant" data-message-id="f95bbae8-d78b-4000-87a5-0bc5252d251c"&gt;
&lt;div&gt;
&lt;div class="markdown prose w-full break-words dark:prose-invert dark"&gt;
&lt;p&gt;I&amp;#39;m programming Bluetooth code using examples &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/throughput/README.html"&gt;Bluetooth: Throughput&lt;/a&gt;, &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;Bluetooth: Peripheral UART&lt;/a&gt;, and &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/central_uart/README.html"&gt;Bluetooth: Central UART&lt;/a&gt;, but I don&amp;#39;t know how to set the initial values for PHY, MTU, Data length, and Connection interval, which is why I&amp;#39;m asking.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Client - Server Bluetooth]</title><link>https://devzone.nordicsemi.com/thread/491894?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 15:12:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:699138ff-0893-40a0-8980-dcfb41d119a8</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="seongmincho"]1. so, Can I increase Bluetooth throughput by adjusting PHY, interval time, MTU, and data length in NUS ?[/quote]
&lt;p&gt;1.3 Mbps is around the limit for what is possible with BLE, using large ATT MTU size and LE 2M PHY.&lt;/p&gt;
[quote user="seongmincho"]2. Can you provide an example of how to control Bluetooth throughput by adjusting PHY, interval time, MTU, and data length? (excluding &lt;a title="Bluetooth: Throughput" href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/throughput/README.html"&gt;Bluetooth: Throughput&lt;/a&gt;)[/quote]
&lt;p&gt;Please note that many BLE devices out there expect adjusting PHY, connection parameters, MTU size etc. at the beginning of the connection only, or only a couple of times, and may decide to disconnect if it happens too often. In this case however you control both ends of the link, and therefore multiple updates may be OK.&lt;/p&gt;
&lt;p&gt;For a sample to run and change those settings, please have a look at the &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/peripherals/posts/using-bluetooth-shell"&gt;Bluetooth Shell&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Apart from that, the settings can be changed dynamically through the following API calls:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/connectivity/bluetooth/api/connection_mgmt.html#c.bt_conn_le_param_update"&gt;bt_conn_le_param_update()&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/connectivity/bluetooth/api/connection_mgmt.html#c.bt_conn_le_data_len_update"&gt;bt_conn_le_data_len_update()&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/connectivity/bluetooth/api/connection_mgmt.html#c.bt_conn_le_phy_update"&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;bt_conn_le_phy_update&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;()&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These changes should generally be initiated from the central side, since the central is the device controlling the connection. Calling them on the peripheral is merely a suggestion, and it is always up to the central to agree and perform the actual change.&lt;/p&gt;
&lt;p&gt;Please note also that changes may be required to the Nordic UART Service (NUS) code, with regards to buffer sizes, when to send, etc, to better match the connection settings.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Client - Server Bluetooth]</title><link>https://devzone.nordicsemi.com/thread/491742?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 07:34:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad7ef190-694e-4ac2-b3ed-e023d4b7650b</guid><dc:creator>seongmincho</dc:creator><description>&lt;p&gt;I want a throughput of more than 1.3Mbps.&lt;br /&gt;&lt;br /&gt;1. so, Can I increase Bluetooth throughput by adjusting PHY, interval time, MTU, and data length in NUS ?&lt;br /&gt;&lt;br /&gt;2. Can you provide an example of how to control Bluetooth throughput by adjusting PHY, interval time, MTU, and data length? (excluding &lt;a title="Bluetooth: Throughput" href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/throughput/README.html"&gt;Bluetooth: Throughput&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Client - Server Bluetooth]</title><link>https://devzone.nordicsemi.com/thread/491658?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 16:31:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27413450-ab45-407b-8fc2-176f8c130a5f</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In Bluetooth LE, the roles for the connection are called Central and Peripheral, and each can have a GATT server and/or operate as GATT client, but in almost all cases the GATT server used for BLE services resides on the peripheral.&lt;/p&gt;
&lt;p&gt;For transferring a stream of data, I recommend having a look at &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/bluetooth_services/services/nus.html"&gt;Nordic UART Service (NUS)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>