<?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>How to use throughput routines to connect to any le bluetooth device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121019/how-to-use-throughput-routines-to-connect-to-any-le-bluetooth-device</link><description>Hello, please help. I want to use nrf54L15 to connect to Bluetooth devices (Bluetooth headsets or other Bluetooth devices) and test the throughput between them. Is there any related routine? 
 I use the following routine to connect to GATT. Based on this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 03 May 2025 11:19:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121019/how-to-use-throughput-routines-to-connect-to-any-le-bluetooth-device" /><item><title>RE: How to use throughput routines to connect to any le bluetooth device</title><link>https://devzone.nordicsemi.com/thread/533809?ContentTypeID=1</link><pubDate>Sat, 03 May 2025 11:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:addd2287-bc39-451e-8be3-4694df221d70</guid><dc:creator>lee123</dc:creator><description>&lt;p&gt;thank you ,i see it.&lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-4-bluetooth-le-data-exchange/"&gt;https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-4-bluetooth-le-data-exchange/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use throughput routines to connect to any le bluetooth device</title><link>https://devzone.nordicsemi.com/thread/533546?ContentTypeID=1</link><pubDate>Wed, 30 Apr 2025 11:10:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b74dd3cc-f8c9-470b-881d-4081d52461ab</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I would suggest you to take a look at the BLE fundamental course.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use throughput routines to connect to any le bluetooth device</title><link>https://devzone.nordicsemi.com/thread/533525?ContentTypeID=1</link><pubDate>Wed, 30 Apr 2025 09:40:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57fadb7c-f349-4cfa-9ef4-3bcb0faf3d2d</guid><dc:creator>lee123</dc:creator><description>&lt;p&gt;&lt;span&gt;Thanks for your reply,&lt;/span&gt;ok,i got it., I &amp;nbsp;just want&amp;nbsp; to know how to use gatt to communicate with a generic low-power bluetooth device.(3rd devices)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use throughput routines to connect to any le bluetooth device</title><link>https://devzone.nordicsemi.com/thread/533522?ContentTypeID=1</link><pubDate>Wed, 30 Apr 2025 09:21:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7541cb04-e7bd-4e15-b45b-91ec57cbbe26</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Lee,&amp;nbsp;&lt;br /&gt;I don&amp;#39;t see the point of testing the throughput with the GATT service. Very often this GATT service doesn&amp;#39;t have any characteristic. I don&amp;#39;t know how you can test throughput with that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;What do you want to achieve ? If you want to test the throughput you need to test it on a meaningful service&amp;amp;characteristic, not the empty GATT service.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please study the BLE fundamental.&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/"&gt;https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use throughput routines to connect to any le bluetooth device</title><link>https://devzone.nordicsemi.com/thread/533501?ContentTypeID=1</link><pubDate>Wed, 30 Apr 2025 07:08:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ad982a2-4cd3-4228-82f8-608c48f40a91</guid><dc:creator>lee123</dc:creator><description>&lt;p&gt;hi Hung Bui,if there are any relevant API interface functions that can perform GATT transmission with third-party devices.When we were establishing a connection, the GATT service could not find information.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1745997683933v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use throughput routines to connect to any le bluetooth device</title><link>https://devzone.nordicsemi.com/thread/533427?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 13:52:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fd08229-f987-497e-9415-5622b312b3ae</guid><dc:creator>lee123</dc:creator><description>&lt;p&gt;Thanks for your reply，The example you provided ：&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/throughput/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/throughput/README.html&lt;/a&gt;.&amp;nbsp;&lt;span&gt;uses nus to test throughput, or&amp;nbsp; use GATT? What do you think is the correct direction to implement this function?Throughput test with third-party le Bluetooth devices&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use throughput routines to connect to any le bluetooth device</title><link>https://devzone.nordicsemi.com/thread/533416?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 13:27:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb6edfb8-9294-4a25-9a2b-0da4388de4fb</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;Which exact characteristic you are planning to write to?&amp;nbsp;&lt;br /&gt;Note that you can&amp;#39;t write any amount of data to a characteristic without considering the max size allowed for it.&amp;nbsp;&lt;br /&gt;I don&amp;#39;t think you are going the right direction.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use throughput routines to connect to any le bluetooth device</title><link>https://devzone.nordicsemi.com/thread/533404?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 13:01:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07947892-a425-434e-83e8-814393fa2c97</guid><dc:creator>lee123</dc:creator><description>&lt;p&gt;Yes, I plan to connect to a service device without nus. The solution I tested is to use GATT for message transmission, and then record the timestamp of the transmission to determine the current throughput. Similar to the following code.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1745931670529v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use throughput routines to connect to any le bluetooth device</title><link>https://devzone.nordicsemi.com/thread/533365?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 10:47:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ae4753b-b373-4782-bda9-c30951067f5b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Lee,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please&amp;nbsp;give me the information on what you want to test first before going into modification.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;What do you want to achieve ? Why you want to change NUS to GATT (?)&amp;nbsp; Are you planning to connect to a 3rd party device that doesn&amp;#39;t have NUS service ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Note that without a NUS (or proprietary ) service you can&amp;#39;t do throughput test.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use throughput routines to connect to any le bluetooth device</title><link>https://devzone.nordicsemi.com/thread/533318?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 08:16:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11170433-e7ba-43db-bfec-5b531b0013ef</guid><dc:creator>lee123</dc:creator><description>&lt;p&gt;I modified the function&amp;#39;s parameters, BT_UUID_NUS_SERVICE&amp;nbsp;&amp;nbsp;is changed to BT_UUID_GATT. this change is OK? because&amp;nbsp;general devices do not have nus services&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;original code&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_gatt_dm_start&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;conn&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;BT_UUID_NUS_SERVICE&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;discovery_cb&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;nus_client&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;modify:&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;bt_gatt_dm_start&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;conn&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BT_UUID_GATT&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;discovery_cb&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;nus_client&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1745914504039v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use throughput routines to connect to any le bluetooth device</title><link>https://devzone.nordicsemi.com/thread/533289?ContentTypeID=1</link><pubDate>Tue, 29 Apr 2025 04:11:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dfb6a7b-27d4-4ea1-bc32-26d8c88eb00a</guid><dc:creator>lee123</dc:creator><description>&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;I am glad to receive the modified reply, thank you. I would like to know if there is an example that can directly connect to the BLE device and&amp;nbsp; test throughput .&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt; First, according to the sample, I modified his connection method using the following functionFirst, use the device found() function to find Bluetooth devices with rssi greater than -50. The core function is (void)bt_addr_le_to_str(addr, addr_str, sizeof(addr_str)); &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;After finding it, use the bt_le_scan_stop() function to stop scanning, and then use bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN, BT_LE_CONN_PARAM_DEFAULT, &amp;amp;default_conn); to create a connection. I can also scan the surrounding devices and establish a connection using this method,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;but I changed the nus service to the gatt service, but it shows an error in the detection. The following are related pictures and source code.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/central_uart/README.html"&gt;sample,central_uart&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1745897650806v5.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1745899013595v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1745897182918v1.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1745897230032v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/main_2800_3_2900_.c"&gt;devzone.nordicsemi.com/.../main_2800_3_2900_.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use throughput routines to connect to any le bluetooth device</title><link>https://devzone.nordicsemi.com/thread/533238?ContentTypeID=1</link><pubDate>Mon, 28 Apr 2025 14:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7158c978-dffc-419a-b950-9ba1880b02fd</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Lee,&amp;nbsp;&lt;br /&gt;Could you please elaborate what you mean by routine ? Are you asking for sample ?&amp;nbsp;&lt;br /&gt;If you want to test throughput , you can take a look at this throughput sample:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/throughput/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/throughput/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Note that the sample requires you to flash the firmware on both side central and peripheral to be able to test. It won&amp;#39;t allow to simply just connect to any BLE device and test the throughput of it. And please also note that most of the Bluetooth headset doesn&amp;#39;t use BLE, they use classic Bluetooth (BR-EDR) instead&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>