<?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>TX Power Level Setting nrf5340 nrf Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90485/tx-power-level-setting-nrf5340-nrf-connect-sdk</link><description>We are using the Softdevice controller from the nRF Connect SDK on the nrf5340 processor and have implemented the commands to read and set the tx power level in the controller. Do you know if passing a tx power level of 3 with the HCI BT_HCI_OP_VS_WRITE_TX_POWER_LEVEL</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Jul 2022 11:02:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90485/tx-power-level-setting-nrf5340-nrf-connect-sdk" /><item><title>RE: TX Power Level Setting nrf5340 nrf Connect SDK</title><link>https://devzone.nordicsemi.com/thread/379291?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 11:02:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fe5347d-9c04-4497-aa4d-e5a02f07f41b</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Do you know if passing a tx power level of 3 with the HCI BT_HCI_OP_VS_WRITE_TX_POWER_LEVEL command will set the tx power level to +3dBm in the nrf5340 radio?[/quote]
&lt;p&gt;Yes, if you are using the SoftDevice controller then you can set the tx power to +3 dBm with the&amp;nbsp;BT_HCI_OP_VS_WRITE_TX_POWER_LEVEL command. The Zephyr controller does not support +3 dBm on the nRF5340.&lt;/p&gt;
[quote user=""]What happens if we try to set a power level greater than 3 dBm?[/quote]
&lt;p&gt;Then it will be set to +3 dBm instead.&lt;/p&gt;
[quote user=""]Does the get TX power command (&lt;span&gt;BT_HCI_OP_VS_READ_TX_POWER_LEVEL&amp;nbsp;)&amp;nbsp;&lt;/span&gt;return a truncated power level to be reflective of the actual setting?[/quote]
&lt;p&gt;BT_HCI_OP_VS_READ_TX_POWER_LEVEL returns the actual tx power.&lt;/p&gt;
&lt;p&gt;If you are curious and want to test this out you can use the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/zephyr/samples/bluetooth/hci_pwr_ctrl/README.html"&gt;Bluetooth: HCI Power Control&lt;/a&gt;&amp;nbsp;sample. This sample will change the tx power to the values in the array txp, so you can change the values in txp to test with 3 dBm and above 3 dBm. The sample also reads the tx power with&amp;nbsp;BT_HCI_OP_VS_READ_TX_POWER_LEVEL&amp;nbsp;and prints it. Just add the following to prj.conf:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_LL_SOFTDEVICE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_LL_SW_SPLIT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Then build the sample for the net core and build the empty app core sample for the app core to test it out.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>