<?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 enable BLE 2MBPS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96373/how-to-enable-ble-2mbps</link><description>Hello, 
 I&amp;#39;m trying to enable 2MBPS using 2 nRF52840-DK. I&amp;#39;m using SDK17 examples with Segger Embedded Studio. The peripheral uses the ble_app_uart example. The central uses ble_app_uart_c example. 
 I was able to make them work as default at 1MBPS, but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Mar 2023 08:25:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96373/how-to-enable-ble-2mbps" /><item><title>RE: How to enable BLE 2MBPS</title><link>https://devzone.nordicsemi.com/thread/413436?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 08:25:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a313bcd-d2a7-47f5-88b9-1d9210dc0c6b</guid><dc:creator>vn2000</dc:creator><description>&lt;p&gt;Thanks Hieu.&lt;/p&gt;
&lt;p&gt;Viet&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable BLE 2MBPS</title><link>https://devzone.nordicsemi.com/thread/412151?ContentTypeID=1</link><pubDate>Mon, 27 Feb 2023 06:51:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3535be99-856c-4b10-8191-5e4d36d6ad57</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;No problem. Happy to help.&lt;/p&gt;
&lt;p&gt;By the way, I forgot to mention it last time, but I also saw that you can use the CLI to config data length, no need to change it directly in the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable BLE 2MBPS</title><link>https://devzone.nordicsemi.com/thread/412140?ContentTypeID=1</link><pubDate>Mon, 27 Feb 2023 04:24:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92e12fc5-e7d3-4aa0-aa8e-9706c1ee75bb</guid><dc:creator>vn2000</dc:creator><description>&lt;p&gt;Ok thank you Hieu.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable BLE 2MBPS</title><link>https://devzone.nordicsemi.com/thread/411846?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 08:38:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef1f007f-8e34-4210-8083-d2ea73d233d2</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi vn2000,&lt;/p&gt;
&lt;p&gt;In main.c/cli_init(), you can see that baud rate is not configured in the UART config. That means the sample just use&amp;nbsp;UART_DEFAULT_CONFIG_BAUDRATE defined in sdk_config.h. Therefore, there are two ways: change&amp;nbsp;UART_DEFAULT_CONFIG_BAUDRATE in sdk_config.h, or add UART configuration in cli_init().&lt;/p&gt;
&lt;p&gt;In my quick tests, it appears that if you connect RTTs, the UART CLI&amp;nbsp;and logging don&amp;#39;t work very well in high baud rate (921K, 1M), so please watch out for that.&lt;/p&gt;
&lt;p&gt;If you want to do more advance stuffs, you can research into the CLI module and change the backend to libUARTE to see if that can improve things.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable BLE 2MBPS</title><link>https://devzone.nordicsemi.com/thread/411830?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 07:25:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4047c4aa-ef1c-4442-904f-4925e86e9c9e</guid><dc:creator>vn2000</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;I just have one question regarding the ATT_MTU example. How can I change the baud rate in the firmware?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable BLE 2MBPS</title><link>https://devzone.nordicsemi.com/thread/411321?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2023 10:51:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fc64549-f819-4303-93b6-c2efcf077bed</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi vn2000,&lt;/p&gt;
[quote user="vn2000"]I don&amp;#39;t know why it was not set to 251 as default like the dummy board.[/quote]
&lt;p&gt;They are probably different configurations for different test cases. You could see our publicize throughput numbers&amp;nbsp;at the following link, where different configurations also result in different results:&lt;/p&gt;
&lt;p&gt;https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/ble_data_throughput/ble_data_throughput.html&lt;/p&gt;
&lt;p&gt;That said, BLE devices can have different data length when they are not connected. However, once connected, they&amp;nbsp;should agree on the same data length&amp;nbsp;during connection parameters update. It could be that the example is setup to not allow data length update, in order to ensure the test case is fixed. You should be able to find the details in the example&amp;#39;s code.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a bit odd that my test didn&amp;#39;t encounter the same issue. Perhaps because I used the precompiled hex files directly. I hope things work well for you now.&lt;/p&gt;
[quote user="vn2000"]Nordic is the best.[/quote]
&lt;p&gt;Thank you for the kind words.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable BLE 2MBPS</title><link>https://devzone.nordicsemi.com/thread/411300?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2023 10:05:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84e39807-ba6e-4c3e-9186-7fb6d48864bf</guid><dc:creator>vn2000</dc:creator><description>&lt;p&gt;Hello Hieu,&lt;/p&gt;
&lt;p&gt;I can make it work now. The only thing I have to set the data length to 251 on the tester. I don&amp;#39;t know why it was not set to 251 as default like the dummy board. I can fix it in the firmware.&lt;/p&gt;
&lt;p&gt;Anyway thank you for your help. Nordic is the best.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable BLE 2MBPS</title><link>https://devzone.nordicsemi.com/thread/411218?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2023 22:33:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bf8d387-e878-4c3d-a8df-7ca12a63292d</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Welcome back&amp;nbsp;vn2000,&lt;/p&gt;
&lt;p&gt;The Data Length&amp;nbsp;doesn&amp;#39;t seem to have to be equal.&lt;br /&gt;I reviewed the source code and see that the example would complain &amp;quot;Wrong board setup!&amp;quot; if you call run from the dummy/responder board.&lt;br /&gt;Please command &amp;quot;run&amp;quot; on the tester board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is my log for your reference.&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/6076.pastedimage1677018786269v1.png" alt=" " /&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/6557.pastedimage1677018802466v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable BLE 2MBPS</title><link>https://devzone.nordicsemi.com/thread/410822?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 09:15:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a78f1af5-4b95-4413-a421-2ed062755a2e</guid><dc:creator>vn2000</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;I was tied up by another task last couple days. Now I compiled and downloaded both boards and I encountered some problems.&lt;/p&gt;
&lt;p&gt;On the tester board, I pushed the button 3 and I see this:&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;throughput example:~$ config print&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;==== Current test configuration ====&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;Board role: tester&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;ATT MTU size: 247&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;Data length: 27&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;Connection interval: 6 units&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;Connection length ext: on&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;Preferred PHY: 2 Mbps&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;GAP event length: 400&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;On the dummy board, I pushed the button 4 and I see this:&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;throughput example:~$ config print&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;==== Current test configuration ====&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;Board role: dummy&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;ATT MTU size: 247&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;Data length: 251&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;Connection interval: 6 units&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;Connection length ext: on&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;Preferred PHY: 2 Mbps&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;GAP event length: 400&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;The Data length are different. Do they need to be equal?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;When I type &amp;#39;run&amp;#39;, the dummy board complained:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;&amp;#39;Wrong board setup!&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;Do you have any suggestion?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable BLE 2MBPS</title><link>https://devzone.nordicsemi.com/thread/409082?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2023 09:27:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c0e4e29-2c7d-4aa1-85e4-b0f0286807e1</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi vn2000,&lt;/p&gt;
&lt;p&gt;Yes, the path to the example and a step-by-step guide to perform the test are all include in the link in my previous answer &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable BLE 2MBPS</title><link>https://devzone.nordicsemi.com/thread/409059?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2023 07:47:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a84731cb-6dee-4282-8bc3-7698b3f03e6a</guid><dc:creator>vn2000</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;I want to make sure I&amp;#39;m using the right example you suggested. I&amp;#39;m using SDK V17;&lt;/p&gt;
&lt;p&gt;\nRF5_SDK\V17\examples\ble_central_and_peripheral\experimental\ble_app_att_mtu_throughput&lt;/p&gt;
&lt;p&gt;So I will use this same example on both central and peripheral device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable BLE 2MBPS</title><link>https://devzone.nordicsemi.com/thread/408891?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2023 13:40:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f05031d-0a0c-40aa-8092-be77f8a0a028</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi vn2000,&lt;/p&gt;
&lt;p&gt;An even better way to confirm whether you have 2M PHY is to get a sniffer trace. You can use the &lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/intro.html"&gt;nRF Sniffer&lt;/a&gt; for that.&lt;/p&gt;
&lt;p&gt;The Throughput Example is created for throughput testing purpose. Would you like to give that a try?&lt;br /&gt;Here is its documentation:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_att_mtu.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_att_mtu.html&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable BLE 2MBPS</title><link>https://devzone.nordicsemi.com/thread/408742?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2023 07:33:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9fe808c-f471-4b67-8e45-aeff4ab5d6b9</guid><dc:creator>vn2000</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;I made the following changes in&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_PHY_UPDATE.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt;ble_gap_evt_t const * const p_gap = &amp;amp;p_ble_evt-&amp;gt;evt.gap_evt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#008000;"&gt; case BLE_GAP_EVT_PHY_UPDATE:&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;&amp;nbsp; &amp;nbsp; printf(&amp;quot;Received BLE_GAP_EVT_PHY_UPDATE (RX:%d, TX:%d, status:%d)&amp;quot;,&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p_gap-&amp;gt;params.phy_update.rx_phy,&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p_gap-&amp;gt;params.phy_update.tx_phy,&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p_gap-&amp;gt;params.phy_update.status); &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#008000;"&gt;&amp;nbsp; &amp;nbsp; break;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I see the output:&lt;br /&gt;Received BLE_GAP_EVT_PHY_UPDATE (RX:2, TX:2, status:0).&lt;/p&gt;
&lt;p&gt;So it looks like the RX and TX PHY are changed to 2MBPS. But why don&amp;#39;t I get a speed change? Could it be my test program didn&amp;#39;t work correctly. Do you recommend any test program that tests the 2MBPS throughput?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable BLE 2MBPS</title><link>https://devzone.nordicsemi.com/thread/408298?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2023 13:32:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbcce290-ba9f-4849-8893-b461e26318fc</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi vn2000,&lt;/p&gt;
&lt;p&gt;Could you go deeper into the event structure and get the details of&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_PHY_UPDATE?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can get&amp;nbsp;from the fields of p_ble_evt-&amp;gt;gap.evt.phy_update.&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Reference:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.2.0/structble__gap__evt__phy__update__t.html"&gt;infocenter.nordicsemi.com/.../structble__gap__evt__phy__update__t.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hieu&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>