<?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 increase BLE TX POWER on nrf5340 in SDK v2.5.3?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114120/how-to-increase-ble-tx-power-on-nrf5340-in-sdk-v2-5-3</link><description>We have a custom board with nrf5340 and we use SDK v2.5.3 for software development. Our BLE signal strength seems too weak with the default TX Power setting. So we would like to try different TX POWER settings but we can&amp;#39;t figure out how to do this. Questions</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Aug 2024 11:48:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114120/how-to-increase-ble-tx-power-on-nrf5340-in-sdk-v2-5-3" /><item><title>RE: How to increase BLE TX POWER on nrf5340 in SDK v2.5.3?</title><link>https://devzone.nordicsemi.com/thread/499967?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 11:48:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5ea2473-cb91-4079-babe-42206657fb16</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="GerardB"]&lt;span&gt;set_tx_power&lt;/span&gt;&lt;span&gt;(BT_HCI_VS_LL_HANDLE_TYPE_ADV, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;8&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;[/quote]
&lt;p&gt;From the shared code snippet, I can see that you are trying to set a Tx power of +8 dBm for the nRF5340, which is not supported. The transmission power range for the nRF5340 is from -40 dBm to +3 dBm, as specified in the&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/keyfeatures_html5.html"&gt; product documentation&lt;/a&gt;. For higher Tx power, you may need to consider using&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/fem/index.html"&gt; FEMs (Front-End Modules)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Please refer to this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/90133/how-to-set-tx-power-to-maximum-8dbm-for-advertising-as-well-as-when-connected"&gt;old Devzone thread&lt;/a&gt; where my colleague shares a sample for setting the Tx power in advertising mode. Note that this sample is only applicable to the nRF52 series (setting +8dbm) and is provided as a reference for implementation.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to increase BLE TX POWER on nrf5340 in SDK v2.5.3?</title><link>https://devzone.nordicsemi.com/thread/499471?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2024 05:25:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a5701b9-f047-4a62-978c-9f61853ae2b3</guid><dc:creator>GerardB</dc:creator><description>&lt;p&gt;Thanks for your fast response Menon.&lt;br /&gt;&lt;br /&gt;I was aware of the HCI_power_control example but from what I see there, it only changes the TX POWER for a particular BLE connection (so first a central&amp;nbsp;needs to connect to the peripheral &amp;amp; then the peripheral can change its TX POWER level).&lt;/p&gt;
&lt;p&gt;Our nrf5340 based board is configured as a peripheral. What we need is to ALWAYS improve the BLE signal strength - especially during advertising (when there is NO BLE connection yet). So it needs to be done after BLE is initialized, just before advertising starts.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I looked at the old Devzone thread you referenced &amp;amp; tried the code BUT although it builds OK, I do not see any difference in BLE signal strength when I run&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;------&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;set_tx_power&lt;/span&gt;&lt;span&gt;(BT_HCI_VS_LL_HANDLE_TYPE_ADV, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;8&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;just before&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;err &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_le_adv_start&lt;/span&gt;&lt;span&gt;(BT_LE_ADV_CONN_1ST30SECS, ad, &lt;/span&gt;&lt;span&gt;ARRAY_SIZE&lt;/span&gt;&lt;span&gt;(ad), sd, &lt;/span&gt;&lt;span&gt;ARRAY_SIZE&lt;/span&gt;&lt;span&gt;(sd));&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;------&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Are you sure that &amp;quot;set_tx_power(..) will work on the nrf5340? Some of the other (old) threads I have seen on devzone seem to indicate that this will NOT work on the nrf5340. Can you confirm that it should work?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;Thanks!&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Gerard&lt;/div&gt;
&lt;div&gt;&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: How to increase BLE TX POWER on nrf5340 in SDK v2.5.3?</title><link>https://devzone.nordicsemi.com/thread/499371?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 12:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3101d35f-01d0-4030-a6d7-213155022d2b</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please take a look at the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/bluetooth/hci_pwr_ctrl/README.html"&gt;HCI_power_control&lt;/a&gt;&amp;nbsp;sample from the SDK. This sample demonstrates peripheral advertising with varying Tx power, which I hope will be helpful for your use case. You can find it &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/bluetooth/hci_pwr_ctrl"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I’m also attaching an&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/108552/bt_hci_cmd_send_sync-failure-when-changing-txpower-error--5"&gt; old Devzone thread&lt;/a&gt; that discusses an issue with a similar implementation. This may serve as a useful reference for your project.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>